regex: support Gawk, which never uses alloca
[gnulib.git] / ChangeLog
1 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2
3         regex: support Gawk, which never uses alloca
4         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
5         Do not include in this case.  Gawk doesn't supply a substitute
6         alloca.h and doesn't need one.
7
8         regex: port __libc_lock_define usage to C89
9         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
10         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
11         does not conform to C89, as it has an empty macro argument.
12         Reported by Aharon Robbins in
13         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14
15 2013-01-01  Eric Blake  <eblake@redhat.com>
16
17         maint: update all copyright year number ranges
18         Run "make update-copyright".
19
20         version-etc: bump copyright year reported in --version
21         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
22
23 2012-12-31  Eric Blake  <eblake@redhat.com>
24
25         sigprocmask-tests: skip test if pid is unexpectedly large
26         * tests/test-sigprocmask.c (main): Add range check.
27
28         git-version-gen: avoid test -z portability glitch
29         * build-aux/git-version-gen: Prefer portable test spelling, since
30         git-version-gen is run on more than just developer machines.
31
32 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
33
34         git-version-gen: add --fallback option to use if git is not present
35         * build-aux/git-version-gen: Add support for the new option --fallback,
36         which comes into play when there is no $tarball_version_file and
37         git is not working.
38         (scriptversion): Update.
39
40         maint.mk: handle missing git with more grace
41         * top/maint.mk (no-submodule-changes, public-submodule-commit):
42         Quietly proceed if git is not present.
43
44 2012-12-31  Eric Blake  <eblake@redhat.com>
45
46         dup2: work around cygwin bug
47         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
48         * lib/dup2.c (rpl_dup2): Work around it.
49         * doc/posix-functions/dup2.texi (dup2): Document it.
50
51 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52
53         regex: remove unnecessary dependency on localcharset.h
54         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
55         hasn't been needed for years.
56         * modules/regex (Depends-on): Remove localcharset.
57
58         regex: revert single-byte change
59         * lib/regexec.c (check_node_accept_bytes): Revert previous change
60         to this function.  This was alredy fixed in a different way, at
61         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
62         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
63         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
64
65         regex: simplify based on Gawk version
66         * lib/regex_internal.c (re_dfa_add_node): Simplify.
67         Reported by Aharon Robbins in
68         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
69
70 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71
72         regex: check that pattern char is single-byte
73         Reported by Aharon Robbins in
74         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
75         * lib/regexec.c (check_node_accept_bytes):
76         Return 0 if the pattern string has a multibyte character here.
77
78         regex: implement rational ranges
79         Reported by Aharon Robbins in
80         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
81         * lib/regcomp.c (build_range_exp) [!_LIBC]:
82         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
83         Implement rational ranges.
84
85         regex: avoid redefining __wctype
86         Reported by Aharon Robbins in
87         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
88         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
89         #undef before defining.
90
91         regex: port to hosts where malloc (0) == NULL
92         Reported by Aharon Robbins in
93         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
94         * lib/regex_internal.c (re_node_set_alloc):
95         Don't assume that malloc (0) yields nonnull.
96         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
97         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
98         * modules/regex (Files): Add m4/eealloc.m4.
99
100         regex: port to C89
101         Reported by Aharon Robbins in
102         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
103         * lib/regcomp.c (init_word_char): Declaration before statement.
104
105         regex: merge glibc changes
106         Also, copy the license wording from glibc.  This simplifies
107         merging changes.  gnulib-tool will change the wording to GPL as
108         appropriate, when importing it to other packages.  The only
109         glibc change made since the last merge, which needs merging, is:
110         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
111         * lib/regex_internal.h (gettext): Remove use of INTUSE.
112
113         * users.txt: Add Emacs.
114
115         doc: omit mention of version when not needed
116         * doc/gnulib-intro.texi (Portability and Application Code):
117         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
118         Don't mention particular dates or versions when not necessary, so
119         that the documentation won't go out of date so quickly.
120
121         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
122
123 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
124
125         bootstrap: pass --force to autoreconf.
126         * build-aux/bootstrap (AUTORECONFFLAGS): New.
127         Add "--force" so that Automake's ylwrap and other such tools
128         be updated at each bootstrap invocation.
129         Use it.
130
131 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
132
133         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
134         The earlier patch forgot to update one of the #if conditions, causing
135         a problem on Debian testing i386 reported by Mats Erik Andersson
136         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
137         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
138         (__argp_fmtstream_puts, argp_fmtstream_puts)
139         (__argp_fmtstream_write, argp_fmtstream_write)
140         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
141
142         * doc/gnulib-readme.texi: Minor fixups.
143         (Portability guidelines): Modernize URLs.  Remove some repetition.
144         (Indent with spaces not TABs): Reword to avoid too-long lines.
145         Remove some '@ifset standalone' stuff that isn't used.
146
147         * doc/gnulib-readme.texi (Portability guidelines):
148         ctype.h, not ctime.h.
149
150         Correct name of POSIX.1-2001.
151         * doc/posix-functions/fgetc.texi (fgetc):
152         * doc/posix-functions/fgets.texi (fgets):
153         * doc/posix-functions/fread.texi (fread):
154         * doc/posix-functions/fscanf.texi (fscanf):
155         * doc/posix-functions/getc.texi (getc):
156         * doc/posix-functions/getchar.texi (getchar):
157         * doc/posix-functions/scanf.texi (scanf):
158         POSIX.1-2001, not POSIX-2001.
159
160         doc: move README into manual
161         * README: Move contents to new file doc/gnulib-readme.texi.
162         Replace with a one-line summary.
163         * doc/gnulib.texi (Brief Overview): New section,
164         with old intro preface.  Include gnulib-readme.texi for contents.
165         (Philosophy): Rename from "Introduction", since this
166         section no longer introduces the rest.  Write a new preface.
167         * doc/gnulib-readme.texi: New file, with the old contents of
168         README texinfo-ized.  This way, the README info appears
169         in the online and printed manual.
170
171 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
172
173         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
174         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
175         c_vasprintf() prototype.
176
177 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
178
179         c-vasprintf: Fix "empty declaration" warning reported by GCC.
180         * lib/c-vasprintf.h: Remove stray semicolon.
181
182 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
183
184         gettext: avoid obsolete macro AM_PROG_MKDIR_P
185         It is obsolete and is planned to be removed from Automake 1.14; see
186         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
187         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
188         (installdirs-data, installdirs-data-yes):
189         Use $(MKDIR_P), not $(mkdir_p).
190         * m4/intl.m4 (AM_INTL_SUBDIR):
191         * m4/po.m4 (AM_PO_SUBDIRS):
192         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
193
194 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
195
196         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
197         On this platform, we are not optimizing but we are using
198         the substitute for extern inlines, so compile as if
199         C99-style extern inline, or a substitute, is available.
200         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
201         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
202         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
203         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
204         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
205         Declare as ARGP_FS_EI, not as extern.
206         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
207         (__option_is_short, _option_is_end, __option_is_end)
208         [!_LIBC && __USE_EXTERN_INLINES]:
209         Declare as ARGP_EI, not as extern.
210
211 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
212
213         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
214         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
215         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
216         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
217         ...), as the latter is fatal with older Autoconfs.
218         Problem reported and fix suggested by Eric Blake in thread starting at
219         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
220
221 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
222
223         AC_PROG_MKDIR_P: don't workaround if not buggy
224         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
225         Define only for Autoconf versions before 2.62.
226         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
227         undocumented m4_PACKAGE_VERSION, for consistency with the
228         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
229         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
230         was introduced in 2.62.
231
232 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
233
234         New 'c-*printf' modules for formatted output in C locale.
235
236         New module 'c-vasnprintf'.
237         * modules/c-vasnprintf: New file.
238         * lib/c-vasnprintf.c: New file.
239         * lib/c-vasnprintf.h: New file.
240
241         New module 'c-snprintf'.
242         * modules/c-snprintf: New file.
243         * modules/c-snprintf-tests: New file.
244         * lib/c-snprintf.c: New file.
245         * lib/c-snprintf.h: New file.
246         * tests/test-c-snprintf.c: New file.
247         * tests/test-c-snprintf.sh: New file.
248
249         New module 'c-vsnprintf'.
250         * modules/c-vsnprintf: New file.
251         * modules/c-vsnprintf-tests: New file.
252         * lib/c-vsnprintf.c: New file.
253         * lib/c-vsnprintf.h: New file.
254         * tests/test-c-vsnprintf.c: New file.
255         * tests/test-c-vsnprintf.sh: New file.
256
257         New module 'c-vasprintf'.
258         * modules/c-vasprintf: New file.
259         * modules/c-vasprintf-tests: New file.
260         * lib/c-asprintf.c: New file.
261         * lib/c-vasprintf.c: New file.
262         * lib/c-vasprintf.h: New file.
263         * tests/test-c-vasprintf.c  +: New file.
264         * tests/test-c-vasprintf.sh: New file.
265
266         New module 'c-xvasprintf'.
267         * modules/c-xvasprintf: New file.
268         * modules/c-xvasprintf-tests: New file.
269         * lib/c-xasprintf.c: New file.
270         * lib/c-xvasprintf.c: New file.
271         * lib/c-xvasprintf.h: New file.
272         * tests/test-c-xvasprintf.c: New file.
273         * tests/test-c-xvasprintf.sh: New file.
274
275 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
276
277         argp: better 'inline'
278         Use extern-inline module to declare extern inline functions.
279         This avoids some bogus warning diagnostics.  Problem discovered
280         when modifying GNU tar to use the manywarnings module.
281         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
282         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
283         Define based on extern-inline.
284         * modules/argp (Depends-on): Add extern-inline.
285
286 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
287
288         filemode, sys_stat: Handle MPX files a la AIX.
289         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
290         * lib/sys_stat.in.h (S_ISMPX): New macro.
291         * tests/test-sys_stat.c: Add tests for MPX files.
292
293 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
294
295         x-to-1: honor $PERL
296         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
297         a chance to use his preferred version of Perl.  This is typically
298         required by Darwin users whose default /usr/bin/perl does not have all
299         the libraries required by help2man, and who need to use their MacPorts
300         installation of Perl instead.
301
302 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
303
304         gnu-web-doc-update: add all the new files, even in new directories
305         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
306         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
307         Use it.
308         (main): Don't use cvsutils to get the list of unknown files,
309         just add all the existing files and directories.
310
311 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
312
313         gnu-web-doc-update: improve --help
314         * build-aux/gnu-web-doc-update: Move comments into --help.
315
316 2012-12-07  Eric Wong  <normalperson@yhbt.net>
317
318         mountlist: recognize more "dummy" file systems
319         * lib/mountlist.c (ME_DUMMY_0):
320         Add these dummy FS names to the list:
321         - "debugfs" virtual filesystem for kernel debugging
322         - "devpts" PTY slave filesystem
323         - "devtmpfs" device filesystem on top of tmpfs/ramfs
324         - "fusectl" control filesystem for FUSE
325         - "mqueue" enumerates POSIX message queues
326         - "rpc_pipefs" kernel <-> userspace bridge for NFS
327         - "sysfs" is for exporting kernel objects
328         - "devfs" device filesystem for Linux 2.4 and FreeBSD
329
330 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
331
332         extern-inline: avoid incompatibility with Darwin Libc
333         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
334         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
335         Problem reported by Akim Demaille in
336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
337
338 2012-12-11  Simon Josefsson  <simon@josefsson.org>
339
340         gnupload: Work with GnuPG using gpg-agent (for smartcards).
341         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
342         let it handle password prompting.
343
344 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
345
346         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
347         * lib/canonicalize.c (canonicalize_filename_mode):
348         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
349         fetching the current directory.  Don't overrun the beginning of
350         rpath if there's no slashes after the MS-Windows drive letter.
351
352 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
353
354         maint.mk: avoid extra forks
355         * top/maint.mk (_cfg_mk): The GNU make manual documents that
356         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
357         So use that instead of "$(shell test -f FILE && echo FILE)".
358
359 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
360
361         vasnprintf: fix ASCII_ONLY typo
362         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
363         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
364         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
365         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
366         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
367
368 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
369
370         list, oset, xlist, xoset: fix extern inline issue with C99
371         This was introduced by my recent changes for 'inline'.
372         Problem reported for gettext by Daiki Ueno in
373         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
374         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
375         (gl_list_nx_create, gl_list_size, gl_list_node_value)
376         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
377         (gl_list_previous_node, gl_list_get_at)
378         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
379         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
380         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
381         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
382         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
383         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
384         (gl_list_iterator_free, gl_sortedlist_search)
385         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
386         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
387         (gl_sortedlist_remove):
388         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
389         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
390         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
391         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
392         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
393         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
394         (gl_list_add_at, gl_sortedlist_add):
395         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
396         Wrap these extern decls inside "#if 0", because they are implemented
397         as inline functions, and extern inline is not what's wanted here.
398         It would simplify these .h files to remove the extern decls entirely,
399         although a downside would be less-clear separation between
400         specification and implementation.
401
402 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
403
404         sys_stat: no 'static inline'
405         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
407
408         extern-inline: no 'static inline'
409         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
410         Do not require AC_C_INLINE.
411         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
412         'static inline', for older compilers.
413
414         snippet/warn-on-use: no 'static inline'
415         * build-aux/snippet/warn-on-use.h:
416         Remove unnecessary 'inline' in comment.
417
418         rbtree-list, rbtreehash-list: no 'static inline'
419         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
420         * lib/gl_anytree_list2.h (node_at):
421         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
422         (gl_oset_first, add_nodes_to_buckets):
423         Now static, not static inline.
424
425         regex: no 'static inline'
426         * lib/regex_internal.c (calc_state_hash):
427         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
428         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
429         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
430         Now static, not static inline.
431         (inline) [__GNUC__ < 3 && _LIBC]:
432         Remove macro; no longer needed.
433
434         xvasprintf: no 'static inline'
435         * lib/xvasprintf.c (xstrcat):
436         Now static, not static inline.
437         * m4/xvasprintf.m4 (gl_XVASPRINTF):
438         Do not require AC_C_INLINE.
439
440         parse-datetime, parse-duration: no 'static inline'
441         * lib/parse-datetime.y (to_uchar):
442         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
443         (scale_n_add):
444         Now static, not static inline.
445         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
446         * modules/parse-duration (configure.ac):
447         Do not require AC_C_INLINE.
448
449         getaddrinfo: no 'static inline'
450         * lib/getaddrinfo.c (validate_family):
451         Now static, not static inline.
452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
453         Do not require AC_C_INLINE.
454
455         ftruncate, fts, lstat, openat, raise: no 'static inline'
456         * lib/ftruncate.c (chsize_nothrow):
457         * lib/fts.c (opendirat, diropen):
458         * lib/lstat.c (orig_lstat):
459         * lib/openat.c (orig_openat):
460         * lib/raise.c (raise_nothrow):
461         Now static, not static inline.
462         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
463         * m4/fts.m4 (gl_FUNC_FTS_CORE):
464         * m4/lstat.m4 (gl_PREREQ_LSTAT):
465         * m4/openat.m4 (gl_PREREQ_OPENAT):
466         * m4/raise.m4 (gl_PREREQ_RAISE):
467         Do not require AC_C_INLINE.
468
469         fflush, stat: no 'static inline'
470         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
471         (clear_ungetc_buffer, disable_seek_optimization)
472         (restore_seek_optimization, update_fpos_cache):
473         * lib/stat.c (orig_stat):
474         Now static, not static inline.
475         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
476         (update_fpos_cache):
477         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
478         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
479         * m4/stat.m4 (gl_PREREQ_STAT):
480         Do not require AC_C_INLINE.
481
482         error, filevercmp: no 'static inline'
483         * lib/error.c (is_open, flush_stdout):
484         * lib/filevercmp.c (order):
485         Now static, not static inline.
486         * m4/error.m4 (gl_PREREQ_ERROR):
487         * modules/filevercmp (configure.ac):
488         Do not require AC_C_INLINE.
489
490         dup, execute, fatal-signal, etc.: no 'static inline'
491         * lib/dup.c (dup_nothrow):
492         * lib/execute.c (nonintr_close, nonintr_open):
493         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
494         * lib/fopen.c (orig_fopen):
495         * lib/freadseek.c (freadptrinc):
496         * lib/freopen.c (orig_freopen):
497         * lib/fstat.c (orig_fstat, fstat_nothrow):
498         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
499         (get_rusage_as_via_iterator):
500         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
501         * lib/getdtablesize.c (_setmaxstdio_nothrow):
502         * lib/isatty.c (_isatty_nothrow):
503         * lib/open.c (orig_open):
504         * lib/read.c (read_nothrow):
505         * lib/sigprocmask.c (signal_nothrow):
506         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
507         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
508         * lib/wait-process.c (unregister_slave_subprocess):
509         * lib/write.c (write_nothrow):
510         Now static, not static inline.
511         * lib/spawn-pipe.c (nonintr_open): Define only if
512         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
513         * m4/dup.m4 (gl_PREREQ_DUP):
514         * m4/execute.m4 (gl_EXECUTE):
515         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
516         * m4/fopen.m4 (gl_PREREQ_FOPEN):
517         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
518         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
519         * m4/fstat.m4 (gl_PREREQ_FSTAT):
520         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
521         * m4/isatty.m4 (gl_PREREQ_ISATTY):
522         * m4/open.m4 (gl_PREREQ_OPEN):
523         * m4/read.m4 (gl_PREREQ_READ):
524         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
525         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
527         * m4/wait-process.m4 (gl_WAIT_PROCESS):
528         * m4/write.m4 (gl_PREREQ_WRITE):
529         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
530         Do not require AC_C_INLINE.
531
532         c-strtod, memcoll, readutmp: no 'static inline'
533         * lib/c-strtod.c (c_locale):
534         * lib/memcoll.c (strcoll_loop):
535         * lib/readutmp.c (desirable_utmp_entry):
536         Now static, not static inline.
537         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
538         * m4/memcoll.m4 (gl_MEMCOLL):
539         * m4/readutmp.m4 (gl_READUTMP):
540         Do not require AC_C_INLINE.
541
542         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
543         * lib/arctwo.c (to_uchar):
544         * lib/md4.c (set_uint32):
545         * lib/md5.c (set_uint32):
546         * lib/sha1.c (set_uint32):
547         * lib/sha256.c (set_uint32):
548         * lib/sha512.c (set_uint64):
549         Now static, not static inline.  This is a bit simpler, and doesn't
550         affect performance with GCC and default optimization.
551         * m4/arctwo.m4 (gl_ARCTWO):
552         * m4/md4.m4 (gl_MD4):
553         * m4/md5.m4 (gl_MD5):
554         * m4/sha1.m4 (gl_SHA1):
555         * m4/sha256.m4 (gl_SHA256):
556         * m4/sha512.m4 (gl_SHA512):
557         Do not require AC_C_INLINE.
558
559         cond, lock, thread: better 'inline'
560         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
561         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
562         New macros.  Use them instead of static inline, for header functions.
563         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
564         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
565         * lib/glthread/lock.c (gl_waitqueue_init)
566         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
567         * lib/glthread/thread.c (get_current_thread_handle):
568         Change 'static inline' to 'inline'.
569         * lib/glthread/cond.h, lib/glthread/thread.h:
570         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
571         * m4/cond.m4 (gl_COND):
572         * m4/lock.m4 (gl_PREREQ_LOCK):
573         * m4/thread.m4 (gl_THREAD):
574         Do not require AC_C_INLINE.
575         * modules/cond, modules/thread (Depends-on): Add extern-inline.
576
577         chdir-long, cycle-check, savewd: better 'inline'
578         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
579         (find_non_slash):
580         * lib/cycle-check.c (is_zero_or_power_of_two):
581         * lib/savewd.c (savewd_delegating):
582         Change 'static inline' to 'inline'.
583         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
584         Replace all remaining uses of 'static inline' with it.
585         * lib/savewd.h:
586         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
587         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
588         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
589         * m4/savewd.m4 (gl_SAVEWD):
590         Do not require AC_C_INLINE.
591         * modules/savewd (Depends-on): Add extern-inline.
592
593         base32, base64: no need for 'inline'
594         * lib/base32.c (to_uchar, get_8, decode_8):
595         * lib/base64.c (to_uchar, get_4, decode_4):
596         Change 'static inline' to 'inline'.
597         * m4/base32.m4 (gl_PREREQ_BASE32):
598         * m4/base64.m4 (gl_PREREQ_BASE64):
599         Do not require AC_C_INLINE.
600
601         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
602         * lib/gl_array_oset.c (gl_array_nx_add_at):
603         (gl_array_remove_at):
604         * lib/gl_linkedhash_list.c (hash_resize_after_add)
605         (add_to_bucket, remove_from_bucket):
606         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
607         Change 'static inline' to 'static', as it's simpler to omit
608         'inline' unless there's a significant performance advantage.
609
610         list, oset, xlist, xoset, xsublist: simplify via extern inline
611         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
612         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
613         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
614         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
615         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
616         New macro.  Replace all uses of 'static inline' with it.
617         [HAVE_INLINE]: Implement functions as *_INLINE functions,
618         instead of as macros FOO that are defined to static inline
619         functions FOO_inline.
620         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
621         * lib/gl_xsublist.c:
622         Reimplement from scratch, by defining the corresponding *_INLINE
623         macro and including the corresponding .h file.  This is simpler.
624         * modules/list, modules/oset, modules/xlist, modules/xoset:
625         (Files): Remove m4/gl_list.m4.
626         (configure.ac): Remove gl_LIST.
627         * m4/gl_list.m4: Remove.
628         * modules/list, modules/oset, modules/xlist, modules/xoset:
629         * modules/xsublist:
630         (Depends-on): Depend on extern-inline, not inline.
631
632         xalloc: better 'inline'
633         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
634         New macro.  Replace all uses of 'static inline' with it.
635         (static_inline): Remove.
636         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
637         Let 'extern inline' do the work automatically, instead of doing
638         it by hand.
639         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
640         Remove.  All uses removed.
641         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
642
643         gethrxtime: better 'inline'
644         * lib/xtime.c: New file.
645         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
646         * lib/xtime.h (XTIME_INCLUDE):
647         New macros.  Replace all uses of 'static inline' with them.
648         * lib/gethrxtime.c (gethrxtime): Define only if
649         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
650         this source file is now always compiled, because of the extern inline.
651         * lib/gethrxtime.h, lib/xtime.h:
652         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
653         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
654         if gethrtime works, as they're not needed in that case.
655         (gl_XTIME): Do not require AC_C_INLINE.
656         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
657         compiled now.  Move the check into gl_GETHRXTIME.
658         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
659         (Depends-on): Add extern-inline.
660         (configure.ac): gethrxtime is always compiled now.
661         (lib_SOURCES): Add gethrxtime.c.
662
663         wctype-h: better 'inline'
664         * lib/wctype-h.c: New file.
665         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
666         New macro.  Replace all uses of 'static inline' with it.
667         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
668         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
669         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
670         (Depends-on): Add extern-inline.
671
672         unistd: better 'inline'
673         * lib/unistd.c: New file.
674         * lib/unistd.in.h (_GL_UNISTD_INLINE):
675         New macro.  Replace all uses of 'static inline' with it.
676         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
677         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
678         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
679         (Depends-on): Add extern-inline.
680
681         sys_socket: better 'inline'
682         * lib/sys_socket.c: New file.
683         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
684         New macro.  Replace all uses of 'static inline' with it.
685         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
686         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
687         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
688         (Depends-on): Add extern-inline.
689
690         stdio: better 'inline'
691         * lib/stdio.c: New file.
692         * lib/stdio.in.h (_GL_STDIO_INLINE):
693         New macro.  Replace all uses of 'static inline' with it.
694         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
695         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
696         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
697         (Depends-on): Add extern-inline.
698
699         sigaction: better 'inline'
700         * lib/sig-handler.c: New file.
701         * lib/sig-handler.h (SIG_HANDLER_INLINE):
702         New macro.  Replace all uses of 'static inline' with it.
703         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
704         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
705         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
706         (Depends-on): Add extern-inline.
707
708         selinux-h: better 'inline'
709         * lib/se-context.c, lib/se-selinux.c: New files.
710         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
711         * lib/se-context.in.h (SE_CONTEXT_INLINE):
712         New macro.  Replace all uses of 'static inline' with it.
713         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
714         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
715         New macro.  Replace all uses of 'static inline' with it.
716         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
717         * modules/selinux-h (Files, lib_SOURCES):
718         Add lib/se-context.c, lib/se-selinux.c.
719         (Depends-on): Add extern-inline.
720         (configure.ac): Do not require AC_C_INLINE.
721
722         pthread: better 'inline'
723         * lib/pthread.c: New file.
724         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
725         New macro.  Replace all uses of 'static inline' with it.
726         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
727         * m4/pthread.m4 (gl_PTHREAD_CHECK):
728         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
729         * modules/pthread (Files): Add lib/pthread.c.
730         (Depends-on): Add extern-inline.
731
732         math: better 'inline'
733         * lib/math.c: New file.
734         * lib/math.in.h (_GL_MATH_INLINE):
735         New macro.  Replace all uses of 'static inline' with it.
736         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
737         * m4/math_h.m4 (gl_MATH_H):
738         Do not require AC_C_INLINE.
739         * modules/math (Files, lib_SOURCES):
740         Add lib/math.c.
741         (Depends-on): Add extern-inline.
742
743         count-one-bits: better 'inline'
744         * lib/count-one-bits.c: New file.
745         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
746         New macro.  Replace all uses of 'static inline' with it.
747         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
748         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
749         Do not require AC_C_INLINE.
750         * modules/count-one-bits (Files, lib_SOURCES):
751         Add lib/count-one-bits.c.
752         (Depends-on): Add extern-inline.
753
754         count-leading-zeros: better 'inline'
755         * lib/count-leading-zeros.c: New file.
756         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
757         New macro.  Replace all uses of 'static inline' with it.
758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
759         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
760         Do not require AC_C_INLINE.
761         * modules/count-leading-zeros (Files, lib_SOURCES):
762         Add lib/count-leading-zeros.c.
763         (Depends-on): Add extern-inline.
764
765         bitrotate: better 'inline'
766         * lib/bitrotate.c: New file.
767         * lib/bitrotate.h (BITROTATE_INLINE):
768         New macros.
769         Replace all uses of 'static inline' with them.
770         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
771         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
772         (Depends-on): Add extern-inline.
773         (configure.ac): Do not require AC_C_INLINE.
774
775 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
776
777         maint.mk: avoid gratuitous failure
778         Reported by Stefano Lattarini in
779         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
780         * top/maint.mk (public-submodule-commit): Quote more safely.
781
782 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
783
784         canonicalize, canonicalize-lgpl: support MS-Windows file names
785         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
786         for test cases, which it'd be nice to add at some point.
787         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
788         * lib/canonicalize.c (canonicalize_filename_mode):
789         * lib/canonicalize-lgpl.c (__realpath):
790         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
791         slash is at the beginning of the file name.  Use ISSLASH, instead
792         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
793         the first character with '/'.  Test for
794         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
795         with a drive letter.
796         * lib/canonicalize.c (SLASHES): New macro.
797         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
798
799 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
800
801         fts: introduce FTS_VERBATIM
802         * lib/fts_.h (FTS_VERBATIM): New bit flag.
803         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
804         * lib/fts.c (fts_open): Honor it.
805
806 2012-11-09  Pádraig Brady  <P@draigBrady.com>
807
808         getlogin-tests: allow errno == ENXIO
809         * tests/test-getlogin.c (main): Skip tests if getlogin fails
810         with errno == ENXIO (No controlling tty).
811         getlogin_r-tests: Likewise. Also allow errno == ENOENT
812         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
813         with errno == ENOENT.  This was reported to happen in various
814         situations on GNU/Linux.
815
816 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
817
818         getlogin-tests: allow errno == ENOENT
819         * tests/test-getlogin.c (main): Skip tests if getlogin fails
820         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
821         when running a test in an Emacs shell buffer.
822
823 2012-11-08  Jim Meyering  <jim@meyering.net>
824
825         tests/nap.h: avoid warning about unused variable
826         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
827
828         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
829         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
830         white space before each of the special-cased file names, to avoid
831         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
832         in http://bugs.gnu.org/12830.
833
834 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
835
836         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
837         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
838         fails with errno == EBADF when fd is opened with O_PATH.
839         Reported by Jim Meyering in
840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
841         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
842         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
843
844 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
845
846         test-utimens: speed up by taking shorter naps
847         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
848         New functions.
849         (nap): Use them, to do a better job of guessing the delay.
850         On Fedora 17 with ext4 atop md atop hard disks, this made
851         test-utimens run 10x faster, because the test napped for
852         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
853         <http://bugs.gnu.org/12820#11>.
854
855 2012-11-07  Jim Meyering  <jim@meyering.net>
856
857         mountlist.c: fix a compilation failure
858         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
859         I introduced while transforming commit v0.0-7683-g613bcb6
860
861 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
862
863         errno: port to LynxOS 178 2.2.2
864         Problem reported by Joel Brobecker in
865         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
866         * doc/posix-headers/errno.texi (errno.h): Document this.
867         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
868         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
869         Supply a string for EILSEQ.
870         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
871
872 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
873
874         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
875         Linux kernel 2.6.39 introduced O_PATH (see
876         <http://lwn.net/Articles/433854/>) and this is a better fallback
877         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
878         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
879         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
880         * lib/fcntl.in.h (O_ACCMODE):
881         * tests/test-fcntl-h.c (main):
882         Do not reject O_ACCMODE merely because it has more than the
883         minimal number of bits, as POSIX allows extensions here.
884
885 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
886
887         mountlist: do not classify a bind-mounted dir entry as "dummy"
888         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
889         the "none"-testing clause.
890         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
891         exception for bind-mounted directories.
892
893 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
894
895         quote: provide a means to escape strings with nul characters
896         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
897         (quote, quote_n): Rename formal arguments for consistency with
898         quotearg.
899
900 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
901
902         test-raise: don't assume 199 is an invalid signal
903         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
904
905         sh-quote-tests: port to Solaris 9
906         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
907         Problem reported by Dagobert Michelsen in
908         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
909
910 2012-10-28  Jim Meyering  <jim@meyering.net>
911
912         maint.mk: rename a new configurable variable
913         * top/maint.mk (_gl_translatable_string_re): Rename from
914         translation-markers: _gl_ prefix to insulate from user Makefile code,
915         and the _re suffix to inform that it's a regular expression.
916
917 2012-10-26  Eric Blake  <eblake@redhat.com>
918
919         maint.mk: let packages tweak sc_po_check pattern
920         * top/maint.mk (sc_po_check): Add translation-markers, to allow
921         finding files with other translation markers.
922
923 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
924
925         euidaccess: speed up 'configure' on GNU hosts
926         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
927         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
928         it's needed only in this case.  Use AC_CHECK_DECLS, not
929         AC_CHECK_DECLS_ONCE.
930         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
931         or AC_REQUIRE for AC_FUNC_GETGROUPS.
932
933         * lib/regexec.c (re_search_internal): Fix grammar in comment.
934
935 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
936
937         fchmodat, fchownat, fstatat: port to non-inlining compilers
938         Problem reported for FreeBSD 9 by Jim Meyering in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
940         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
941         New files, which define FCHMODAT_INLINE etc.
942         * lib/fchmodat.c (FCHMODAT_INLINE):
943         * lib/fchownat.c (FCHOWNAT_INLINE):
944         * lib/fstatat.c (FSTATAT_INLINE):
945         Remove, as chmodat.c etc. now do this.
946         * modules/fchmodat (Files): Add lib/chmodat.c.
947         * modules/fchownat (Files): Add lib/chownat.c.
948         * modules/fstatat (Files): Add lib/statat.c.
949
950 2012-10-15  Jim Meyering  <jim@meyering.net>
951
952         fchmodat.c, fchownat.c: compile-impeding typos
953         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
954         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
955         Introduced in commit v0.0-7636-gd202279.
956
957 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
958
959         fcntl-h: support GNU flags like O_IGNORE_CTTY
960         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
961         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
962         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
963         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
964         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
965         Define to 0 if not already defined.
966         * tests/test-fcntl-h.c: Test these new flags.
967
968 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
969
970         faccessat, etc.: support AT_FDCWD-only use
971         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
972         this function only if its first argument is AT_FDCWD.
973         Emacs wants faccessat for AT_EACCESS but not for any first-arg
974         values other than AT_FDCWD, so it doesn't want all the openat
975         machinery with fchdir etc.
976         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
977         * modules/fstatat, modules/mkdirat, modules/openat (Files):
978         * modules/unlinkat (Files):
979         Remove lib/openat-priv.h, as at-internal supplies this file.
980         Removing this file here allows us to support programs like Emacs
981         that avoid at-internal.
982
983         faccessat: speed up 'configure' on mainstream hosts
984         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
985         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
986         since it's only on unusual platforms that we need to check for
987         'access', and it's better not to slow 'configure' down on all
988         platforms.
989
990         faccessat: port to Solaris 10
991         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
992         Needed on Solaris 10, which doesn't have AT_EACCESS,
993         so we need the Gnulib fcntl.h, which defines it.
994
995 2012-10-14  Pádraig Brady  <P@draigBrady.com>
996         canonicalize: fix C89 compilation
997         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
998         declarations so C89 is supported.  Also remove the comment
999         referencing memorty allocation as the suggested feature could
1000         not be implemented as suggested.
1001         Reported by Michael Goffioul.
1002
1003 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         group-member: omit unnecessary dependencies
1006         This is for Emacs, which has its own allocator and where we
1007         don't want to use xalloc.
1008         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1009         since we no longer use xmalloc.  Do not include stdbool.h, since
1010         the changes below happen to remove the only use of bool.
1011         (GROUPBUF_SIZE): New constant.
1012         (struct group_info): Remove n_groups member.  Add groupbuf member.
1013         This lets us get the groups without using malloc, usually.
1014         (free_group_info, get_group_info): Adjust to this.
1015         (get_group_info): Return the number of groups found, or -1 on error.
1016         Use plain malloc not xmalloc, and treat its failure as if there
1017         are no groups, as the user already loses in case of error.
1018         (group_member): Simplify, based on changes to get_group_info.
1019         * modules/group-member (Depends-on): Remove dependencies on
1020         xalloc and stdbool.  Add dependency on xalloc-oversized.
1021
1022 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1023
1024         gethrxtime: port to C++
1025         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1026
1027 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         ptsname: fix macro-name typo
1030         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1031
1032 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1033
1034         inttostr: Relax license.
1035         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1036
1037 2012-10-03  Eric Blake  <eblake@redhat.com>
1038
1039         ptsname_r: support ptys returned by FreeBSD posix_openpt
1040         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1041         lives in /dev/pts/.
1042
1043 2012-10-02  Eric Blake  <eblake@redhat.com>
1044
1045         pselect: reject invalid file descriptors
1046         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1047         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1048         * modules/pselect (Depends-on): Add dup2.
1049         * doc/posix-functions/pselect.texi (pselect): Document this.
1050
1051         select: reject invalid file descriptors
1052         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1053         * lib/select.c (rpl_select) [!win32]: Work around it.
1054         * modules/select (Depends-on): Add dup2.
1055         * doc/posix-functions/select.texi (select): Document this.
1056
1057         select: enhance test
1058         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1059         New functions.
1060         (test_function): Enhance test.
1061         (do_select_bad_fd): Avoid any stale errno values.
1062
1063         ptsname: reject invalid file descriptors
1064         http://www.austingroupbugs.net/view.php?id=503
1065         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1067         * modules/stdlib (Makefile.am): Replace witness.
1068         * lib/stdlib.in.h (ptsname): Allow for replacement.
1069         * modules/ptsname (configure.ac): Trigger replacement.
1070         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1071
1072 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1073
1074         hash-pjw-bare: new module
1075         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1076         * lib/hash-pjw-bare.h: Likewise.
1077         * modules/hash-pjw-bare: New file.
1078         * MODULES.html.sh (Misc): Add it.
1079
1080 2012-10-02  Eric Blake  <eblake@redhat.com>
1081
1082         manywarnings: cater to more gcc infelicities
1083         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1084         -Wuninitialized without -O.
1085
1086 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1087
1088         select, poll tests: Make setsockopt invocation effective.
1089         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1090         the bind() call.
1091         * tests/test-select.h (open_server_socket): Likewise.
1092
1093 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1094
1095         sockets, sys_stat: restore AC_C_INLINE
1096         This undoes the 2012-09-22 patch.
1097         * m4/sockets.m4 (gl_SOCKETS):
1098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1099         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1100         and does not support plain 'inline'.  Reported by Bruno Haible in
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1102
1103 2012-09-30  Bruno Haible  <bruno@clisp.org>
1104
1105         localeconv tests: Avoid test failure on OpenIndiana.
1106         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1107         skip the 'grouping' and 'mon_grouping' tests.
1108         Reported by Jim Meyering.
1109
1110 2012-09-30  Bruno Haible  <bruno@clisp.org>
1111
1112         havelib: Follow libtool developments.
1113         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1114         Suggested by Simon Josefsson.
1115
1116 2012-09-29  Jim Meyering  <meyering@redhat.com>
1117
1118         fstatat.c: fix a compile-impeding typo
1119         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1120         Introduced in commit v0.0-7636-gd202279.
1121         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1122
1123 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1124
1125         extern-inline: provide a -Wundef safe config.h
1126         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1127         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1128         to produce a -Wundef warning free config.h.
1129
1130 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1131
1132         hash-pjw: relax license to LGPLv2+
1133         * modules/hash-pjw (License): Relax, with consent of author.
1134
1135 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1136
1137         maint.mk: fix strict vs. lazy variable issues with RELEASE
1138         * top/maint.mk (_equal): New function.
1139         (member_check): Strip the result to avoid spurious spaces.
1140         (url_dir_list): Do not use ifeq, which is strict, as it will
1141         require RELEASE_TYPE to be defined.
1142         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1143         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1144         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1145         (announcement_Cc_beta,announcement_mail_headers_beta)
1146         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1147         (release): Do not depend on $(release-type), as it forces its
1148         evaluation.  Bounce to it.
1149
1150 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1151
1152         maint.mk: formatting changes
1153         * top/maint.mk: Indent bodies of if's.
1154
1155 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1156
1157         maint.mk: factor the validation of RELEASE_TYPE
1158         With help from Jim Meyering.
1159         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1160         * top/maint.mk (_empty, _sp): Move their definition earlier.
1161         (member-check, release-type): New.
1162         Use the latter instead of $(RELEASE_TYPE).
1163         Remove now useless local checks.
1164
1165 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1166
1167         maint.mk: provide "make upload" to ease uploading
1168         See
1169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1170         Do not depend simply on the current $(VERSION), as there may have been
1171         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1172         as "make release-commit" already does.
1173
1174         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1175         "make TYPE".
1176
1177         * top/maint.mk (upload_command, upload, release): New.
1178         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1179         (VERSION): first word of $(RELEASE) is always right.
1180         (emit_upload_commands): Adjust.
1181         * top/README-release: Update.
1182
1183 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1184
1185         maint.mk: silent rules
1186         With help from Stefano Lattarini.
1187         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1188         (announcement): Use $(AM_V_at).
1189
1190 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         localename: port gl_locale_name_thread_unsafe to FreeBSD
1193         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1194         and use the simpler FreeBSD implementation on Mac OS X as well.
1195         Original idea suggested by Ed Maste in
1196         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1197
1198 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1199
1200         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1201         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1202         * lib/mbuiter.c, lib/xsize.c: New files.
1203         * lib/binary-io.h (BINARY_IO_INLINE):
1204         * lib/eealloc.h (EEALLOC_INLINE):
1205         * lib/mbfile.h (MBFILE_INLINE):
1206         * lib/mbiter.h (MBITER_INLINE):
1207         * lib/mbuiter.h (MBUITER_INLINE):
1208         * lib/xsize.h (XSIZE_INLINE):
1209         New macros.
1210         Replace all uses of 'static inline' with them.
1211         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1212         * m4/eealloc.m4 (gl_EEALLOC):
1213         * m4/mbfile.m4 (gl_MBFILE):
1214         * m4/mbiter.m4 (gl_MBITER):
1215         * m4/xsize.m4 (gl_XSIZE):
1216         Do not require AC_C_INLINE.
1217         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1218         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1219         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1220         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1221         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1222         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1223         * modules/binary-io, modules/eealloc, modules/mbfile:
1224         * modules/mbiter, modules/mbuiter:
1225         (Depends-on): Add extern-inline.
1226
1227         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1228         * lib/pipe-filter-aux.c: New file.
1229         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1230         Replace all uses of 'static inline' with it.
1231         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1232         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1233         (filter_retcode): No real need for inline here.
1234         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1235         (Files): Add lib/pipe-filter-aux.c.
1236         (Depends-on): Add extern-inline.
1237         (configure.ac): Do not require AC_C_INLINE.
1238         (lib_SOURCES): Add pipe-filter-aux.c.
1239
1240         fdutimensat: omit unnecessary AC_C_INLINE
1241         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1242
1243         fchmodat, fchownat, fstatat: use extern-inline
1244         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1245         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1246         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1247         New macros.
1248         * lib/openat.h:
1249         Replace all uses of 'static inline' with them.
1250         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1251         * modules/fchmodat, modules/fchownat, modules/fstatat:
1252         * modules/openat-h:
1253         (Depends-on):
1254         Add extern-inline.
1255         (configure.ac): Remove AC_C_INLINE.
1256
1257         acl, mbchar, priv-set: use extern-inline
1258         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1259         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1260         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1261         New macros.
1262         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1263         Replace all uses of 'static inline' with it.
1264         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1265         * m4/acl.m4 (gl_FUNC_ACL):
1266         * m4/mbchar.m4 (gl_MBCHAR):
1267         * m4/priv-set.m4 (gl_PRIV_SET):
1268         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1269         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1270         Add extern-inline.
1271
1272         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1273         * m4/sockets.m4 (gl_SOCKETS):
1274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1275         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1276         environments where it's already guaranteed to work, so we needn't
1277         check for it at 'configure'-time.
1278
1279         tls-tests: omit unnecessary 'inline'
1280         * tests/test-tls.c (perhaps_yield): No longer inline.
1281         Simplicity and portability trump efficiency in test cases.
1282
1283         utimens-tests: avoid unnecessary 'inline'
1284         * modules/fdutimensat-tests (configure.ac):
1285         * modules/futimens-tests (configure.ac):
1286         * modules/utimens-tests (configure.ac):
1287         * modules/utimensat-tests (configure.ac):
1288         Remove AC_C_INLINE.
1289         * tests/test-utimens-common.h (ctime_compare):
1290         No longer inline.  Simplicity and portability trump efficiency here.
1291
1292         misc: don't limit commentary to inline functions
1293         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1294         * lib/xalloc-oversized.h, lib/xsize.h:
1295         Contrast macros to functions in general, not just to inline functions,
1296         when the commentary does not apply only to inline functions.
1297
1298 2012-09-20  Jim Meyering  <meyering@redhat.com>
1299
1300         non-recursive-gnulib-prefix-hack: new module
1301         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1302         the file that originated in Bison.
1303         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1304         largely copied from a snippet that resided in bison's configure.ac.
1305         * modules/non-recursive-gnulib-prefix-hack: New file.
1306         * MODULES.html.sh (Support for maintaining and releasing projects):
1307         Add it.
1308
1309 2012-09-18  Jim Meyering  <meyering@redhat.com>
1310
1311         maint.mk: generalize _gl_tight_scope for non-recursive make
1312         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1313         that *.h would describe additional .h files in the directory
1314         specified by $(_gl_TS_dir).  I.e., add this...
1315         (_gl_TS_other_headers): New variable.
1316
1317         maint.mk: exempt trailing blanks found in "binary" files
1318         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1319         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1320         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1321
1322 2012-09-17  Jim Meyering  <meyering@redhat.com>
1323
1324         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1325         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1326         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1327         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1328
1329 2012-09-17  Jim Meyering  <meyering@redhat.com>
1330
1331         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1332         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1333         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1334         It is not in the same category as "exit (0)" or "exit (1)", and
1335         besides, I know of no symbolic name for that 77.  Reported by
1336         Richard W.M. Jones in
1337         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1338
1339 2012-09-17  Jim Meyering  <meyering@redhat.com>
1340
1341         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1342         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1343         all uses of #define, not just those that start in column 1.
1344         Richard W.M. Jones reported a false positive in
1345         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1346
1347 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1350         * lib/localcharset.c (locale_charset) [DARWIN7]:
1351         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1352         as these two values are incompatible.  Problem reported by Max Horn.
1353         For more discussion, please see
1354         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1355
1356         doc: document sticky-EOF issue
1357         * doc/posix-functions/fgetc.texi (fgetc):
1358         * doc/posix-functions/fgets.texi (fgets):
1359         * doc/posix-functions/fread.texi (fread):
1360         * doc/posix-functions/fscanf.texi (fscanf):
1361         * doc/posix-functions/getc.texi (getc):
1362         * doc/posix-functions/getchar.texi (getchar):
1363         * doc/posix-functions/scanf.texi (scanf):
1364         Mention that glibc and default Solaris do not conform to
1365         C99 and POSIX-2001 or later, with respect to how getchar
1366         etc. behave when feof reports nonzero.
1367
1368 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1369
1370         poll: fix poll(0, NULL, msec)
1371         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1372         but nfd is 0.  In that case poll should behave like select.
1373
1374 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1375             Paolo Bonzini <bonzini@gnu.org>
1376
1377         poll: fix for systems that can't recv() on a non-socket
1378         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1379         is readable.  In this case POLLHUP will not be supported.
1380         * doc/posix-functions/poll.texi: Document this.
1381
1382 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1383
1384         poll/select: document portability problems not fixed by Gnulib.
1385         * doc/posix-functions/poll.texi: poll does not work well on
1386         pipes under Windows.  It has the same limitations as select on
1387         BeOS.
1388         * doc/posix-functions/select.texi: select does not work well
1389         on pipes under Windows.
1390
1391 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1394         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1395         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1396         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1397
1398 2012-09-06  Eric Blake  <eblake@redhat.com>
1399
1400         net_if: give more details about the bug being fixed
1401         * doc/posix-headers/net_if.texi: Add clarification.
1402
1403 2012-09-05  Eric Blake  <eblake@redhat.com>
1404
1405         net_if: new module
1406         * modules/net_if: New module, borrowing ideas from netinet_in.
1407         * m4/net_if_h.m4: New file.
1408         * lib/net_if.in.h: Likewise.
1409         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1410         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1411         * tests/test-net_if.c: Make function checks conditional.
1412         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1413
1414 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1415
1416         readutmp: fix non-portable UT_PID use
1417         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1418         Use `UT_PID (u) > 0' as absolute condition.
1419
1420 2012-09-04  Jim Meyering  <meyering@redhat.com>
1421
1422         fts: reduce two or more trailing spaces to just one, usually
1423         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1424         or more slashes, trim all but the final one.  But if a name consists
1425         solely of two slashes, don't modify it.  If it consists solely of
1426         three or more slashes, strip all but one.
1427
1428         This is part of the solution to a minor problem with rm:
1429         it would print a bogus ELOOP diagnostic when failing to remove
1430         the slash-decorated name of a symlink-to-directory:
1431
1432             $ mkdir d && ln -s d s && env rm -r s/
1433             rm: cannot remove 's': Too many levels of symbolic links
1434
1435         With the change below and a trivial don't-trim-trailing-slashes
1436         adjustment to remove.c, it does this:
1437
1438             $ env rm -r s/
1439             rm: cannot remove 's/': Not a directory
1440
1441         Improved by: Eric Blake
1442
1443         fts: when there is no risk of overlap, use memcpy, not memmove
1444         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1445
1446 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         stdbool: be more compatible with mixed C/C++ compiles
1449         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1450         Define to bool, true, false, respectively, as GCC's builtin
1451         stdbool.h does.  Problem reported by Michael Goffioul in
1452         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1453
1454 2012-08-28  Jim Meyering  <meyering@redhat.com>
1455
1456         revert last change: it was not needed
1457         * tests/test-vc-list-files-git.sh: There's already a test for
1458         a working git, just below.
1459
1460 2012-08-28  Jim Meyering  <meyering@redhat.com>
1461
1462         tests: test-vc-list-files-git.sh: skip if git is not available
1463         * tests/test-vc-list-files-git.sh: Skip this test when git is
1464         not available.
1465
1466 2012-08-26  Bruno Haible  <bruno@clisp.org>
1467
1468         gnulib-tool: Remove no-op option --no-changelog.
1469         * gnulib-tool (func_usage): Don't mention --no-changelog.
1470         (do_changelog): Remove variable.
1471         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1472
1473 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1474
1475         doc: remove fdl-1.2.texi
1476         It is no longer used or maintained, and its use of @acronym
1477         is problematic.  See the thread containing
1478         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1479         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1480         * doc/old-licenses/fdl-1.2.texi: Remove.
1481
1482         execinfo: port to FreeBSD
1483         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1484         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1486         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1487
1488 2012-08-23  Jim Meyering  <meyering@redhat.com>
1489
1490         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1491         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1492         to placate gcc's -Wold-style-declaration.
1493
1494 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1495
1496         doc: do not use @acronym
1497         * doc/inet_ntoa.texi (inet_ntoa):
1498         * doc/parse-datetime.texi (Seconds since the Epoch)
1499         (Specifying time zone rules):
1500         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1501         Don't use @acronym.  Problem reported by John Darlington in
1502         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1503
1504 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         stdnoreturn: port to newer GCCs
1507         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1508         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1509         Problem reported by Jim Meyering in
1510         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1511         Also, rename the 'test' function to a void a clash with the
1512         already-supplied 'main' function; this fixes a bug that incorrectly
1513         rejected GCC 4.7.1's <stdnoreturn.h>.
1514         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1515         Document GCC problem.
1516
1517 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1518
1519         pipe-filter: fix comment typo
1520         * lib/pipe-filter.h: Mention correct function.
1521
1522 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1523
1524         execinfo: new module
1525         This is for Emacs.  Currently, it provides a no-effect stub
1526         on all platforms where it does not already work.
1527         It already works on glibc-based systems, and on Solaris 11.
1528         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1529         New files.
1530         * doc/glibc-headers/execinfo.texi (execinfo.h):
1531         * MODULES.html.sh (Misc): Document it.
1532
1533 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         extern-inline: support old GCC 'inline'
1536         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1537         if available.  This applies to GCC versions 2.7 through 4.2, or
1538         when newer GCC is using -fgnu89-inline.  The goal is to address
1539         some of the performance issues mentioned by Bruno Haible in
1540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1541
1542 2012-08-20  Eric Blake  <eblake@redhat.com>
1543
1544         maint.mk: avoid redundant file name in message
1545         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1546         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1547         (sc_makefile_path_separator_check): Remove bogus $(ME).
1548
1549 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1550
1551         timer-time: fix link order when static linking on glibc
1552         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1553         _after_ -lrt so that it's significant.
1554
1555 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1556
1557         timespec: omit unnecessary AC_C_INLINE
1558         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1559
1560         stat-time: omit unnecessary AC_C_INLINE
1561         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1562         Do not require AC_C_INLINE.
1563
1564         ignore-value: omit unnecessary AC_C_INLINE
1565         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1566
1567         sys_select: avoid 'static inline'
1568         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1569
1570         mktime: avoid 'static inline'
1571         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1572         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1573
1574 2012-08-19  Bruno Haible  <bruno@clisp.org>
1575
1576         gnulib-tool: Improve coding style.
1577         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1578         func_emit_lib_Makefile_am.
1579         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1580
1581 2012-08-19  Bruno Haible  <bruno@clisp.org>
1582
1583         gnulib-tool: Fix indentation.
1584         * gnulib-tool (func_import): Fix indentation.
1585
1586 2012-08-19  Bruno Haible  <bruno@clisp.org>
1587
1588         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1589         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1590         on the list of removed files.
1591
1592 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1593
1594         test-parse-datetime: avoid glibc leap-second glitch
1595         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1596         with the 2012 rules.  Problem reported by Bruce Dubbs in
1597         <http://bugs.gnu.org/12206>.
1598
1599 2012-08-14  Bruno Haible  <bruno@clisp.org>
1600
1601         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1602         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1603         from argument.
1604         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1605
1606 2012-08-14  Eric Blake  <eblake@redhat.com>
1607
1608         ldexp: relax license
1609         * modules/ldexp (License): Trivial relax, since the module only
1610         provides a permissively licensed m4 file.
1611
1612 2012-08-13  Bruno Haible  <bruno@clisp.org>
1613
1614         gnulib-tool: Fix persistence of --witness-c-macro option.
1615         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1616         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1617
1618 2012-08-11  Eric Blake  <eblake@redhat.com>
1619
1620         count-leading-zeros: use a lookup table on non-gcc compilers
1621         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1622         alternate implementation, suggested by Jim Meyering.
1623
1624 2012-08-10  Eric Blake  <eblake@redhat.com>
1625
1626         count-leading-zeros: new module
1627         * modules/count-leading-zeros: New module.
1628         * m4/count-leading-zeros.m4: New file.
1629         * lib/count-leading-zeros.h: Likewise.
1630         * modules/count-leading-zeros-tests: New test.
1631         * tests/test-count-leading-zeros.c: New file.
1632         * MODULES.html.sh (Integer arithmetic functions): Document it.
1633
1634 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1635             Jim Meyering  <meyering@redhat.com>
1636
1637         maintainer-makefile: Fix syntax error with dash.
1638         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1639         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1640
1641 2012-08-05  Jim Meyering  <meyering@redhat.com>
1642
1643         extern-inline: also ignore -Wmissing-declarations
1644         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1645         required with gcc-4.8.0-to-be.
1646
1647         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1648         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1649         for /error ?([^,]*)/.  This avoids false-positives for strings like
1650         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1651
1652 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1653
1654         gnumakefile: better interaction with Automake-NG
1655         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1656         Automake-NG always contain a definition of VPATH, even in non-VPATH
1657         builds (its value being simply '.' in that case).  So, in the
1658         'clean-GNUmakefile' rule, to determine whether running under a
1659         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1660         '$(VPATH)' expands to the empty string.
1661
1662 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1663
1664         base64: Use extern C scope in header file, for C++.
1665         * lib/base64.h: Add C++ namespace protection.
1666
1667 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         stat-time, timespec, u64: support naive out-of-dir builds
1670         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1671         Use '#include "foo.h"', not '#include <foo.h>', when including
1672         one's own interface.  This works better when configuring with
1673         out-of-directory builds, since packages need not add an
1674         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1675
1676 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1677
1678         utimens: use extern-inline
1679         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1680         * lib/utimens.h: Add copyright notice, since this is now large enough
1681         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1682         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1683         * modules/utimens (Depends-on): Add extern-inline.
1684
1685         u64: use extern-inline
1686         * lib/u64.c: New file.
1687         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1688         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1689         * modules/u64 (Files): Add lib/u64.c.
1690         (Depends-on): Add extern-inline.
1691         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1692         does that now.
1693         (lib_SOURCES): Add u64.c.
1694
1695         timespec: use extern-inline
1696         * lib/timespec.c: New file.
1697         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1698         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1699         * modules/timespec (Files): Add lib/timespec.c.
1700         (Depends-on): Add extern-inline.
1701         (lib_SOURCES): Add timespec.c.
1702
1703         stat-time: use extern-inline
1704         * lib/stat-time.c: New file.
1705         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1706         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1707         * modules/stat-time (Files): Add lib/stat-time.c.
1708         (Depends-on): Add extern-inline.
1709         (lib_SOURCES): Add stat-time.c.
1710
1711         extern-inline: new module
1712         * modules/extern-inline, m4/extern-inline.m4: New files.
1713         This is for better support of 'extern inline' a la ISO C99,
1714         with a portable alternative on compilers that do not support
1715         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1716         of the Emacs executable, when compiled with debugging disabled,
1717         which is a typical way that Emacs is built while developing.
1718
1719 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1720
1721         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1722         * build-aux/do-release-commit-and-tag: Move variable definitions
1723         together.
1724         ($branch): Instead of defaulting to "master", default to the current
1725         branch (as gnu-web-doc-update does).
1726         (help): Display the current values of the option arguments.
1727         * top/maint.mk (release-commit): New.
1728         * top/README-release: Simplify the corresponding step.
1729
1730 2012-07-30  Eric Blake  <eblake@redhat.com>
1731
1732         passfd: fix comment on recvfd
1733         * lib/passfd.c (recvfd): Fix comment.
1734         Reported by Jann Horn <jannhorn@googlemail.com>.
1735
1736 2012-07-30  Jim Meyering  <meyering@redhat.com>
1737
1738         maint.mk: avoid a sub-shell
1739         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1740
1741 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1742
1743         maint.mk: use silent-rules support from Automake
1744         * top/maint.mk (news-check, vc-diff-check, announcement)
1745         (no-submodule-changes, alpha beta stable, release-prep)
1746         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1747
1748 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1749
1750         maint.mk: provide a web-manual-update target
1751         * top/maint.mk: here.
1752         * top/README-release: Use it to simplify the web manual update step.
1753
1754 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1755
1756         README-release: shorten the circuit to post a news
1757         * top/README-release: Point directly to the news submission form.
1758
1759 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1760
1761         gnu-web-doc-update: fix --help
1762         * build-aux/gnu-web-doc-update: The information "top level" was written
1763         twice.
1764
1765 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1766
1767         maint.mk: absolute VPATH issue
1768         * top/maint.mk (release-prep): Help Git find .git/.
1769         From Jim Meyering.
1770
1771 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1772
1773         gitlog-to-changelog: fix previous change
1774         * build-aux/gitlog-to-changelog: Fix condition.
1775         Add missing ";".
1776
1777 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1778
1779         gitlog-to-changelog: don't expect .git to be in $srcdir
1780         Reported by Bruno Haible.
1781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1782         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1783         Use it.
1784
1785 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1786
1787         maint.mk: absolute VPATH build fix
1788         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1789         $(srcdir) is not a parent of $(builddir).
1790
1791 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1792
1793         clean-temp: Fix memory leak.
1794         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1795         'files' members of tmpdir.
1796
1797 2012-07-27  Jim Meyering  <meyering@redhat.com>
1798
1799         maint.mk: new rule: refresh-gnulib-patches
1800         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1801         Use this rule to refresh them.
1802         * top/maint.mk (refresh-gnulib-patches): New rule.
1803
1804 2012-07-24  Bruno Haible  <bruno@clisp.org>
1805
1806         gnulib-tool: Fix handling of inctests variable.
1807         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1808         Reported by Nick Bowler <nbowler@elliptictech.com>.
1809
1810 2012-07-22  Bruno Haible  <bruno@clisp.org>
1811
1812         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1813         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1814         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1815         Remove exemption for getpass.h.
1816         Suggested by Eric Blake.
1817
1818 2012-07-20  Eric Blake  <eblake@redhat.com>
1819
1820         verify: document conflict with -Wnested-externs
1821         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1822
1823         maint.mk: forbid exit(-1)
1824         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1825
1826 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         fsusage: port back to Solaris
1829         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1830         error (fsd not declared) on Solaris 10.  Reported privately by
1831         Andrew Borodin.
1832
1833 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1834
1835         gnu-web-doc-update: fix error messages
1836         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1837
1838         gnu-web-doc-update: check the requirements.
1839         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1840         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1841         * build-aux/bootstrap (find_tool): Comment change.
1842
1843 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1844
1845         maint.mk: minor simplication.
1846         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1847         for default values.
1848
1849 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1850
1851         gitlog-to-changelog: VPATH build issues
1852         If builddir is not a subdirectory of srcdir, running git from it will
1853         fail.
1854         * build-aux/gitlog-to-changelog (--srcdir): New option.
1855
1856 2012-07-15  Bruno Haible  <bruno@clisp.org>
1857
1858         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1859         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1860         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1861         Remove exemption for fpending.h.
1862         Suggested by Eric Blake.
1863
1864 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1865
1866         pthread_sigmask: fix bug on FreeBSD 9
1867         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1868         Include string.h.
1869         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1870         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1871         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1872         but pthread_sigmask (1729, NULL, NULL) returns zero.
1873         See <http://bugs.gnu.org/11884>.
1874         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1875         by inspecting whether the main call changed the old mask.
1876
1877 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1878
1879         README-release: make it more legible
1880         * top/README-release: Improve typography slightly.
1881
1882 2012-07-15  Jim Meyering  <meyering@redhat.com>
1883
1884         maint: require that each sc_... command start with "@"
1885         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1886         "make sc_maint" helps us avoid this nit.
1887
1888 2012-07-15  Jim Meyering  <meyering@redhat.com>
1889
1890         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1891         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1892
1893 2012-07-13  Eric Blake  <eblake@redhat.com>
1894
1895         maint.mk: new syntax check for HAVE_DECL checks
1896         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1897         * cfg.mk
1898         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1899         Exempt some false positives.
1900         Based on a report by Karel Zak.
1901
1902         argp: make HAVE_DECL usage consistent
1903         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1904         macros, not whether they are defined.
1905         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1906         convention with other declaration checks.
1907         Reported by Karel Zak, with suggestions from Paul Eggert.
1908
1909         stat-time: relax license to LGPLv2+
1910         * modules/stat-time (License): Relax, with consent of all authors.
1911
1912         strndup: fix m4 usage error
1913         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1914         defined, to either 0 or 1.
1915         Reported by Karel Zak.
1916
1917 2012-07-11  Jim Meyering  <meyering@redhat.com>
1918
1919         maint: enable the sc_avoid_if_before_free syntax-check rule
1920         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1921         (if_before_free_offenders_): Define.
1922         (if_before_free_basename_re_): Define.
1923         Exempt current files with useless if-before-free.
1924
1925 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         gettext: do not assume '#define ... defined ...' behavior
1928         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1929         Do not use '#define FOO ... defined BAR ...', as the C standard says
1930         it's not portable to expect that this works after macro expansion.
1931         Problem reported for gzip by Steven M. Schweda in
1932         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1933
1934 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         getloadavg: clean out old Emacs and Autoconf cruft
1937         See Glenn Morris in <http://bugs.gnu.org/11905>.
1938         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1939         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1940         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1941         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1942
1943 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1944
1945         bootstrap: let warn be like tests/init.sh's warn_
1946         Reported by Jim Meyering.
1947         * build-aux/bootstrap (warn): Remove, replaced by...
1948         (warnf_, warn_): these.
1949         Adjust callers.
1950         Shorten messages that no longer fit in 80 columns.
1951
1952 2012-07-09  Bruno Haible  <bruno@clisp.org>
1953
1954         getopt: Simplify after Emacs changed.
1955         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1956         (gl_GETOPT_IFELSE): Remove macro.
1957
1958 2012-07-09  Jim Meyering  <meyering@redhat.com>
1959
1960         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1961         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1962
1963         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1964         Bugs in both of those conspired to make the
1965         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1966         _sc_search_regexp's handling of non-empty $in_files would filter
1967         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1968         choice of in_files value meant there would be no match in most
1969         projects, due to the presence of two or more Makefile.in files.
1970         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1971         Fix a bug in how a non-empty $$in_files was processed:
1972         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1973         in spite of the name, it's a regexp, not a list of file names.
1974
1975 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         getloadavg, getopt: fix commentary re configure.in
1978         Autoconf is deprecating the name 'configure.in', so change it to
1979         to the new name 'configure.ac' in a couple of places.
1980         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1981         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1982         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1983         Emacs has renamed it to configure.ac, and it no longer refers
1984         to these macros anyway.
1985
1986         timespec: mark functions with const attributes
1987         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1988         Mark with _GL_ATTRIBUTE_CONST.
1989
1990 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1991
1992         canonicalize[-lgpl]: handle "guessing" values when cross-building
1993         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1994         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1995         matches "*yes" instead of just "yes".  Regression introduced in commit
1996         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1997
1998 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1999             Bruno Haible  <bruno@clisp.org>
2000
2001         canonicalize: make the right guess when cross-compiling to GNU
2002         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2003         determine whether cross-compiling to glibc systems, so as to
2004         include GNU/Hurd.
2005
2006 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         timespec-sub: avoid duplicate include
2009         * lib/timespec-sub.c: Do not include <config.h> twice.
2010         Reported by Juanma Barranquero.
2011
2012 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2013
2014         bootstrap: use a more consistent error reporting scheme
2015         * build-aux/bootstrap (warn, die): New.
2016         Use them.
2017
2018 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         sys_time: allow too-wide tv_sec
2021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2022         timeval even if tv_sec is wider than time_t.  This allows
2023         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2024         as without this patch gnulib replaces struct timeval
2025         and OpenBSD futimes therefore has a type mismatch.
2026         * doc/posix-headers/sys_time.texi: Mention this.
2027
2028         pthread: check for both pthread_create and pthread_join
2029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2030         alter the check so that it tests for both pthread_create and
2031         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2032         Suggested by Bruno Haible and Richard Yao in
2033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2034
2035         parse-datetime: doc tuneup
2036         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2037         spacing issues.
2038
2039 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2040
2041         do-release-commit-and-tag: fix the previous commit
2042         * build-aux/do-release-commit-and-tag: Actually the test was right,
2043         but the comment and the error message were misleading.
2044         Fix comment, and improve error message.
2045         Perform check first, so that NEWS is not modified uselessly.
2046
2047         do-release-commit-and-tag: fix typo
2048         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2049         _not_ start with a stub.
2050
2051 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         pthread: check for pthread_create, not pthread_join
2054         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2055         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2056         pthread_join in libc.  I hope this removes the need for all the
2057         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2058         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2059
2060 2012-07-04  Jim Meyering  <meyering@redhat.com>
2061
2062         parse-datetime: fix failure to diagnose invalid input
2063         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2064         rather than diagnosing the invalid input.  Now it reports this:
2065         date: invalid date '\260'
2066         * lib/parse-datetime.y (to_uchar): Define.
2067         (yylex): Don't sign-extend "other" bytes.
2068         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2069         Thanks to Bruno Haible for the patch to this file.
2070         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2071         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2072
2073 2012-07-03  Jim Meyering  <meyering@redhat.com>
2074
2075         bootstrap: do not require now-removed build-aux/missing
2076         Now that build-aux/missing is, er, missing, bootstrap would
2077         silently fail.
2078         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2079         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2080         no longer part of gnulib.
2081         Diagnose the failure.
2082
2083 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         alloca: add support for HP NonStop TNS/E native
2086         * lib/alloca.in.h (alloca): Support the new host.
2087         From a suggestion by Joachim Schmitz in
2088         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2089
2090 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2091
2092         fsusage: remove code not needed on non GNU/Linux systems.
2093
2094         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2095         Don't include headers no longer needed in this case.
2096         * lib/fsusage.c [STAT_STATVFS &&
2097         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2098         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2099
2100 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2101
2102         fsusage: include files needed for glibc 2.6 fallback
2103         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2104         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2105         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2106         Problem reported by Ludovic Courtès in
2107         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2108
2109         fsusage: avoid needless check on GNU/Linux
2110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2111         on GNU/Linux systems, since it can't possibly work.
2112
2113 2012-07-01  Bruno Haible  <bruno@clisp.org>
2114
2115         log: Fix an autoconf >= 2.64 warning.
2116         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2117         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2118
2119 2012-06-28  Bruno Haible  <bruno@clisp.org>
2120
2121         log10f: Fix possible configuration problem.
2122         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2123         $LOGF_LIBM.
2124         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2125
2126 2012-06-28  Bruno Haible  <bruno@clisp.org>
2127
2128         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2129         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2130         not gl_cv_func_unlink_works.
2131         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2132
2133 2012-06-27  Eric Blake  <eblake@redhat.com>
2134
2135         config: drop scripts that automake says are not independent
2136         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2137         * build-aux/elisp-comp: Delete.
2138         * build-aux/missing: Likewise.
2139         * build-aux/ylwrap: Likewise.
2140         * modules/elisp-comp: Likewise.
2141         * MODULES.html.sh: Drop mention of elisp-comp.
2142         * NEWS: Mention this.
2143
2144 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         root-uid: new module
2147         This is for portability to Tandem's NonStop Kernel.
2148         * lib/root-uid.h, modules/root-uid: New files.
2149         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2150         * lib/write-any-file.c, tests/test-sethostname2.c:
2151         Include "root-uid.h".
2152         * lib/euidaccess.c (euidaccess):
2153         * lib/pt_chown.c (main):
2154         * lib/unlinkdir.c (cannot_unlink_dir):
2155         * lib/write-any-file.c (can_write_any_file):
2156         * m4/mknod.m4 (gl_FUNC_MKNOD):
2157         * tests/test-sethostname2.c (geteuid, main):
2158         Don't assume ROOT_UID == 0.
2159         * modules/euidaccess (Depends-on):
2160         * modules/pt_chown (Depends-on):
2161         * modules/sethostname-tests (Depends-on):
2162         * modules/unlinkdir (Depends-on):
2163         * modules/write-any-file (Depends-on):
2164         Add root-uid.
2165
2166         regex: use locale-independent comparison for codeset name
2167         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2168         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2169         for codeset name.
2170         * lib/regex_internal.h: Do not include <strings.h>, since we
2171         no longer use strcasecmp.
2172         * modules/regex (Depends-on): Remove strcase.
2173
2174 2012-06-23  Bruno Haible  <bruno@clisp.org>
2175
2176         getopt-posix: No longer guarantee that option processing is resettable.
2177         * doc/posix-functions/getopt.texi: Drop description of problem with
2178         internal state. Fix info about mingw and msvc9.
2179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2180         option processing by getopt(). Run three test programs instead of one.
2181         Simplify cross-compilation guess.
2182         * NEWS: Mention the change.
2183         Reported by Rich Felker <dalias@aerifal.cx>.
2184
2185 2012-06-26  Bruno Haible  <bruno@clisp.org>
2186
2187         argp, regex: Ensure strcasecmp gets declared.
2188         * lib/argp-help.c: Include <strings.h>.
2189         * lib/regex_internal.h: Likewise.
2190         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2191
2192 2012-06-24  Bruno Haible  <bruno@clisp.org>
2193
2194         ptsname_r: Make it consistent with ptsname on AIX.
2195         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2196         implementation as for OSF/1.
2197         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2198         a pty master.
2199
2200         ptsname_r: Make it consistent with ptsname on OSF/1.
2201         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2202         OSF/1.
2203
2204 2012-06-24  Bruno Haible  <bruno@clisp.org>
2205
2206         ttyname_r: Fix result on OSF/1, Solaris.
2207         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2208
2209 2012-06-24  Bruno Haible  <bruno@clisp.org>
2210
2211         ptsname_r: Add support for Solaris.
2212         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2213         Solaris.
2214
2215         ptsname_r: Fix test failure on native Windows.
2216         * modules/ptsname_r (Depends-on): Add isatty.
2217
2218         ptsname_r: Fix test failures on IRIX, Solaris.
2219         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2220         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2221         accordingly.
2222         * lib/ptsname_r.c: Include <fcntl.h>.
2223         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2224         set errno if fd is invalid.
2225         * tests/test-isatty.c (main): Update comments.
2226
2227 2012-06-24  Bruno Haible  <bruno@clisp.org>
2228
2229         ptsname test: Extend test.
2230         * tests/test-ptsname.c: Include <errno.h>.
2231         (main): Test behaviour with invalid file descriptor.
2232
2233 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         time: fix obsolete comment
2236         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2237         reference to HAVE_STRUCT_TIMESPEC in comment.
2238
2239 2012-06-23  Bruno Haible  <bruno@clisp.org>
2240
2241         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2243         does not handle abbreviated long options with equivalent
2244         disambiguations, set gl_replace_getopt to yes.
2245         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2246
2247 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         time_r: fix typo that always overrode localtime_r decl
2250         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2251         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2252         not in a standard include.
2253
2254 2012-06-22  Bruno Haible  <bruno@clisp.org>
2255
2256         Write "Mac OS X" instead of "MacOS X".
2257         * README: Write "Mac OS X" instead of "MacOS X".
2258         * build-aux/bootstrap: Likewise.
2259         * build-aux/install-reloc: Likewise.
2260         * lib/acl-internal.h: Likewise.
2261         * lib/acl_entries.c: Likewise.
2262         * lib/argp-ba.c: Likewise.
2263         * lib/argp-pv.c: Likewise.
2264         * lib/config.charset: Likewise.
2265         * lib/copy-acl.c: Likewise.
2266         * lib/csharpexec.c: Likewise.
2267         * lib/euidaccess.c: Likewise.
2268         * lib/fbufmode.c: Likewise.
2269         * lib/fflush.c: Likewise.
2270         * lib/file-has-acl.c: Likewise.
2271         * lib/filemode.h: Likewise.
2272         * lib/fpurge.c: Likewise.
2273         * lib/freadable.c: Likewise.
2274         * lib/freadahead.c: Likewise.
2275         * lib/freading.c: Likewise.
2276         * lib/freadptr.c: Likewise.
2277         * lib/freadseek.c: Likewise.
2278         * lib/fseeko.c: Likewise.
2279         * lib/fseterr.c: Likewise.
2280         * lib/fsusage.c: Likewise.
2281         * lib/fwritable.c: Likewise.
2282         * lib/fwriting.c: Likewise.
2283         * lib/get-rusage-as.c: Likewise.
2284         * lib/get-rusage-data.c: Likewise.
2285         * lib/getdomainname.c: Likewise.
2286         * lib/idpriv-drop.c: Likewise.
2287         * lib/idpriv-droptemp.c: Likewise.
2288         * lib/localcharset.c: Likewise.
2289         * lib/locale.in.h: Likewise.
2290         * lib/localename.c: Likewise.
2291         * lib/mbsrtowcs-state.c: Likewise.
2292         * lib/nproc.c: Likewise.
2293         * lib/passfd.c: Likewise.
2294         * lib/posix_openpt.c: Likewise.
2295         * lib/printf-parse.c: Likewise.
2296         * lib/progreloc.c: Likewise.
2297         * lib/safe-read.h: Likewise.
2298         * lib/safe-write.h: Likewise.
2299         * lib/sched.in.h: Likewise.
2300         * lib/set-mode-acl.c: Likewise.
2301         * lib/signal.in.h: Likewise.
2302         * lib/stdint.in.h: Likewise.
2303         * lib/stdio-impl.h: Likewise.
2304         * lib/stdlib.in.h: Likewise.
2305         * lib/strtod.c: Likewise.
2306         * lib/sys_select.in.h: Likewise.
2307         * lib/tcgetsid.c: Likewise.
2308         * lib/unistd.in.h: Likewise.
2309         * lib/unlockpt.c: Likewise.
2310         * lib/vasnprintf.c: Likewise.
2311         * lib/vma-iter.c: Likewise.
2312         * lib/wcsrtombs-state.c: Likewise.
2313         * m4/acl.m4: Likewise.
2314         * m4/acosl.m4: Likewise.
2315         * m4/asinl.m4: Likewise.
2316         * m4/atanl.m4: Likewise.
2317         * m4/c-stack.m4: Likewise.
2318         * m4/cosl.m4: Likewise.
2319         * m4/expl.m4: Likewise.
2320         * m4/extensions.m4: Likewise.
2321         * m4/fdatasync.m4: Likewise.
2322         * m4/fmal.m4: Likewise.
2323         * m4/frexp.m4: Likewise.
2324         * m4/frexpf.m4: Likewise.
2325         * m4/frexpl.m4: Likewise.
2326         * m4/fsusage.m4: Likewise.
2327         * m4/getdomainname.m4: Likewise.
2328         * m4/getloadavg.m4: Likewise.
2329         * m4/getopt.m4: Likewise.
2330         * m4/gettext.m4: Likewise.
2331         * m4/gnulib-common.m4: Likewise.
2332         * m4/intdiv0.m4: Likewise.
2333         * m4/intlmacosx.m4: Likewise.
2334         * m4/largefile.m4: Likewise.
2335         * m4/ldexpl.m4: Likewise.
2336         * m4/link-follow.m4: Likewise.
2337         * m4/locale-ar.m4: Likewise.
2338         * m4/locale-fr.m4: Likewise.
2339         * m4/locale-ja.m4: Likewise.
2340         * m4/locale-tr.m4: Likewise.
2341         * m4/locale-zh.m4: Likewise.
2342         * m4/locale_h.m4: Likewise.
2343         * m4/lock.m4: Likewise.
2344         * m4/logl.m4: Likewise.
2345         * m4/mathfunc.m4: Likewise.
2346         * m4/minus-zero.m4: Likewise.
2347         * m4/mktime.m4: Likewise.
2348         * m4/mmap-anon.m4: Likewise.
2349         * m4/multiarch.m4: Likewise.
2350         * m4/nanosleep.m4: Likewise.
2351         * m4/nocrash.m4: Likewise.
2352         * m4/poll.m4: Likewise.
2353         * m4/printf-frexpl.m4: Likewise.
2354         * m4/printf.m4: Likewise.
2355         * m4/signbit.m4: Likewise.
2356         * m4/sinl.m4: Likewise.
2357         * m4/sqrtl.m4: Likewise.
2358         * m4/strerror_r.m4: Likewise.
2359         * m4/tanl.m4: Likewise.
2360         * m4/threadlib.m4: Likewise.
2361         * m4/ttyname_r.m4: Likewise.
2362         * m4/unlink.m4: Likewise.
2363         * m4/visibility.m4: Likewise.
2364         * m4/wcwidth.m4: Likewise.
2365         * tests/minus-zero.h: Likewise.
2366         * tests/test-alloca-opt.c: Likewise.
2367         * tests/test-copy-acl.sh: Likewise.
2368         * tests/test-copy-file.sh: Likewise.
2369         * tests/test-fdatasync.c: Likewise.
2370         * tests/test-file-has-acl.sh: Likewise.
2371         * tests/test-flock.c: Likewise.
2372         * tests/test-fsync.c: Likewise.
2373         * tests/test-localename.c: Likewise.
2374         * tests/test-malloca.c: Likewise.
2375         * tests/test-nonblocking-pipe.h: Likewise.
2376         * tests/test-nonblocking-socket.h: Likewise.
2377         * tests/test-openpty.c: Likewise.
2378         * tests/test-posix_openpt.c: Likewise.
2379         * tests/test-ptsname.c: Likewise.
2380         * tests/test-ptsname_r.c: Likewise.
2381         * tests/test-sameacls.c: Likewise.
2382         * tests/test-select.h: Likewise.
2383         * tests/test-set-mode-acl.sh: Likewise.
2384         * tests/test-snprintf-posix.h: Likewise.
2385         * tests/test-sprintf-posix.h: Likewise.
2386         * tests/test-strtod.c: Likewise.
2387         * tests/test-time.c: Likewise.
2388         * tests/test-vasnprintf-posix.c: Likewise.
2389         * tests/test-vasprintf-posix.c: Likewise.
2390         * doc/acl-resources.txt: Likewise.
2391         * doc/**/*.texi: Likewise.
2392         Reported by Max Horn <max@quendi.de>.
2393
2394 2012-06-22  Bruno Haible  <bruno@clisp.org>
2395
2396         grantpt: Relax requirement regarding invalid file descriptors.
2397         * lib/grantpt.c: Don't include <fcntl.h>.
2398         (grantpt): Don't verify the validity of the file descriptor.
2399         * modules/grantpt (Depends-on): Remove fcntl-h.
2400         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2401         file descriptors.
2402         * doc/posix-functions/grantpt.texi: Document more platforms on which
2403         grantpt succeeds for invalid file descriptors.
2404         Reported by Rich Felker <dalias@aerifal.cx>.
2405
2406 2012-06-22  Bruno Haible  <bruno@clisp.org>
2407
2408         fbufmode test: Don't test unportable behaviour.
2409         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2410         (main): Invoke it three times.
2411         Reported by Szabolcs Nagy <nsz@port70.net>
2412         and Rich Felker <dalias@aerifal.cx>.
2413
2414 2012-06-21  Bruno Haible  <bruno@clisp.org>
2415
2416         gnulib-tool: Refactor inctests variable.
2417         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2418         (func_modules_transitive_closure,
2419         func_modules_transitive_closure_separately,
2420         func_import, func_create_testdir): Update.
2421
2422         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2423         * gnulib-tool: Accept option --without-tests.
2424         (func_usage): Document --without-tests option. Rearrange.
2425         (inctests): Normalize according to the mode.
2426         * NEWS: Mention the change.
2427         Suggested by Simon Josefsson.
2428
2429 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2430
2431         parse-duration test: Avoid spurious output.
2432         * tests/test-parse-duration.sh: Reindent with leading tabs.
2433
2434 2012-06-21  Jim Meyering  <meyering@redhat.com>
2435
2436         maint: disable the strncpy prohibition
2437         * cfg.mk: Do not prohibit strncpy here.
2438
2439 2012-06-21  Bruno Haible  <bruno@clisp.org>
2440
2441         nonblocking: Avoid compilation error on mingw64.
2442         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2443         fscanf.
2444         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2445         * modules/vfscanf (configure.ac): Likewise.
2446         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2447         definition only if stdio.h has prepared it.
2448         Reported by Daniel P. Berrange <berrange@redhat.com>.
2449
2450 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2451
2452         gnulib-tool: Use readlink if it is available.
2453         * gnulib-tool (func_readlink): Choose function more appropriately.
2454
2455 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2456
2457         posixtm-tests: port to buggy compiler
2458         Problem reported by Simon Josefsson in
2459         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2460         * modules/posixtm-tests (Depends-on): Add stdint.
2461         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2462         Now of type int_least64_t, not int64_t, both because that's
2463         what INT64_C returns and because int_least64_t works even
2464         on 72-bit hosts.
2465         (T): Use INT64_C on constants outside the traditional int range,
2466         to work around compiler bug noted by Simon.
2467
2468         mktime: fix integer overflow in 'configure'-time test
2469         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2470         after integer overflow.  Problem reported by Rich Felker in
2471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2472         Also, don't look for further instances of a bug if we've already
2473         found one instance; this helps 'configure' run faster.
2474
2475 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2476
2477         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2478         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2479         GetVersionEx correctly.
2480         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2481
2482 2012-06-20  Bruno Haible  <bruno@clisp.org>
2483
2484         fdopen: Allow implementations that don't reject invalid fd arguments.
2485         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2486         succeeds.
2487         Reported by Rich Felker <dalias@aerifal.cx>.
2488
2489 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2490
2491         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2492         bring in LIBINTL.
2493
2494 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2495
2496         init.sh: do not rely on autoupated PWD
2497         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2498         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2499         Although Nelson's bug was not necessarily fixed by this patch,
2500         it seems wise to make the change for safety.
2501         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2502         automagically after 'cd'; this is not reliable on older shells.
2503         (setup_): Fail if we cannot cd to temporary directory.
2504
2505 2012-06-19  Bruno Haible  <bruno@clisp.org>
2506
2507         stat, fstat: Avoid warnings on mingw64.
2508         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2509         redefining.
2510         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2511         Reported by Daniel P. Berrange <berrange@redhat.com>.
2512
2513 2012-06-19  Bruno Haible  <bruno@clisp.org>
2514
2515         stdioext: Add support for musl libc.
2516
2517         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2518         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2519
2520         * m4/fseterr.m4: New file.
2521         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2522         function exists.
2523         * modules/fseterr (Files): Add m4/fseterr.m4.
2524         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2525         __fseterr does not exist.
2526         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2527
2528         * lib/freadable.h: Update comment.
2529
2530         * lib/fwritable.h: Update comment.
2531
2532         * lib/freading.h: Update comment.
2533
2534         * lib/fwriting.h: Update comment.
2535
2536         * m4/freadahead.m4: New file.
2537         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2538         that function exists.
2539         * modules/freadahead (Files): Add m4/freadahead.m4.
2540         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2541         __freadahead does not exist.
2542         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2543
2544         * m4/freadptr.m4: New file.
2545         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2546         function exists.
2547         * modules/freadptr (Files): Add m4/freadptr.m4.
2548         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2549         __freadptr does not exist.
2550         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2551
2552         * m4/freadseek.m4: New file.
2553         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2554         exists.
2555         * modules/freadseek (Files): Add m4/freadseek.m4.
2556         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2557
2558         * lib/fpurge.c (fpurge): Update comment.
2559
2560         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2561
2562 2012-06-19  Bruno Haible  <bruno@clisp.org>
2563
2564         *printf-posix: Put more info into config.log.
2565         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2566         exit code into config.log.
2567
2568 2012-06-19  Bruno Haible  <bruno@clisp.org>
2569
2570         getopt-gnu: Fix exit code overflow in autoconf test.
2571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2572         to keep them below < 128.
2573
2574 2012-06-17  Jim Meyering  <meyering@redhat.com>
2575
2576         maint.mk: fix typo in code to derive GPG key at release time
2577         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2578
2579 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2580
2581         regex: avoid warning when pointers are not long
2582         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2583         and uintptr_t, not long, for portability to hosts where pointers and
2584         long have different sizes.  Issue noted by Daniel P. Berrange in
2585         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2586         and fix suggested by Bruno Haible in
2587         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2588
2589 2012-06-17  Bruno Haible  <bruno@clisp.org>
2590
2591         dummy: Relicense into the public domain.
2592         * modules/dummy (License): Set to "public domain".
2593         Suggested by Reuben Thomas.
2594
2595 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2596
2597         announce-gen: VPATH issues
2598         * build-aux/announce-gen (--srcdir): New option, used to trim the
2599         $srcdir part of the path from $builddir to NEWS.
2600         * top/maint.mk (announcement): Adjust.
2601
2602 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2603
2604         gnu-web-doc-update: VPATH builds
2605         * build-aux/gnu-web-doc-update (--builddir): New option.
2606         Revamp the handling of options.
2607         Prefer $(...) to `...`.
2608         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2609         the template, and it is GNU mktemp specific.
2610         Prefer set -e to long series of &&.
2611         Restore the initial git branch, not "master".
2612         Properly initialize submodules (don't rely only on bootstrap).
2613         Do not reconfigure blindly, use config.status.
2614         * top/README-release: Update instructions for gnu-web-doc-update.
2615
2616 2012-06-11  Jim Meyering  <meyering@redhat.com>
2617
2618         maint.mk: revert most of the previous change re "all these"
2619         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2620         For rationale, see the discussion at
2621         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2622
2623 2012-06-10  Karl Berry  <karl@gnu.org>
2624
2625         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2626
2627         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2628
2629 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2630
2631         parse-duration: Relicense under LGPLv2+.
2632         * modules/parse-duration (License): Change to LGPLv2+.
2633
2634 2012-06-10  Jim Meyering  <meyering@redhat.com>
2635
2636         maint.mk: prohibit common grammar error: "all these"
2637         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2638         the list of prohibited word sequences.  It should be "all of these".
2639         * lib/tempname.c (__gen_tempname): Fix one of them.
2640
2641 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2642
2643         do-release-commit-and-tag: support VPATH builds
2644         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2645         (noteworthy): Defined earlier to factor its value.
2646         (noteworthy_stub): New.
2647         Use it to factor.
2648         (help_version): Split into...
2649         (help, version): these.
2650         Adjust the option processing part.
2651         Support "--option=value" in addition to "--option value".
2652         (builddir): New.
2653         (--builddir): New option.
2654         * top/README-release: Document this.
2655         Reword slightly so that the reader cannot understand that he
2656         has to do these steps before calling do-release-commit-and-tag.
2657
2658 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2659
2660         readme-release: also require announce-gen and maintainer-makefile
2661         * modules/readme-release (Depends-on): here.
2662         * modules/announce-gen, modules/do-release-commit-and-tag,
2663         modules/gnu-web-doc-update, modules/maintainer-makefile
2664         (Description): Point to readme-release.
2665
2666 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2667
2668         maint.mk: fix VPATH issues.
2669         * top/maint.mk (news-check): GNU Make understand $< very well.
2670         (release-prep): NEWS is in $(srcdir).
2671
2672 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2673
2674         readme-release: require the promoted modules.
2675         * modules/readme-release (Depends-on): Add
2676         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2677         in this text.
2678
2679 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2680             Bruno Haible  <bruno@clisp.org>
2681
2682         error, strerror-override: Support mingw64 from Fedora 17.
2683         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2684         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2685         EINPROGRESS.
2686         * lib/strerror-override.h (strerror_override): Test it.
2687         * lib/strerror-override.c (strerror_override): Likewise.
2688         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2689
2690 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2691             Bruno Haible  <bruno@clisp.org>
2692
2693         error, strerror-override: Support mingw64 from Fedora 17.
2694         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2695         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2696         * lib/strerror-override.h (strerror_override): Test it.
2697         * lib/strerror-override.c (strerror_override): Likewise.
2698
2699 2012-06-03  Bruno Haible  <bruno@clisp.org>
2700
2701         error, strerror-override: Support new errno values from POSIX:2008.
2702         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2703         ENOTRECOVERABLE.
2704         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2705         platforms.
2706         * lib/strerror-override.c (strerror_override): Conditionalize the
2707         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2708         * lib/strerror-override.h (strerror_override): Declare also if
2709         GNULIB_defined_EOWNERDEAD is defined.
2710         * tests/test-errno.c (e130, e131): New variables.
2711         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2712         ENOTRECOVERABLE.
2713         Reported by Paolo Bonzini.
2714
2715 2012-05-31  Jim Meyering  <meyering@redhat.com>
2716
2717         savewd: add missing dependency on sys_wait module
2718         * modules/savewd (Depends-on): Add sys_wait, needed at least
2719         for MSVC.  Report and suggested change by Michael Goffioul.
2720
2721 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         system-quote-tests: port to CentOS 5
2724         Problem reported by Tom G. Christensen in
2725         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2726         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2727
2728 2012-05-29  Jim Meyering  <meyering@redhat.com>
2729
2730         maint: fix typos in comments and ChangeLog
2731         Culprits identified and fixed mostly automatically using these commands:
2732         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2733         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2734         using http://github.com/lyda/misspell-check
2735         * ChangeLog: Fix typos.
2736         * doc/solaris-versions: Likewise.
2737         * lib/regexec.c (re_search_stub): Likewise.
2738         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2739
2740 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         manywarnings: remove duplicate -Wmultichar entry
2743         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2744         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2745         so keep the entry marked as documented.
2746
2747 2012-05-27  Karl Berry  <karl@gnu.org>
2748
2749         * config/srclist.txt (mktime.c): remove last libc sync,
2750         perhaps just temporarily.
2751
2752 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2753
2754         regex: don't assume uint64_t or uint32_t
2755         * lib/regcomp.c (init_word_char): Don't assume that the types
2756         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2757         them, and on some 32-bit compilers there is no uint64_t.
2758         Problem reported by Gianluigi Tiesi in
2759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2760
2761 2012-05-25  Jim Meyering  <meyering@redhat.com>
2762
2763         maint.mk: add strncpy-prohibiting syntax-check rule
2764         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2765
2766 2012-05-24  Jim Meyering  <meyering@redhat.com>
2767
2768         maint.mk: compute $(gpg_key_ID) more portably
2769         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2770         That use of sed is not portable to some fringe systems.
2771         Reported by Paul Eggert in
2772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2773
2774 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2775
2776         mktime: sync from glibc
2777         * config/srclist.txt: Uncomment mktime.c.
2778         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2779         First, indent with tabs, since glibc uses tabs and doesn't want to
2780         change and we'd rather be identical to glibc.  Also, two small
2781         coding changes:
2782         (isdst_differ): Use &&, not &, as && is the usual style.
2783         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2784         for clarity.
2785
2786 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2787
2788         announce-gen: du -h is more portable than du --human
2789         * build-aux/announce-gen (sizes): Invoke du with -h instead
2790         of --human.  Accept leading white space in its output.
2791
2792 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2793
2794         announce-gen: Improve diagnostics.
2795         * build-aux/announce-gen: When parsing command line options,
2796         prefer "announce-gen: option --release-type requires an argument"
2797         to "Option release-type requires an argument".
2798
2799 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2800
2801         maint.mk: gpg_key_ID: use sed more portably
2802         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2803         the closing brace.
2804         (refresh-po): Fuse two sed invocations into one.
2805
2806 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2807
2808         gitlog-to-changelog: support the log message format used in Bison.
2809         * build-aux/gitlog-to-changelog: Support --strip-tab and
2810         --strip-cherry-picked.
2811
2812 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2813
2814         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2815         the rest of the current time slice to another thread in the current
2816         process. So if the thread that feeds the file decscriptor we're
2817         polling is not in the current process, we get busy-waiting.
2818         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2819         Patch from Theodore Leblond.
2820         * lib/select.c: Split polling out of the loop that sets the output
2821         fd_sets.  Check for zero result and loop if the wait timeout is
2822         infinite.
2823
2824 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2825
2826         select: Fix build error on IRIX 6.5.
2827         * lib/select.c: Include stddef.h for NULL.
2828
2829 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2830
2831         gc: fix libgcrypt detection on older machines.
2832         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2833         copyright years because the file has been distributed every year
2834         since it was created.
2835
2836 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2837
2838         crypto: fix bug in large buffer handling
2839         Problem reported by Serge Belyshev for glibc in
2840         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2842         * lib/md4.c (md4_process_block):
2843         * lib/md5.c (md5_process_block):
2844         * lib/sha1.c (sha1_process_block):
2845         * lib/sha256.c (sha256_process_block):
2846         Don't assume the buffer length is less than 2**32.
2847         * lib/sha512.c (sha512_process_block): Likewise.
2848         Here, the bug is present only in the rare case where the host does
2849         not support uint64_t or where size_t is wider than 64 bits.
2850         Use u64size to work around the problems.
2851         * lib/u64.h (u64size): New macro.
2852
2853 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2854
2855         fsusage: fix block size returned on older Linux 2.6
2856
2857         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2858         which is available since Linux 2.6.
2859         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2860         when the member is available so it can be used as a fallback.
2861         * doc/posix-functions/statvfs.texi: Mention the hang issue
2862         on Linux < 2.6.36.
2863
2864 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         bootstrap: suppress stderr chatter
2867         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2868         Omit unnecessary chatter to stderr.  The main program chatter
2869         was there only inadvertantly.
2870
2871         bootstrap: .gitignore files created by autopoint, libtool
2872         I ran into this problem when bootstrapping the latest diffutils.
2873         After './bootstrap', 'git status' reported lots of untracked files
2874         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2875         autopoint and do not need to be version-controlled.
2876         * build-aux/bootstrap: Put into .gitignore the files that
2877         autopoint and libtool create, by keeping track of files that exist
2878         after but not before these programs are run.
2879         (version_controlled_file): Move up.  2nd arg is now full file
2880         name, not base name; this is more convenient.  Put CVS at the end,
2881         as it's now somewhat deprecated.
2882
2883 2012-05-14  Jim Meyering  <meyering@redhat.com>
2884
2885         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2886         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2887         definition.  Reported by Bruno Haible.
2888
2889 2012-05-13  Bruno Haible  <bruno@clisp.org>
2890             Paul Eggert  <eggert@cs.ucla.edu>
2891
2892         binary-io: Define set_binary_mode function.
2893         * lib/binary-io.h (set_binary_mode): New function.
2894         (SET_BINARY): Define in terms of set_binary_mode.
2895         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2896         * tests/test-binary-io.c (main): Accept an argument, and test either
2897         set_binary_mode or SET_BINARY depending on the argument.
2898         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2899         argument. Clean up also t-bin-out0.tmp.
2900
2901 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2902
2903         bootstrap: take advantage of POSIX shell features
2904
2905         The 'bootstrap' script offered by Gnulib script already uses POSIX
2906         shell features (like $((...)) arithmetic expansions) that are not
2907         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2908         means that bootstrap must already be run using a proper POSIX shell,
2909         which will thus provide more features, like ${var#pattern} parameter
2910         expansion or inversion of a command exit status with '!'.  We can
2911         thus use these features to improve the clarity and the performances
2912         of the bootstrap script.
2913
2914         Suggested by Eric Blake.
2915
2916         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2917         of sed/expr plus command substitutions, to save some forks.  While
2918         we are at it, prefer the POSIX $(...) form of command substitution,
2919         rather than the legacy form `...` (since the former is visually
2920         clearer and interacts better with quoting), and prefer the idiom:
2921           "if ! CMD; then ACTION ..."
2922         over the idiom:
2923           "if CMD; then :; else ACTION ..."
2924         which was required by legacy Bourne shells not supporting '!'.
2925
2926 2012-05-12  Bruno Haible  <bruno@clisp.org>
2927
2928         system-quote: Add more comments.
2929         * lib/system-quote.h: Add more comments about wilcards and limitations.
2930         Suggested by Eli Zaretskii <eliz@gnu.org>.
2931
2932         sh-quote, system-quote: Add comments about wildcards.
2933         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2934         * lib/system-quote.h: Likewise.
2935         Reported by Eli Zaretskii <eliz@gnu.org>.
2936
2937 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         fsusage: check for GNU/Linux statvfs problem dynamically
2940         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2941         Define STAT_STATFS2_BSIZE too, since in this case the code now
2942         checks dynamically whether statvfs is reliable, falling back on
2943         Linux-style statfs otherwise.
2944         (statvfs_works): New function, for dynamically testing statvfs.
2945         (get_fs_usage) [STAT_STATVFS]: Use it.
2946         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2947         statvfs on GNU/Linux hosts, since it's now done dynamically.
2948
2949 2012-05-10  Bruno Haible  <bruno@clisp.org>
2950
2951         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2952         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2953         '?' character.
2954         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2955         * tests/test-system-quote-main.c (check_all): Check also strings like
2956         "??????????".
2957         Reported by Eli Zaretskii <eliz@gnu.org>.
2958
2959 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         _Noreturn: port config.h to gcc -Wundef
2962         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2963         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2964         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2965
2966 2012-05-10  Bruno Haible  <bruno@clisp.org>
2967
2968         system-quote: Refactor.
2969         * lib/system-quote.h (system_quote_copy): Fix comment.
2970         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2971         New functions, extracted from system_quote_copy.
2972         (system_quote_length, system_quote_copy): Use these functions.
2973         Reported by Paul Eggert.
2974
2975 2012-05-08  Bruno Haible  <bruno@clisp.org>
2976
2977         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2978         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2979
2980 2012-05-08  Bruno Haible  <bruno@clisp.org>
2981
2982         Tests for module 'system-quote'.
2983         * modules/system-quote-tests: New file.
2984         * tests/test-system-quote.sh: New file.
2985         * tests/test-system-quote-main.c: New file.
2986         * tests/test-system-quote-child.c: New file.
2987
2988         New module 'system-quote'.
2989         * lib/system-quote.h: New file.
2990         * lib/system-quote.c: New file.
2991         * modules/system-quote: New file.
2992
2993 2012-05-08  Bruno Haible  <bruno@clisp.org>
2994
2995         sh-quote: Make C++ safe and allow multiple inclusion.
2996         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2997         declarations in extern "C".
2998
2999 2012-05-08  Bruno Haible  <bruno@clisp.org>
3000
3001         sh-quote tests: Make tests stricter.
3002         * tests/test-sh-quote.c (check_one): Check the return value of
3003         shell_quote_copy.
3004         (main): Check a string with a CR character. Check a string that
3005         contains UCHAR_MAX.
3006
3007 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3008
3009         warnings.m4: provide a means to specify the program to compile.
3010         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3011         (gl_WARN_ADD): here.
3012         Use gl_AS_VAR_APPEND.
3013         Support an argument to specify the program to compile.
3014         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3015         AC_SUBST the WARN_CFLAGS when they are used.
3016         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3017         leave this to gl_WARN_ADD.
3018
3019 2012-05-08  Eric Blake  <eblake@redhat.com>
3020
3021         doc: recommendations on gettext version
3022         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3023         choice between versions.
3024         * DEPENDENCIES (gettext): Cover both approaches.
3025
3026 2012-05-08  Jim Meyering  <meyering@redhat.com>
3027
3028         init.sh: explain why EXEEXT support uses aliases rather than functions
3029         * tests/init.sh: Add a comment.
3030
3031         init.sh: don't let bash aliases interfere with tests
3032         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3033         is bash.  This avoids problems for those who alias standard commands to
3034         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3035         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3036
3037 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3038
3039         stdint: be more consistent with glibc, SunOS libc
3040         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3041         (gl_int_fast16_t, gl_uint_fast16_t)
3042         (gl_int_fast32_t, gl_uint_fast32_t)
3043         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3044         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3045         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3046         Be consistent with glibc by default, and with SunOS 5.10 and later
3047         if __sun is defined.  This lessens the likelihood of clashes if
3048         code compiled for older hosts is combined with code compiled for
3049         newer ones.  Problem reported by Niels Möller in
3050         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3051
3052 2012-05-07  Eric Blake  <eblake@redhat.com>
3053
3054         isatty: relax license to LGPLv2+
3055         * modules/isatty (License): Relax license.
3056
3057 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3058
3059         stat-size: comment fix
3060         * lib/stat-size.h: Remove obsolete comment about indenting.
3061
3062 2012-05-06  Bruno Haible  <bruno@clisp.org>
3063
3064         Tests for module 'sh-quote'.
3065         * modules/sh-quote-tests: New file.
3066         * tests/test-sh-quote.c: New file.
3067
3068 2012-05-06  Bruno Haible  <bruno@clisp.org>
3069
3070         sh-quote: Improve shell_quote_argv's signature.
3071         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3072         * lib/sh-quote.c (shell_quote_argv): Likewise.
3073
3074 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3075
3076         stdint: document issues with int_fast8_t etc.
3077         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3078         stdint.h substitutes may define these types differently.  See
3079         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3080
3081 2012-05-05  Bruno Haible  <bruno@clisp.org>
3082
3083         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3085         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3086         or 'guessing no (mishandles large arguments)'.
3087
3088 2012-05-05  Bruno Haible  <bruno@clisp.org>
3089
3090         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3091         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3092         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3093         set gl_cv_func_link_follows_symlink to "guessing no".
3094
3095 2012-05-05  Bruno Haible  <bruno@clisp.org>
3096
3097         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3098         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3099         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3100         "guessing no".
3101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3102
3103 2012-05-05  Bruno Haible  <bruno@clisp.org>
3104
3105         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3106         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3107         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3108         set gl_cv_struct_dirent_d_ino to "guessing yes".
3109
3110 2012-05-05  Bruno Haible  <bruno@clisp.org>
3111
3112         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3113         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3114         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3115         "guessing yes".
3116
3117 2012-05-05  Bruno Haible  <bruno@clisp.org>
3118
3119         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3120         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3121         compiling to a glibc system, set gl_cv_func_signbit and
3122         gl_cv_func_signbit_gcc to "guessing yes".
3123
3124 2012-05-05  Bruno Haible  <bruno@clisp.org>
3125
3126         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3127         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3128         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3129         to "guessing yes".
3130         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3131         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3132
3133 2012-05-05  Bruno Haible  <bruno@clisp.org>
3134
3135         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3136         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3137         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3138         gl_cv_func_realpath_works to "guessing yes".
3139
3140 2012-05-05  Bruno Haible  <bruno@clisp.org>
3141
3142         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3144         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3145
3146 2012-05-04  Bruno Haible  <bruno@clisp.org>
3147
3148         Tweak last commit.
3149         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3150         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3151
3152 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3153
3154         unistd_h: make it easier to avoid sys_types_h
3155         This is useful for Emacs, which has its own method of porting to
3156         Windows, and which therefore does not need the sys_types_h module.
3157         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3158         code moved here from gl_SYS_TYPES_H.
3159         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3160         using the code directly.
3161         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3162         gl_SYS_TYPES_H.
3163         * modules/sys_types (Files):
3164         * modules/unistd (Files): Add m4/off_t.m4.
3165
3166 2012-05-03  Bruno Haible  <bruno@clisp.org>
3167
3168         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3169         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3170         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3171         "guessing yes" or "guessing no".
3172         (gl_FUNC_LSTAT): Update.
3173         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3174         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3175         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3176
3177 2012-05-03  Bruno Haible  <bruno@clisp.org>
3178
3179         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3180         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3181         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3182         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3183         cross-compiling, choose the first alternative on glibc systems.
3184         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3185
3186 2012-05-03  Bruno Haible  <bruno@clisp.org>
3187
3188         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3189         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3190         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3191
3192 2012-05-03  Bruno Haible  <bruno@clisp.org>
3193
3194         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3195         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3196
3197 2012-05-03  Bruno Haible  <bruno@clisp.org>
3198
3199         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3200         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3201         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3202         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3203         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3204         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3205         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3206         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3207         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3208         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3209         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3210         gl_cv_func_chown_ctime_works to "guessing yes".
3211         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3212         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3213         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3214         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3215         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3217         compiling to glibc systems, set gl_cv_func_open_directory_works to
3218         "guessing yes".
3219         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3220         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3221         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3222         "guessing yes".
3223         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3224         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3225         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3226         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3227         "guessing yes".
3228         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3229         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3230         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3231         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3232         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3233         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3234         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3235         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3236         "guessing yes".
3237         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3238         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3239         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3240         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3241         "guessing yes".
3242         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3243         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3244         "guessing yes".
3245         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3246         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3247         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3248         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3249         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3250         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3251         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3252         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3253         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3254         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3255         "guessing yes".
3256         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3257         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3258         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3259         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3260         "guessing yes".
3261         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3262         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3263         "guessing yes".
3264         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3265         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3266         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3267         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3268         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3269         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3270         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3271         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3272         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3273         "guessing yes".
3274         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3275         compiling to glibc systems, set gl_cv_func_mknod_works to
3276         "guessing yes".
3277         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3278         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3279         "guessing yes".
3280         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3281         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3282         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3283         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3284         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3285         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3286         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3287         compiling to glibc systems, set gl_cv_func_svid_putenv to
3288         "guessing yes".
3289         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3290         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3291         "guessing yes".
3292         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3293         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3294         "guessing yes".
3295         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3296         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3297         to "guessing yes".
3298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3299         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3300         to "guessing yes".
3301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3302         compiling to glibc systems, set gl_cv_func_rmdir_works to
3303         "guessing yes".
3304         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3305         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3306         gl_cv_func_unlink_parent_fails to "guessing yes".
3307         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3308         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3309         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3310         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3311         gl_cv_func_rename_dest_works to "guessing yes".
3312         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3313         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3314         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3315         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3316         "guessing yes".
3317         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3318         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3319         "guessing yes".
3320         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3321         compiling to glibc systems, set gl_cv_func_setenv_works to
3322         "guessing yes".
3323         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3324         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3325         "guessing yes".
3326         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3327         compiling to glibc systems, set gl_cv_func_sleep_works to
3328         "guessing yes".
3329         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3330         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3331         "guessing yes".
3332         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3333         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3334         "guessing yes".
3335         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3336         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3337         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3338         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3339         "guessing yes".
3340         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3341         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3342         "guessing yes".
3343         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3344         compiling to glibc systems, set gl_cv_func_usleep_works to
3345         "guessing yes".
3346         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3347         compiling to glibc systems, set gl_cv_func_futimesat_works to
3348         "guessing yes".
3349
3350 2012-05-03  Bruno Haible  <bruno@clisp.org>
3351
3352         Say "guessing yes" or "guessing no" when cross-compiling.
3353         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3354         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3355         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3356         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3357         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3358         am_cv_func_working_getline to "guessing yes" or "guessing no".
3359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3360         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3361         (gl_FUNC_MEMMEM): When cross-compiling, set
3362         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3364         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3366         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3367         "guessing no".
3368         (gl_FUNC_STRCASESTR): When cross-compiling, set
3369         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3370         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3371         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3372         (gl_FUNC_STRSTR): When cross-compiling, set
3373         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3374         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3375         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3376         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3377         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3378
3379 2012-05-01  Bruno Haible  <bruno@clisp.org>
3380
3381         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3382         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3383         * build-aux/reloc-ldflags: Likewise.
3384         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3385
3386 2012-05-01  Bruno Haible  <bruno@clisp.org>
3387
3388         gnulib-tool: Remove transitional code.
3389         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3390         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3391
3392 2012-05-01  Bruno Haible  <bruno@clisp.org>
3393
3394         getcwd: Fix misindentation.
3395         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3396
3397 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3398
3399         exclude: process exclude and include directives in order
3400         This restores the pre-2009 behavior, and is part of a fix of a
3401         grep bug reported by Quentin Arce in
3402         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3403         * lib/exclude.c (struct exclude): Remove 'tail' member.
3404         (new_exclude_segment): Prepend the new segment instead of appending.
3405         Return void, since that's now more convenient.
3406         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3407         (file_name_matches): Renamed from excluded_file_name_p.
3408         (file_pattern_matches, file_name_matches):
3409         Return true if the pattern matches, not if it excludes.
3410         All callers changed.
3411         (excluded_file_name): Process the list in reverse order;
3412         since the list is now reversed this restores the pre-2009 behavior.
3413         (add_exclude): Adjust to new reversed-order list.  Use local var
3414         rather than macro, for clarity.
3415         * tests/test-exclude7.sh: Adjust to corrected behavior.
3416
3417         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3418         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3419         it's not possible here.  Handle the case of \ at end of pattern
3420         without dumping core.
3421         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3422
3423         _Noreturn: future-proof non-GNU and non-MSVC compilers
3424         * build-aux/snippet/_Noreturn.h (_Noreturn):
3425         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3426         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3427         C11 or later.  This is more likely to work with random future C
3428         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3429         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3430
3431         exclude: handle wildcards with FNM_EXTMATCH
3432         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3433         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3434         comment that "has wildcards" really means "has or may have
3435         wildcards".  Simplify by avoiding the need to call strcspn.
3436
3437 2012-04-29  Bruno Haible  <bruno@clisp.org>
3438
3439         gnulib-tool: Fix list of authors.
3440         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3441
3442 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3443
3444         bootstrap: support Automake-NG in $buildreq
3445         * bootstrap (check_versions): Handle automake and aclocal from
3446         Automake-NG specially.  They can be specified as respectively
3447         the "automake-ng" and "aclocal-ng" requirements.
3448
3449 2012-04-25  Eric Blake  <eblake@redhat.com>
3450
3451         bootstrap: only force latest Makefile.in.in for gettext module
3452         * build-aux/bootstrap (with_gettext): Only install latest
3453         Makefile.in.in for projects requesting bleeding edge gettext.
3454
3455 2012-04-22  Bruno Haible  <bruno@clisp.org>
3456
3457         doc: Mention reason for replacement on glibc/Linux systems.
3458         * doc/posix-functions/dprintf.texi: Mention the problem with special
3459         'long double' values.
3460         * doc/posix-functions/fprintf.texi: Likewise.
3461         * doc/posix-functions/printf.texi: Likewise.
3462         * doc/posix-functions/snprintf.texi: Likewise.
3463         * doc/posix-functions/sprintf.texi: Likewise.
3464         * doc/posix-functions/vdprintf.texi: Likewise.
3465         * doc/posix-functions/vfprintf.texi: Likewise.
3466         * doc/posix-functions/vprintf.texi: Likewise.
3467         * doc/posix-functions/vsnprintf.texi: Likewise.
3468         * doc/posix-functions/vsprintf.texi: Likewise.
3469         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3470         platforms with F_DUPFD_CLOEXEC problems.
3471         * doc/posix-functions/glob.texi: Mention which platforms are affected
3472         by the problem with symbolic links.
3473         * doc/posix-functions/linkat.texi: Mention the problem with
3474         AT_SYMLINK_FOLLOW on Linux.
3475
3476 2012-04-22  Bruno Haible  <bruno@clisp.org>
3477
3478         pwrite: Don't replace on all platforms.
3479         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3480
3481 2012-04-22  Bruno Haible  <bruno@clisp.org>
3482
3483         rint* tests: Avoid gcc warnings.
3484         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3485         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3486         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3487
3488 2012-04-21  Bruno Haible  <bruno@clisp.org>
3489
3490         users.txt: Update.
3491         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3492         switched from CVS to git, bzr, or svn.
3493
3494 2012-04-21  Bruno Haible  <bruno@clisp.org>
3495
3496         Large File Support for native Windows platforms.
3497
3498         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3499         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3500
3501         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3502         type.
3503         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3504         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3505         * doc/posix-headers/sys_types.texi: Mention the effect of the
3506         'largefile' module.
3507
3508         * lib/fcntl.in.h: Add comments about off_t.
3509         * modules/fcntl-h (Depends-on): Add sys_types.
3510
3511         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3512         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3513         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3514         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3515         * modules/unistd (Depends-on): Add sys_types.
3516         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3517
3518         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3519         instead of lseek.
3520         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3521         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3522         * modules/lseek (Depends-on): Add sys_types.
3523
3524         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3525         msvc-nothrow.h.
3526         (SetFileSize): New function.
3527         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3528         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3529         if Large File Support is requested.
3530         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3531         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3532
3533         * lib/stdio.in.h: Add comments about off_t.
3534         * modules/stdio (Depends-on): Add sys_types.
3535
3536         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3537         instead of ftello.
3538         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3539         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3540         (gl_PREREQ_FTELLO): New macro.
3541         * modules/ftello (Depends-on): Add sys_types.
3542         (configure.ac): Incoke gl_PREREQ_FTELLO.
3543
3544         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3545         instead of fseeko.
3546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3547         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3548         (gl_PREREQ_FSEEKO): New macro.
3549         * modules/fseeko (Depends-on): Add sys_types.
3550         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3551
3552         * lib/sys_stat.in.h: Add comments about off_t.
3553         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3554         64-bit integer for st_size in 'struct stat'.
3555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3556         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3557         * modules/sys_stat (Depends-on): Add sys_types.
3558         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3559
3560         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3561         instead of stat or _stat.
3562
3563         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3564         'struct _stati64' instead of fstat and 'struct stat'.
3565         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3566         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3567
3568         Reported by Ray Satiro <raysatiro@yahoo.com>.
3569
3570 2012-04-19  Eric Blake  <eblake@redhat.com>
3571
3572         bootstrap: accommodate older libtool
3573         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3574         Reported by Daniel P. Berrange.
3575
3576 2012-04-19  Jim Meyering  <meyering@redhat.com>
3577
3578         announce-gen: avoid failure due to lack of Digest::SHA1
3579         Even with the preferred Digest::SHA available, this script
3580         would fail when the backup module, Digest::SHA1, was not installed.
3581         * build-aux/announce-gen: Quote the conditional use of "use".
3582         Reported by Reuben Thomas in:
3583         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3584
3585         bootstrap: don't let a user's CDPATH setting affect this script
3586         When CDPATH is set, cd will sometimes generate output.
3587         When "cd" is run in a subshell whose output matters, that
3588         surprising-to-some output can cause malfunction.
3589         Unsetting CDPATH turns off this shell "feature."
3590         * build-aux/bootstrap (CDPATH): Unset.
3591         Reported by Reuben Thomas in:
3592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3593         and inspired by his patch here:
3594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3595
3596 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3597         and Jim Meyering  <meyering@redhat.com>
3598
3599         maint.mk: catch "see @xref{}" and similar
3600         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3601         prohibit "See also @xref{", "Also see @pxref{", and similar.
3602
3603 2012-04-16  Jim Meyering  <meyering@redhat.com>
3604
3605         bootstrap: really use gnulib's po/Makefile.in.in
3606         * build-aux/bootstrap: Correct the source file name in previous change.
3607         Reported by Akim Demaille.
3608
3609         configmake: correct minor inconsistency in Makefile rule
3610         * modules/configmake (Makefile.am): All other rules like this one
3611         run the final "mv -f ..." in the same backslash-continued command
3612         as the one that does everything else.  This one put the mv -f ...
3613         command on a separate, non-backslash-continued line.
3614         Make it like the others.
3615
3616         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3617         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3618         the one from gettext.  Reported by Akim Demaille.
3619
3620 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3621
3622         Fix recursion of install-* into po directories.
3623         Bison's install-pdf bug reported by Hans Aberg at
3624         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3625         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3626         (install-info, install-pdf, install-ps): New targets.
3627
3628 2012-04-16  Jim Meyering  <meyering@redhat.com>
3629
3630         maint: avoid spurious "make sc_maint" failure
3631         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3632         exempt all *.class file names, for lib/javaversion.class.
3633
3634 2012-04-15  Bruno Haible  <bruno@clisp.org>
3635
3636         lseek: Make configure test independent of environment.
3637         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3638         Windows, we know that lseek() on pipes is broken; skip the runtime
3639         test.
3640
3641 2012-04-14  Bruno Haible  <bruno@clisp.org>
3642
3643         stat: Bypass buggy override in mingw64.
3644         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3645         * lib/stat.c (stat) [mingw64]: Define to _stat.
3646         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3647
3648 2012-04-14  Bruno Haible  <bruno@clisp.org>
3649
3650         pathmax: Fix compilation error on MSVC 9.
3651         * modules/pathmax (Depends-on): Add unistd.
3652
3653 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3654
3655         README: document pointer comparison assumption
3656         * README (Portability guidelines): Document assumption about
3657         pointer comparisons, in response to a recent bug-gnulib comment by
3658         Jeffrey Kegler.
3659
3660 2012-04-12  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'getrusage'.
3663         * modules/getrusage-tests: New file.
3664         * tests/test-getrusage.c: New file.
3665
3666         New module 'getrusage'.
3667         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3668         warn-on-use.h.
3669         (getrusage): New declaration.
3670         * lib/getrusage.c: New file.
3671         * m4/getrusage.m4: New file.
3672         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3673         is declared.
3674         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3675         HAVE_GETRUSAGE.
3676         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3677         snippet/c++defs, snippet/warn-on-use.
3678         (Makefile.am): Update generation of sys/resource.h. Substitute
3679         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3680         * modules/getrusage: New file.
3681         * doc/posix-functions/getrusage.texi: Mention the new module.
3682
3683 2012-04-12  Bruno Haible  <bruno@clisp.org>
3684
3685         Tests for module 'sys_resource'.
3686         * modules/sys_resource-tests: New file.
3687         * tests/test-sys_resource.c: New file.
3688
3689         New module 'sys_resource'.
3690         * lib/sys_resource.in.h: New file.
3691         * m4/sys_resource_h.m4: New file.
3692         * modules/sys_resource: New file.
3693         * doc/posix-headers/sys_resource.texi: Mention the new module.
3694
3695 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3696
3697         ioctl: Fix compilation error on mingw.
3698         * lib/ioctl.c: Include <windows.h>.
3699         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3700
3701 2012-04-04  Jim Meyering  <meyering@redhat.com>
3702
3703         regex: correct #pragma guard expression
3704         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3705         not 4.3.  Correct its cpp guard expression.
3706
3707 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3708
3709         regex: remove unnecessary type punning
3710         Problem reported by Vladimir Serbinenko in
3711         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3712         * lib/regex.h (struct re_pattern_buffer): Change the type of
3713         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3714         Fix comment to match code.
3715         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3716         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3717         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3718         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3719         (set_regs):
3720         Omit no-longer-necessary casts.
3721
3722 2012-04-03  Bruno Haible  <bruno@clisp.org>
3723
3724         Tests for module 'ilogbl'.
3725         * modules/ilogbl-tests: New file.
3726         * tests/test-ilogbl.c: New file.
3727
3728         New module 'ilogbl'.
3729         * lib/math.in.h (ilogbl): New declaration.
3730         * lib/ilogbl.c: New file.
3731         * m4/ilogbl.m4: New file.
3732         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3734         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3735         Split sed invocation, to avoid the limit of 100 substitutions of
3736         HP-UX 'sed'.
3737         * modules/ilogbl: New file.
3738         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3739         * doc/posix-functions/ilogbl.texi: Mention the new module.
3740
3741 2012-04-03  Bruno Haible  <bruno@clisp.org>
3742
3743         Tests for module 'ilogbf'.
3744         * modules/ilogbf-tests: New file.
3745         * tests/test-ilogbf.c: New file.
3746
3747         New module 'ilogbf'.
3748         * lib/math.in.h (ilogbf): New declaration.
3749         * lib/ilogbf.c: New file.
3750         * m4/ilogbf.m4: New file.
3751         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3753         REPLACE_ILOGBF.
3754         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3755         REPLACE_ILOGBF.
3756         * modules/ilogbf: New file.
3757         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3758         * doc/posix-functions/ilogbf.texi: Mention the new module.
3759
3760 2012-04-03  Bruno Haible  <bruno@clisp.org>
3761
3762         Tests for module 'ilogb'.
3763         * modules/ilogb-tests: New file.
3764         * tests/test-ilogb.c: New file.
3765         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3766         tests/test-logb-ieee.h.
3767
3768         New module 'ilogb'.
3769         * lib/math.in.h (ilogb): New declaration.
3770         * lib/ilogb.c: New file.
3771         * m4/ilogb.m4: New file.
3772         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3774         REPLACE_ILOGB.
3775         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3776         REPLACE_ILOGB.
3777         * modules/ilogb: New file.
3778         * tests/test-math-c++.cc: Check the declaration of ilogb.
3779         * doc/posix-functions/ilogb.texi: Mention the new module.
3780
3781 2012-04-03  Bruno Haible  <bruno@clisp.org>
3782
3783         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3784         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3785         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3786         (main): Check their values.
3787         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3788         problem.
3789
3790 2012-04-03  Bruno Haible  <bruno@clisp.org>
3791
3792         Tests for module 'logbl-ieee'.
3793         * modules/logbl-ieee-tests: New file.
3794         * tests/test-logbl-ieee.c: New file.
3795
3796         New module 'logbl-ieee'.
3797         * modules/logbl-ieee: New file.
3798
3799         Tests for module 'logb-ieee'.
3800         * modules/logb-ieee-tests: New file.
3801         * tests/test-logb-ieee.c: New file.
3802
3803         New module 'logb-ieee'.
3804         * modules/logb-ieee: New file.
3805
3806         Tests for module 'logbf-ieee'.
3807         * modules/logbf-ieee-tests: New file.
3808         * tests/test-logbf-ieee.c: New file.
3809         * tests/test-logb-ieee.h: New file.
3810
3811         New module 'logbf-ieee'.
3812         * modules/logbf-ieee: New file.
3813
3814 2012-04-03  Bruno Haible  <bruno@clisp.org>
3815
3816         Tests for module 'logbl'.
3817         * modules/logbl-tests: New file.
3818         * tests/test-logbl.c: New file.
3819
3820         New module 'logbl'.
3821         * lib/math.in.h (logbl): New declaration.
3822         * lib/logbl.c: New file.
3823         * m4/logbl.m4: New file.
3824         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3826         REPLACE_LOGBL.
3827         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3828         REPLACE_LOGBL.
3829         * modules/logbl: New file.
3830         * tests/test-math-c++.cc: Check the declaration of logbl.
3831         * doc/posix-functions/logbl.texi: Mention the new module.
3832
3833 2012-04-02  Bruno Haible  <bruno@clisp.org>
3834
3835         Tests for module 'logbf'.
3836         * modules/logbf-tests: New file.
3837         * tests/test-logbf.c: New file.
3838
3839         New module 'logbf'.
3840         * lib/math.in.h (logbf): New declaration.
3841         * lib/logbf.c: New file.
3842         * m4/logbf.m4: New file.
3843         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3845         REPLACE_LOGBF.
3846         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3847         REPLACE_LOGBF.
3848         * modules/logbf: New file.
3849         * tests/test-math-c++.cc: Check the declaration of logbf.
3850         * doc/posix-functions/logbf.texi: Mention the new module.
3851
3852 2012-04-02  Bruno Haible  <bruno@clisp.org>
3853
3854         logb tests: More tests.
3855         * tests/test-logb.h: New file, based on tests/test-logb.c and
3856         tests/test-frexp.h.
3857         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3858         (main): Just invoke test_function.
3859         * modules/logb-tests (Files): Add tests/test-logb.h,
3860         tests/minus-zero.h, tests/randomd.c.
3861         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3862
3863         logb: Provide replacement and workarounds.
3864         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3865         is 1.
3866         * lib/logb.c: New file.
3867         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3868         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3870         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3871         * modules/logb (Files): Add lib/logb.c.
3872         (Depends-on): Add isfinite, frexp, isnand.
3873         (configure.ac): Compile the replacement code logb.c if needed.
3874         * tests/test-math-c++.cc: Check the declaration of logb.
3875         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3876         with subnormal numbers.
3877
3878 2012-04-02  Bruno Haible  <bruno@clisp.org>
3879
3880         log10* tests: Speed up.
3881         * tests/test-log10.h (test_function): Reduce amount of random numbers
3882         to test.
3883
3884 2012-04-01  Bruno Haible  <bruno@clisp.org>
3885
3886         logf-ieee: Fix test whether logf works.
3887         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3888
3889 2012-04-01  Bruno Haible  <bruno@clisp.org>
3890
3891         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3892         * lib/log10l.c: Include <float.h>
3893         (log10l): On IRIX, normalize the +Infinity value.
3894         * modules/log10l (Depends-on): Add 'float'.
3895         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3896         +Infinity.
3897
3898         log10f-ieee: Work around test failure on NetBSD 5.1.
3899         * m4/log10f-ieee.m4: New file.
3900         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3901         test whether log10f works with a negative argument. Replace it if not.
3902         * lib/log10f.c (log10f): For negative arguments, return NaN.
3903         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3904         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3905         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3906
3907         log10f-ieee: Work around test failure on Solaris 9.
3908         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3909         (configure.ac): Require gl_FUNC_LOG10F.
3910
3911         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3912         * m4/log10-ieee.m4: New file.
3913         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3914         whether log10 works with a negative argument. Replace it if not.
3915         * lib/log10.c (log10): For negative arguments, return NaN.
3916         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3917         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3918         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3919
3920         Tests for module 'log10l-ieee'.
3921         * modules/log10l-ieee-tests: New file.
3922         * tests/test-log10l-ieee.c: New file.
3923
3924         New module 'log10l-ieee'.
3925         * modules/log10l-ieee: New file.
3926
3927         Tests for module 'log10-ieee'.
3928         * modules/log10-ieee-tests: New file.
3929         * tests/test-log10-ieee.c: New file.
3930
3931         New module 'log10-ieee'.
3932         * modules/log10-ieee: New file.
3933
3934         Tests for module 'log10f-ieee'.
3935         * modules/log10f-ieee-tests: New file.
3936         * tests/test-log10f-ieee.c: New file.
3937         * tests/test-log10-ieee.h: New file.
3938
3939         New module 'log10f-ieee'.
3940         * modules/log10f-ieee: New file.
3941
3942 2012-04-01  Bruno Haible  <bruno@clisp.org>
3943
3944         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3945         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3946         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3947         workaround.
3948         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3949         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3951         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3952         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3953         (Depends-on): Update conditions.
3954         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3955         IRIX 6.5, OSF/1 5.1 problems.
3956
3957 2012-04-01  Bruno Haible  <bruno@clisp.org>
3958
3959         log10f: Work around OSF/1 5.1 bug.
3960         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3961         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3962         workaround.
3963         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3964         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3966         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3967         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3968         (Depends-on): Update conditions.
3969         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3970
3971 2012-04-01  Bruno Haible  <bruno@clisp.org>
3972
3973         log10: Work around OSF/1 5.1 bug.
3974         * lib/math.in.h (log10): New declaration.
3975         * lib/log10.c: New file.
3976         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3977         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3978         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3980         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3981         * modules/log10 (Files): Add lib/log10.c.
3982         (Depends-on): Add math.
3983         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3984         * tests/test-math-c++.cc: Check the declaration of log10.
3985         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3986
3987 2012-03-31  Bruno Haible  <bruno@clisp.org>
3988
3989         log10l tests: More tests.
3990         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3991         tests/minus-zero.h, tests/randoml.c.
3992         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3993         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3994         (main): Invoke test_function.
3995
3996         log10f tests: More tests.
3997         * modules/log10f-tests (Files): Add tests/test-log10.h,
3998         tests/minus-zero.h, tests/randomf.c.
3999         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4000         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4001         (main): Invoke test_function.
4002
4003         log10 tests: More tests.
4004         * tests/test-log10.h: New file.
4005         * modules/log10-tests (Files): Add tests/test-log10.h,
4006         tests/minus-zero.h, tests/randomd.c.
4007         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4008         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4009         (main): Invoke test_function.
4010
4011 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4012
4013         fflush: Fix syntax error.
4014         * lib/fflush.c: Include unused-parameter.h, needed for
4015         _GL_UNUSED_PARAMETER.
4016         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4017
4018 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4019
4020         regex: pacify GCC when compiling GRUB
4021         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4022         a diagnostic.  Reported by Vladimir Serbinenko in
4023         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4024
4025 2012-03-29  Eric Blake  <eblake@redhat.com>
4026
4027         stdio: don't assume gets any more
4028         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4029         support.
4030         * modules/stdio (Makefile.am): Likewise.
4031         * lib/stdio-read.c (gets): Likewise.
4032         * tests/test-stdio-c++.cc: Likewise.
4033         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4034         * lib/stdio.in.h (gets): Make warning occur in more places.
4035         * doc/posix-functions/gets.texi (gets): Update documentation.
4036         Reported by Christer Solskogen.
4037
4038         maint.mk: fix syntax checks without exclusions
4039         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4040         Reported by Daniel P. Berrange.
4041
4042         strerror_r: avoid compiler warning
4043         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4044         level.
4045
4046         fflush: avoid compiler warning
4047         * lib/fflush.c (update_fpos_cache): Mark variables that are
4048         potentially unused.
4049
4050 2012-03-25  Bruno Haible  <bruno@clisp.org>
4051
4052         Tests for module 'localeconv'.
4053         * modules/localeconv-tests: New file.
4054         * tests/test-localeconv.c: New file.
4055
4056         New module 'localeconv'.
4057         * lib/locale.in.h (localeconv): New declaration.
4058         * lib/localeconv.c: New file.
4059         * m4/localeconv.m4: New file.
4060         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4061         REPLACE_LOCALECONV.
4062         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4063         REPLACE_LOCALECONV.
4064         * modules/localeconv: New file.
4065         * modules/nl_langinfo (Depends-on): Add localeconv.
4066         * modules/human (Depends-on): Likewise.
4067         * doc/posix-functions/localeconv.texi: Mention the new module.
4068
4069 2012-03-25  Bruno Haible  <bruno@clisp.org>
4070
4071         locale: Provide a complete 'struct lconv'.
4072         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4073         'struct lconv' does not contain int_p_cs_precedes.
4074         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4075         * doc/posix-headers/locale.texi: Update.
4076
4077         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4078         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4079         * doc/posix-headers/locale.texi: Update.
4080
4081         locale: Provide a working 'struct lconv'.
4082         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4083         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4084         'struct lconv' does not even contain decimal_point.
4085         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4086         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4087         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4088         * doc/posix-headers/locale.texi: Mention the problems with
4089         'struct lconv'.
4090         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4091
4092 2012-03-24  Bruno Haible  <bruno@clisp.org>
4093
4094         Enable common subexpression optimization in GCC.
4095         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4096         macros.
4097         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4098         GCC attribute 'const'.
4099         (uc_locale_language): Declare with GCC attribute 'pure'.
4100         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4101         with GCC attribute 'const'.
4102         * lib/unictype.in.h (uc_is_general_category_withtable,
4103         uc_combining_class, uc_combining_class_name,
4104         uc_combining_class_long_name, uc_bidi_class_name,
4105         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4106         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4107         uc_decimal_value, uc_digit_value, uc_numeric_value,
4108         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4109         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4110         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4111         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4112         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4113         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4114         Declare with GCC attribute 'const'.
4115         (uc_general_category_name, uc_general_category_long_name,
4116         uc_general_category_byname, uc_general_category,
4117         uc_is_general_category, uc_combining_class_byname,
4118         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4119         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4120         Declare with GCC attribute 'pure'.
4121         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4122         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4123         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4124         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4125         with GCC attribute 'pure'.
4126         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4127         'const'.
4128         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4129         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4130         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4131         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4132         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4133         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4134         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4135         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4136         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4137         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4138         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4139         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4140         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4141         GCC attribute 'pure'.
4142         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4143         'const'.
4144         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4145         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4146         u32_strwidth): Declare with GCC attribute 'pure'.
4147
4148         Enable common subexpression optimization in GCC.
4149         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4150         (alphasort): Declare with GCC attribute 'pure'.
4151         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4152         (atoll): Declare with GCC attribute 'pure'.
4153         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4154         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4155         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4156         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4157         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4158         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4159         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4160
4161 2012-03-24  Bruno Haible  <bruno@clisp.org>
4162
4163         gnulib-tool: Avoid unintended error output from 'cmp'.
4164         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4165         "cmp -s", not "cmp > /dev/null".
4166
4167 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4168
4169         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4170
4171         It's not just Automake versions < 1.9b that creates an empty
4172         pkgdatadir at installation time if pkgdata_DATA is specified
4173         to empty; modern automake versions do this as well, at least
4174         until automake 1.11.4 (not yet released at the moment of writing,
4175         but soon to appear).  That behaviour was generally considered a
4176         feature rather than a bug, at least until this discussion:
4177         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4178
4179         See also automake bugs #10997 and #11030.
4180
4181         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4182         reference to relevant automake bug numbers.
4183         (func_emit_tests_Makefile_am): Likewise.
4184
4185 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4186
4187         announce-gen: use Digest::SHA when possible
4188         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4189         back to Digest::SHA1 if necessary.
4190
4191 2012-03-20  Jim Meyering  <meyering@redhat.com>
4192
4193         tests: avoid gcc warnings about argv vs. const initializers
4194         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4195         warnings about discarding 'const' qualifier from pointer target type.
4196         * tests/test-posix_spawn2.c (main): Likewise.
4197
4198 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4199
4200         README-release: simplify slightly
4201         * top/README-release: Run "git checkout master" only once.
4202
4203 2012-03-15  Mark Wielaard  <mark@klomp.org>
4204
4205         git-merge-changelog: add specific example on how to use with hg.
4206         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4207
4208 2012-03-18  Mark Wielaard  <mark@klomp.org>
4209
4210         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4211
4212 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4213
4214         git-version-gen: don't let "prefix" envvar cause trouble
4215         * build-aux/git-version-gen (prefix): Initialize properly,
4216         so as not to use a value specified via the environment.
4217         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4218
4219 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         regex: diagnose too-large repeat counts in EREs
4222         Previously, the code did not diagnose the too-large repeat count
4223         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4224         as if it were 'b\{1000000000}', which is unexpected.
4225         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4226         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4227         is a reasonable one for this problem.  Another option would be to
4228         create a new REG_OVERFLOW error for repeat counts that are too large.
4229         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4230         count is too large, so that the caller can distinguish the two cases.
4231         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4232         "Too large" return code, and that repeat counts are one example of this.
4233
4234 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4235
4236         doc: some glibc x32 integer width issues
4237         * doc/posix-headers/sys_types.texi (sys/types.h):
4238         * doc/posix-headers/time.texi (time.h):
4239         Mention that glibc x32 does not conform to POSIX in a couple of
4240         areas related to integer widths.
4241
4242 2012-03-15  Bruno Haible  <bruno@clisp.org>
4243
4244         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4245         * lib/fma.c (VOLATILE): New macro.
4246         (FUNC): Use it to work around a GCC compiler bug.
4247
4248 2012-03-13  Bruno Haible  <bruno@clisp.org>
4249
4250         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4251         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4252         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4253         REPLACE_HYPOTL to 1.
4254         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4255
4256 2012-03-13  Bruno Haible  <bruno@clisp.org>
4257
4258         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4259         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4260         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4261         REPLACE_REMAINDERL to 1.
4262         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4263         bug.
4264
4265 2012-03-13  Bruno Haible  <bruno@clisp.org>
4266
4267         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4268         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4269         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4270         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4271         too big rounding errors.
4272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4273         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4274         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4275         (Depends-on): Update conditions.
4276         * tests/test-sqrtl.c (my_ldexpl): New function.
4277         (main): Add test of a particular value.
4278         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4279
4280 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4281
4282         doc: Update timer_* platform portability notes.
4283         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4284         that always return ENOSYS.
4285         * doc/posix-functions/timer_delete.texi: Likewise.
4286         * doc/posix-functions/timer_gettime.texi: Likewise.
4287         * doc/posix-functions/timer_settime.texi: Likewise.
4288
4289 2012-03-13  Bruno Haible  <bruno@clisp.org>
4290
4291         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4292         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4293         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4294         REPLACE_CBRTL to 1.
4295         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4296
4297 2012-03-13  Bruno Haible  <bruno@clisp.org>
4298
4299         remainderl: Avoid compilation error on AIX >= 5.2.
4300         * lib/math.in.h (remainderl): Undefine macro from the system header.
4301
4302 2012-03-13  Bruno Haible  <bruno@clisp.org>
4303
4304         Avoid compilation errors with MSVC option -fp:strict.
4305         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4306         * lib/cbrtf.c: Likewise.
4307         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4308
4309 2012-03-12  Bruno Haible  <bruno@clisp.org>
4310
4311         uninorm: Don't crash in out-of-memory conditions.
4312         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4313         gracefully.
4314         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4315         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4316
4317 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4318
4319         quote: fix syntax-check
4320         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4321         also exports quote_quoting_options.
4322
4323 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4324
4325         Collapse list of copyright years to ranges.  See
4326         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4327         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4328         build-aux/csharpexec.sh.in, build-aux/gnupload,
4329         build-aux/install-reloc, build-aux/javacomp.sh.in,
4330         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4331         build-aux/move-if-change, build-aux/reloc-ldflags,
4332         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4333
4334 2012-03-11  Bruno Haible  <bruno@clisp.org>
4335
4336         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4337         * m4/log2f-ieee.m4: New file.
4338         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4339         whether log2f works with a minus zero argument. Replace it if not.
4340         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4341         (Depends-on): Add log2-ieee.
4342         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4343         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4344
4345         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4346         * m4/log2-ieee.m4: New file.
4347         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4348         whether log2 works with a minus zero argument. Replace it if not.
4349         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4350         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4351         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4352
4353         Tests for module 'log2l-ieee'.
4354         * modules/log2l-ieee-tests: New file.
4355         * tests/test-log2l-ieee.c: New file.
4356
4357         New module 'log2l-ieee'.
4358         * modules/log2l-ieee: New file.
4359
4360         Tests for module 'log2-ieee'.
4361         * modules/log2-ieee-tests: New file.
4362         * tests/test-log2-ieee.c: New file.
4363
4364         New module 'log2-ieee'.
4365         * modules/log2-ieee: New file.
4366
4367         Tests for module 'log2f-ieee'.
4368         * modules/log2f-ieee-tests: New file.
4369         * tests/test-log2f-ieee.c: New file.
4370         * tests/test-log2-ieee.h: New file.
4371
4372         New module 'log2f-ieee'.
4373         * modules/log2f-ieee: New file.
4374
4375 2012-03-11  Bruno Haible  <bruno@clisp.org>
4376
4377         Tests for module 'log2l'.
4378         * modules/log2l-tests: New file.
4379         * tests/test-log2l.c: New file.
4380
4381         New module 'log2l'.
4382         * lib/math.in.h (log2l): New declaration.
4383         * lib/log2l.c: New file.
4384         * m4/log2l.m4: New file.
4385         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4387         REPLACE_LOG2L.
4388         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4389         REPLACE_LOG2L.
4390         * modules/log2l: New file.
4391         * tests/test-math-c++.cc: Check the declaration of log2l.
4392         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4393         and OSF/1 problems.
4394
4395 2012-03-11  Bruno Haible  <bruno@clisp.org>
4396
4397         Tests for module 'log2f'.
4398         * modules/log2f-tests: New file.
4399         * tests/test-log2f.c: New file.
4400
4401         New module 'log2f'.
4402         * lib/math.in.h (log2f): New declaration.
4403         * lib/log2f.c: New file.
4404         * m4/log2f.m4: New file.
4405         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4407         REPLACE_LOG2F.
4408         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4409         REPLACE_LOG2F.
4410         * modules/log2f: New file.
4411         * tests/test-math-c++.cc: Check the declaration of log2f.
4412         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4413         and OSF/1 and Cygwin problems.
4414
4415 2012-03-11  Bruno Haible  <bruno@clisp.org>
4416
4417         Tests for module 'log2'.
4418         * modules/log2-tests: New file.
4419         * tests/test-log2.c: New file.
4420         * tests/test-log2.h: New file.
4421
4422         New module 'log2'.
4423         * lib/math.in.h (log2): New declaration.
4424         * lib/log2.c: New file.
4425         * m4/log2.m4: New file.
4426         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4428         REPLACE_LOG2.
4429         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4430         REPLACE_LOG2.
4431         * modules/log2: New file.
4432         * tests/test-math-c++.cc: Check the declaration of log2.
4433         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4434         and OSF/1 and Cygwin problems.
4435
4436 2012-03-11  Bruno Haible  <bruno@clisp.org>
4437
4438         exp2* tests: More tests.
4439         * tests/test-exp2.h (test_function): Test all integral arguments that
4440         don't need to overflow or denormalized numbers.
4441         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4442         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4443         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4444
4445 2012-03-10  Bruno Haible  <bruno@clisp.org>
4446
4447         log1pl-ieee: Work around test failure on AIX 7.1.
4448         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4449
4450         log1pl-ieee: Work around test failure on IRIX 6.5.
4451         * m4/log1pl-ieee.m4: New file.
4452         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4453         test whether log1pl works with a minus zero argument. Replace it if
4454         not.
4455         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4457         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4458         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4459         (Depends-on): Update conditions.
4460         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4461         m4/signbit.m4.
4462         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4463         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4464
4465         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4466         * m4/log1pf-ieee.m4: New file.
4467         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4468         test whether log1pf works with a minus zero argument. Replace it if
4469         not.
4470         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4471         m4/signbit.m4.
4472         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4473         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4474
4475         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4476         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4477         (configure.ac): Require gl_FUNC_LOG1PF.
4478
4479         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4480         * m4/log1p-ieee.m4: New file.
4481         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4482         whether log1p works with a minus zero argument. Replace it if not.
4483         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4485         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4486         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4487         (Depends-on): Update conditions.
4488         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4489         m4/signbit.m4.
4490         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4491         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4492
4493         Tests for module 'log1pl-ieee'.
4494         * modules/log1pl-ieee-tests: New file.
4495         * tests/test-log1pl-ieee.c: New file.
4496
4497         New module 'log1pl-ieee'.
4498         * modules/log1pl-ieee: New file.
4499
4500         Tests for module 'log1p-ieee'.
4501         * modules/log1p-ieee-tests: New file.
4502         * tests/test-log1p-ieee.c: New file.
4503
4504         New module 'log1p-ieee'.
4505         * modules/log1p-ieee: New file.
4506
4507         Tests for module 'log1pf-ieee'.
4508         * modules/log1pf-ieee-tests: New file.
4509         * tests/test-log1pf-ieee.c: New file.
4510         * tests/test-log1p-ieee.h: New file.
4511
4512         New module 'log1pf-ieee'.
4513         * modules/log1pf-ieee: New file.
4514
4515 2012-03-10  Bruno Haible  <bruno@clisp.org>
4516
4517         Tests for module 'log1pl'.
4518         * modules/log1pl-tests: New file.
4519         * tests/test-log1pl.c: New file.
4520
4521         New module 'log1pl'.
4522         * lib/math.in.h (log1pl): New declaration.
4523         * lib/log1pl.c: New file.
4524         * m4/log1pl.m4: New file.
4525         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4527         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4528         * modules/log1pl: New file.
4529         * tests/test-math-c++.cc: Check the declaration of log1pl.
4530         * doc/posix-functions/log1pl.texi: Mention the new module.
4531
4532 2012-03-10  Bruno Haible  <bruno@clisp.org>
4533
4534         Tests for module 'log1pf'.
4535         * modules/log1pf-tests: New file.
4536         * tests/test-log1pf.c: New file.
4537
4538         New module 'log1pf'.
4539         * lib/math.in.h (log1pf): New declaration.
4540         * lib/log1pf.c: New file.
4541         * m4/log1pf.m4: New file.
4542         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4544         REPLACE_LOG1PF.
4545         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4546         REPLACE_LOG1PF.
4547         * modules/log1pf: New file.
4548         * tests/test-math-c++.cc: Check the declaration of log1pf.
4549         * doc/posix-functions/log1pf.texi: Mention the new module.
4550
4551 2012-03-10  Bruno Haible  <bruno@clisp.org>
4552
4553         log1p tests: More tests.
4554         * tests/test-log1p.h: New file.
4555         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4556         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4557         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4558         (main): Invoke test_function.
4559
4560         log1p: Provide replacement for Minix and MSVC.
4561         * lib/math.in.h (log1p): New declaration.
4562         * lib/log1p.c: New file.
4563         * m4/log1p.m4: New file.
4564         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4566         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4567         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4568         (Depends-on): Add math, isnand, log, round.
4569         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4570         HAVE_LOG1P is 0.
4571         * tests/test-math-c++.cc: Check the declaration of log1p.
4572         * doc/posix-functions/log1p.texi: Mention the replacement.
4573
4574 2012-03-10  Bruno Haible  <bruno@clisp.org>
4575
4576         math tests: Small simplification.
4577         * tests/test-exp.h (test_function): Use the same err_bound for
4578         'double' on platforms with sizeof (long double) == sizeof (double)
4579         than on platforms with sizeof (long double) > sizeof (double).
4580         * tests/test-exp2.h (test_function): Likewise.
4581         * tests/test-expm1.h (test_function): Likewise.
4582         * tests/test-log.h (test_function): Likewise.
4583
4584 2012-03-10  Bruno Haible  <bruno@clisp.org>
4585
4586         Fix some comments.
4587         * lib/expl.c: Fix an ambiguous comment.
4588         * lib/expm1.c: Likewise.
4589         * lib/expm1l.c: Likewise.
4590         * lib/exp2.c: Likewise.
4591         * lib/exp2l.c: Likewise.
4592
4593 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         regex: allow inclusion of <regex.h> before <limits.h>
4596         Without this patch, portable programs had to include <limits.h> before
4597         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4598         I ran into this problem with a test version of GNU grep on Solaris 8.
4599         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4600         This is done conditionally so that this change can be merged
4601         back to glibc.
4602         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4603         using the included regex.
4604
4605         fts: depend on fdopendir
4606         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4607         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4608         problem was introduced when fdopendir was split out.
4609
4610 2012-03-10  Bruno Haible  <bruno@clisp.org>
4611
4612         Remove unused variables.
4613         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4614         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4615
4616 2012-03-10  Bruno Haible  <bruno@clisp.org>
4617
4618         isnanf-nolibm: Fix last commit.
4619         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4620
4621         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4622         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4623
4624 2012-03-10  Bruno Haible  <bruno@clisp.org>
4625
4626         logf-ieee: Work around test failure on NetBSD 5.1.
4627         * m4/logf-ieee.m4: New file.
4628         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4629         whether logf works with a negative argument. Replace it if not.
4630         * lib/logf.c (logf): For negative arguments, return NaN.
4631         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4632         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4633         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4634
4635         logf-ieee: Work around test failure on Solaris 9.
4636         * modules/logf-ieee (Depends-on): Add log-ieee.
4637         (configure.ac): Require gl_FUNC_LOGF.
4638
4639         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4640         * m4/log-ieee.m4: New file.
4641         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4642         log works with a negative argument. Replace it if not.
4643         * lib/log.c (log): For negative arguments, return NaN.
4644         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4645         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4646         * doc/posix-functions/log.texi: Mention the log-ieee module.
4647
4648         Tests for module 'logl-ieee'.
4649         * modules/logl-ieee-tests: New file.
4650         * tests/test-logl-ieee.c: New file.
4651
4652         New module 'logl-ieee'.
4653         * modules/logl-ieee: New file.
4654
4655         Tests for module 'log-ieee'.
4656         * modules/log-ieee-tests: New file.
4657         * tests/test-log-ieee.c: New file.
4658
4659         New module 'log-ieee'.
4660         * modules/log-ieee: New file.
4661
4662         Tests for module 'logf-ieee'.
4663         * modules/logf-ieee-tests: New file.
4664         * tests/test-logf-ieee.c: New file.
4665         * tests/test-log-ieee.h: New file.
4666
4667         New module 'logf-ieee'.
4668         * modules/logf-ieee: New file.
4669
4670 2012-03-10  Bruno Haible  <bruno@clisp.org>
4671
4672         log: Fix bug introduced on 2012-03-09.
4673         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4674
4675 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4676
4677         timer-time: link explicitly with pthreads on glibc
4678         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4679         to support static linking, when newer glibc is
4680         detected, as that contains pthread emulation of
4681         POSIX timer functions where required.
4682         * modules/timer-time: Depend on threadlib to
4683         pull in the appropriate library to link.
4684
4685 2012-03-10  Bruno Haible  <bruno@clisp.org>
4686
4687         log* tests: More tests.
4688         * tests/test-log.h: New file.
4689         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4690         (main): Invoke test_function.
4691         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4692         (main): Invoke test_function.
4693         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4694         (main): Invoke test_function.
4695         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4696         tests/randomd.c.
4697         (Makefile.am): Add randomd.c to test_log_SOURCES.
4698         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4699         tests/randomf.c.
4700         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4701         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4702         tests/randoml.c.
4703         (Depends-on): Add 'float'.
4704         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4705
4706 2012-03-09  Bruno Haible  <bruno@clisp.org>
4707
4708         logl: Work around OSF/1 5.1 bug.
4709         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4710         * lib/logl.c (logl): If logl exists, use it and provide just the
4711         workaround.
4712         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4713         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4715         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4716         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4717         (Depends-on): Update conditions.
4718         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4719
4720 2012-03-09  Bruno Haible  <bruno@clisp.org>
4721
4722         logf: Work around OSF/1 5.1 bug.
4723         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4724         * lib/logf.c (logf): If logf exists, use it and provide just the
4725         workaround.
4726         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4727         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4729         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4730         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4731         (Depends-on): Update conditions.
4732         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4733
4734 2012-03-09  Bruno Haible  <bruno@clisp.org>
4735
4736         log: Work around OSF/1 5.1 bug.
4737         * lib/math.in.h (log): New declaration.
4738         * lib/log.c: New file.
4739         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4740         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4741         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4743         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4744         * modules/log (Files): Add lib/log.c.
4745         (Depends-on): Add math.
4746         (configure.ac): If REPLACE_LOG is 1, compile an override.
4747         * tests/test-math-c++.cc: Check the declaration of log.
4748         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4749
4750 2012-03-09  Jim Meyering  <meyering@redhat.com>
4751
4752         readtokens.c: adjust wording in a comment
4753         * lib/readtokens.c: Insert omitted "that" in a comment.
4754
4755 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         modechange: add notations +40, 00440, etc.
4758         * lib/modechange.c (mode_compile): Support new notations
4759         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4760
4761 2012-03-08  Bruno Haible  <bruno@clisp.org>
4762
4763         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4764         * m4/exp2l-ieee.m4: New file.
4765         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4766         test whether exp2l works with a NaN argument and with a negative
4767         infinity argument. Replace it if not.
4768         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4770         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4771         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4772         (Depends-on): Update conditions.
4773         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4774         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4775         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4776
4777         Tests for module 'exp2l-ieee'.
4778         * modules/exp2l-ieee-tests: New file.
4779         * tests/test-exp2l-ieee.c: New file.
4780
4781         New module 'exp2l-ieee'.
4782         * modules/exp2l-ieee: New file.
4783
4784         Tests for module 'exp2-ieee'.
4785         * modules/exp2-ieee-tests: New file.
4786         * tests/test-exp2-ieee.c: New file.
4787
4788         New module 'exp2-ieee'.
4789         * modules/exp2-ieee: New file.
4790
4791         Tests for module 'exp2f-ieee'.
4792         * modules/exp2f-ieee-tests: New file.
4793         * tests/test-exp2f-ieee.c: New file.
4794         * tests/test-exp2-ieee.h: New file.
4795
4796         New module 'exp2f-ieee'.
4797         * modules/exp2f-ieee: New file.
4798
4799 2012-03-08  Bruno Haible  <bruno@clisp.org>
4800
4801         Tests for module 'exp2l'.
4802         * modules/exp2l-tests: New file.
4803         * tests/test-exp2l.c: New file.
4804
4805         New module 'exp2l'.
4806         * lib/math.in.h (exp2l): New declaration.
4807         * lib/exp2l.c: New file.
4808         * lib/expl-table.c: New file, extracted from lib/expl.c.
4809         * lib/expl.c (gl_expl_table): New declaration.
4810         (expl): Remove expl_table. Update reference.
4811         * m4/exp2l.m4: New file.
4812         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4814         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4815         * modules/exp2l: New file.
4816         * modules/expl (Files): Add lib/expl-table.c.
4817         (configure.ac): Compile also expl-table.c.
4818         * tests/test-math-c++.cc: Check the declaration of exp2l.
4819         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4820         problem.
4821
4822 2012-03-08  Bruno Haible  <bruno@clisp.org>
4823
4824         Tests for module 'exp2f'.
4825         * modules/exp2f-tests: New file.
4826         * tests/test-exp2f.c: New file.
4827
4828         New module 'exp2f'.
4829         * lib/math.in.h (exp2f): New declaration.
4830         * lib/exp2f.c: New file.
4831         * m4/exp2f.m4: New file.
4832         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4834         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4835         * modules/exp2f: New file.
4836         * tests/test-math-c++.cc: Check the declaration of exp2f.
4837         * doc/posix-functions/exp2f.texi: Mention the new module and the
4838         IRIX problem.
4839
4840 2012-03-08  Bruno Haible  <bruno@clisp.org>
4841
4842         Tests for module 'exp2'.
4843         * modules/exp2-tests: New file.
4844         * tests/test-exp2.c: New file.
4845         * tests/test-exp2.h: New file.
4846
4847         New module 'exp2'.
4848         * lib/math.in.h (exp2): New declaration.
4849         * lib/exp2.c: New file.
4850         * m4/exp2.m4: New file.
4851         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4853         REPLACE_EXP2.
4854         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4855         REPLACE_EXP2.
4856         * modules/exp2: New file.
4857         * tests/test-math-c++.cc: Check the declaration of exp2.
4858         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4859         and OpenBSD problems.
4860
4861 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4862
4863         savedir: fix comment typo
4864         * lib/savedir.c (savedirstream): Fix typo in comment.
4865
4866 2012-03-08  Bruno Haible  <bruno@clisp.org>
4867
4868         test-readtokens.c: use const; remove unwarranted cast
4869         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4870
4871 2012-03-08  Bruno Haible  <bruno@clisp.org>
4872
4873         fmal: Avoid compilation error on AIX.
4874         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4875         AIX 5.2..7.1.
4876
4877 2012-03-08  Bruno Haible  <bruno@clisp.org>
4878
4879         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4880         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4881         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4882         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4883         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4884         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4885         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4886
4887 2012-03-08  Bruno Haible  <bruno@clisp.org>
4888
4889         remainderf: Override buggy system function on IRIX 6.5.
4890         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4891         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4892         when it exists.
4893         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4894
4895 2012-03-08  Jim Meyering  <meyering@redhat.com>
4896
4897         test-readtokens.c: avoid const-related compilation warnings
4898         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4899
4900 2012-03-07  Jim Meyering  <meyering@redhat.com>
4901             Bruno Haible  <bruno@clisp.org>
4902
4903         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4904         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4905         tests/randomd.c.
4906         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4907         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4908         tests/randoml.c.
4909         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4910
4911 2012-03-07  Bruno Haible  <bruno@clisp.org>
4912
4913         expm1l: Avoid compilation error on AIX.
4914         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4915         AIX 5.2..7.1.
4916
4917 2012-03-07  Bruno Haible  <bruno@clisp.org>
4918
4919         expm1l: Don't override undeclared system function on IRIX 6.5.
4920         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4921         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4922         it exists. Set HAVE_DECL_EXPM1L.
4923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4924         HAVE_EXPM1L.
4925         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4926         HAVE_EXPM1L.
4927         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4928
4929 2012-03-07  Bruno Haible  <bruno@clisp.org>
4930
4931         remainderl: Don't override undeclared system function on IRIX 6.5.
4932         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4933         HAVE_REMAINDERL.
4934         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4935         declared when it exists. Set HAVE_DECL_REMAINDERL.
4936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4937         not HAVE_REMAINDERL.
4938         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4939         HAVE_REMAINDERL.
4940         * doc/posix-functions/remainderl.texi: Mention missing declaration
4941         problem.
4942
4943 2012-03-07  Bruno Haible  <bruno@clisp.org>
4944
4945         rintf: Don't override undeclared system function on IRIX 6.5.
4946         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4947         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4948         exists. Set HAVE_DECL_RINTF.
4949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4950         HAVE_RINTF.
4951         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4952         HAVE_RINTF.
4953         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4954
4955 2012-03-07  Bruno Haible  <bruno@clisp.org>
4956
4957         roundl: Avoid compilation error on AIX.
4958         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4959         AIX 5.2..7.1.
4960
4961 2012-03-07  Bruno Haible  <bruno@clisp.org>
4962
4963         roundl: Don't override undeclared system function on IRIX 6.5.
4964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4965         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4966         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4967         * modules/roundl (configure.ac): For replacement code, test
4968         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4969         (Depends-on): Update conditions.
4970         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4971
4972 2012-03-07  Bruno Haible  <bruno@clisp.org>
4973
4974         roundf: Don't override undeclared system function on IRIX 6.5.
4975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4976         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4977         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4978         * modules/roundf (configure.ac): For replacement code, test
4979         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4980         (Depends-on): Update conditions.
4981         * modules/roundf-ieee (Depends-on): Update conditions.
4982         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4983
4984 2012-03-07  Bruno Haible  <bruno@clisp.org>
4985
4986         round: Don't override undeclared system function on IRIX 6.5.
4987         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4988         argument.
4989         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4990         also when it is not declared. Set HAVE_ROUND. For replacement code,
4991         test HAVE_ROUND, not HAVE_DECL_ROUND.
4992         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4993         not HAVE_DECL_ROUND.
4994         (Depends-on): Update conditions.
4995         * modules/round-ieee (Depends-on): Update conditions.
4996         * doc/posix-functions/round.texi: Mention the IRIX problem.
4997
4998 2012-03-07  Bruno Haible  <bruno@clisp.org>
4999
5000         copysignf: Don't override undeclared system function on IRIX 6.5.
5001         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5002         HAVE_COPYSIGNF.
5003         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5004         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5006         not HAVE_COPYSIGNF.
5007         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5008         HAVE_COPYSIGNF.
5009         * doc/posix-functions/copysignf.texi: Mention missing declaration
5010         problem.
5011
5012 2012-03-07  Jim Meyering  <meyering@redhat.com>
5013
5014         readtokens: add tests
5015         * modules/readtokens-tests: New file.
5016         * tests/test-readtokens.c: New file.
5017
5018 2012-03-07  Jim Meyering  <meyering@redhat.com>
5019
5020         quotearg: the module must now include quote.h
5021         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5022         So must the module.
5023         * modules/quotearg (Files): Add quote.h.
5024
5025 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         readtokens: avoid core dumps with unusual calling patterns
5028         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5029         * lib/readtokens.c: Include limits.h.
5030         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5031         (readtoken): Don't cache the delimiters; the cache code was buggy
5032         if !delim && saved_delim, or if the new n_delim differs from the old.
5033         Also, it wasn't thread-safe.
5034
5035 2012-03-07  Bruno Haible  <bruno@clisp.org>
5036
5037         quote: Adhere to common module description layout.
5038         * modules/quote (Makefile.am): Add back empty section.
5039
5040 2012-03-06  Akim Demaille  <demaille@gostai.com>
5041
5042         quote: fuse into quotearg
5043         This patch is made for the benefit of Bison.
5044         quote does not leave the choice of the quoting style to the user.
5045         quoting_style provides poor customizability, yet quoting_options,
5046         which is very rich, is hidden inside quotearg.c.  So in order to
5047         allow quote customization, move its implementation to quotearg.c.
5048         * lib/quote.c: Remove.
5049         * modules/quote: Adjust.
5050         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5051         warning: provide all the members of literal structs.
5052         (quote_quoting_options): New.
5053         (quote, quote_n): Import implementation from quote.c.
5054         * lib/quote.h: Import the comments from quote.c.
5055         (quote_quoting_options): New.
5056
5057 2012-03-06  Bruno Haible  <bruno@clisp.org>
5058
5059         Tests for module 'expm1l-ieee'.
5060         * modules/expm1l-ieee-tests: New file.
5061         * tests/test-expm1l-ieee.c: New file.
5062
5063         New module 'expm1l-ieee'.
5064         * modules/expm1l-ieee: New file.
5065
5066         Tests for module 'expm1f-ieee'.
5067         * modules/expm1f-ieee-tests: New file.
5068         * tests/test-expm1f-ieee.c: New file.
5069
5070         New module 'expm1f-ieee'.
5071         * modules/expm1f-ieee: New file.
5072
5073         Tests for module 'expm1-ieee'.
5074         * modules/expm1-ieee-tests: New file.
5075         * tests/test-expm1-ieee.c: New file.
5076         * tests/test-expm1-ieee.h: New file.
5077
5078         New module 'expm1-ieee'.
5079         * modules/expm1-ieee: New file.
5080         * m4/expm1-ieee.m4: New file.
5081         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5082         whether expm1 works with a minus zero argument. Replace it if not.
5083         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5085         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5086         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5087         (Depends-on): Update conditions.
5088         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5089         AIX problem.
5090
5091 2012-03-06  Bruno Haible  <bruno@clisp.org>
5092
5093         Work around expm1f bug on IRIX 6.5.
5094         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5095         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5096         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5097         not work.
5098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5099         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5100         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5101         (Depends-on): Update conditions.
5102         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5103
5104 2012-03-06  Bruno Haible  <bruno@clisp.org>
5105
5106         Tests for module 'expm1l'.
5107         * modules/expm1l-tests: New file.
5108         * tests/test-expm1l.c: New file.
5109
5110         New module 'expm1l'.
5111         * lib/math.in.h (expm1l): New declaration.
5112         * lib/expm1l.c: New file.
5113         * m4/expm1l.m4: New file.
5114         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5116         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5117         * modules/expm1l: New file.
5118         * tests/test-math-c++.cc: Check the declaration of expm1l.
5119         * doc/posix-functions/expm1l.texi: Mention the new module.
5120
5121 2012-03-06  Bruno Haible  <bruno@clisp.org>
5122
5123         Tests for module 'expm1f'.
5124         * modules/expm1f-tests: New file.
5125         * tests/test-expm1f.c: New file.
5126
5127         New module 'expm1f'.
5128         * lib/math.in.h (expm1f): New declaration.
5129         * lib/expm1f.c: New file.
5130         * m4/expm1f.m4: New file.
5131         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5133         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5134         * modules/expm1f: New file.
5135         * tests/test-math-c++.cc: Check the declaration of expm1f.
5136         * doc/posix-functions/expm1f.texi: Mention the new module.
5137
5138 2012-03-06  Bruno Haible  <bruno@clisp.org>
5139
5140         Tests for module 'expm1'.
5141         * modules/expm1-tests: New file.
5142         * tests/test-expm1.c: New file.
5143         * tests/test-expm1.h: New file.
5144
5145         New module 'expm1'.
5146         * lib/math.in.h (expm1): New declaration.
5147         * lib/expm1.c: New file.
5148         * m4/expm1.m4: New file.
5149         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5151         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5152         * modules/expm1: New file.
5153         * tests/test-math-c++.cc: Check the declaration of expm1.
5154         * doc/posix-functions/expm1.texi: Mention the new module.
5155
5156 2012-03-06  Bruno Haible  <bruno@clisp.org>
5157
5158         math: Ensure declarations of math functions.
5159         * modules/acosf (Depends-on): Add 'extensions'.
5160         * modules/asinf (Depends-on): Likewise.
5161         * modules/atan2f (Depends-on): Likewise.
5162         * modules/atanf (Depends-on): Likewise.
5163         * modules/cbrt (Depends-on): Likewise.
5164         * modules/cbrtf (Depends-on): Likewise.
5165         * modules/cbrtl (Depends-on): Likewise.
5166         * modules/copysignf (Depends-on): Likewise.
5167         * modules/copysignl (Depends-on): Likewise.
5168         * modules/cosf (Depends-on): Likewise.
5169         * modules/coshf (Depends-on): Likewise.
5170         * modules/expf (Depends-on): Likewise.
5171         * modules/fabsf (Depends-on): Likewise.
5172         * modules/fabsl (Depends-on): Likewise.
5173         * modules/fmaf (Depends-on): Likewise.
5174         * modules/fmal (Depends-on): Likewise.
5175         * modules/fmodf (Depends-on): Likewise.
5176         * modules/fmodl (Depends-on): Likewise.
5177         * modules/frexpf (Depends-on): Likewise.
5178         * modules/frexpl (Depends-on): Likewise.
5179         * modules/hypot (Depends-on): Likewise.
5180         * modules/hypotf (Depends-on): Likewise.
5181         * modules/hypotl (Depends-on): Likewise.
5182         * modules/ldexpf (Depends-on): Likewise.
5183         * modules/ldexpl (Depends-on): Likewise.
5184         * modules/log10f (Depends-on): Likewise.
5185         * modules/log10l (Depends-on): Likewise.
5186         * modules/log1p (Depends-on): Likewise.
5187         * modules/logb (Depends-on): Likewise.
5188         * modules/logf (Depends-on): Likewise.
5189         * modules/modff (Depends-on): Likewise.
5190         * modules/modfl (Depends-on): Likewise.
5191         * modules/powf (Depends-on): Likewise.
5192         * modules/remainderf (Depends-on): Likewise.
5193         * modules/remainderl (Depends-on): Likewise.
5194         * modules/rintf (Depends-on): Likewise.
5195         * modules/rintl (Depends-on): Likewise.
5196         * modules/sinf (Depends-on): Likewise.
5197         * modules/sinhf (Depends-on): Likewise.
5198         * modules/sqrtf (Depends-on): Likewise.
5199         * modules/tanf (Depends-on): Likewise.
5200         * modules/tanhf (Depends-on): Likewise.
5201         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5202         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5203         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5204         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5205         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5206         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5207         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5208         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5209         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5210         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5211         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5212         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5213         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5214         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5215         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5216         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5217         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5218         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5219         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5220         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5221         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5222         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5223         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5224         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5226         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5227         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5228         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5229         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5230         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5231         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5232         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5233         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5234         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5235         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5236         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5237         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5238         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5239         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5240         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5241         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5242
5243 2012-03-06  Bruno Haible  <bruno@clisp.org>
5244
5245         math: Update module names in warnings.
5246         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5247         tanl): Use specific module name in warn-on-use warning.
5248
5249 2012-03-06  Bruno Haible  <bruno@clisp.org>
5250
5251         expl: Simplify computation.
5252         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5253
5254 2012-03-05  Bruno Haible  <bruno@clisp.org>
5255
5256         exp* tests: More tests.
5257         * tests/test-exp.h: New file.
5258         * tests/test-exp.c: Include <float.h> and test-exp.h.
5259         (main): Invoke test_function.
5260         * tests/test-expf.c: Include <float.h> and test-exp.h.
5261         (main): Invoke test_function.
5262         * tests/test-expl.c: Include <float.h> and test-exp.h.
5263         (main): Invoke test_function.
5264         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5265         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5266         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5267         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5268         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5269         (Depends-on): Add 'float'.
5270         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5271
5272         expl: Fix precision of computed result.
5273         * lib/expl.c: Completely rewritten.
5274         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5275         (Maintainer): Add me.
5276         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5277
5278 2012-03-05  Bruno Haible  <bruno@clisp.org>
5279
5280         cbrt* tests: More tests.
5281         * tests/test-cbrt.h: New file.
5282         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5283         (main): Invoke test_function.
5284         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5285         (main): Invoke test_function.
5286         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5287         (main): Invoke test_function.
5288         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5289         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5290         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5291         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5292         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5293         (Depends-on): Add 'float'.
5294         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5295
5296 2012-03-05  Bruno Haible  <bruno@clisp.org>
5297
5298         hypot* tests: More tests.
5299         * tests/test-hypot.h: New file, partially extracted from
5300         tests/test-hypotl.c.
5301         * tests/test-hypot.c: Include test-hypot.h.
5302         (main): Invoke test_function.
5303         * tests/test-hypotf.c: Include test-hypot.h.
5304         (main): Invoke test_function.
5305         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5306         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5307         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5308         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5309         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5310         tests/randomf.c.
5311         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5312         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5313         tests/randoml.c.
5314         (Depends-on): Add 'fpucw', 'float'.
5315         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5316
5317 2012-03-05  Bruno Haible  <bruno@clisp.org>
5318
5319         fpucw: Doc about FreeBSD.
5320         * lib/fpucw.h: Mention FreeBSD in comments.
5321
5322 2012-03-04  Bruno Haible  <bruno@clisp.org>
5323
5324         sqrt* tests: More tests.
5325         * tests/test-sqrt.h: New file.
5326         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5327         (main): Invoke test_function.
5328         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5329         (main): Invoke test_function.
5330         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5331         (main): Invoke test_function.
5332         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5333         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5334         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5335         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5336         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5337         (Depends-on): Add 'float'.
5338         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5339
5340 2012-03-04  Bruno Haible  <bruno@clisp.org>
5341
5342         remainder* tests: More tests.
5343         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5344         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5345         (main): Invoke test_function.
5346         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5347         (main): Invoke test_function.
5348         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5349         (main): Invoke test_function.
5350         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5351         tests/randomd.c.
5352         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5353         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5354         tests/randomf.c.
5355         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5356         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5357         tests/randoml.c.
5358         (Depends-on): Add 'float'.
5359         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5360
5361 2012-03-04  Bruno Haible  <bruno@clisp.org>
5362
5363         remainder, remainderf, remainderl: Fix computation for large quotients.
5364         * lib/remainder.c: Completely rewritten.
5365         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5366         USE_FLOAT.
5367         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5368         USE_LONG_DOUBLE.
5369         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5370         isnand, isinf. Remove round, fma.
5371         * modules/remainderf (Files): Add lib/remainder.c.
5372         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5373         Remove roundf, fmaf.
5374         * modules/remainderl (Files): Add lib/remainder.c.
5375         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5376         isinf. Remove roundl, fmal.
5377         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5378         REMAINDER_LIBM.
5379         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5380         REMAINDERF_LIBM.
5381         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5382         REMAINDERL_LIBM.
5383
5384 2012-03-04  Bruno Haible  <bruno@clisp.org>
5385
5386         fmod* tests: More tests.
5387         * tests/test-fmod.h (my_ldexp): New function.
5388         (test_function): Reduce amount of random numbers to test. Add tests
5389         of very large quotients x / y.
5390         * tests/test-fmod.c (MAX_EXP): New macro.
5391         * tests/test-fmodf.c (MAX_EXP): Likewise.
5392         * tests/test-fmodl.c (MAX_EXP): Likewise.
5393
5394 2012-03-04  Bruno Haible  <bruno@clisp.org>
5395
5396         fmod, fmodl: Fix computation for large quotients x / y.
5397         * lib/fmod.c: Completely rewritten.
5398         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5399         USE_LONG_DOUBLE.
5400         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5401         isnand. Remove fma.
5402         * modules/fmodl (Files): Add lib/fmod.c.
5403         (Depends-on): Add float, isfinite, signbit, fabsl,
5404         frexpl, ldexpl, isnanl. Remove fma.
5405         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5406         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5407
5408 2012-03-03  Bruno Haible  <bruno@clisp.org>
5409
5410         fmod* tests: More tests.
5411         * tests/test-fmod.h: New file.
5412         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5413         (main): Invoke test_function.
5414         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5415         (main): Invoke test_function.
5416         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5417         (main): Invoke test_function.
5418         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5419         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5420         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5421         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5422         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5423         (Depends-on): Add 'float'.
5424         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5425
5426 2012-03-03  Bruno Haible  <bruno@clisp.org>
5427
5428         rint* tests: More tests.
5429         * tests/test-rint.h: New file, partially extracted from
5430         tests/test-rintl.c.
5431         * tests/test-rint.c: Include test-rint.h.
5432         (main): Invoke test_function.
5433         * tests/test-rintf.c: Include test-rint.h.
5434         (main): Invoke test_function.
5435         * tests/test-rintl.c: Include test-rint.h.
5436         (main): Invoke test_function.
5437         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5438         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5439         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5440         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5441         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5442         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5443
5444 2012-03-03  Bruno Haible  <bruno@clisp.org>
5445
5446         modf* tests: More tests.
5447         * tests/test-modf.h: New file.
5448         * tests/test-modf.c: Include <float.h> and test-modf.h.
5449         (main): Invoke test_function.
5450         * tests/test-modff.c: Include <float.h> and test-modf.h.
5451         (main): Invoke test_function.
5452         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5453         (main): Invoke test_function.
5454         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5455         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5456         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5457         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5458         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5459         (Depends-on): Add 'float'.
5460         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5461
5462 2012-03-03  Bruno Haible  <bruno@clisp.org>
5463
5464         fabs* tests: More tests.
5465         * tests/test-fabs.h: New file, partially extracted from
5466         tests/test-fabsl.c.
5467         * tests/test-fabs.c (RANDOM): New macro.
5468         * tests/test-fabsf.c (RANDOM): New macro.
5469         * tests/test-fabsl.c (RANDOM): New macro.
5470         * modules/fabs-tests (Files): Add tests/randomd.c.
5471         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5472         * modules/fabsf-tests (Files): Add tests/randomf.c.
5473         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5474         * modules/fabsl-tests (Files): Add tests/randoml.c.
5475         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5476
5477 2012-03-03  Bruno Haible  <bruno@clisp.org>
5478
5479         ldexp* tests: More tests.
5480         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5481         * tests/test-ldexp.c (RANDOM): New macro.
5482         * tests/test-ldexpf.c (RANDOM): New macro.
5483         * tests/test-ldexpl.c (RANDOM): New macro.
5484         * modules/ldexp-tests (Files): Add tests/randomd.c.
5485         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5486         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5487         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5488         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5489         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5490
5491 2012-03-03  Bruno Haible  <bruno@clisp.org>
5492
5493         frexp* tests: More tests.
5494         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5495         * tests/test-frexp.c (RANDOM): New macro.
5496         * tests/test-frexpf.c (RANDOM): New macro.
5497         * tests/test-frexpl.c (RANDOM): New macro.
5498         * modules/frexp-tests (Files): Add tests/randomd.c.
5499         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5500         * modules/frexpf-tests (Files): Add tests/randomf.c.
5501         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5502         * modules/frexpl-tests (Files): Add tests/randoml.c.
5503         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5504
5505 2012-03-03  Bruno Haible  <bruno@clisp.org>
5506
5507         Support for pseudo-random numbers in tests.
5508         * tests/randomf.c: New file.
5509         * tests/randomd.c: New file.
5510         * tests/randoml.c: New file.
5511         * tests/macros.h (randomf, randomd, randoml): New declarations.
5512
5513 2012-03-03  Bruno Haible  <bruno@clisp.org>
5514
5515         frexp* tests: Refactor.
5516         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5517         * tests/test-frexp.c: Include and use it.
5518         * tests/test-frexpf.c: Likewise.
5519         * tests/test-frexpl.c: Likewise.
5520         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5521         * modules/frexpf-tests (Files): Likewise.
5522         * modules/frexpl-tests (Files): Likewise.
5523
5524 2012-03-02  Jim Meyering  <meyering@redhat.com>
5525
5526         maint: don't specify XZ_OPT=-9ev in dist-related rule
5527         Using xz's -9 option is warranted only if you have a very large
5528         tarball (see xz's documentation for the sizes vs. presets), and
5529         requires 64MiB of memory at decompression time.
5530         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5531         Automake's default of just "-e" is fine.  Override on a
5532         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5533
5534 2012-03-01  Eric Blake  <eblake@redhat.com>
5535
5536         maint.mk: allow announcement for non-gnulib project
5537         * maint.mk (announcement): Skip gnulib version if not used.
5538
5539 2012-03-01  Jim Meyering  <meyering@redhat.com>
5540
5541         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5542         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5543         envvar settings cannot interfere.  Otherwise, setting envvars like
5544         prohibit=foo require=bar, etc. would cause spurious test failures.
5545
5546 2012-03-01  Eric Blake  <eblake@redhat.com>
5547
5548         maint.mk: add per-line exclusions to prohibitions
5549         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5550         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5551         (sc_const_long_option): Use it.
5552
5553 2012-03-01  Bruno Haible  <bruno@clisp.org>
5554
5555         Tests for module 'expl-ieee'.
5556         * modules/expl-ieee-tests: New file.
5557         * tests/test-expl-ieee.c: New file.
5558
5559         New module 'expl-ieee'.
5560         * modules/expl-ieee: New file.
5561
5562         Tests for module 'exp-ieee'.
5563         * modules/exp-ieee-tests: New file.
5564         * tests/test-exp-ieee.c: New file.
5565
5566         New module 'exp-ieee'.
5567         * modules/exp-ieee: New file.
5568
5569         Tests for module 'expf-ieee'.
5570         * modules/expf-ieee-tests: New file.
5571         * tests/test-expf-ieee.c: New file.
5572         * tests/test-exp-ieee.h: New file.
5573
5574         New module 'expf-ieee'.
5575         * modules/expf-ieee: New file.
5576
5577 2012-02-29  Bruno Haible  <bruno@clisp.org>
5578
5579         cbrtl-ieee: Work around test failure on IRIX 6.5.
5580         * m4/cbrtl-ieee.m4: New file.
5581         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5582         test whether cbrtl works with a minus zero argument. Replace it if not.
5583         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5585         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5586         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5587         (Depends-on): Update conditions.
5588         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5589         m4/signbit.m4.
5590         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5591         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5592         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5593
5594         Tests for module 'cbrtl-ieee'.
5595         * modules/cbrtl-ieee-tests: New file.
5596         * tests/test-cbrtl-ieee.c: New file.
5597
5598         New module 'cbrtl-ieee'.
5599         * modules/cbrtl-ieee: New file.
5600
5601         Tests for module 'cbrt-ieee'.
5602         * modules/cbrt-ieee-tests: New file.
5603         * tests/test-cbrt-ieee.c: New file.
5604
5605         New module 'cbrt-ieee'.
5606         * modules/cbrt-ieee: New file.
5607
5608         Tests for module 'cbrtf-ieee'.
5609         * modules/cbrtf-ieee-tests: New file.
5610         * tests/test-cbrtf-ieee.c: New file.
5611         * tests/test-cbrt-ieee.h: New file.
5612
5613         New module 'cbrtf-ieee'.
5614         * modules/cbrtf-ieee: New file.
5615
5616 2012-02-29  Bruno Haible  <bruno@clisp.org>
5617
5618         cbrtf: Work around bug in IRIX 6.5 system function.
5619         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5620         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5621         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5622         work.
5623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5624         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5625         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5626         (Depends-on): Update conditions.
5627         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5628
5629 2012-02-29  Bruno Haible  <bruno@clisp.org>
5630
5631         Tests for module 'cbrtl'.
5632         * modules/cbrtl-tests: New file.
5633         * tests/test-cbrtl.c: New file.
5634
5635         New module 'cbrtl'.
5636         * lib/math.in.h (cbrtl): New declaration.
5637         * lib/cbrtl.c: New file.
5638         * m4/cbrtl.m4: New file.
5639         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5641         HAVE_DECL_CBRTL.
5642         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5643         HAVE_DECL_CBRTL.
5644         * modules/cbrtl: New file.
5645         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5646         * doc/posix-functions/cbrtl.texi: Mention the new module.
5647
5648 2012-02-29  Bruno Haible  <bruno@clisp.org>
5649
5650         Tests for module 'cbrtf'.
5651         * modules/cbrtf-tests: New file.
5652         * tests/test-cbrtf.c: New file.
5653
5654         New module 'cbrtf'.
5655         * lib/math.in.h (cbrtf): New declaration.
5656         * lib/cbrtf.c: New file.
5657         * m4/cbrtf.m4: New file.
5658         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5660         HAVE_DECL_CBRTF.
5661         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5662         HAVE_DECL_CBRTF.
5663         * modules/cbrtf: New file.
5664         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5665         * doc/posix-functions/cbrtf.texi: Mention the new module.
5666
5667 2012-02-29  Bruno Haible  <bruno@clisp.org>
5668
5669         cbrt: Provide replacement on MSVC and Minix.
5670         * lib/math.in.h (cbrt): New declaration.
5671         * lib/cbrt.c: New file.
5672         * m4/cbrt.m4: New file.
5673         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5675         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5676         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5677         (Depends-on): Add dependencies.
5678         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5679         * tests/test-math-c++.cc: Check the declaration of cbrt.
5680         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5681         replacement.
5682
5683 2012-02-29  Bruno Haible  <bruno@clisp.org>
5684
5685         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5686         * m4/hypotl-ieee.m4: New file.
5687         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5688         test whether hypotl works with mixed NaN and Infinity arguments.
5689         Replace it if not.
5690         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5692         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5693         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5694         (Depends-on): Update conditions.
5695         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5696         (Depends-on): Add hypot-ieee.
5697         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5698         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5699
5700         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5701         * m4/hypotf-ieee.m4: New file.
5702         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5703         test whether hypotf works with mixed NaN and Infinity arguments.
5704         Replace it if not.
5705         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5706         (Depends-on): Add hypot-ieee.
5707         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5708         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5709
5710         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5711         * lib/math.in.h (hypot): New declaration.
5712         * lib/hypot.c: New file.
5713         * m4/hypot-ieee.m4: New file.
5714         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5715         whether hypot works with mixed NaN and Infinity arguments. Replace it
5716         if not.
5717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5718         REPLACE_HYPOT.
5719         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5720         * modules/hypot (Files): Add lib/hypot.c.
5721         (Depends-on): Add dependencies.
5722         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5723         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5724         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5725         * tests/test-math-c++.cc: Check the declaration of hypot.
5726         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5727
5728         Tests for module 'hypotl-ieee'.
5729         * modules/hypotl-ieee-tests: New file.
5730         * tests/test-hypotl-ieee.c: New file.
5731
5732         New module 'hypotl-ieee'.
5733         * modules/hypotl-ieee: New file.
5734
5735         Tests for module 'hypot-ieee'.
5736         * modules/hypot-ieee-tests: New file.
5737         * tests/test-hypot-ieee.c: New file.
5738
5739         New module 'hypot-ieee'.
5740         * modules/hypot-ieee: New file.
5741
5742         Tests for module 'hypotf-ieee'.
5743         * modules/hypotf-ieee-tests: New file.
5744         * tests/test-hypotf-ieee.c: New file.
5745         * tests/test-hypot-ieee.h: New file.
5746
5747         New module 'hypotf-ieee'.
5748         * modules/hypotf-ieee: New file.
5749
5750 2012-02-29  Bruno Haible  <bruno@clisp.org>
5751
5752         Remove unused variables.
5753         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5754         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5755         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5756         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5757
5758 2012-02-29  Eric Blake  <eblake@redhat.com>
5759
5760         termios: fix pid_t always, not just for tcgetsid
5761         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5762         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5763         just when building tcgetsid.
5764
5765 2012-02-29  Bruno Haible  <bruno@clisp.org>
5766
5767         Tests for module 'hypotl'.
5768         * modules/hypotl-tests: New file.
5769         * tests/test-hypotl.c: New file.
5770
5771         New module 'hypotl'.
5772         * lib/math.in.h (hypotl): New declaration.
5773         * lib/hypotl.c: New file.
5774         * m4/hypotl.m4: New file.
5775         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5777         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5778         * modules/hypotl: New file.
5779         * tests/test-math-c++.cc: Check the hypotl declaration.
5780         * doc/posix-functions/hypotl.texi: Mention the new module.
5781
5782 2012-02-29  Eric Blake  <eblake@redhat.com>
5783
5784         tcgetsid: fix cygwin header bug
5785         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5786
5787         docs: update cygwin progress
5788         * doc/posix-functions/llround.texi (llround): Added in cygwin
5789         1.7.8.
5790         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5791         * doc/glibc-functions/program_invocation_name.texi
5792         (program_invocation_name): Likewise.
5793         * doc/glibc-functions/program_invocation_short_name.texi
5794         (program_invocation_short_name): Likewise.
5795         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5796         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5797         Likewise.
5798         * doc/posix-functions/pthread_spin_destroy.texi
5799         (pthread_spin_destroy): Added in cygwin 1.7.10.
5800         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5801         Likewise.
5802         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5803         Likewise.
5804         * doc/posix-functions/pthread_spin_trylock.texi
5805         (pthread_spin_trylock): Likewise.
5806         * doc/posix-functions/pthread_spin_unlock.texi
5807         (pthread_spin_unlock): Likewise.
5808         * doc/posix-functions/pthread_setschedprio.texi
5809         (pthread_setschedprio): Likewise.
5810         * doc/posix-functions/pthread_attr_getstack.texi
5811         (pthread_attr_getstack): Likewise.
5812         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5813         (pthread_attr_getstackaddr): Likewise.
5814         * doc/glibc-functions/pthread_getattr_np.texi
5815         (pthread_getattr_np): Likewise.
5816         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5817         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5818         * doc/posix-functions/clock_settime.texi (clock_settime):
5819         Likewise.
5820         * doc/posix-functions/pthread_attr_getguardsize.texi
5821         (pthread_attr_getguardsize): Likewise.
5822         * doc/posix-functions/pthread_attr_setguardsize.texi
5823         (pthread_attr_setguardsize): Likewise.
5824         * doc/posix-functions/pthread_attr_setstack.texi
5825         (pthread_attr_setstack): Likewise.
5826         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5827         (pthread_attr_setstackaddr): Likewise.
5828         * doc/posix-functions/clock_getcpuclockid.texi
5829         (clock_getcpuclockid): Likewise.
5830         * doc/posix-functions/pthread_getcpuclockid.texi
5831         (pthread_getcpuclockid): Likewise.
5832         * doc/glibc-functions/error.texi (error): Likewise.
5833         * doc/glibc-functions/error_at_line.texi (error_at_line):
5834         Likewise.
5835         * doc/glibc-functions/error_message_count.texi
5836         (error_message_count): Likewise.
5837         * doc/glibc-functions/error_one_per_line.texi
5838         (error_one_per_line): Likewise.
5839         * doc/glibc-functions/error_print_progname.texi
5840         (error_print_progname): Likewise.
5841         * doc/posix-functions/pthread_condattr_getclock.texi
5842         (pthread_condattr_getclock): Likewise.
5843         * doc/posix-functions/pthread_condattr_setclock.texi
5844         (pthread_condattr_setclock): Likewise.
5845         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5846         Likewise.
5847         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5848         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5849         * doc/glibc-functions/get_current_dir_name.texi
5850         (get_current_dir_name): Likewise.
5851         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5852         Likewise.
5853         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5854         wrong return type.
5855         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5856         1.7.11.
5857
5858 2012-02-29  Bruno Haible  <bruno@clisp.org>
5859
5860         Tests for module 'hypotf'.
5861         * modules/hypotf-tests: New file.
5862         * tests/test-hypotf.c: New file.
5863
5864         New module 'hypotf'.
5865         * lib/math.in.h (hypotf): New declaration.
5866         * lib/hypotf.c: New file.
5867         * m4/hypotf.m4: New file.
5868         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5870         REPLACE_HYPOTF.
5871         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5872         REPLACE_HYPOTF.
5873         * modules/hypotf: New file.
5874         * tests/test-math-c++.cc: Check the hypotf declaration.
5875         * doc/posix-functions/hypotf.texi: Mention the new module.
5876
5877         hypot: Prepare for hypotf module.
5878         * m4/hypot.m4: New file.
5879         * modules/hypot (Files): Add m4/hypot.m4.
5880         (configure.ac): Invoke gl_FUNC_HYPOT.
5881
5882 2012-02-29  Bruno Haible  <bruno@clisp.org>
5883
5884         hypot tests: More tests.
5885         * tests/test-hypot.c: Include <float.h>.
5886         (main): Add tests about overflow and underflow.
5887
5888 2012-02-29  Bruno Haible  <bruno@clisp.org>
5889
5890         math code: Add comments.
5891         * lib/acosl.c: Add comment about related glibc source files.
5892         * lib/asinl.c: Likewise.
5893         * lib/atanl.c: Likewise.
5894         * lib/expl.c: Likewise.
5895         * lib/logl.c: Likewise.
5896         * lib/sincosl.c: Likewise.
5897         * lib/sinl.c: Likewise.
5898         * lib/tanl.c: Likewise.
5899         * lib/trigl.c: Likewise.
5900         * lib/cosl.c: Likewise. Fix comments.
5901
5902 2012-02-28  Bruno Haible  <bruno@clisp.org>
5903
5904         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5905         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5906         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5907         HUGE_VALL are defined.
5908         (numeric_equald): Renamed from numeric_equal.
5909         (numeric_equalf, numeric_equall): New functions.
5910         (main): Check also HUGE_VALF, HUGE_VALL.
5911         * modules/math-tests (Files): Add tests/macros.h.
5912         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5913         HUGE_VALL.
5914
5915 2012-02-28  Bruno Haible  <bruno@clisp.org>
5916
5917         doc: Move ISO C11 feature notes into POSIX chapters.
5918         * doc/posix-functions/aligned_alloc.texi: Renamed from
5919         doc/glibc-functions/aligned_alloc.texi.
5920         * doc/posix-functions/quick_exit.texi: Renamed from
5921         doc/glibc-functions/quick_exit.texi.
5922         * doc/posix-headers/uchar.texi: Renamed from
5923         doc/glibc-headers/uchar.texi.
5924         * doc/posix-functions/c16rtomb.texi: Renamed from
5925         doc/glibc-functions/c16rtomb.texi.
5926         * doc/posix-functions/c32rtomb.texi: Renamed from
5927         doc/glibc-functions/c32rtomb.texi.
5928         * doc/posix-functions/mbrtoc16.texi: Renamed from
5929         doc/glibc-functions/mbrtoc16.texi.
5930         * doc/posix-functions/mbrtoc32.texi: Renamed from
5931         doc/glibc-functions/mbrtoc32.texi.
5932         * doc/gnulib.texi: Update.
5933         (Glibc uchar.h): Remove section.
5934         Suggested by Eric Blake.
5935
5936 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5937
5938         stdnoreturn: port to MSVC better
5939         MSVC standard headers use __declspec(noreturn), so #define noreturn
5940         to empty on that platform.  Reported by Bruno Haible in
5941         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5942         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5943         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5944
5945 2012-02-28  Bruno Haible  <bruno@clisp.org>
5946
5947         doc: Mention new glibc headers and functions.
5948         * doc/glibc-headers/uchar.texi: New file.
5949         * doc/glibc-functions/aligned_alloc.texi: New file.
5950         * doc/glibc-functions/c16rtomb.texi: New file.
5951         * doc/glibc-functions/c32rtomb.texi: New file.
5952         * doc/glibc-functions/clock_adjtime.texi: New file.
5953         * doc/glibc-functions/fanotify_init.texi: New file.
5954         * doc/glibc-functions/fanotify_mark.texi: New file.
5955         * doc/glibc-functions/inet6_opt_append.texi: New file.
5956         * doc/glibc-functions/inet6_opt_find.texi: New file.
5957         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5958         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5959         * doc/glibc-functions/inet6_opt_init.texi: New file.
5960         * doc/glibc-functions/inet6_opt_next.texi: New file.
5961         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5962         * doc/glibc-functions/inet6_rth_add.texi: New file.
5963         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5964         * doc/glibc-functions/inet6_rth_init.texi: New file.
5965         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5966         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5967         * doc/glibc-functions/inet6_rth_space.texi: New file.
5968         * doc/glibc-functions/login.texi: New file.
5969         * doc/glibc-functions/mbrtoc16.texi: New file.
5970         * doc/glibc-functions/mbrtoc32.texi: New file.
5971         * doc/glibc-functions/name_to_handle_at.texi: New file.
5972         * doc/glibc-functions/ntp_gettimex.texi: New file.
5973         * doc/glibc-functions/open_by_handle_at.texi: New file.
5974         * doc/glibc-functions/prlimit.texi: New file.
5975         * doc/glibc-functions/process_vm_readv.texi: New file.
5976         * doc/glibc-functions/process_vm_writev.texi: New file.
5977         * doc/glibc-functions/recvmmsg.texi: New file.
5978         * doc/glibc-functions/scandirat.texi: New file.
5979         * doc/glibc-functions/sendmmsg.texi: New file.
5980         * doc/glibc-functions/setns.texi: New file.
5981         * doc/glibc-functions/timespec_get.texi: New file.
5982         * doc/gnulib.texi: Include them.
5983         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5984         sections.
5985         Reported by Eric Blake.
5986
5987 2012-02-28  Bruno Haible  <bruno@clisp.org>
5988
5989         Avoid compilation errors with MSVC option -fp:strict.
5990         * lib/floor.c: Use MSVC specific pragma fenv_access.
5991         * lib/ceil.c: Likewise.
5992         * lib/trunc.c: Likewise.
5993         * lib/round.c: Likewise.
5994         * lib/rint.c: Likewise.
5995         * lib/fma.c: Likewise.
5996         * lib/integer_length.c: Likewise.
5997         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5999         * tests/test-floor2.c: Likewise.
6000         * tests/test-floorf2.c: Likewise.
6001         * tests/test-ceil2.c: Likewise.
6002         * tests/test-ceilf2.c: Likewise.
6003         * tests/test-trunc2.c: Likewise.
6004         * tests/test-truncf2.c: Likewise.
6005         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6006
6007 2012-02-27  Bruno Haible  <bruno@clisp.org>
6008
6009         Tests for module 'sqrtl-ieee'.
6010         * modules/sqrtl-ieee-tests: New file.
6011         * tests/test-sqrtl-ieee.c: New file.
6012
6013         New module 'sqrtl-ieee'.
6014         * modules/sqrtl-ieee: New file.
6015
6016         Tests for module 'sqrt-ieee'.
6017         * modules/sqrt-ieee-tests: New file.
6018         * tests/test-sqrt-ieee.c: New file.
6019
6020         New module 'sqrt-ieee'.
6021         * modules/sqrt-ieee: New file.
6022
6023         Tests for module 'sqrtf-ieee'.
6024         * modules/sqrtf-ieee-tests: New file.
6025         * tests/test-sqrtf-ieee.c: New file.
6026         * tests/test-sqrt-ieee.h: New file.
6027
6028         New module 'sqrtf-ieee'.
6029         * modules/sqrtf-ieee: New file.
6030
6031 2012-02-27  Bruno Haible  <bruno@clisp.org>
6032
6033         remainderl-ieee: Work around test failure on OSF/1.
6034         * m4/remainderl-ieee.m4: New file.
6035         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6036         present, test whether remainderl works with a zero second argument.
6037         Replace it if not.
6038         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6040         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6041         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6042         (Depends-on): Update conditions.
6043         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6044         (Depends-on): Add remainder-ieee.
6045         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6046         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6047         module.
6048
6049         remainderf-ieee: Work around test failure on OSF/1.
6050         * m4/remainderf-ieee.m4: New file.
6051         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6052         present, test whether remainderf works with a zero second argument.
6053         Replace it if not.
6054         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6056         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6057         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6058         (Depends-on): Update conditions.
6059         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6060         (Depends-on): Add remainder-ieee.
6061         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6062         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6063         module.
6064
6065         remainder-ieee: Work around test failure on OSF/1.
6066         * m4/remainder-ieee.m4: New file.
6067         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6068         present, test whether remainder works with a zero second argument.
6069         Replace it if not.
6070         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6072         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6073         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6074         (Depends-on): Update dependencies.
6075         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6076         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6077         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6078
6079         Tests for module 'remainderl-ieee'.
6080         * modules/remainderl-ieee-tests: New file.
6081         * tests/test-remainderl-ieee.c: New file.
6082
6083         New module 'remainderl-ieee'.
6084         * modules/remainderl-ieee: New file.
6085
6086         Tests for module 'remainder-ieee'.
6087         * modules/remainder-ieee-tests: New file.
6088         * tests/test-remainder-ieee.c: New file.
6089
6090         New module 'remainder-ieee'.
6091         * modules/remainder-ieee: New file.
6092
6093         Tests for module 'remainderf-ieee'.
6094         * modules/remainderf-ieee-tests: New file.
6095         * tests/test-remainderf-ieee.c: New file.
6096         * tests/test-remainder-ieee.h: New file.
6097
6098         New module 'remainderf-ieee'.
6099         * modules/remainderf-ieee: New file.
6100
6101 2012-02-27  Bruno Haible  <bruno@clisp.org>
6102
6103         modff, modfl: Fix configure syntax error.
6104         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6105         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6106
6107 2012-02-27  Bruno Haible  <bruno@clisp.org>
6108
6109         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6110         * m4/fmodl-ieee.m4: New file.
6111         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6112         whether fmodl works with zero arguments. Replace it if not.
6113         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6114         (Depends-on): Add fmod-ieee.
6115         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6116         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6117
6118         fmodf-ieee: Work around test failure on OSF/1.
6119         * m4/fmodf-ieee.m4: New file.
6120         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6121         whether fmodf works with zero arguments. Replace it if not.
6122         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6124         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6125         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6126         (Depends-on): Update dependencies.
6127         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6128         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6129         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6130
6131         fmodf-ieee: Work around test failure on MSVC 9.
6132         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6133         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6134
6135         fmod-ieee: Work around test failures on OSF/1, mingw.
6136         * m4/fmod-ieee.m4: New file.
6137         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6138         whether fmod works with zero arguments. Replace it if not.
6139         * lib/math.in.h (fmod): New declaration.
6140         * lib/fmod.c: New file.
6141         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6143         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6144         * modules/fmod (Files): Add lib/fmod.c.
6145         (Depends-on): Add math, isinf, trunc, fma.
6146         (configure.ac): Arrange to compile lib/fmod.c if needed.
6147         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6148         m4/signbit.m4.
6149         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6150         * tests/test-math-c++.cc: Check the declaration of fmod.
6151         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6152
6153         fmodl-ieee: Fix test failures.
6154         * lib/fmodl.c (fmodl): Treat Inf specially.
6155         * modules/fmodl (Depends-on): Add isinf.
6156
6157         Tests for module 'fmodl-ieee'.
6158         * modules/fmodl-ieee-tests: New file.
6159         * tests/test-fmodl-ieee.c: New file.
6160
6161         New module 'fmodl-ieee'.
6162         * modules/fmodl-ieee: New file.
6163
6164         Tests for module 'fmod-ieee'.
6165         * modules/fmod-ieee-tests: New file.
6166         * tests/test-fmod-ieee.c: New file.
6167
6168         New module 'fmod-ieee'.
6169         * modules/fmod-ieee: New file.
6170
6171         Tests for module 'fmodf-ieee'.
6172         * modules/fmodf-ieee-tests: New file.
6173         * tests/test-fmodf-ieee.c: New file.
6174         * tests/test-fmod-ieee.h: New file.
6175
6176         New module 'fmodf-ieee'.
6177         * modules/fmodf-ieee: New file.
6178
6179 2012-02-27  Bruno Haible  <bruno@clisp.org>
6180
6181         Tests for module 'rintl-ieee'.
6182         * modules/rintl-ieee-tests: New file.
6183         * tests/test-rintl-ieee.c: New file.
6184
6185         New module 'rintl-ieee'.
6186         * modules/rintl-ieee: New file.
6187
6188         Tests for module 'rint-ieee'.
6189         * modules/rint-ieee-tests: New file.
6190         * tests/test-rint-ieee.c: New file.
6191
6192         New module 'rint-ieee'.
6193         * modules/rint-ieee: New file.
6194
6195         Tests for module 'rintf-ieee'.
6196         * modules/rintf-ieee-tests: New file.
6197         * tests/test-rintf-ieee.c: New file.
6198         * tests/test-rint-ieee.h: New file.
6199
6200         New module 'rintf-ieee'.
6201         * modules/rintf-ieee: New file.
6202
6203 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6204
6205         regex: re_search etc. should return -2 when memory exhausted
6206         This bug was uncovered when testing 'grep'.  Without the fix,
6207         re_search and friends return -1 when memory is exhausted, but -1
6208         means no match, and this causes grep to falsely report no-match
6209         instead of memory-exhaustion.  See
6210         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6211         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6212         trouble; this can occur if re_search_internal ran out of memory.
6213
6214 2012-02-26  Bruno Haible  <bruno@clisp.org>
6215
6216         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6217         * m4/modfl-ieee.m4: New file.
6218         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6219         whether modfl works with Inf. Replace it if not.
6220         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6222         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6223         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6224         (Depends-on): Update dependencies.
6225         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6226         m4/signbit.m4.
6227         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6228         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6229
6230         modfl-ieee: Fix dependencies.
6231         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6232
6233         modfl-ieee: Fix test failures.
6234         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6235         * modules/modfl (Depends-on): Add isfinite, isinf.
6236
6237         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6238         * m4/modff-ieee.m4: New file.
6239         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6240         whether modff works with NaN and Inf. Replace it if not.
6241         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6243         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6244         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6245         (Depends-on): Update dependencies.
6246         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6247         m4/signbit.m4.
6248         (Depends-on): Add modf-ieee.
6249         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6250         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6251
6252         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6253         * m4/modf-ieee.m4: New file.
6254         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6255         whether modf works with NaN and Inf. Replace it if not.
6256         * lib/math.in.h (modf): New declaration.
6257         * lib/modf.c: New file.
6258         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6260         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6261         * modules/modf (Files): Add lib/modf.c.
6262         (Depends-on): Add math, isfinite, trunc, isinf.
6263         (configure.ac): Addrange to compile lib/modf.c if needed.
6264         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6265         m4/signbit.m4.
6266         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6267         * tests/test-math-c++.cc: Check the declaration of modf.
6268         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6269
6270         Tests for module 'modfl-ieee'.
6271         * modules/modfl-ieee-tests: New file.
6272         * tests/test-modfl-ieee.c: New file.
6273
6274         New module 'modfl-ieee'.
6275         * modules/modfl-ieee: New file.
6276
6277         Tests for module 'modf-ieee'.
6278         * modules/modf-ieee-tests: New file.
6279         * tests/test-modf-ieee.c: New file.
6280
6281         New module 'modf-ieee'.
6282         * modules/modf-ieee: New file.
6283
6284         Tests for module 'modff-ieee'.
6285         * modules/modff-ieee-tests: New file.
6286         * tests/test-modff-ieee.c: New file.
6287         * tests/test-modf-ieee.h: New file.
6288
6289         New module 'modff-ieee'.
6290         * modules/modff-ieee: New file.
6291
6292 2012-02-26  Bruno Haible  <bruno@clisp.org>
6293
6294         Tests for module 'fabsl-ieee'.
6295         * modules/fabsl-ieee-tests: New file.
6296         * tests/test-fabsl-ieee.c: New file.
6297
6298         New module 'fabsl-ieee'.
6299         * modules/fabsl-ieee: New file.
6300
6301         Tests for module 'fabs-ieee'.
6302         * modules/fabs-ieee-tests: New file.
6303         * tests/test-fabs-ieee.c: New file.
6304
6305         New module 'fabs-ieee'.
6306         * modules/fabs-ieee: New file.
6307
6308         Tests for module 'fabsf-ieee'.
6309         * modules/fabsf-ieee-tests: New file.
6310         * tests/test-fabsf-ieee.c: New file.
6311         * tests/test-fabs-ieee.h: New file.
6312
6313         New module 'fabsf-ieee'.
6314         * modules/fabsf-ieee: New file.
6315
6316 2012-02-26  Bruno Haible  <bruno@clisp.org>
6317
6318         Tests for module 'fmal-ieee'.
6319         * modules/fmal-ieee-tests: New file.
6320         * tests/test-fmal-ieee.c: New file.
6321
6322         New module 'fmal-ieee'.
6323         * modules/fmal-ieee: New file.
6324
6325         Tests for module 'fma-ieee'.
6326         * modules/fma-ieee-tests: New file.
6327         * tests/test-fma-ieee.c: New file.
6328
6329         New module 'fma-ieee'.
6330         * modules/fma-ieee: New file.
6331
6332         Tests for module 'fmaf-ieee'.
6333         * modules/fmaf-ieee-tests: New file.
6334         * tests/test-fmaf-ieee.c: New file.
6335         * tests/test-fma-ieee.h: New file.
6336
6337         New module 'fmaf-ieee'.
6338         * modules/fmaf-ieee: New file.
6339
6340 2012-02-26  Bruno Haible  <bruno@clisp.org>
6341
6342         Tests for module 'ldexpl-ieee'.
6343         * modules/ldexpl-ieee-tests: New file.
6344         * tests/test-ldexpl-ieee.c: New file.
6345
6346         New module 'ldexpl-ieee'.
6347         * modules/ldexpl-ieee: New file.
6348
6349         Tests for module 'ldexp-ieee'.
6350         * modules/ldexp-ieee-tests: New file.
6351         * tests/test-ldexp-ieee.c: New file.
6352
6353         New module 'ldexp-ieee'.
6354         * modules/ldexp-ieee: New file.
6355
6356         Tests for module 'ldexpf-ieee'.
6357         * modules/ldexpf-ieee-tests: New file.
6358         * tests/test-ldexpf-ieee.c: New file.
6359         * tests/test-ldexp-ieee.h: New file.
6360
6361         New module 'ldexpf-ieee'.
6362         * modules/ldexpf-ieee: New file.
6363
6364 2012-02-26  Bruno Haible  <bruno@clisp.org>
6365
6366         Refactor frexp*-ieee tests.
6367         * tests/test-frexp-ieee.h: New file.
6368         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6369         (main): Just call test_function.
6370         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6371         (main): Just call test_function.
6372         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6373         (main): Just call test_function.
6374         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6375         * modules/frexp-ieee-tests (Files): Likewise.
6376         * modules/frexpl-ieee-tests (Files): Likewise.
6377
6378         Tests for module 'frexpl-ieee'.
6379         * modules/frexpl-ieee-tests: New file.
6380         * tests/test-frexpl-ieee.c: New file.
6381
6382         New module 'frexpl-ieee'.
6383         * modules/frexpl-ieee: New file.
6384
6385         Tests for module 'frexp-ieee'.
6386         * modules/frexp-ieee-tests: New file.
6387         * tests/test-frexp-ieee.c: New file.
6388
6389         New module 'frexp-ieee'.
6390         * modules/frexp-ieee: New file.
6391
6392         Tests for module 'frexpf-ieee'.
6393         * modules/frexpf-ieee-tests: New file.
6394         * tests/test-frexpf-ieee.c: New file.
6395
6396         New module 'frexpf-ieee'.
6397         * modules/frexpf-ieee: New file.
6398
6399 2012-02-26  Bruno Haible  <bruno@clisp.org>
6400
6401         roundl-ieee tests: More tests.
6402         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6403         (main): Add tests for [MX] shaded specification in POSIX.
6404         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6405         (Depends-on): Add isnanl-nolibm.
6406
6407         round-ieee tests: More tests.
6408         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6409         (main): Add tests for [MX] shaded specification in POSIX.
6410         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6411         (Depends-on): Add isnand-nolibm.
6412
6413         roundf-ieee tests: More tests.
6414         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6415         (main): Add tests for [MX] shaded specification in POSIX.
6416         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6417         (Depends-on): Add isnanf-nolibm.
6418
6419         truncl-ieee tests: More tests.
6420         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6421         (main): Add tests for [MX] shaded specification in POSIX.
6422         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6423         (Depends-on): Add isnanl-nolibm.
6424
6425         trunc-ieee tests: More tests.
6426         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6427         (main): Add tests for [MX] shaded specification in POSIX.
6428         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6429         (Depends-on): Add isnand-nolibm.
6430
6431         truncf-ieee tests: More tests.
6432         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6433         (main): Add tests for [MX] shaded specification in POSIX.
6434         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6435         (Depends-on): Add isnanf-nolibm.
6436
6437         ceill-ieee tests: More tests.
6438         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6439         (main): Add tests for [MX] shaded specification in POSIX.
6440         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6441         (Depends-on): Add isnanl-nolibm.
6442
6443         ceil-ieee tests: More tests.
6444         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6445         (main): Add tests for [MX] shaded specification in POSIX.
6446         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6447         (Depends-on): Add isnand-nolibm.
6448
6449         ceilf-ieee tests: More tests.
6450         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6451         (main): Add tests for [MX] shaded specification in POSIX.
6452         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6453         (Depends-on): Add isnanf-nolibm.
6454
6455         floorl-ieee tests: More tests.
6456         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6457         (main): Add tests for [MX] shaded specification in POSIX.
6458         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6459         (Depends-on): Add isnanl-nolibm.
6460
6461         floor-ieee tests: More tests.
6462         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6463         (main): Add tests for [MX] shaded specification in POSIX.
6464         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6465         (Depends-on): Add isnand-nolibm.
6466
6467         floorf-ieee tests: More tests.
6468         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6469         (main): Add tests for [MX] shaded specification in POSIX.
6470         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6471         (Depends-on): Add isnanf-nolibm.
6472
6473 2012-02-26  Bruno Haible  <bruno@clisp.org>
6474
6475         fpieee: More comments.
6476         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6477
6478 2012-02-25  Bruno Haible  <bruno@clisp.org>
6479
6480         Tests for module 'log10l'.
6481         * modules/log10l-tests: New file.
6482         * tests/test-log10l.c: New file.
6483         * tests/test-math-c++.cc: Check the declaration of log10l.
6484
6485         New module 'log10l'.
6486         * lib/math.in.h (log10l): New declaration.
6487         * lib/log10l.c: New file.
6488         * m4/log10l.m4: New file.
6489         * modules/log10l: New file.
6490         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6492         HAVE_DECL_LOG10L.
6493         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6494         HAVE_DECL_LOG10L.
6495         * doc/posix-functions/log10l.texi: Mention the new module.
6496
6497 2012-02-25  Bruno Haible  <bruno@clisp.org>
6498
6499         fmodl, remainder*: Avoid wrong results due to rounding errors.
6500         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6501         expected bounds.
6502         * lib/remainderf.c (remainderf): Likewise.
6503         * lib/remainder.c (remainder): Likewise.
6504         * lib/remainderl.c (remainderl): Likewise.
6505
6506 2012-02-25  Bruno Haible  <bruno@clisp.org>
6507
6508         Tests for module 'remainderl'.
6509         * modules/remainderl-tests: New file.
6510         * tests/test-remainderl.c: New file.
6511         * tests/test-math-c++.cc: Check the declaration of remainderl.
6512
6513         New module 'remainderl'.
6514         * lib/math.in.h (remainderl): New declaration.
6515         * lib/remainderl.c: New file.
6516         * m4/remainderl.m4: New file.
6517         * modules/remainderl: New file.
6518         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6520         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6521         HAVE_REMAINDERL.
6522         * doc/posix-functions/remainderl.texi: Mention the new module.
6523
6524 2012-02-25  Bruno Haible  <bruno@clisp.org>
6525
6526         Tests for module 'remainderf'.
6527         * modules/remainderf-tests: New file.
6528         * tests/test-remainderf.c: New file.
6529         * tests/test-math-c++.cc: Check the declaration of remainderf.
6530
6531         New module 'remainderf'.
6532         * lib/math.in.h (remainderf): New declaration.
6533         * lib/remainderf.c: New file.
6534         * m4/remainderf.m4: New file.
6535         * modules/remainderf: New file.
6536         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6538         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6539         HAVE_REMAINDERF.
6540         * doc/posix-functions/remainderf.texi: Mention the new module.
6541
6542 2012-02-25  Bruno Haible  <bruno@clisp.org>
6543
6544         remainder: Support for MSVC.
6545         * lib/math.in.h (remainder): New declaration.
6546         * lib/remainder.c: New file.
6547         * m4/remainder.m4: New file.
6548         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6549         (Depends-on): Add math, round, fma.
6550         (configure.ac): Use results of gl_FUNC_REMAINDER.
6551         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6553         HAVE_DECL_REMAINDER.
6554         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6555         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6556         * tests/test-math-c++.cc: Check the declaration of remainder.
6557         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6558         problems are fixed.
6559
6560 2012-02-25  Bruno Haible  <bruno@clisp.org>
6561
6562         Tests for module 'fmodl'.
6563         * modules/fmodl-tests: New file.
6564         * tests/test-fmodl.c: New file.
6565         * tests/test-math-c++.cc: Check the declaration of fmodl.
6566
6567         New module 'fmodl'.
6568         * lib/math.in.h (fmodl): New declaration.
6569         * lib/fmodl.c: New file.
6570         * m4/fmodl.m4: New file.
6571         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6573         REPLACE_FMODL.
6574         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6575         REPLACE_FMODL.
6576         * modules/fmodl: New file.
6577         * doc/posix-functions/fmodl.texi: Mention the new module.
6578
6579 2012-02-25  Bruno Haible  <bruno@clisp.org>
6580
6581         Tests for module 'modfl'.
6582         * modules/modfl-tests: New file.
6583         * tests/test-modfl.c: New file.
6584         * tests/test-math-c++.cc: Check the declaration of modfl.
6585
6586         New module 'modfl'.
6587         * lib/math.in.h (modfl): New declaration.
6588         * lib/modfl.c: New file.
6589         * m4/modfl.m4: New file.
6590         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6592         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6593         * modules/modfl: New file.
6594         * doc/posix-functions/modfl.texi: Mention the new module.
6595
6596 2012-02-25  Bruno Haible  <bruno@clisp.org>
6597
6598         Tests for module 'fabsl'.
6599         * modules/fabsl-tests: New file.
6600         * tests/test-fabsl.c: New file.
6601         * tests/test-math-c++.cc: Check the declaration of fabsl.
6602
6603         New module 'fabsl'.
6604         * lib/math.in.h (fabsl): New declaration.
6605         * lib/fabsl.c: New file.
6606         * m4/fabsl.m4: New file.
6607         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6609         REPLACE_FABSL.
6610         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6611         REPLACE_FABSL.
6612         * modules/fabsl: New file.
6613         * doc/posix-functions/fabsl.texi: Mention the new module.
6614
6615 2012-02-25  Bruno Haible  <bruno@clisp.org>
6616
6617         fabs tests: More tests.
6618         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6619         (zero): New variable.
6620         (main): Add tests for signed zero.
6621         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6622
6623         fabsf tests: More tests.
6624         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6625         (zero): New variable.
6626         (main): Add tests for signed zero.
6627         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6628
6629 2012-02-24  Bruno Haible  <bruno@clisp.org>
6630
6631         atanl: Provide function definition on MSVC.
6632         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6633         function pointer.
6634         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6635
6636 2012-02-24  Bruno Haible  <bruno@clisp.org>
6637
6638         acosl: Provide function definition on MSVC.
6639         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6640         function pointer.
6641         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6642
6643 2012-02-24  Bruno Haible  <bruno@clisp.org>
6644
6645         asinl: Provide function definition on MSVC.
6646         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6647         function pointer.
6648         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6649
6650 2012-02-24  Bruno Haible  <bruno@clisp.org>
6651
6652         tanl: Provide function definition on MSVC.
6653         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6654         function pointer.
6655         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6656
6657 2012-02-24  Bruno Haible  <bruno@clisp.org>
6658
6659         cosl: Provide function definition on MSVC.
6660         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6661         function pointer.
6662         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6663
6664 2012-02-24  Bruno Haible  <bruno@clisp.org>
6665
6666         sinl: Provide function definition on MSVC.
6667         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6668         function pointer.
6669         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6670
6671 2012-02-24  Bruno Haible  <bruno@clisp.org>
6672
6673         logl: Provide function definition on MSVC.
6674         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6675         function pointer.
6676         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6677
6678 2012-02-24  Bruno Haible  <bruno@clisp.org>
6679
6680         expl: Provide function definition on MSVC.
6681         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6682         function pointer.
6683         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6684
6685 2012-02-24  Bruno Haible  <bruno@clisp.org>
6686
6687         sqrtl: Provide function definition on MSVC.
6688         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6689         a function pointer.
6690         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6691
6692 2012-02-24  Bruno Haible  <bruno@clisp.org>
6693
6694         ceill: Provide function definition on MSVC.
6695         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6696         used as a function pointer.
6697         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6698
6699 2012-02-24  Bruno Haible  <bruno@clisp.org>
6700
6701         floorl: Provide function definition on MSVC.
6702         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6703         used as a function pointer.
6704         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6705
6706 2012-02-24  Bruno Haible  <bruno@clisp.org>
6707
6708         ceilf: Provide function definition on MSVC.
6709         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6710         used as a function pointer.
6711         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6712
6713 2012-02-24  Bruno Haible  <bruno@clisp.org>
6714
6715         floorf: Provide function definition on MSVC.
6716         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6717         used as a function pointer.
6718         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6719
6720 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6721
6722         stdnoreturn: new module
6723         This implements a replacement for C11's <stdnoreturn.h>.
6724         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6725         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6726         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6727         * tests/test-stdnoreturn.c: New files.
6728
6729 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6730
6731         regex: fix false multibyte matches in some regular expressions
6732         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6733         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6734         * lib/regex_internal.c (re_string_skip_chars):
6735         Fix miscomputation of remain_len that may cause incomplete
6736         multi-byte character and false match.
6737
6738 2012-02-24  Jim Meyering  <meyering@redhat.com>
6739
6740         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6741         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6742         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6743         Remove now-unnecessary str''cmp obfuscation.
6744         Suggested by Akim Demaille.
6745
6746 2012-02-24  Bruno Haible  <bruno@clisp.org>
6747
6748         streq: Rename macro.
6749         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6750         * NEWS: Mention the change.
6751         * lib/mbrtowc.c (mbrtowc): Update.
6752         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6753         * lib/wcwidth.c (wcwidth): Update.
6754         Suggested by Akim Demaille and Jim Meyering.
6755
6756 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         regex: fix typo in definition of MIN
6759         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6760         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6761
6762 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6763             Bruno Haible  <bruno@clisp.org>
6764
6765         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6766         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6767         entries into a stack-allocated buffer directly.
6768         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6769
6770 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6771             Bruno Haible  <bruno@clisp.org>
6772
6773         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6774
6775          - There were several instances of this pattern:
6776
6777              for (;;) {
6778                n = acl (f, GETACLCNT, 0, NULL);
6779                [ allocate an array A of size N ]
6780                if (acl (f, GETACL, n, a) == n)
6781                  break;
6782              }
6783
6784            This loop might never terminate if some other process is constantly
6785            manipulating the file's ACL.  The loop should be rewritten to
6786            terminate.
6787
6788          - The acl (... GETACLNT ...) call is merely an optimization; its value
6789            is merely a hint as to how big to make the array.  A better
6790            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6791            and just guess a reasonably-big size, growing the size and trying
6792            again if it's not large enough.  This guarantees termination, and
6793            saves a system call.
6794
6795         * lib/acl-internal.h: Include <limits.h>.
6796         (MIN, SIZE_MAX): New macros.
6797         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6798         a stack-allocated buffer, and use malloc if it does not fit. Don't
6799         use GETACLCNT.
6800         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6801
6802 2012-02-19  Bruno Haible  <bruno@clisp.org>
6803
6804         acl: Fix endless loop on Solaris with vxfs.
6805         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6806         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6807         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6808         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6809         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6810         Reported by Bill Jones in
6811         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6812
6813 2012-02-19  Bruno Haible  <bruno@clisp.org>
6814
6815         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6816         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6817         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6818         that this function returns 0 in some more cases.
6819
6820 2012-02-19  Bruno Haible  <bruno@clisp.org>
6821
6822         acl: Update doc references.
6823         * doc/acl-resources.txt: Update links to Solaris documentation.
6824
6825 2012-02-19  Bruno Haible  <bruno@clisp.org>
6826
6827         Fix test failure in many locales on Solaris 11.
6828         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6829         'tr' arguments.
6830         * tests/test-pipe-filter-ii1.c (main): Likewise.
6831         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6832         expressions in the C locale.
6833         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6834         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6835
6836 2012-02-19  Bruno Haible  <bruno@clisp.org>
6837
6838         gnulib-tool: Improve usage message.
6839         * gnulib-tool (func_usage): Move doc of --help and --version to the
6840         section "Operation modes".
6841
6842 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6843
6844         README-release: make it easier to execute commands
6845         * top/README-release: break commands out on to separate lines.
6846
6847 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6848
6849         GNUmakefile: simplify detection of unconfigured trees
6850         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6851         whether the tree make is being run from is already configured or
6852         not.  Related simplifications.
6853
6854 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6855
6856         * gnulib-tool (func_usage): Document --help and --version.
6857
6858 2012-02-11  Jim Meyering  <meyering@redhat.com>
6859
6860         bootstrap: don't exit 0 upon gnulib-tool failure
6861         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6862         its exit status, not 0.
6863
6864 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6865
6866         README-release: various improvements
6867         * top/README-release: Give a command to push changes for the
6868         release.  Add "distcheck" to list of other pre-release checks.
6869         Fix instance of "make stable" which should be "make TYPE".
6870
6871 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         maint: replace FSF snail-mail addresses with URLs
6874         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6875         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6876         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6877         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6878         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6879         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6880         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6881         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6882         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6883         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6884         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6885         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6886         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6887         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6888         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6889         * lib/glthread/thread.c, lib/glthread/thread.h:
6890         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6891         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6892         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6893         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6894         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6895         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6896         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6897         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6898         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6899         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6900         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6901         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6902         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6903         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6904         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6905         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6906         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6907         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6908         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6909         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6910         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6911         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6912         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6913         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6914         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6915         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6916         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6917         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6918         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6919         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6920         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6921         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6922         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6923         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6924         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6925         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6926         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6927         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6928         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6929         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6930         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6931         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6932         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6933         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6934         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6935         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6936         * tests/test-poll.c, tests/test-quotearg-simple.c:
6937         * tests/test-quotearg.c, tests/test-quotearg.h:
6938         * tests/test-round-ieee.c, tests/test-round1.c:
6939         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6940         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6941         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6942         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6943         * tests/test-strerror.c, tests/test-strerror_r.c:
6944         * tests/test-strsignal.c, tests/test-strverscmp.c:
6945         * tests/test-xmemdup0.c:
6946         Replace FSF snail mail addresses with URLs, as per GNU coding
6947         standards.  See glibc bug
6948         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6949
6950 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6951
6952         README-release: capitalize a word and split a line
6953         * top/README-release: Fix punctuation and spacing.
6954
6955 2012-02-08  Akim Demaille  <demaille@gostai.com>
6956
6957         fatal-signal: use C prototypes (with explicit void).
6958         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6959         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6960
6961 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         regex: spelling fix
6964         * lib/regexec.c: spelling fix
6965
6966         regex: rely on stdint.h for SIZE_MAX
6967         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6968
6969 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         regex: merge glibc changes
6972
6973         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6974         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6975         (init_word_char): Work even if bitset words are not exactly 32 or
6976         64 bits wide.  Don't assume there are no padding bits.
6977         * lib/regex.c [_LIBC]: Do not include <config.h>.
6978         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6979         and -Wtype-limits.
6980         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6981         needless disagreement with glibc.  All uses changed.  Define it to
6982         1 only if _GNU_SOURCE, to match glibc.
6983         (_REG_RM_NAME): Remove; no longer needed, since the names in
6984         question are now all protected by __USE_GNU.
6985         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6986         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6987         * lib/regex_internal.h (MIN): New macro.
6988
6989         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6990         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6991
6992         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6993         * lib/regex_internal.c (re_string_fetch_byte_case):
6994         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6995         is miscompiled, and it turns out it is because of an incorrect
6996         attribute on re_string_fetch_byte_case.  Unlike
6997         re_string_peek_byte_case, this one is really not pure, it modifies
6998         memory (increments pstr->cur_idx), and with the pure attribute GCC
6999         assumed it doesn't and it cached the presumed value of
7000         regexp->cur_idx in a variable across the
7001          for (;; ++i)
7002            {
7003              if (i >= BRACKET_NAME_BUF_SIZE)
7004                return REG_EBRACK;
7005              if (token->type == OP_OPEN_CHAR_CLASS)
7006                ch = re_string_fetch_byte_case (regexp);
7007              else
7008                ch = re_string_fetch_byte (regexp);
7009              if (re_string_eoi(regexp))
7010                return REG_EBRACK;
7011              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7012                break;
7013              elem->opr.name[i] = ch;
7014            }
7015
7016         2011-11-29 Andreas Schwab <schwab@redhat.com>
7017         * lib/regcomp.c (build_equiv_class):
7018         Fix access after end of search string in regex matcher.
7019
7020         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7021         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7022
7023         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7024         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7025
7026         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7027         * lib/regcomp.c (parse_branch, parse_sub_exp):
7028         More regex memory leak fixes and tests.
7029         (parse_sub_exp, parse_bracket_exp):
7030         Fix memory leak for some invalid regular expressions.
7031
7032         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7033         * lib/regex_internal.c, lib/regexec.c:
7034         Fix unnecessary overallocation due to incomplete character.  When
7035         incomplete characters are found at the end of a string the code
7036         ran amok and allocated lots of memory.  Stricter limits are now in
7037         place.
7038
7039         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7040         * lib/regex.h: Update documentation.
7041
7042         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7043         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7044
7045         2010-05-05 Andreas Schwab <schwab@redhat.com>
7046         * lib/regexec.c (find_collation_sequence_value):
7047         Fix lookup of collation sequence value during regexp matching.
7048
7049         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7050         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7051
7052         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7053         * lib/regex.h: Cleanup namespace.
7054
7055         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7056         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7057
7058         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7059         * lib/regex_internal.h: Prevent some declarations and definitions
7060         to be seen when used in tests.
7061
7062         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7063         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7064         __libc_lock_* macros if not _LIBC.
7065         (struct re_dfa_t): Add lock.
7066
7067 2012-02-07  Eric Blake  <eblake@redhat.com>
7068
7069         maint.mk: also prohibit lower-case @var@
7070         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7071         lower case, like @top_srcdir@.
7072
7073 2012-02-04  Eric Blake  <eblake@redhat.com>
7074
7075         canonicalize: avoid uninitialized memory use
7076         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7077         random '/' left in dest.
7078         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7079
7080 2012-02-04  Bruno Haible  <bruno@clisp.org>
7081
7082         isatty: Fix test failure of ptsname_r on native Windows.
7083         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7084         and don't set errno.
7085         (isatty): Test first whether fd is valid. Set errno when returning 0.
7086
7087 2012-02-04  Bruno Haible  <bruno@clisp.org>
7088
7089         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7090         * tests/test-spawn-pipe-main.c: Include progname.h.
7091         (main): Invoke set_program_name.
7092         * modules/spawn-pipe-tests (Depends-on): Add progname.
7093
7094         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7095         * tests/test-nonblocking-socket-main.c: Include progname.h.
7096         (main): Invoke set_program_name.
7097         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7098
7099         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7100         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7101         (main): Invoke set_program_name.
7102         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7103
7104 2012-02-04  Eric Blake  <eblake@redhat.com>
7105
7106         canonicalize-lgpl: fix // handling
7107         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7108
7109         canonicalize: fix // handling
7110         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7111         /// to //, since only // is special.
7112
7113 2012-02-04  Bruno Haible  <bruno@clisp.org>
7114
7115         ioctl: Fix test failure on native Windows.
7116         * lib/ioctl.c: Include msvc-nothrow.h.
7117         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7118
7119 2012-02-04  Bruno Haible  <bruno@clisp.org>
7120
7121         fsync: Avoid test failure on native Windows.
7122         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7123         read-only.
7124
7125 2012-02-04  Bruno Haible  <bruno@clisp.org>
7126
7127         sys_select: Avoid syntax error on OpenBSD 5.0.
7128         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7129         currently being included, just include the system's <sys/select.h>.
7130
7131 2012-02-04  Bruno Haible  <bruno@clisp.org>
7132
7133         sys_select: Avoid syntax error on OpenBSD 5.0.
7134         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7135         <sys/select.h>, not before.
7136         Reported by Jiri B <jirib@devio.us>.
7137
7138 2012-02-04  Bruno Haible  <bruno@clisp.org>
7139
7140         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7141         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7142         global variables.
7143         * tests/test-get-rusage-data.c (main): Likewise.
7144         Reported by Jim Meyering.
7145
7146 2012-02-04  Bruno Haible  <bruno@clisp.org>
7147
7148         stdioext: Fix last commit.
7149         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7150
7151 2012-02-03  Bruno Haible  <bruno@clisp.org>
7152
7153         stdioext: Add tentative support for Plan9.
7154         * lib/stdio-impl.h: Include <errno.h>.
7155         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7156         * lib/freadable.c (freadable): Likewise.
7157         * lib/fwritable.c (fwritable): Likewise.
7158         * lib/fbufmode.c (fbufmode): Likewise.
7159         * lib/freading.c (freading): Likewise.
7160         * lib/fwriting.c (fwriting): Likewise.
7161         * lib/freadptr.c (freadptr): Likewise.
7162         * lib/freadseek.c (freadptrinc): Likewise.
7163         * lib/freadahead.c (freadahead): Likewise.
7164         * lib/fpurge.c (fpurge): Likewise.
7165         * lib/fseeko.c (rpl_fseeko): Likewise.
7166         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7167         Reported by Jens Staal <staal1978@gmail.com>.
7168
7169 2012-02-02  Jim Meyering  <meyering@redhat.com>
7170
7171         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7172         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7173         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7174         not even to try to add the attribute.  Instead, add a pragma to suppress
7175         the suggestion/warning.
7176
7177 2012-01-31  Karl Berry  <karl@gnu.org>
7178
7179         setstate doc: typo.
7180         * doc/posix-functions/setstate.texi (setstate): { not (.
7181
7182 2012-01-31  Bruno Haible  <bruno@clisp.org>
7183
7184         popen: Make more robust on Windows.
7185         * lib/popen.c: On native Windows, use the _popen based code even if
7186         HAVE_POPEN is set.
7187         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7188         environment variable on native Windows.
7189
7190 2012-01-30  Bruno Haible  <bruno@clisp.org>
7191
7192         pclose: Fix typo.
7193         * lib/stdio.in.h (pclose): Fix typo in warning message.
7194
7195 2012-01-30  Bruno Haible  <bruno@clisp.org>
7196
7197         doc about getlogin_r, setstate.
7198         * doc/posix-functions/getlogin_r.texi: List the incompatible
7199         declaration problem under "not fixed by gnulib".
7200         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7201         problem on Solaris 11 and other platforms.
7202
7203 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7204             Bruno Haible  <bruno@clisp.org>
7205
7206         poll tests: Make test more robust.
7207         * tests/test-poll.c: Include macros.h.
7208         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7209         return value of various I/O operations.
7210         * modules/poll-tests (Files): Add tests/macros.h.
7211
7212 2012-01-30  Bruno Haible  <bruno@clisp.org>
7213
7214         sys_stat: Fix support for mingw64 and MSVC.
7215         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7216         header files already do it.
7217         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7218         stat itself.
7219         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7220
7221 2012-01-30  Bruno Haible  <bruno@clisp.org>
7222
7223         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7225         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7226
7227 2012-01-29  Bruno Haible  <bruno@clisp.org>
7228
7229         quotearg: Fix test failure on MacOS X 10.5.
7230         * tests/test-quotearg-simple.c: Include localcharset.h.
7231         (main): If the locale encoding is not ASCII, bypass the tests of
7232         locale_quoting_style and clocale_quoting_style.
7233         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7234
7235 2012-01-29  Jim Meyering  <meyering@redhat.com>
7236
7237         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7238         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7239         detect uses of canonicalize_file_name.
7240
7241 2012-01-28  Bruno Haible  <bruno@clisp.org>
7242
7243         test-framework-sh: Fix test failure with AIX 7.1 diff.
7244         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7245         in column 1, like 'diff -c' does.
7246         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7247         whether 'diff -u' is used. Instead, test whether the output contains
7248         some '@' character.
7249
7250 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7251
7252         strtoimax: eliminate need for stdint.h, inttypes.h checks
7253         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7254         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7255         the prerequisites for a recently-introduced strtoimax test.
7256         I guess this might cause strtoimax to be replaced when not
7257         strictly necessary on older hosts, but this shouldn't introduce
7258         any bugs and it should make Emacs 'configure' faster on typical
7259         modern hosts.  Problem discovered when importing the latest gnulib
7260         to an Emacs test version.
7261         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7262
7263 2012-01-28  Bruno Haible  <bruno@clisp.org>
7264
7265         sys_time: Override 'struct timeval' on some native Windows platforms.
7266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7267         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7268         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7269         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7270         needs to be overridden.
7271         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7272         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7273         * tests/test-sys_select.c: Check that the tv_sec member has the same
7274         size as a 'time_t'.
7275         * tests/test-sys_time.c: Likewise.
7276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7277         is set, set also REPLACE_GETTIMEOFDAY.
7278         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7279         convert the resulting 'struct timeval' before returning.
7280         * lib/select.c: Include <sys/time.h>.
7281         (select, timeval): Undefine at the right place.
7282         * modules/select (Depends-on): Add sys_time.
7283         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7284         some Windows platforms.
7285         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7286
7287 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7288
7289         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7290         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7291         an integer.
7292         * lib/fcntl.c (dupfd): Likewise.
7293         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7294
7295 2012-01-28  Bruno Haible  <bruno@clisp.org>
7296
7297         fcntl: Avoid compilation error on native Windows.
7298         * modules/fcntl (Depends-on): Add 'close'.
7299
7300 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7301
7302         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7303         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7304         pointer to an integer.
7305         * lib/poll.c (IsConsoleHandle): Likewise.
7306         * lib/isatty.c (IsConsoleHandle): Likewise.
7307
7308 2012-01-28  Jim Meyering  <meyering@redhat.com>
7309
7310         doc: clarify README-release
7311         * top/README-release: Clarify: you should make a point to have
7312         the latest stable versions of build tools in your PATH, and the
7313         reference to buildreq is solely for its list of tool names, not
7314         for its minimal-functional version numbers.
7315         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7316
7317         maint.mk: use more readable (yet functionally equivalent) quoting
7318         It is common to quote a single quote in a single quoted string like
7319         this:  '...'\''...'.  Unless you know the idiom, that looks like
7320         gibberish, so prefer to double-quote the string when possible.
7321         Then you can use a more readable, lone single quote: "...'..."
7322         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7323         "don't" is more readable than the equivalent 'don'\''t'.
7324         (sc_cast_of_x_alloc_return_value): Likewise.
7325         (sc_cast_of_alloca_return_value): Likewise.
7326         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7327         rather than '\'':'\''.
7328
7329 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7330
7331         stdalign: relax _Alignof and tighten _Alignas test
7332         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7333         as it was too strict: alignof must divide offsetof, but it need
7334         not equal offsetof.  Inspired by Joseph S. Myers's comment
7335         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7336         Conversely, tighten the _Alignas test a bit, as the resulting
7337         alignment must be exactly 8.
7338
7339 2012-01-27  Bruno Haible  <bruno@clisp.org>
7340
7341         stdalign: Document the last change.
7342         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7343
7344 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7345
7346         stdalign: check that alignof and offsetof are consistent
7347         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7348         Problem reported for gnulib by Richard W.M. Jones in
7349         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7350
7351 2012-01-27  Jim Meyering  <meyering@redhat.com>
7352
7353         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7354         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7355         convert a sequence with gaps to the minimal containing range.
7356         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7357         * tests/test-update-copyright.sh: Test for this.
7358         The FSF confirmed it is ok to do this, assuming there is at
7359         least one significant change per year in the affected range:
7360         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7361
7362 2012-01-26  Bruno Haible  <bruno@clisp.org>
7363
7364         pipe2: refine doc about thread-safety
7365         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7366         multithread-safety problem.
7367         * doc/glibc-functions/accept4.texi: Likewise.
7368
7369 2012-01-26  Bruno Haible  <bruno@clisp.org>
7370
7371         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7372         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7373         In the test program, include <fcntl.h>, for O_RDONLY.
7374
7375 2012-01-26  Eric Blake  <eblake@redhat.com>
7376
7377         pipe2: document lack of thread-safety in replacement
7378         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7379         issue in replacement.
7380         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7381         Based on a report by Eric Wong.
7382
7383 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7384             Bruno Haible  <bruno@clisp.org>
7385
7386         malloca: Avoid warnings on x86_64 mingw64.
7387         * lib/malloca.c: Include <stdint.h>.
7388         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7389         * modules/malloca (Depends-on): Add stdint.
7390         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7391
7392 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         obstack: remove __STDC__ conditionals
7395         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7396         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7397         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7398         m4/include_next.m4 as the only gnulib-maintained places that still
7399         refer to __STDC__.
7400
7401 2012-01-24  Bruno Haible  <bruno@clisp.org>
7402
7403         havelib: Modern quoting.
7404         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7405         the recent change to the GNU coding standards.
7406
7407 2012-01-24  Bruno Haible  <bruno@clisp.org>
7408
7409         stdint: Improve support for Android.
7410         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7411         Reported by Simon Josefsson <simon@josefsson.org>.
7412
7413 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         doc: omit trailing empty lines from INSTALL etc.
7416         * doc/Makefile (INSTALL): Omit trailing empty lines.
7417         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7418         omit trailing empty lines.  This simplifies the build procedure.
7419
7420 2012-01-23  Jim Meyering  <meyering@redhat.com>
7421
7422         tests: avoid spurious warnings about gl_sockets_startup
7423         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7424         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7425         reporting a "statement with no effect".
7426         * tests/test-accept.c (main): Mark as "(void)".
7427         * tests/test-accept4.c (main): Likewise.
7428         * tests/test-bind.c (main): Likewise.
7429         * tests/test-connect.c (main): Likewise.
7430         * tests/test-getpeername.c (main): Likewise.
7431         * tests/test-getsockname.c (main): Likewise.
7432         * tests/test-getsockopt.c (main): Likewise.
7433         * tests/test-listen.c (main): Likewise.
7434         * tests/test-recv.c (main): Likewise.
7435         * tests/test-recvfrom.c (main): Likewise.
7436         * tests/test-send.c (main): Likewise.
7437         * tests/test-sendto.c (main): Likewise.
7438         * tests/test-setsockopt.c (main): Likewise.
7439         * tests/test-shutdown.c (main): Likewise.
7440
7441 2012-01-21  Bruno Haible  <bruno@clisp.org>
7442
7443         locale-fr.m4: Fix for Android.
7444         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7445         failure of the test program on Bionic libc.
7446
7447 2012-01-21  Jim Meyering  <meyering@redhat.com>
7448
7449         bootstrap: fail when bootstrap_post_import_hook fails
7450         Otherwise, it's far too easy to miss diagnostics emitted
7451         between gnulib-tool's output and that of running configure.
7452         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7453
7454 2012-01-17  Jim Meyering  <meyering@redhat.com>
7455
7456         maint: enable sc_trailing_blank
7457         * build-aux/pmccabe.css: Remove trailing blanks.
7458         * doc/acl-cygwin.txt: Likewise.
7459         * doc/gnu-oids.texi: Likewise
7460         * cfg.mk: Enable sc_trailing_blank.
7461         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7462
7463 2012-01-17  Jim Meyering  <meyering@redhat.com>
7464
7465         maint: enable sc_prohibit_openat_without_use
7466         * cfg.mk: Enable sc_prohibit_openat_without_use.
7467         Exempt lib/selinux-at.c.
7468
7469 2012-01-17  Jim Meyering  <meyering@redhat.com>
7470
7471         maint: enable sc_prohibit_cloexec_without_use
7472         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7473         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7474
7475 2012-01-17  Jim Meyering  <meyering@redhat.com>
7476
7477         maint: enable sc_prohibit_intprops_without_use
7478         * cfg.mk: Enable sc_prohibit_intprops_without_use
7479         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7480
7481 2012-01-17  Jim Meyering  <meyering@redhat.com>
7482
7483         maint: enable sc_prohibit_hash_pjw_without_use
7484         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7485         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7486         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7487         following " (".
7488
7489 2012-01-17  Jim Meyering  <meyering@redhat.com>
7490
7491         maint: enable double-word-prohibiting rule
7492         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7493         Exempt three files.
7494
7495 2012-01-17  Jim Meyering  <meyering@redhat.com>
7496
7497         maint: remove empty lines at EOF, but excluding modules/*
7498         Apply syntax rules at home as well as abroad.  Most changes
7499         were induced by running this:
7500           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7501             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7502             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7503         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7504         Exempt modules/* and two binary files.
7505         Also exempt doc/INSTALL*, per request from Bruno Haible.
7506         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7507         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7508         * doc/Copyright/request-assign.future: Likewise.
7509         * doc/Copyright/request-disclaim.changes: Likewise.
7510         * doc/INSTALL: Likewise.
7511         * doc/INSTALL.ISO: Likewise.
7512         * doc/INSTALL.UTF-8: Likewise.
7513         * doc/acl-cygwin.txt: Likewise.
7514         * doc/acl-resources.txt: Likewise.
7515         * doc/fdl-1.2.texi: Likewise.
7516         * doc/fdl-1.3.texi: Likewise.
7517         * doc/fdl.texi: Likewise.
7518         * lib/argp-pin.c: Likewise.
7519         * lib/round.c: Likewise.
7520         * lib/unicase/u16-totitle.c: Likewise.
7521         * lib/unictype/block_test.c: Likewise.
7522         * lib/uninorm/canonical-decomposition.c: Likewise.
7523         * m4/README: Likewise.
7524         * m4/relocatable-lib.m4: Likewise.
7525         * tests/test-isnand-nolibm.c: Likewise.
7526         * tests/test-isnand.c: Likewise.
7527         * tests/uninorm/NormalizationTest.txt: Likewise.
7528
7529 2012-01-17  Jim Meyering  <meyering@redhat.com>
7530
7531         maint: add framework to run syntax-check rules against gnulib sources
7532         * cfg.mk: New file, to disable all currently-failing tests.
7533         We'll enable them one by one, as they are made to pass.
7534         * Makefile (sc_maint): New rule.
7535
7536 2012-01-21  Bruno Haible  <bruno@clisp.org>
7537
7538         stdint: Add support for Android.
7539         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7540         include the system's <stdint.h>.
7541         Reported by Simon Josefsson <simon@josefsson.org>.
7542
7543 2012-01-19  Jim Meyering  <meyering@redhat.com>
7544
7545         bootstrap: add bootstrap_post_import_hook
7546         Bison does still need something like the gnulib_mk_hook whose
7547         invocation I had to remove along with slurp in commit 767ccd40.
7548         Technically, we could get along without it, but doing so would
7549         have required living with a warning and a mandatory post-bootstrap
7550         automake rerun.
7551         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7552         (bootstrap_post_import_hook): New function.
7553         Invoke it after gnulib-tool --import and before autoreconf.
7554
7555 2012-01-18  Jim Meyering  <meyering@redhat.com>
7556
7557         gitlog-to-changelog: don't use "no_"-prefixed variable name
7558         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7559         to enable both --cluster and --no-cluster.  Change variable name,
7560         s/\$no_cluster/$cluster/, and reverse usage to match.
7561
7562         gitlog-to-changelog: use "||", not "or" in expressions
7563         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7564         expressions.
7565
7566 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7567
7568         gitlog-to-changelog: new option --no-cluster
7569         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7570         clustering of adjacent commit messages.
7571
7572 2012-01-17  Jim Meyering  <meyering@redhat.com>
7573
7574         maint: spell file systems with two words, not one
7575         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7576         two words, not one.
7577
7578 2012-01-16  Jim Meyering  <meyering@redhat.com>
7579
7580         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7581         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7582
7583 2012-01-16  Eric Blake  <eblake@redhat.com>
7584
7585         bootstrap: cater to autoconf 2.59
7586         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7587         is not available.
7588
7589         bootstrap: properly check for libtool
7590         * build-aux/bootstrap (libtoolize): Also run libtool when older
7591         usage is detected.
7592
7593 2012-01-15  Bruno Haible  <bruno@clisp.org>
7594
7595         Improve support for MSVC 9.
7596         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7597         clashes on MSVC.
7598         * lib/fcntl.in.h: Likewise.
7599         * lib/stdlib.in.h: Likewise.
7600         * lib/sys_stat.in.h: Likewise.
7601
7602 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7603
7604         gnupload: we hold the master copy of this script now
7605         For motivation and more information, see:
7606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7607         * build-aux/gnupload: Make it clear in the heading comments that the
7608         master copy of this file is maintained by gnulib.  Since we are at
7609         it, bump its copyright year and ...
7610         ($scriptversion): ... the date in its version.
7611         ($usage): Patches and bug reports should be sent to the gnulib list,
7612         not the automake one.
7613         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7614         anymore.
7615
7616 2012-01-15  Bruno Haible  <bruno@clisp.org>
7617
7618         Fix module 'random'.
7619         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7620         initstate, setstate are declared.
7621
7622 2012-01-14  Bruno Haible  <bruno@clisp.org>
7623
7624         Tests for module 'random'.
7625         * modules/random-tests: New file.
7626         * tests/test-random.c: New file, based on tests/test-random_r.c.
7627
7628         New module 'random'.
7629         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7630         declarations.
7631         * lib/random.c: New file, based on glibc/stdlib/random.c.
7632         * m4/random.m4: New file.
7633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7634         HAVE_RANDOM.
7635         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7636         * modules/random: New file.
7637         * config/srclist.txt: Add an entry for random.c.
7638         * doc/posix-functions/random.texi: Mention the 'random' module.
7639         * doc/posix-functions/initstate.texi: Likewise.
7640         * doc/posix-functions/setstate.texi: Likewise.
7641         * doc/posix-functions/srandom.texi: Likewise.
7642
7643 2012-01-12  Bruno Haible  <bruno@clisp.org>
7644
7645         random_r: Use common idioms.
7646         * lib/random_r.c: Include <stdlib.h> first.
7647
7648         random_r: Override incompatible API on AIX, OSF/1.
7649         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7650         Override the system function if REPLACE_RANDOM_R is 1.
7651         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7652         and OSF/1, set REPLACE_RANDOM_R.
7653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7654         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7655         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7656         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7657         * doc/glibc-functions/random_r.texi: Likewise.
7658         * doc/glibc-functions/setstate_r.texi: Likewise.
7659
7660         random_r: Support for MSVC 9.
7661         * lib/random_r.c: Include stdint.h, not inttypes.h.
7662
7663 2012-01-12  Eric Blake  <eblake@redhat.com>
7664
7665         inet_ntop: guard extra work by IF_LINT
7666         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7667         better code generation when not checking for warnings.
7668         Suggested by Paul Eggert and Jim Meyering.
7669
7670         strptime: fix regression on mingw
7671         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7672         Fix regression.  Reported by Bruno Haible.
7673
7674 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7675             Bruno Haible  <bruno@clisp.org>
7676
7677         copy-file: add error-code-returning variant.
7678         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7679         (qcopy_file_preserving): New declaration.
7680         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7681         copy_file_preserving. Change return type to 'int'. Don't emit an error
7682         message here.
7683         (copy_file_preserving): New function.
7684         * tests/test-copy-file.c: Include <stdlib.h>.
7685         (main): Test qcopy_file_preserving if the environment variable
7686         NO_STDERR_OUTPUT is set.
7687         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7688         with NO_STDERR_OUTPUT
7689         * tests/test-copy-file-2.sh: Likewise.
7690
7691 2012-01-10  Bruno Haible  <bruno@clisp.org>
7692
7693         copy-file: Use 'quote' module consistently.
7694         * lib/copy-file.c (copy_file_preserving): Use quote().
7695
7696         copy-file: Refactor.
7697         * lib/copy-file.c: Include quote.h.
7698         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7699         message here.
7700         * modules/copy-file (Depends-on): Add quote.
7701
7702         acl: Export qcopy_acl.
7703         * lib/acl.h (qcopy_acl): New declaration.
7704         * lib/copy-acl.c (qcopy_acl): Make non-static.
7705
7706         acl: Rename a local variable.
7707         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7708
7709         acl: Align return values of copy_acl and qcopy_acl.
7710         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7711         maybe < -1.
7712
7713 2012-01-11  Eric Blake  <eblake@redhat.com>
7714
7715         strptime: silence gcc warnings
7716         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7717         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7718         Reported by Daniel P. Berrange.
7719
7720         inet_ntop: silence gcc warning
7721         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7722         Reported by Daniel P. Berrange.
7723
7724 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7725
7726         getloadavg test: skip the test on GNU/Linux without /proc mounted
7727         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7728         file.  When /proc is not mounted, it always fails with ENOENT.
7729         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7730         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7731
7732 2012-01-10  Bruno Haible  <bruno@clisp.org>
7733
7734         regex: Avoid link error on MSVC 9.
7735         * modules/regex (Depends-on): Add wctype.
7736
7737 2012-01-10  Bruno Haible  <bruno@clisp.org>
7738
7739         doc: Mention --with-tests option.
7740         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7741         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7742         --with-tests.
7743         Reported by Reuben Thomas.
7744
7745 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7746
7747         users.txt: order package names lexicographically.
7748         * users.txt: Order package names lexicographically.
7749
7750 2012-01-10  Jim Meyering  <meyering@redhat.com>
7751
7752         maint.mk: fix description in comment
7753         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7754
7755         ignore-value: remove deprecated ignore_ptr function
7756         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7757         * NEWS: Note this.
7758
7759 2012-01-09  Jim Meyering  <meyering@redhat.com>
7760
7761         test-init.sh: avoid a subshell
7762         * tests/test-init.sh: Remove protective subshell.
7763         Suggested by Bernhard Voelker.  While a subshell is normally
7764         required to protect against older shells (Solaris, FreeBSD) that
7765         warn about a missing program before performing redirection, the
7766         shell-selection tests performed by init.sh probably exclude any
7767         offending shell.
7768
7769 2012-01-08  Bruno Haible  <bruno@clisp.org>
7770
7771         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7772         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7773         variable.
7774
7775 2012-01-08  Bruno Haible  <bruno@clisp.org>
7776
7777         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7778         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7779         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7780         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7781         macro.
7782         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7783         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7784         * lib/spawn_faction_addopen.c: Add workaround implementation if
7785         HAVE_WORKING_POSIX_SPAWN.
7786         * modules/spawn (Makefile): Substitute
7787         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7788         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7789         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7790         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7791         (Depends-on): Update conditions.
7792         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7793         the Solaris 11 bug.
7794
7795 2012-01-08  Bruno Haible  <bruno@clisp.org>
7796
7797         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7798         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7799         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7800         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7801         macro.
7802         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7804         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7805         HAVE_WORKING_POSIX_SPAWN.
7806         * modules/spawn (Makefile): Substitute
7807         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7808         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7809         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7810         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7811         (Depends-on): Update conditions.
7812         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7813         the Solaris 11 bug.
7814
7815 2012-01-08  Bruno Haible  <bruno@clisp.org>
7816
7817         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7818         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7819         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7821         HAVE_WORKING_POSIX_SPAWN.
7822         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7823         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7825         * lib/spawn_faction_addclose.c: Add workaround implementation if
7826         HAVE_WORKING_POSIX_SPAWN.
7827         * modules/spawn (Makefile): Substitute
7828         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7829         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7830         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7831         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7832         (Depends-on): Update conditions.
7833         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7834         the Solaris 11 bug.
7835
7836 2012-01-08  Bruno Haible  <bruno@clisp.org>
7837
7838         doc: Update for Solaris 11 2011-11.
7839         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7840         * m4/printf.m4: Update comments.
7841
7842 2012-01-08  Bruno Haible  <bruno@clisp.org>
7843
7844         mktime: Avoid compilation error on Solaris 11.
7845         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7846
7847 2012-01-08  Bruno Haible  <bruno@clisp.org>
7848
7849         doc: Small fix.
7850         * doc/posix-headers/nl_types.texi: Correct platforms list.
7851
7852 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7853
7854         Add lgpl-3.0 module.
7855         * MODULES.html.sh (Support for building documentation): Add
7856         lgpl-3.0.
7857         * modules/lgpl-3.0: New file.
7858
7859 2012-01-08  Jim Meyering  <meyering@redhat.com>
7860
7861         select.c: indent with spaces, not TABs
7862         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7863
7864 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7865
7866         quotearg: do not use grave accent for left quote
7867         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7868         locale_quoting_style.
7869         (quotearg_buffer_restyled): Fix example.
7870         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7871
7872 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7873
7874         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7875         Most programs do not have translation catalogs for English and much
7876         less separate catalogs for British and American English.  Drop the
7877         suggestion to translators about these two, and provide it
7878         automatically for Unicode locales.  Like most programs, even those
7879         using American English, we use single quotation marks.  This conflicts
7880         with the American typographic convention, but works better when you
7881         cite the entire error message within double quotes.  It also tries not
7882         to clash with established practice and with what non-gnulib programs
7883         will usually do.
7884         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7885         using an UTF-8 or GB-18030 locale.  The list of other locales with
7886         quotes was provided by Bruno Haible.
7887         (quotearg_buffer_restyled): Adjust instructions to translators.
7888         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7889         text, since this would be wrong when using Unicode.
7890         * modules/quotearg: Depend on c-strcaseeq.
7891
7892 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7893
7894         quotearg: fix Wikipedia link
7895         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7896
7897 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7898
7899         Fix for mingw with MSVC9.
7900         * m4/ld-version-script.m4: Check that compiler rejects version
7901         scripts with syntax errors.  Reported by Bruno Haible
7902         <bruno@clisp.org>.
7903
7904 2012-01-06  Bruno Haible  <bruno@clisp.org>
7905
7906         Talk about "native Windows API", not "Woe32".
7907         * lib/accept4.c: Update comments to mention native Windows.
7908         * lib/execute.c: Likewise.
7909         * lib/fatal-signal.c: Likewise.
7910         * lib/localcharset.c: Likewise.
7911         * lib/nanosleep.c: Likewise.
7912         * lib/nl_langinfo.c: Likewise.
7913         * lib/pclose.c: Likewise.
7914         * lib/pipe-filter-gi.c: Likewise.
7915         * lib/pipe-filter-ii.c: Likewise.
7916         * lib/pipe.c: Likewise.
7917         * lib/pipe2.c: Likewise.
7918         * lib/popen.c: Likewise.
7919         * lib/progreloc.c: Likewise.
7920         * lib/relocatable.c: Likewise.
7921         * lib/sigaction.c: Likewise.
7922         * lib/sigprocmask.c: Likewise.
7923         * lib/spawn-pipe.h: Likewise.
7924         * lib/spawn-pipe.c: Likewise.
7925         * lib/spawni.c: Likewise.
7926         * lib/stat-time.h: Likewise.
7927         * lib/w32spawn.h: Likewise.
7928         * tests/test-isatty.c: Likewise.
7929         * lib/config.charset: More comments.
7930         * doc/gnulib-intro.texi: Mention native Windows.
7931         * doc/posix-functions/_Exit_C99.texi: Likewise.
7932         * doc/posix-headers/fcntl.texi: Likewise.
7933
7934 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7935
7936         argp: Avoid crash if translator uses % characters in a translation.
7937         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7938         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7939
7940 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         doc: C11 and C++11 are now official
7943         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7944         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7945         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7946         * modules/stdalign:
7947         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7948
7949 2012-01-06  Bruno Haible  <bruno@clisp.org>
7950
7951         uc-is-grapheme-break tests: Tweak.
7952         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7953         message.
7954
7955 2012-01-06  Bruno Haible  <bruno@clisp.org>
7956
7957         test-init.sh: correct the test for diff -u
7958         * tests/test-init.sh: Also redirect stdout to /dev/null.
7959
7960 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         Use ', not `, for quoting output.
7963         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7964         (print_changelog_deltas, get_tool_versions, main program):
7965         * build-aux/git-version-gen:
7966         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7967         * build-aux/move-if-change (help):
7968         * build-aux/useless-if-before-free (usage, main program):
7969         * check-module (parse_module_file, usage)
7970         (find_included_lib_files, check_module):
7971         * lib/argmatch.c (main) [TEST]:
7972         * lib/argp-help.c (_help):
7973         * lib/getopt1.c (main) [TEST]:
7974         * lib/git-merge-changelog.c (usage):
7975         * lib/xstrtol-error.c (xstrtol_error):
7976         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7977         * m4/argz.m4 (gl_FUNC_ARGZ):
7978         * m4/bison.m4 (gl_BISON):
7979         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7980         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7981         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7982         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7983         * m4/gc-random.m4 (gl_GC_RANDOM):
7984         * m4/intl.m4 (gt_CHECK_DECL):
7985         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7987         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7989         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7990         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7991         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7992         * tests/test-dirname.c (main):
7993         * tests/test-getpass.c (main):
7994         * tests/test-iconvme.c (main):
7995         * tests/test-parse-datetime.c (LOG):
7996         * tests/test-xstrtoimax.sh:
7997         * tests/test-xstrtol.sh:
7998         * tests/test-xstrtoll.sh:
7999         * tests/test-xstrtoumax.sh:
8000         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8001         * top/GNUmakefile (abort-due-to-no-makefile):
8002         Quote 'like this', not `like this', as per the recent change to
8003         the GNU coding standards.
8004
8005 2012-01-05  Bruno Haible  <bruno@clisp.org>
8006
8007         strtoimax: Don't force a replacement on systems where intmax_t is int.
8008         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8009         'intmax_t' is not larger than 'int'.
8010         Reported by Pádraig Brady <P@draigBrady.com>.
8011
8012 2012-01-05  Bruno Haible  <bruno@clisp.org>
8013
8014         doc: Mention NetBSD bugs.
8015         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8016         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8017
8018 2012-01-05  Bruno Haible  <bruno@clisp.org>
8019
8020         strtoumax tests: Enhance tests.
8021         * tests/test-strtoumax.c (main): Add tests for large values.
8022
8023 2012-01-05  Bruno Haible  <bruno@clisp.org>
8024
8025         strtoimax: Work around AIX 5.1 bug.
8026         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8027         definition.
8028         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8029         Set HAVE_STRTOIMAX.
8030         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8031         REPLACE_STRTOIMAX.
8032         * modules/inttypes-incomplete (Makefile.am): Substitute
8033         REPLACE_STRTOIMAX.
8034         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8035         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8036         (Depends-on): Update conditions.
8037         * tests/test-strtoimax.c (main): Add tests for large values.
8038         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8039
8040 2012-01-05  Bruno Haible  <bruno@clisp.org>
8041
8042         inttypes: Modernize.
8043         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8044         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8045         (Makefile.am): Update inttypes.h rule.
8046
8047 2012-01-05  Jim Meyering  <meyering@redhat.com>
8048
8049         init.sh: don't waste a subshell just to redirect stderr
8050         * tests/init.sh: In testing for diff -u and diff -c, use a
8051         stderr-redirecting exec inside `...` rather than a subshell.
8052
8053         test-init.sh: avoid failure on HP-UX 11.00
8054         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8055         resolves to diff -c or cmp.  Reported by Bruno Haible.
8056
8057 2012-01-05  Bruno Haible  <bruno@clisp.org>
8058
8059         Tests for module 'strtoull'.
8060         * modules/strtoull-tests: New file.
8061         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8062
8063 2012-01-05  Bruno Haible  <bruno@clisp.org>
8064
8065         Tests for module 'strtoll'.
8066         * modules/strtoll-tests: New file.
8067         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8068
8069 2012-01-05  Bruno Haible  <bruno@clisp.org>
8070
8071         Tests for module 'strtoul'.
8072         * modules/strtoul-tests: New file.
8073         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8074
8075 2012-01-05  Bruno Haible  <bruno@clisp.org>
8076
8077         Tests for module 'strtol'.
8078         * modules/strtol-tests: New file.
8079         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8080
8081 2012-01-04  Jim Meyering  <meyering@redhat.com>
8082
8083         test-init.sh: accommodate Solaris 5.10's different diff -u output
8084         * tests/test-init.sh: Also exempt @@ lines from the comparison
8085         of diff output, since Solaris 5.10 and GNU diff formats differ.
8086         Reported by Stefano Lattarini.
8087
8088 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8089
8090         test-posixtm: don't assume signed integer wraparound
8091         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8092         after signed integer overflow.  Inspired by (though it may not
8093         fix) Bruno Haible's bug report in
8094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8095
8096         Spell out "Windows 9x" and "Windows XP".
8097         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8098         "Windows 9x" and "WinXP" with "Windows XP".
8099
8100 2012-01-04  Jim Meyering  <meyering@redhat.com>
8101
8102         test-vc-list-files-cvs.sh: remove obsolete comment
8103         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8104         double exit.  Now that's all encapsulated via skip_ and Exit.
8105
8106 2012-01-04  Bruno Haible  <bruno@clisp.org>
8107
8108         Talk about "native Windows API", not "Win32".
8109         * lib/classpath.c: Update comments to mention native Windows.
8110         * lib/csharpexec.c: Likewise.
8111         * lib/dup2.c: Likewise.
8112         * lib/error.c: Likewise.
8113         * lib/fcntl.c: Likewise.
8114         * lib/filename.h: Likewise.
8115         * lib/findprog.c: Likewise.
8116         * lib/get-rusage-as.c: Likewise.
8117         * lib/get-rusage-data.c: Likewise.
8118         * lib/getpagesize.c: Likewise.
8119         * lib/javaexec.c: Likewise.
8120         * lib/msvc-inval.c: Likewise.
8121         * lib/msvc-nothrow.c: Likewise.
8122         * lib/nanosleep.c: Likewise.
8123         * lib/nonblocking.c: Likewise.
8124         * lib/printf-parse.c: Likewise.
8125         * lib/setlocale.c: Likewise.
8126         * lib/sigaction.c: Likewise.
8127         * lib/strerror_r.c: Likewise.
8128         * lib/tmpdir.c: Likewise.
8129         * lib/vasnprintf.c: Likewise.
8130         * lib/w32spawn.h: Likewise.
8131         * lib/waitpid.c: Likewise.
8132         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8133         * m4/locale-ar.m4: Likewise.
8134         * m4/locale-fr.m4: Likewise.
8135         * m4/locale-ja.m4: Likewise.
8136         * m4/locale-tr.m4: Likewise.
8137         * m4/locale-zh.m4: Likewise.
8138         * m4/printf.m4: Likewise.
8139         * tests/test-cloexec.c: Likewise.
8140         * tests/test-copy-acl.sh: Likewise.
8141         * tests/test-copy-file.sh: Likewise.
8142         * tests/test-file-has-acl.sh: Likewise.
8143         * tests/test-set-mode-acl.sh: Likewise.
8144         * tests/test-dup-safer.c: Likewise.
8145         * tests/test-dup2.c: Likewise.
8146         * tests/test-dup3.c: Likewise.
8147         * tests/test-fcntl.c: Likewise.
8148         * tests/test-nonblocking-pipe.h: Likewise.
8149         * tests/test-nonblocking-socket.h: Likewise.
8150         * tests/test-pipe.c: Likewise.
8151         * tests/test-pipe2.c: Likewise.
8152         * tests/test-spawn-pipe-child.c: Likewise.
8153         * doc/acl-resources.txt: Likewise.
8154         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8155         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8156         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8157         * lib/localcharset.c: Update comments to mention native Windows.
8158         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8159         * lib/localename.c: Likewise.
8160         * lib/progreloc.c: Likewise.
8161         * lib/relocatable.c: Likewise.
8162         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8163         (windows_compute_revents): Renamed from win32_compute_revents.
8164         (windows_compute_revents_socket): Renamed from
8165         win32_compute_revents_socket.
8166         * lib/select.c: Update comments to mention native Windows.
8167         (windows_poll_handle): Renamed from win32_poll_handle.
8168         * m4/threadlib.m4: Update comments to mention native Windows.
8169         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8170         --enable-threads=windows instead of --enable-threads=win32. Set
8171         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8172         * lib/glthread/lock.h: Update comments to mention native Windows.
8173         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8174         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8175         USE_WIN32_THREADS.
8176         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8177         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8178         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8179         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8180         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8181         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8182         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8183         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8184         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8185         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8186         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8187         * tests/test-tls.c: Likewise.
8188         Rationale:
8189         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8190         on both 32-bit and 64-bit Windows systems.
8191         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8192         line of distinction is between "native Windows" on one side and Unix/
8193         POSIX systems on the other side. More details in
8194         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8195         Suggested by Paul Eggert.
8196
8197 2012-01-03  Bruno Haible  <bruno@clisp.org>
8198
8199         isatty: Support for MSVC 9.
8200         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8201         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8202         (_isatty_nothrow): New function.
8203         (isatty): Use it instead of _isatty.
8204         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8205         * lib/poll.c (IsConsoleHandle): Likewise.
8206         * lib/select.c (IsConsoleHandle): Likewise.
8207         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8208         (gl_PREREQ_ISATTY): New macro.
8209         * modules/isatty (Depends-on): Add msvc-inval.
8210         (configure.ac): Invoke gl_PREREQ_ISATTY.
8211
8212 2012-01-03  Jim Meyering  <meyering@redhat.com>
8213
8214         maint.mk: remove temporary transition aid from over 1.5 years ago
8215         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8216         purpose was to aid in the transition (avoiding silent malfunction)
8217         from that old name to the new _sc_search_regexp.  This shim was
8218         added by commit 219c504b.
8219
8220         init.sh: do not try to accommodate compare arguments starting with "-"
8221         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8222         compare arguments that start with "-".  Besides, we do not worry
8223         about this when invoking diff or cmp; why start now with sed?
8224         Using "--" to separate options from argument would trigger sed
8225         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8226         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8227
8228 2012-01-02  Bruno Haible  <bruno@clisp.org>
8229
8230         Enhance tests for module 'isatty'.
8231         * modules/isatty-tests (Depends-on): Add pipe-posix.
8232         * tests/test-isatty.c: Include <fcntl.h>.
8233         (DEV_NULL): New macro.
8234         (main): Test the resut of isatty() also on regular files, pipes, and
8235         /dev/null.
8236
8237         New module 'isatty'.
8238         * lib/unistd.in.h (isatty): New declaration.
8239         * lib/isatty.c: New file, based on an idea of
8240         Bastien Roucariès <roucaries.bastien@gmail.com>.
8241         * m4/isatty.m4: New file.
8242         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8243         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8244         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8245         REPLACE_ISATTY.
8246         * modules/isatty: New file.
8247         * doc/posix-functions/isatty.texi: Mention the new module.
8248         Suggested by Paolo Bonzini.
8249
8250 2012-01-02  Bruno Haible  <bruno@clisp.org>
8251
8252         canonicalize: Tweak 2011-12-29 commit.
8253         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8254         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8255
8256 2012-01-02  Jim Meyering  <meyering@redhat.com>
8257
8258         gitlog-to-changelog: describe input syntax in --help output
8259         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8260
8261         gitlog-to-changelog: fix typo in --help: show backslash before email @
8262         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8263         in sources, but not in actual output.
8264
8265 2011-12-30  Jim Meyering  <meyering@redhat.com>
8266
8267         gitlog-to-changelog: don't malfunction when name contains %-directive
8268         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8269         in a name string cause trouble.  E.g., with a user name of "%s",
8270         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8271
8272 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8273
8274         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8275         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8276         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8277         the "  (tiny change)" notation that is appended to the standard
8278         ChangeLog "date  name  email" header line.
8279
8280 2012-01-01  Jim Meyering  <meyering@redhat.com>
8281
8282         test-framework-sh: init.sh: fix "make dist" failure
8283         When using gnulib-tool's --with-tests option and any module that
8284         depends on test-framework-sh, "make dist" would fail due to the
8285         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8286         in the gltests directory, and not in the gllib/ directory.
8287         One way to work around that is to move the EXTRA_DIST += init.sh
8288         from the primary module to the -tests one:
8289         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8290         * modules/test-framework-sh (Makefile.am): ...not here.
8291         Reported by Tom G. Christensen in
8292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8293
8294         version-etc: update copyright year reported by --version
8295         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8296
8297 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8298
8299         canonicalize: only stat() if required
8300         * lib/canonicalize.c (canonicalize_filename_mode):
8301         Avoid calling l?stat() when both CAN_MISSING,
8302         and CAN_NOLINKS are set, as we neither need
8303         to resolve symlinks or test component existence.
8304
8305 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8306
8307         doc: cover st_ino issues once; add OpenVMS etc.
8308         * doc/posix-functions/stat.texi (stat):
8309         * doc/posix-functions/lstat.texi (lstat):
8310         * doc/posix-functions/fstatat.texi (fstatat):
8311         * doc/posix-functions/fstat.texi (fstat):
8312         Move general 'struct stat' stuff to sys_stat.texi,
8313         leaving behind a pointer.
8314         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8315         Merge duplicate info about 'struct stat' problems into here.
8316         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8317         and suggest partial workarounds.
8318
8319         same-inode: port to OpenVMS
8320         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8321         three st_ino values.
8322
8323 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8324
8325         canonicalize: fix references to stat() and lstat()
8326         * lib/canonicalize.c (canonicalize_filename_mode):
8327         Ensure references always resolve to a replacement
8328         function if required (even via a macro).
8329
8330 2011-12-30  Jim Meyering  <meyering@redhat.com>
8331
8332         gitlog-to-changelog: remove a little duplication
8333         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8334         rather than twice.
8335
8336 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8337
8338         canonicalize: add support for not resolving symlinks
8339         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8340         indicate we don't want to follow symlinks.  Also
8341         provide CAN_MODE_MASK to aid setting these existing
8342         mutually exclusive values.
8343         * lib/canonicalize.c (canonicalize_filename_mode):
8344         Extract the flags from can_mode parameter, which
8345         are currently just used to select between stat()
8346         and lstat().  Also ensure that mutually exclusive
8347         values are flagged immediately as invalid.
8348         * tests/test-canonicalize.c: Verify symlinks are
8349         not followed, and that invalid flag combinations
8350         are diagnosed.
8351
8352 2011-12-25  Jim Meyering  <meyering@redhat.com>
8353
8354         gitlog-to-changelog: do not clump multi-paragraph entries
8355         Identical header lines (date,name,email+coauthors) are suppressed,
8356         thus putting all entries with those same characteristics under
8357         a single header.  However, when a log entry consists of two or
8358         more paragraphs, it may not be clear where it starts and ends.
8359         This change makes it so that such an entry is always separated
8360         from others by a header line, even when that header would
8361         otherwise be suppressed.
8362         * build-aux/gitlog-to-changelog: Implement the above.
8363         Inspired by a related request from Stefano Lattarini in
8364         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8365
8366 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8367
8368         announce-gen: fix `cmd' typo in diagnostic
8369         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8370         diagnostic: a missing '$' meant that the command was not output.
8371
8372 2011-12-23  Jim Meyering  <meyering@redhat.com>
8373
8374         test-framework-sh: distribute init.sh
8375         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8376         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8377         fail due to the lack of init.sh.
8378
8379         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8380         * modules/atexit-tests: Rather than listing tests/init.sh,
8381         now that there's a module for it, simply depend on that new module.
8382         * modules/closein-tests: Likewise.
8383         * modules/exclude-tests: Likewise.
8384         * modules/getcwd-tests: Likewise.
8385         * modules/perror-tests: Likewise.
8386         * modules/pread-tests: Likewise.
8387         * modules/pwrite-tests: Likewise.
8388         * modules/vc-list-files-tests: Likewise.
8389         * modules/verify-tests: Likewise.
8390         * modules/xalloc-die-tests: Likewise.
8391         * modules/xstrtoimax-tests: Likewise.
8392         * modules/xstrtol-tests: Likewise.
8393         * modules/xstrtoll-tests: Likewise.
8394         * modules/xstrtoumax-tests: Likewise.
8395         * modules/yesno-tests: Likewise.
8396
8397 2011-12-22  Jim Meyering  <meyering@redhat.com>
8398
8399         test-framework-sh: add minimal tests of init.sh's compare function
8400         * modules/test-framework-sh-tests: New file.
8401         * tests/test-init.sh: New file.
8402
8403         test-framework-sh: new module
8404         * modules/test-framework-sh: New file.
8405         * MODULES.html.sh (Support for maintaining and releasing projects):
8406         List it.
8407
8408         init.sh: do not emit simulated diff output to stderr
8409         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8410
8411 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8412
8413         .gitignore: ignore gnulib.dvi and regex.info
8414         * doc/.gitignore:add gnulib.dvi and regex.info
8415
8416 2011-12-22  Jim Meyering  <meyering@redhat.com>
8417
8418         init.sh: correct previous change
8419         * tests/init.sh (compare): My previous change was wrong.
8420         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8421
8422         init.sh: avoid unwarranted test failure when using "set -e"
8423         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8424         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8425         a use like "compare exp out" would get evoke an unconditional failure.
8426
8427 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8428
8429         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8430         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8431         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8432         autoreconf that did not.
8433         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8434         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8435
8436 2011-12-17  Jim Meyering  <meyering@redhat.com>
8437
8438         bootstrap: remove some now-unneeded code
8439         This script arose back when gnulib-tool was young.
8440         Since then, it has seen improvements that render much of this
8441         script unnecessary.  In particular, it can now make symlinks
8442         to the files it uses.  Also, I no longer see as much value in
8443         marking files as read-only via comments.
8444         If you relied on the symlink-creation feature of the preceding
8445         version of this script, you can get most of that functionality
8446         by adding the --symlink option to the definition of
8447         gnulib_tool_option_extras in your bootstrap.conf file.
8448         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8449         Run autopoint and libtoolize *before* gnulib-tool.
8450         After it, run an abbreviated autoreconf, rather than a loop around
8451         all tools.
8452         (slirp, bt_mark_as_generated): Remove functions.
8453
8454 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8455
8456         ftoastr: fix typo
8457         * lib/ftoastr.h: Fix misspelling in comment.
8458
8459 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8460
8461         * top/README-release: fix punctuation.
8462
8463 2011-12-17  Jim Meyering  <meyering@redhat.com>
8464
8465         bootstrap: correct the recent buildreq change
8466         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8467         had no effect.
8468         * build-aux/bootstrap (buildreq): Bracket each search term with
8469         "*...*", so that the shell "case" statement works as intended.
8470         Add comments.
8471
8472 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8473
8474         build: let bootstrap resort to wget when downloading .po files
8475         * build-aux/bootstrap (download_po_files): Fallback to wget when
8476         downloading the .po files via rsync fails.  This is necessary to
8477         bootstrap from behind a strict firewall.
8478
8479 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8480
8481         stdint: don't assume C++11 when compiling with g++
8482         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8484         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8485         work also in C++ before C++11, as that improperly inhibits
8486         generating a substitute stdint.h for that case.
8487
8488 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8489
8490         alloca: protect comment from gnulib-tool
8491         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8492         that gnulib-tool doesn't think it's a license, and munge it to
8493         say "GCC version 3".
8494
8495 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8496
8497         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8498         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8499         $(abs_top_builddir) instead of $(top_builddir).
8500
8501 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8502
8503         strftime-tests: also test nanoseconds
8504         * tests/test-strftime.c (T): Add a test of %N.
8505
8506 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         inttypes, stdint: add C++11 support
8509         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8510         when including inttypes.h and stdint.h.  Support this change to
8511         the standard.
8512         * doc/posix-headers/inttypes.texi (inttypes.h):
8513         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8514         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8515         Define if not defined already, for the benefit of pre-C++11 hosts.
8516         Define the standard format macros (e.g., PRId8) always.
8517         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8518         Likewise, if __cpluspus.  Define the standard constant and limit
8519         macros (e.g., INT8_C, INT8_MAX) always.
8520         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8521         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8522         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8523         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8524         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8525         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8526         Likewise.
8527
8528 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8529
8530         nonblocking tests: Fix test failure on Linux/PPC.
8531         Suggested by Prerna Saxena in
8532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8533         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8534         Set to 1100000.
8535
8536 2011-12-12  Jim Meyering  <meyering@redhat.com>
8537
8538         argmatch: don't hard-code `' when listing valid option arguments
8539         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8540         use the quote function to add quotes.  Use fputs rather than
8541         fprintf for the format string with no format directive.
8542
8543 2011-12-07  Eric Blake  <eblake@redhat.com>
8544
8545         bootstrap: detect tools required by gnulib-tool
8546         * build-aux/bootstrap (buildreq): Provide minimum implicit
8547         dependencies.
8548         * DEPENDENCIES: Mention patch as a prereq.
8549
8550 2011-12-04  Bruno Haible  <bruno@clisp.org>
8551
8552         sethostname: Port to Windows platforms.
8553         * lib/sethostname.c: Provide an alternate implementation for Windows
8554         platforms.
8555         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8556         (main): Skip the test if sethostname() fails with EPERM. On Windows
8557         platforms, don't check the result of gethostname().
8558
8559 2011-12-04  Bruno Haible  <bruno@clisp.org>
8560             Jim Meyering  <meyering@redhat.com>
8561
8562         tests: Avoid spurious error message on platforms without mktemp program.
8563         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8564
8565 2011-12-04  Bruno Haible  <bruno@clisp.org>
8566
8567         sethostname: Fix documentation.
8568         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8569         "not fixed" section.
8570
8571 2011-12-03  Bruno Haible  <bruno@clisp.org>
8572
8573         gnulib-tool: Verify that the License field is present and non-empty.
8574         * gnulib-tool (func_get_license_raw): New function, extracted from
8575         func_get_license.
8576         (func_get_license): Use it. Warn if the module is not a test module and
8577         has no license.
8578         Suggested by Jim Meyering.
8579
8580 2011-12-03  Bruno Haible  <bruno@clisp.org>
8581
8582         sethostname tests: Fix link error on mingw.
8583         * tests/test-sethostname1.c: New file, extracted from
8584         tests/test-sethostname.c.
8585         * tests/test-sethostname2.c: New file, extracted from
8586         tests/test-sethostname.c.
8587         * tests/test-sethostname.c: Remove file.
8588         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8589         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8590         (Depends-on): Add gethostname.
8591         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8592         Link the latter with $(GETHOSTNAME_LIB).
8593
8594         sethostname tests: Fix compilation error on mingw.
8595         * tests/test-sethostname.c: Don't include <sys/types.h>.
8596         (geteuid): Use a dummy value without uid_t.
8597         * modules/sethostname-tests (Depends-on): Remove sys_types.
8598
8599         sethostname tests: Avoid a gcc warning.
8600         * tests/test-sethostname.c (main): Remove an unused variable.
8601
8602         Tweak last commit.
8603         * modules/sethostname-tests (Files): Sort by decreasing importance.
8604         (configure.ac): Check for geteuid.
8605         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8606         the test when there's nothing to test. Drop an unnecessary cast.
8607         Improve an error message. Verify that the final sethostname() call
8608         succeeds.
8609
8610 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8611
8612         Add a test suite for the sethostname module.
8613         * modules/sethostname-tests: New file.  A test program
8614         for the sethostname module.
8615         * tests/test-sethostname.c: Likewise.
8616
8617 2011-12-03  Bruno Haible  <bruno@clisp.org>
8618
8619         Tweak last commit.
8620         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8621         Fix preprocessor directives indentation. Fix typos.
8622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8623         * modules/unistd (Makefile): Likewise.
8624
8625 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8626
8627         Integrate the sethostname module into unistd.
8628         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8629         into the unistd.h header.
8630         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8631         preprocessor directives.
8632         * modules/unistd: Setup the Makefile substitutions of the
8633         SETHOSTNAME preprocessor directives.
8634
8635 2011-12-03  Bruno Haible  <bruno@clisp.org>
8636
8637         Tweak last commit.
8638         * lib/sethostname.c: Don't include <string.h>.
8639         (sethostname): No need to copy the argument string to the stack. Don't
8640         call clearerr. Preserve errno when fprintf failed.
8641         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8642         Don't invoke AC_REPLACE_FUNCS.
8643         * modules/sethostname (Link): Remove empty section.
8644         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8645         failure problem.
8646
8647 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8648
8649         New module 'sethostname'.
8650         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8651         for systems that lack it.
8652         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8653         sethostname declaration and function.
8654         * modules/sethostname: New file.  Define the sethostname module.
8655
8656 2011-12-03  Bruno Haible  <bruno@clisp.org>
8657
8658         Tweak last commit.
8659         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8660
8661 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8662
8663         Split the HOST_NAME_MAX detection into a separate m4 macro.
8664         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8665         macro so it can be used by the pending sethostname module.
8666
8667 2011-12-03  Bruno Haible  <bruno@clisp.org>
8668
8669         Fix module descriptions syntax.
8670         * modules/argv-iter (License): Fix syntax.
8671         * modules/di-set (License): Likewise.
8672         * modules/ino-map (License): Likewise.
8673         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8674
8675 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         stdalign: port to Clang 3.0
8678         Problem reported by Simon Josefsson in
8679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8680         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8681         which has <stdalign.h> but which does not define alignof.
8682         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8683
8684 2011-12-01  Eric Blake  <eblake@redhat.com>
8685
8686         mktempd: silence dd usage
8687         * build-aux/mktempd (rand_bytes): Silence dd.
8688
8689 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8690
8691         manywarnings: Don't mention gcc version in docstring.
8692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8693         Jim Meyering <meyering@redhat.com>.
8694
8695 2011-11-30  Jim Meyering  <meyering@redhat.com>
8696
8697         hash: mark a few floating point constants with "f" suffix
8698         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8699         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8700         floating point constants with "f", since they're destined to be
8701         saved/used as "float"s.
8702
8703 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8704
8705         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8706         * tests/test-float.c (test_long_double): Correct and re-enable the
8707         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8708
8709 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8710
8711         Avoid subtracting two pointers that don't point into the same block.
8712         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8713         only pointers into the same memory block are subtracted. We cannot
8714         assume that sizeof (ptrdiff_t) == sizeof (void *).
8715
8716 2011-11-29  Eric Blake  <eblake@redhat.com>
8717
8718         maint.mk: add syntax check for use of compare from init.sh
8719         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8720         moved here from coreutils.
8721
8722         manywarnings: drop -Wunsuffixed-float-constants
8723         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8724         '1.0D', which is the only way to silence this warning for 'double'.
8725
8726 2011-11-29  Jim Meyering  <meyering@redhat.com>
8727
8728         hash: mark compute_bucket_size with the pure attribute
8729         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8730
8731         quotearg, propername: correct pragma guard expression
8732         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8733         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8734
8735 2011-11-28  Jim Meyering  <meyering@redhat.com>
8736
8737         propername: do not mark proper_name with the const attribute
8738         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8739         since it examines data pointed to by its parameter.
8740         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8741         the suggestion from -Wsuggest-attribute=const.
8742
8743         propername: mark one more function as const
8744         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8745
8746 2011-11-27  Jim Meyering  <meyering@redhat.com>
8747
8748         mark functions with const and pure attributes
8749
8750         Mark functions per suggestions from gcc-4.6 when using these options:
8751         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8752         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8753         Follow these guidelines: when possible, apply the attribute to
8754         an extern declaration, not to its definition.  Apply it to the
8755         definition only when the definition is static.
8756         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8757         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8758         * lib/base64.h (isbase64): Likewise.
8759         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8760         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8761         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8762         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8763         (c_tolower, c_toupper): Likewise.
8764         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8765         * lib/chdir-long.c (find_non_slash): Likewise.
8766         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8767         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8768         * lib/file-type.h (file_type): Likewise.
8769         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8770         * lib/filevercmp.c (verrevcmp): Likewise.
8771         * lib/freadahead.h (freadahead): Likewise.
8772         * lib/fts.c (fts_maxarglen): Likewise.
8773         * lib/hash-pjw.h (hash_pjw): Likewise.
8774         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8775         * lib/hash.c (is_prime, next_prime): Likewise.
8776         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8777         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8778         (hash_table_ok, hash_get_first, hash_string): Likewise.
8779         (compute_bucket_size): Likewise.
8780         * lib/i-ring.h (i_ring_empty): Likewise.
8781         * lib/isnan.c (isnanl): Likewise.
8782         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8783         * lib/memcasecmp.h (memcasecmp): Likewise.
8784         * lib/memchr2.h (memchr2): Likewise.
8785         * lib/memcmp2.h (memcmp2): Likewise.
8786         * lib/parse-datetime.y (lookup_zone): Likewise.
8787         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8788         [!WINDOWS_SOCKETS]: Likewise.
8789         * lib/strnlen1.h (strnlen1): Likewise.
8790         * lib/uniwidth.in.h (uc_width): Likewise.
8791         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8792         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8793         (quoting_options_from_style): Add a comment.
8794         * lib/propername.h (proper_name): Add a comment.
8795
8796 2011-11-27  Bruno Haible  <bruno@clisp.org>
8797
8798         Remove unused macros from !_LIBC code in glibc-borrowed files.
8799         * lib/fnmatch.c (STRCOLL): Remove macro.
8800         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8801         * lib/glob.c (__stat, __readdir64): Remove macros.
8802         * lib/tempname.c (__open64, __xstat64): Remove macros.
8803         Suggested by Paul Eggert.
8804
8805 2011-11-27  Bruno Haible  <bruno@clisp.org>
8806
8807         getcwd: Fix link error on MSVC 9.
8808         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8809
8810 2011-11-27  Bruno Haible  <bruno@clisp.org>
8811
8812         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8813         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8814         HAVE_OPENDIR is 0.
8815         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8816         HAVE_CLOSEDIR is 0.
8817         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8818         is 0.
8819         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8820
8821 2011-11-27  Bruno Haible  <bruno@clisp.org>
8822
8823         getcwd: Fix bug from 2011-08-17.
8824         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8825         platforms that need it.
8826         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8827         code of 4 to be a failure, not a success. This ensures that
8828         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8829
8830 2011-11-27  Bruno Haible  <bruno@clisp.org>
8831
8832         binary-io tests: Avoid test failure on mingw when libtool is used.
8833         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8834         Don't verify the size of t-bin-out1.tmp here.
8835         * tests/test-binary-io.sh: Verify it here.
8836         Reported by Simon Josefsson.
8837
8838 2011-11-26  Bruno Haible  <bruno@clisp.org>
8839
8840         Fix conflict between two instantiations of module 'unistd'.
8841         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8842         ${include_guard_prefix} also in the autoconf snippet.
8843         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8845         GNULIB_UNISTD_H_GETOPT.
8846         * modules/getopt-posix (configure.ac): Set the
8847         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8848         * modules/getopt-gnu (configure.ac): Likewise.
8849         * modules/unistd (Makefile.am): Change the substitution value of
8850         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8851         Reported by Simon Josefsson.
8852
8853 2011-11-25  Bruno Haible  <bruno@clisp.org>
8854
8855         pagealign_alloc: Doc and comments.
8856         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8857         module.
8858         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8859
8860 2011-11-25  Jim Meyering  <meyering@redhat.com>
8861
8862         test-update-copyright.sh: avoid false-positive failure
8863         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8864         around false positive failure on Cygwin/Windows.  The latter was
8865         matching erroneously-created files with names like
8866         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8867
8868 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8869
8870         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8871         * m4/valgrind-tests.m4: Check that the parameters that will be
8872         used works, not just a subset of them.  Reported by Bruno Haible
8873         <bruno@clisp.org>.
8874
8875 2011-11-24  Jim Meyering  <meyering@redhat.com>
8876
8877         test-stdalign.c: comment out long double tests
8878         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8879         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8880         error: '_Alignas' specifiers cannot reduce alignment of \
8881         'static_longdouble_alignas'.
8882
8883 2011-11-22  Jim Meyering  <meyering@redhat.com>
8884
8885         init.sh: make "compare /dev/null FILE" output more readable
8886         * tests/init.sh (compare_): Document the preferred order of arguments.
8887         (emit_diff_u_header_): New function.
8888         (compare_dev_null_): Emit a simulated diff, rather than just the
8889         contents of the unexpected file.  Suggestion from Bruno Haible.
8890
8891 2011-11-21  Jim Meyering  <meyering@redhat.com>
8892             Eric Blake  <eblake@redhat.com>
8893
8894         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8895         * tests/init.sh: Make our compare function slightly more portable.
8896         Reported by Bruno Haible in
8897         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8898
8899 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8900
8901         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8902         before using it, in code that ends up in config.h.
8903
8904 2011-11-20  Bruno Haible  <bruno@clisp.org>
8905
8906         getcwd: Work around getcwd bug on AIX 5..7.
8907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8908         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8909         Use a different value for gl_cv_func_getcwd_path_max. Move the
8910         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8911         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8912         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8913         Define HAVE_MINIMALLY_WORKING_GETCWD.
8914         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8915         where it is not even minimally working, that is, on AIX.
8916         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8917         m4/getcwd-path-max.m4.
8918         (main): Update exit code computation.
8919         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8920         getcwd does not handle long file names.
8921
8922 2011-11-20  Bruno Haible  <bruno@clisp.org>
8923
8924         getcwd: Fix bug from 2009-09-10.
8925         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8926         like "no".
8927
8928 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8929
8930         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8931
8932 2011-11-20  Bruno Haible  <bruno@clisp.org>
8933
8934         fma tests: Avoid shadowing local variables.
8935         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8936         expected.
8937
8938 2011-11-20  Bruno Haible  <bruno@clisp.org>
8939
8940         copysignf tests: Fix.
8941         * tests/test-copysignf.c: Fix signature check.
8942
8943 2011-11-20  Bruno Haible  <bruno@clisp.org>
8944
8945         fma: Remove unused code.
8946         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8947         unused macros.
8948
8949 2011-11-20  Bruno Haible  <bruno@clisp.org>
8950
8951         sethostname: Fix doc about AIX.
8952         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8953         sethostname; it has it.
8954
8955         sethostname: Mention more portability problems.
8956         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8957         problem.
8958         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8959
8960 2011-11-19  Bruno Haible  <bruno@clisp.org>
8961
8962         Depend on module fcntl-h when AT_FDCWD is used.
8963         * modules/utimens (Depends-on): Add fcntl-h.
8964         * modules/areadlinkat (Depends-on): Likewise.
8965         * modules/areadlinkat-with-size (Depends-on): Likewise.
8966         * modules/faccessat (Depends-on): Likewise.
8967         * modules/fchmodat (Depends-on): Likewise.
8968         * modules/fchownat (Depends-on): Likewise.
8969         * modules/getcwd (Depends-on): Likewise.
8970         * modules/mkdirat (Depends-on): Likewise.
8971         * modules/mkfifoat (Depends-on): Likewise.
8972         * modules/readlinkat (Depends-on): Likewise.
8973         * modules/symlinkat (Depends-on): Likewise.
8974         * modules/dup2-tests (Depends-on): Likewise.
8975         * modules/fdutimensat-tests (Depends-on): Likewise.
8976         * modules/futimens-tests (Depends-on): Likewise.
8977
8978 2011-11-19  Bruno Haible  <bruno@clisp.org>
8979
8980         euidaccess: Update a comment.
8981         * lib/euidaccess.c: Update comment about platforms with faccessat.
8982
8983 2011-11-19  Bruno Haible  <bruno@clisp.org>
8984
8985         openat: Fix file list.
8986         * modules/openat (Files): Remove lib/at-func.c.
8987
8988 2011-11-19  Bruno Haible  <bruno@clisp.org>
8989
8990         fstatat: Simplify.
8991         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8992         gnulib should define rpl_fstatat, there is a
8993         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8994
8995 2011-11-19  Bruno Haible  <bruno@clisp.org>
8996
8997         Ensure 'inline' can be used in tests/test-utimens-common.h.
8998         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8999         * modules/futimens-tests (configure.ac): Likewise.
9000         * modules/utimens-tests (configure.ac): Likewise.
9001         * modules/utimensat-tests (configure.ac): Likewise.
9002
9003 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9004
9005         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9006         not hash_insert0.
9007         (hash_insert_if_absent): Doc fix.
9008
9009 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9010
9011         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9012
9013 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9014
9015         test-getcwd: disambiguate exit status
9016         * tests/test-getcwd.c (test_long_name): Return 0..7.
9017         (main): Exit with an unambiguous exit status.  The old
9018         code yielded a mysterious mixture of two failure codes.
9019
9020         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9021         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9022         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9023         rpl_fstatat or fstatat.  This should fix the other problem
9024         reported by Kai Habel in
9025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9026         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9028         and I reproduced it on a Solaris 8 host we still have in production.
9029
9030 2011-11-18  Jim Meyering  <meyering@redhat.com>
9031
9032         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9033         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9034         Add a sentence to the comment.
9035         (hash_insert0): New function that simply calls hash_insert_if_absent.
9036         * lib/hash.h (hash_insert_if_absent): Declare it.
9037         (hash_insert0): Add deprecation attribute.
9038         (_GL_ATTRIBUTE_DEPRECATED): Define.
9039         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9040         not hash_insert0.
9041         * NEWS: Mention it, even though it's not really an incompatible change.
9042
9043 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9044
9045         openat: avoid compilation failure due to lack of <errno.h> inclusion
9046         * lib/openat.c: Include <errno.h>.
9047
9048 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9049
9050         * modules/getcwd (Depends-on): Add fdopendir.
9051         This fixes one of the two problems reported by Kai Habel in
9052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9053
9054         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9055         stdalign problem reported by Ian Beckwith in
9056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9057         * modules/crypto/gc-arcfour (Depends-on):
9058         Depend conditionally on crypto/arcfour.
9059         * modules/crypto/gc-arctwo (Depends-on):
9060         Depend conditionally on crypto/arctwo.
9061         * modules/crypto/gc-des (Depends-on):
9062         Depend conditionally on crypto/des.
9063         * modules/crypto/gc-hmac-md5 (Depends-on):
9064         Depend conditionally on crypto/hmac-md5.
9065         * modules/crypto/gc-hmac-sha1 (Depends-on):
9066         Depend conditionally on crypto/hmac-sha1.
9067         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9068         * modules/crypto/gc-md4 (Depends-on):
9069         Depend conditionally on crypto/md4.
9070         * modules/crypto/gc-md5 (Depends-on):
9071         Depend conditionally on crypto/md5.
9072         * modules/crypto/gc-rijndael (Depends-on):
9073         Depend conditionally on crypto/rijndael.
9074         * modules/crypto/gc-sha1 (Depends-on):
9075         Depend conditionally on crypto/sha1.
9076         * modules/crypto/gc-arcfour:
9077         * modules/crypto/gc-arctwo:
9078         * modules/crypto/gc-des:
9079         * modules/crypto/gc-hmac-md5:
9080         * modules/crypto/gc-hmac-sha1:
9081         * modules/crypto/gc-md2:
9082         * modules/crypto/gc-md4:
9083         * modules/crypto/gc-md5:
9084         * modules/crypto/gc-rijndael:
9085         * modules/crypto/gc-sha1:
9086         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9087         now that the conditional dependencies do the work for us.
9088
9089 2011-11-17  Jim Meyering  <meyering@redhat.com>
9090
9091         tests: factor st_ctime-comparison out of two headers
9092         * tests/test-utimens-common.h (ctime_compare): Define.
9093         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9094         * tests/test-lutimens.h (test_lutimens): Likewise.
9095         * tests/test-utimens.h (test_utimens): Likewise.
9096
9097         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9098         Invoke the test program via an init.sh-using wrapper.
9099         * tests/test-getcwd.sh: New file.
9100         * modules/getcwd-tests (Files): Add it.
9101         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9102
9103 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9104
9105         gitlog-to-changelog: support multi-author commits.
9106         The FSF cares about keeping track of all authors of patches to its
9107         projects, but Git doesn't provide obvious support for multi-author
9108         changesets. Consensus seems to be forming around the use of extra
9109         Signed-off-by inspired lines in the log message formatted as
9110         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9111         multi-author commits between version control systems.
9112         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9113         log message and output in standard ChangeLog multi-author format.
9114         Reported by Peter Rosin <peda@lysator.liu.se>
9115
9116 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9117             Bruno Haible  <bruno@clisp.org>
9118
9119         Fix some modules' file list.
9120         * modules/fstatat (Files): Add m4/lstat.m4.
9121         * modules/openat (Files): Likewise.
9122         * modules/unlinkat (Files): Likewise.
9123
9124 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9125
9126         maint.mk: fix tight-scope.mk generation in VPATH builds.
9127         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9128         reference with $(srcdir) so that the file is found correctly even
9129         when running `make syntax-check' in a VPATH build.
9130
9131 2011-11-13  Bruno Haible  <bruno@clisp.org>
9132             Jim Meyering  <meyering@redhat.com>
9133
9134         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9135         * tests/init.sh (compare): Remove "No differences encountered" or
9136         synonymous output from the 'diff' program.
9137
9138 2011-11-13  Bruno Haible  <bruno@clisp.org>
9139
9140         Makefile: Tweak indentation.
9141         * Makefile: Use tab as first character in every line that contains rule
9142         commands.
9143
9144 2011-11-13  Bruno Haible  <bruno@clisp.org>
9145
9146         Syntax check for copyright statements.
9147         * check-copyright: New file.
9148         * Makefile (sc_check_copyright): New rule.
9149
9150 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9151
9152         * build-aux/git-version-gen: Add --prefix to configure the tag
9153         match string.
9154
9155 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9156
9157         * build-aux/git-version-gen: Add --help and --version.
9158
9159 2011-11-12  Jim Meyering  <meyering@redhat.com>
9160
9161         revamp the other test-exclude?.sh scripts to use init.sh, too
9162         * tests/test-exclude1.sh: Use init.sh.
9163         * tests/test-exclude2.sh: Likewise.
9164         * tests/test-exclude3.sh: Likewise.
9165         * tests/test-exclude4.sh: Likewise.
9166         * tests/test-exclude5.sh: Likewise.
9167         * tests/test-exclude6.sh: Likewise.
9168         * tests/test-exclude7.sh: Likewise.
9169         * tests/test-exclude8.sh: Likewise.
9170         * modules/exclude-tests (Files): List init.sh.
9171
9172         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9173         These shell scripts ignored failure of the binary test-exclude,
9174         so making the latter return 77 didn't cause them to be skipped.
9175         * tests/test-exclude5.sh: Exit with test-exclude's error status
9176         when that program fails.  Revamp to use init.sh.
9177         * tests/test-exclude2.sh: Likewise.
9178
9179         test-exclude: fix a typo
9180         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9181
9182 2011-11-11  Bruno Haible  <bruno@clisp.org>
9183
9184         obstack: Fix compilation error on MSVC 9.
9185         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9186
9187 2011-11-11  Jim Meyering  <meyering@redhat.com>
9188
9189         test-exclude: skip tests rather than failing on deficient systems
9190         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9191         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9192         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9193         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9194
9195 2011-11-10  Bruno Haible  <bruno@clisp.org>
9196
9197         ptsname_r test: Avoid gcc warning on glibc systems.
9198         * tests/test-ptsname_r.c (null_ptr): New function.
9199         (test_errors): Use it.
9200
9201 2011-11-10  Bruno Haible  <bruno@clisp.org>
9202
9203         ptsname_r: Avoid compilation error on OSF/1 5.1.
9204         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9206         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9207         function is not declared or incompatibly declared.
9208         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9209         * modules/ptsname_r (Depends-on, configure.ac): Update.
9210         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9211
9212 2011-11-10  Bruno Haible  <bruno@clisp.org>
9213
9214         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9215         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9216         When cross-compiling, guess yes on all platforms except AIX.
9217         Reported by Ludovic Courtès <ludo@gnu.org>.
9218
9219 2011-11-09  Bruno Haible  <bruno@clisp.org>
9220
9221         ptsname_r tests: Fix bugs.
9222         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9223         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9224
9225 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9226
9227         fstatat: work with cross-compilation
9228         Problem reported by Ludovic Courtès in
9229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9230         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9231         "cross-compiling" and assume the bug is present.  Replace
9232         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9233         an inverted sense, to be more conservative about our assumptions.
9234         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9235
9236 2011-11-09  Bruno Haible  <bruno@clisp.org>
9237
9238         Improve MODULES.html output.
9239         * modules/mkfifoat (Description): Use the word "function".
9240         * modules/readlinkat (Description): Likewise.
9241         * modules/symlinkat (Description): Likewise.
9242
9243 2011-11-09  Eric Blake  <eblake@redhat.com>
9244
9245         ptsname_r-tests: new test module
9246         * modules/ptsname_r-tests: New module.
9247         * tests/test-ptsname_r.c: New file.
9248
9249         ptsname_r: new module
9250         * modules/ptsname_r: New module.
9251         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9252         * lib/ptsname.c (__ptsname_r): Split...
9253         * lib/ptsname_r.c: ...into new file.
9254         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9255         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9256         * modules/stdlib (Makefile.am): Substitute witnesses.
9257         * lib/stdlib.in.h (ptsname_r): Declare it.
9258         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9259         * MODULES.html.sh (Misc): Likewise.
9260         * modules/ptsname (Depends-on): Alter dependency.
9261         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9262
9263 2011-11-09  Jim Meyering  <meyering@redhat.com>
9264
9265         announce-gen: be more concise when there's only one URL+tarball
9266         * build-aux/announce-gen (get_tool_versions): When you distribute
9267         only one type of tarball, combine the first two "Here are..."
9268         sections and make the key-checking grammar independent of
9269         how many tarballs there are.
9270
9271 2011-11-09  Eric Blake  <eblake@redhat.com>
9272
9273         openpty: provide a stub on mingw
9274         * lib/pty.in.h (includes): Provide forward declarations.
9275         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9276
9277         raise: fix mingw handling of SIGPIPE
9278         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9279
9280 2011-11-08  Bruno Haible  <bruno@clisp.org>
9281
9282         More conditional dependencies.
9283         * modules/faccessat (Depends-on): Add conditions.
9284         * modules/fchmodat (Depends-on): Likewise.
9285         * modules/fchownat (Depends-on): Likewise.
9286         * modules/fstatat (Depends-on): Likewise.
9287         * modules/mkfifoat (Depends-on): Likewise.
9288         * modules/readlinkat (Depends-on): Likewise.
9289         * modules/symlinkat (Depends-on): Likewise.
9290         * modules/unlinkat (Depends-on): Likewise.
9291         * modules/utimensat (Depends-on): Likewise.
9292         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9293         * modules/linkat (Depends-on): Refine the conditions.
9294         * modules/renameat (Depends-on): Likewise.
9295
9296 2011-11-08  Bruno Haible  <bruno@clisp.org>
9297
9298         faccessat: Move AC_LIBOBJ invocation to module description.
9299         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9300         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9301         invocation from here...
9302         * modules/faccessat (configure.ac): ... to here. Invoke
9303         gl_PREREQ_FACCESSAT.
9304
9305 2011-11-08  Bruno Haible  <bruno@clisp.org>
9306
9307         faccessat: Simplify autoconf macro.
9308         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9309         gl_FUNC_EUIDACCESS.
9310
9311 2011-11-08  Bruno Haible  <bruno@clisp.org>
9312
9313         renameat: Fix dependencies.
9314         * modules/renameat (Depends-on): Add stdbool.
9315
9316 2011-11-08  Bruno Haible  <bruno@clisp.org>
9317
9318         mkfifoat: Fix module description.
9319         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9320         not gl_UNISTD_MODULE_INDICATOR.
9321
9322 2011-11-08  Bruno Haible  <bruno@clisp.org>
9323
9324         fstatat: Remove unused dependency.
9325         * modules/fstatat (Depends-on): Remove fstat.
9326
9327 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9328
9329         GNUmakefile: behave when Makefile is missing.
9330         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9331
9332 2011-11-08  Bruno Haible  <bruno@clisp.org>
9333
9334         openat: Conditionalize dependencies.
9335         * lib/openat.c: Reduce the scope of some #includes.
9336         * modules/openat (Depends-on): Add conditions.
9337
9338 2011-11-07  Jim Meyering  <meyering@redhat.com>
9339
9340         maint.mk: extract GPG key ID without using a temporary file
9341         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9342         without using a temporary file.  Based on a suggestion from Werner Koch
9343         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9344
9345 2011-11-07  Eric Blake  <eblake@redhat.com>
9346
9347         grantpt: fix typo
9348         * lib/stdlib.in.h (grantpt): Check correct function.
9349
9350         maint.mk: silence new syntax check
9351         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9352
9353 2011-11-06  Bruno Haible  <bruno@clisp.org>
9354
9355         Doc about floating-point and math API.
9356         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9357         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9358
9359 2011-11-06  Bruno Haible  <bruno@clisp.org>
9360
9361         stdalign tests: Skip the test when compiled by Sun C.
9362         * tests/test-stdalign.c (main): Skip the test on Sun C.
9363
9364 2011-11-06  Bruno Haible  <bruno@clisp.org>
9365
9366         ansi-c++-opt: Complete the 2011-06-05 change.
9367         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9368         does not support namespaces, set the variable to "no", not to ":".
9369
9370 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9371
9372         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9373
9374 2011-11-06  Bruno Haible  <bruno@clisp.org>
9375
9376         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9377         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9378         (minus_zerol) [HP-UX]: New macro.
9379         (unary_minus) [HP-UX]: New function.
9380         (copysignl) [HP-UX]: Use unary_minus function.
9381
9382 2011-11-06  Bruno Haible  <bruno@clisp.org>
9383
9384         ldexp, ldexpf, ldexpl: Enhance tests.
9385         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9386         and tests/test-ldexpl.c.
9387         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9388         LDEXP, MIN_EXP, MAX_EXP): New macros.
9389         Include test-ldexp.h.
9390         (main): Just call test_function.
9391         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9392         infinity.h, nan.h.
9393         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9394         MAX_EXP): New macros.
9395         Include test-ldexp.h.
9396         (x, y): Remove variables.
9397         (main): Just call test_function.
9398         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9399         infinity.h, nan.h.
9400         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9401         MAX_EXP): New macros.
9402         Include test-ldexp.h.
9403         (x, y): Remove variables.
9404         (main): Just call test_function.
9405         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9406         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9407         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9408         (Depends-on): Add isnand-nolibm, signbit, float.
9409         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9410         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9411         (Depends-on): Add isnanf-nolibm, signbit, float.
9412
9413 2011-11-06  Bruno Haible  <bruno@clisp.org>
9414
9415         math tests: Cosmetics.
9416         * tests/test-math-c++.cc: Reorder declarations.
9417
9418 2011-11-05  Bruno Haible  <bruno@clisp.org>
9419
9420         fma*: Simplify test.
9421         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9422         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9423
9424         Tests for module 'fmal'.
9425         * modules/fmal-tests: New file.
9426         * tests/test-fmal1.c: New file.
9427         * tests/test-fmal2.c: New file.
9428
9429         New module 'fmal'.
9430         * lib/math.in.h (fmal): New declaration.
9431         * lib/fmal.c: New file.
9432         * m4/fmal.m4: New file.
9433         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9435         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9436         REPLACE_FMAL.
9437         * modules/fmal: New file.
9438         * doc/posix-functions/fmal.texi: Mention the new module and the various
9439         bugs.
9440
9441         Tests for module 'fmaf'.
9442         * modules/fmaf-tests: New file.
9443         * tests/test-fmaf1.c: New file.
9444         * tests/test-fmaf2.c: New file.
9445
9446         New module 'fmaf'.
9447         * lib/math.in.h (fmaf): New declaration.
9448         * lib/fmaf.c: New file.
9449         * m4/fmaf.m4: New file.
9450         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9452         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9453         REPLACE_FMAF.
9454         * modules/fmaf: New file.
9455         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9456         bugs.
9457
9458         Tests for module 'fma'.
9459         * modules/fma-tests: New file.
9460         * tests/test-fma1.c: New file.
9461         * tests/test-fma1.h: New file.
9462         * tests/test-fma2.c: New file.
9463         * tests/test-fma2.h: New file.
9464
9465         New module 'fma'.
9466         * lib/math.in.h (fma): New declaration.
9467         * lib/fma.c: New file.
9468         * m4/fma.m4: New file.
9469         * m4/fegetround.m4: New file.
9470         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9472         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9473         REPLACE_FMA.
9474         * modules/fma: New file.
9475         * doc/posix-functions/fma.texi: Mention the new module and the various
9476         bugs.
9477
9478         Extend gl_MATHFUNC.
9479         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9480         Support 'void' as argument type.
9481         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9482
9483 2011-11-05  Jim Meyering  <meyering@redhat.com>
9484
9485         maint.mk: also prohibit inclusion of dirent.h without use
9486         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9487
9488 2011-11-05  Bruno Haible  <bruno@clisp.org>
9489
9490         ldexpl tests: Avoid test failure on MSVC 9.
9491         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9492         value. Needed in order to enforce the conversion from a value greater
9493         than LDBL_MAX to Infinity.
9494
9495 2011-11-05  Bruno Haible  <bruno@clisp.org>
9496
9497         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9498         * modules/at-internal: New file, extracted from modules/openat.
9499         * modules/openat-h: New file.
9500         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9501         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9502         * modules/openat (Description): Add reference to POSIX function.
9503         (Files): Remove lib/openat.h, lib/openat-proc.c.
9504         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9505         intprops, unistd.
9506         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9507         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9508         gl_FCNTL_MODULE_INDICATOR.
9509         (Include): Remove unistd.h, openat.h.
9510         * modules/areadlinkat (Files): Add lib/at-func.c.
9511         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9512         openat-die, openat-h, save-cwd.
9513         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9514         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9515         openat-die, openat-h, save-cwd, unistd.
9516         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9517         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9518         openat-h, save-cwd. Remove fcntl-h, openat.
9519         * modules/fchmodat (Files): Remove lib/openat.h.
9520         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9521         openat, stdbool, unistd.
9522         * modules/fchownat (Files): Remove lib/openat.h.
9523         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9524         openat, stdbool, sys_stat.
9525         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9526         lib/openat-proc.c.
9527         (Depends-on): Add at-internal.
9528         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9529         * modules/fstatat (Files): Remove lib/openat.h.
9530         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9531         stdbool, unistd.
9532         * modules/fts (Depends-on): Add openat-h.
9533         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9534         openat.
9535         * modules/mkdirat (Files): Remove lib/openat.h.
9536         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9537         openat, stdbool, sys_stat.
9538         * modules/mkfifoat (Files): Add lib/at-func.c.
9539         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9540         openat-h, save-cwd. Remove fcntl-h, openat.
9541         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9542         * modules/readlinkat (Files): Add lib/at-func.c.
9543         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9544         openat-h, save-cwd. Remove fcntl-h, openat.
9545         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9546         openat.
9547         * modules/selinux-at (Files): Add lib/at-func.c.
9548         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9549         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9550         * modules/symlinkat (Files): Add lib/at-func.c.
9551         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9552         openat-h, save-cwd. Remove fcntl-h, openat.
9553         * modules/unlinkat (Files): Remove lib/openat.h.
9554         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9555         stdbool.
9556         * modules/utimensat (Files): Add lib/at-func.c.
9557         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9558         openat-die, openat-h, save-cwd.
9559         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9560         * modules/fdutimensat-tests (Depends-on): Add openat.
9561         * modules/fstatat-tests (Depends-on): Add openat-h.
9562         * modules/readlinkat-tests (Depends-on): Add openat.
9563         * modules/symlinkat-tests (Depends-on): Add openat.
9564
9565 2011-11-05  Bruno Haible  <bruno@clisp.org>
9566
9567         openat: Include <stdbool.h>.
9568         * lib/openat.c: Include <stdbool.h>.
9569
9570 2011-11-04  Bruno Haible  <bruno@clisp.org>
9571
9572         fchownat, renameat, unlinkat: Fix dependencies.
9573         * modules/fchownat (Depends-on): Add fstatat.
9574         * modules/renameat (Depends-on): Likewise.
9575         * modules/unlinkat (Depends-on): Likewise.
9576
9577 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9578
9579         openat: remove direct dependency on dirent
9580         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9581         and hasn't been needed ever since fdopendir was split into its own
9582         module on 2009-08-31.
9583         * modules/openat (Depends-on): Remove dirent.
9584
9585 2011-11-04  Bruno Haible  <bruno@clisp.org>
9586
9587         renameat: Optimize code size.
9588         * modules/renameat (configure.ac): Don't compile at-func2.c if
9589         REPLACE_RENAMEAT is 1.
9590
9591 2011-11-04  Bruno Haible  <bruno@clisp.org>
9592
9593         openat tests: Fix file list.
9594         * modules/openat-tests (Files): Add tests/test-open.h.
9595
9596 2011-11-04  Bruno Haible  <bruno@clisp.org>
9597
9598         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9599         * modules/fchmodat (Depends-on): Add openat-die.
9600         * modules/fchownat (Depends-on): Likewise.
9601         * modules/linkat (Depends-on): Likewise.
9602         * modules/renameat (Depends-on): Likewise.
9603         * modules/openat (Depends-on): Add dirent.
9604
9605 2011-11-04  Jim Meyering  <meyering@redhat.com>
9606
9607         at-func*.c: fix comments
9608         * lib/at-func2.c: Correct/improve first-line comment.
9609         * lib/at-func.c: Correct grammar in first-line comment.
9610
9611 2011-11-04  Bruno Haible  <bruno@clisp.org>
9612
9613         New module 'mkdirat', split off from module 'openat'.
9614         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9615         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9616         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9617         * modules/mkdirat: New file, extracted from modules/openat.
9618         * modules/openat (Files): Remove lib/mkdirat.c.
9619         (Depends-on): Remove mkdir.
9620         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9621         (Include): Remove <sys/stat.h>.
9622         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9623         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9624         tests/test-mkdir.h.
9625         (Depends-on): Remove ignore-value.
9626         (Makefile.am): Remove rules for test-mkdirat.
9627         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9628         of module 'openat'.
9629         * NEWS: Mention the change.
9630
9631 2011-11-04  Bruno Haible  <bruno@clisp.org>
9632
9633         closedir: Avoid warning on mingw.
9634         * lib/closedir.c: Include <unistd.h>.
9635
9636 2011-11-04  Bruno Haible  <bruno@clisp.org>
9637
9638         New module 'fstatat', split off from module 'openat'.
9639         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9640         defined.
9641         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9642         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9643         gl_FUNC_FSTATAT.
9644         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9645         * modules/fstatat: New file, extracted from modules/openat.
9646         * modules/openat (Files): Remove lib/fstatat.c.
9647         (Depends-on): Remove lstat.
9648         (configure.ac): Remove AC_LIBOBJ of fstatat.
9649         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9650         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9651         tests/test-lstat.h, tests/test-stat.h.
9652         (Depends-on): Remove getcwd-lgpl.
9653         (Makefile.am): Remove rules for test-fstatat.
9654         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9655         of module 'openat'.
9656         * NEWS: Mention the change.
9657         * modules/getcwd (Depends-on): Add fstatat.
9658         * modules/linkat (Depends-on): Likewise.
9659         * modules/mkfifoat-tests (Depends-on): Likewise.
9660         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9661
9662 2011-11-03  Bruno Haible  <bruno@clisp.org>
9663
9664         New module 'unlinkat', split off from module 'openat'.
9665         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9666         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9667         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9668         * modules/unlinkat: New file, extracted from modules/openat. Correct
9669         the dependency conditions.
9670         * modules/openat (Files): Remove lib/unlinkat.c.
9671         (Depends-on): Remove rmdir, unlink.
9672         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9673         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9674         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9675         tests/test-rmdir.h, tests/test-unlink.h.
9676         (Depends-on): Remove unlinkdir.
9677         (Makefile.am): Remove rules for test-unlinkat.
9678         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9679         of module 'openat'.
9680         * NEWS: Mention the change.
9681         * modules/linkat-tests (Depends-on): Add unlinkat.
9682         * modules/mkfifoat-tests (Depends-on): Likewise.
9683         * modules/readlinkat-tests (Depends-on): Likewise.
9684
9685 2011-11-02  Bruno Haible  <bruno@clisp.org>
9686
9687         New module 'fchmodat', split off from module 'openat'.
9688         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9689         defined.
9690         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9691         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9692         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9693         * modules/fchmodat: New file, extracted from modules/openat.
9694         * modules/openat (Files): Remove lib/fchmodat.c.
9695         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9696         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9697         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9698         (Makefile.am): Remove rules for test-fchmodat.
9699         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9700         of module 'openat'.
9701         * NEWS: Mention the change.
9702
9703 2011-11-02  Jim Meyering  <meyering@redhat.com>
9704
9705         putenv: indent #definition of "environ" to placate cppi
9706         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9707
9708         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9709         Git logs are often treated as immutable, because editing them
9710         changes the SHA1 checksums of all descendants.  Thus, errors in
9711         git logs tend to stay there forever.  However, when we generate
9712         a ChangeLog file -- typically for distribution -- from that git log,
9713         we can actually make corrections in the generated file.  The key
9714         lies in recording in machine-readable/applicable form the desired
9715         corrections.  See --help for description and an example.
9716         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9717         (usage): Describe it; alphabetize option descriptions.
9718         (main): Honor the new option, carefully.
9719
9720 2011-11-01  Jim Meyering  <meyering@redhat.com>
9721
9722         gitlog-to-changelog: avoid an infloop
9723         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9724         that ends up being empty.
9725
9726 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9727
9728         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9729         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9730         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9731         contains (possibly-quoted) backslashes.  This should avoid
9732         all-too-common shell bugs if COMPLICATED contains backslashes in
9733         the "wrong" places.  Reported by David Evans in
9734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9735         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9736         because we want ASCII ranges.  Is there some reason we don't use
9737         the C locale everywhere in this script?
9738         (func_module, top level): Avoid unwanted pathname expansion when
9739         $repo_url_prefix or $repo_url_suffix_repl contain shell
9740         metacharacters like '?' and '*'.
9741
9742 2011-11-01  Bruno Haible  <bruno@clisp.org>
9743
9744         fchownat: Improve description.
9745         * modules/fchownat (Description): Add link to function.
9746
9747 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9748
9749         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9750         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9752         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9753
9754 2011-11-01  Bruno Haible  <bruno@clisp.org>
9755
9756         alignof: Avoid collision with stdalign module.
9757         * lib/alignof.h (alignof): Remove macro.
9758         * NEWS: Mention the change.
9759         Reported by Paul Eggert.
9760
9761 2011-11-01  Bruno Haible  <bruno@clisp.org>
9762
9763         New module 'fchownat', split off from module 'openat'.
9764         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9765         defined.
9766         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9767         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9768         invoke gl_FUNC_FCHOWNAT.
9769         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9770         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9771         * modules/fchownat: New file, extracted from modules/openat.
9772         * modules/openat (Files): Remove lib/fchownat.c.
9773         (Depends-on): Remove lchown.
9774         (configure.ac): Remove AC_LIBOBJ of fchownat.
9775         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9776         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9777         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9778         (Depends-on): Remove mgetgroups, usleep, stat-time.
9779         (configure.ac): Remove test for getegid.
9780         (Makefile.am): Remove rules for test-fchownat.
9781         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9782         of module 'openat'.
9783         * NEWS: Mention the change.
9784
9785 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9786
9787         stdalign: port better to MSVC and to Sun C 5.11
9788         This fixes some of the problems reported by Bruno Haible in
9789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9790         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9791         shortcomings of MSVC and of Sun C 5.11.
9792         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9793         around __declspec arg.
9794         * modules/stdalign-tests (Files): Add tests/macros.h.
9795         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9796         Include macros.h, for ASSERT.
9797         (DECLARE_ALIGNED): Remove.
9798         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9799         to catch bug), and to 1 if not (simplifies the rest of the code).
9800         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9801         (CHECK_AUTO): Remove.
9802         (CHECK_ALIGNED): Check only the alignment of the static vars,
9803         since auto var alignment isn't supported by Sun C 5.11.
9804         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9805         ASSERT failures are easier to diagnose.
9806
9807 2011-10-31  Bruno Haible  <bruno@clisp.org>
9808
9809         doc about some IRIX 5.3 problems.
9810         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9811         on IRIX 5.3.
9812         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9813         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9814         5.3.
9815         * doc/posix-functions/grantpt.texi: Likewise.
9816         * doc/posix-functions/unlockpt.texi: Likewise.
9817         * doc/posix-functions/lgamma.texi: Likewise.
9818         * doc/posix-functions/nextafter.texi: Likewise.
9819         * doc/posix-functions/remainder.texi: Likewise.
9820         * doc/posix-functions/select.texi: Mention misplaced declaration on
9821         IRIX 5.3.
9822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9823
9824 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9825
9826         gitlog-to-changelog: fix git-log invocation.
9827         git-log mishandles date strings before 1970-01-01 UTC, and there is
9828         no use to specify --since=1970-01-01 by default anyway.
9829         * build-aux/gitlog-to-changelog: By default, when no --since option
9830         was given, do not specify explicit --since option to git-log.
9831
9832 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9833
9834         gitlog-to-changelog: new option --append-dot.
9835         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9836         first non-blank line of each commit message terminated with a dot.
9837
9838 2011-10-30  Bruno Haible  <bruno@clisp.org>
9839
9840         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9841         * lib/ffsl.h: Include <config.h>.
9842         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9843
9844 2011-10-30  Jim Meyering  <meyering@redhat.com>
9845
9846         GNUmakefile: reenable "make syntax-check" for most projects
9847         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9848         build-aux variable", "syntax-check" would do nothing but succeed with
9849         the "No version control files detected..." diagnostic (unless you
9850         happened to override _build-aux via cfg.mk).
9851         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9852         to precede inclusion of maint.mk.  Otherwise, these variables would
9853         be used undefined in any project that does not override the default.
9854
9855 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9856
9857         gitlog-to-changelog: treat a message with only blank lines as empty.
9858         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9859         trailing blank lines before the code that issues a warning about an
9860         empty commit message.
9861
9862 2011-10-30  Jim Meyering  <meyering@redhat.com>
9863
9864         test-parse-datetime.c: avoid new DST-related false positive test failure
9865         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9866         based on the time/date we'll convert, not the current time.
9867         Otherwise, the moment we cross a DST boundary like today's in
9868         Europe, (CEST to CET), that offset ends up being one hour off.
9869
9870 2011-10-27  Bruno Haible  <bruno@clisp.org>
9871
9872         fstat: Tweak documentation.
9873         * modules/fstat (Description): More precise description.
9874
9875 2011-10-27  Bruno Haible  <bruno@clisp.org>
9876
9877         Update documentation regarding 'largefile' module.
9878         * doc/posix-functions/fstat.texi: Tweak wording.
9879         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9880         problems with huge directories and/or small ino_t types.
9881         * doc/posix-functions/readdir.texi: Likewise.
9882         * doc/posix-functions/rewinddir.texi: Likewise.
9883
9884 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9885
9886         maint.mk: don't maintain a second build-aux variable.
9887         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9888         depends on GNUmakefile, which already maintains a cfg.mk
9889         overridable $(_build-aux) for projects with a non-standard
9890         build-aux directory location, although without the $(srcdir)
9891         prefix.  Use that variable consistently instead of introducing a
9892         second one.  Adjust all call sites.
9893
9894 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9895
9896         Add stdalign module and use it in other modules.
9897         This is based on a previous proposal by Bruno Haible
9898         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9899
9900         stdalign: new module
9901         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9902         * modules/stdalign: New files.
9903         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9904         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9905
9906         stdalign-tests: new module
9907         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9908
9909         argp: use stdalign
9910         * lib/argp-parse.c: Include <stdalign.h>.
9911         (alignof): Remove.
9912         * modules/argp (Depends-on): Add stdalign.
9913
9914         crypto libraries: use stdalign
9915         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9916         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9917         Do not include <stdlib.h> twice, in md4.c.
9918         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9919         because we are accessing a pointer's bit-pattern, not a size.
9920         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9921         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9922         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9923         * modules/crypto/sha512: Likewise.
9924
9925         sys_socket: use stdalign, not alignof
9926         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9927         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9928
9929 2011-10-27  Bruno Haible  <bruno@clisp.org>
9930
9931         raise test: Avoid a test failure on Linux/MIPS.
9932         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9933         because 99 is a valid signal on Linux/MIPS.
9934
9935 2011-10-27  Bruno Haible  <bruno@clisp.org>
9936
9937         nonblocking tests: Fix test failure on Linux/MIPS.
9938         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9939         Set to 270000.
9940
9941 2011-10-27  Bruno Haible  <bruno@clisp.org>
9942
9943         utimensat: Work around problem on Linux/hppa.
9944         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9945         values.
9946         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9947
9948 2011-10-25  Jim Meyering  <meyering@redhat.com>
9949
9950         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9951         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9952         after symbols like NULL, size_t, etc.
9953         Reported by Alfred M. Szmidt.
9954
9955         maint.mk: exempt ENODATA from a syntax-check rule
9956         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9957         from the sc_prohibit_always-defined_macros syntax-check rule.
9958         Add a comment.  See this for more details:
9959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9960
9961 2011-10-23  Jim Meyering  <meyering@redhat.com>
9962
9963         fts: close parent dir FD before returning from post-traversal fts_read
9964         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9965         unlink A, even though an FD open on A remained.  This is suboptimal
9966         (holding a file descriptor open longer than needed), but otherwise not
9967         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9968         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9969         that represents a real problem: it causes the removal of A to fail
9970         with e.g., "rm: cannot remove `A': Device or resource busy"
9971
9972         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9973         directory file descriptors.  After completing the final, FTS_DP,
9974         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9975         cache, but then proceeded to add a new FD to it via the subsequent
9976         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9977         final file descriptor would be closed only via fts_close's call to
9978         fd_ring_clear.  Now, it is usually closed earlier, via the final
9979         FTS_DP-returning fts_read call.
9980         * lib/fts.c (restore_initial_cwd): New function, converted from
9981         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9982         Update callers.
9983         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9984         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9985
9986 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9987             Bruno Haible  <bruno@clisp.org>
9988             Jim Meyering  <jim@meyering.net>
9989
9990         readme-release: improve safety of release prep instructions.
9991         * README-release: Don't git pull all branches when only master
9992         is needed for the release process.
9993         Run make maintainer-clean before changing trees and merging.
9994         Don't try to run ./configure right after git pull in case files
9995         that influence the bootstrap process have changed, move the
9996         ./configure step to after running ./bootstrap.
9997         Don't bootstrap "one last time"... it's the first time!
9998
9999 2011-10-22  Bruno Haible  <bruno@clisp.org>
10000
10001         errno, strerror-override: Support for MSVC 10.
10002         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10003         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10004         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10005         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10006         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10007         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10008         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10009         Assign values compatible with MSVC 10.
10010         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10011         New macros.
10012         (GNULIB_defined_EWINSOCK): New macro.
10013         * lib/strerror-override.c (strerror_override): Update accordingly.
10014         * lib/strerror-override.h: Likewise.
10015         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10016         longer equal to the corresponding errno value.
10017         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10018
10019 2011-10-22  Bruno Haible  <bruno@clisp.org>
10020
10021         perror: Recognize when test program crashes.
10022         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10023         strerror, set gl_cv_func_perror_works to no.
10024         Reported by Daniel Richard G. <skunk@iskunk.org>.
10025
10026         perror: Fix indentation.
10027         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10028
10029 2011-10-22  Bruno Haible  <bruno@clisp.org>
10030
10031         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10032         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10033         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10034         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10035         functions, not as a macro.
10036         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10037         macros.
10038         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10039         absence of macro.
10040         Suggested by Eric Blake.
10041         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10042
10043 2011-10-21  Bruno Haible  <bruno@clisp.org>
10044
10045         relocatable-prog-wrapper: Don't leave object files behind.
10046         * build-aux/install-reloc: Re-synchronize list of .o files to be
10047         removed with list of compilation units.
10048
10049 2011-10-20  Bruno Haible  <bruno@clisp.org>
10050
10051         openpty, posix_openpt: Remove code duplication.
10052         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10053         * lib/openpty.c: Include <stdlib.h>.
10054         (openpty): Use posix_openpt on all platforms except IRIX.
10055         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10056
10057 2011-10-20  Bruno Haible  <bruno@clisp.org>
10058
10059         unlockpt: Detect invalid argument.
10060         * lib/unlockpt.c: Include <fcntl.h>.
10061         (unlockpt): Check whether fd is valid, using fcntl().
10062         * modules/unlockpt (Depends-on): Add fcntl-h.
10063
10064 2011-10-20  Bruno Haible  <bruno@clisp.org>
10065
10066         openpty: Avoid compilation error on AIX 6.1.
10067         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10068
10069 2011-10-20  Bruno Haible  <bruno@clisp.org>
10070
10071         posix_openpt: Support for OpenBSD.
10072         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10073         (posix_openpt) [OpenBSD]: New code.
10074         * lib/grantpt.c: Include <fcntl.h>.
10075         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10076         * modules/grantpt (Depends-on): Add fcntl-h.
10077
10078 2011-10-20  Bruno Haible  <bruno@clisp.org>
10079
10080         posix_openpt test: Coding style.
10081         * tests/test-posix_openpt.c: Use GNU coding style.
10082
10083 2011-10-20  Bruno Haible  <bruno@clisp.org>
10084
10085         grantpt: Support --avoid=pt_chown.
10086         * modules/grantpt (Files): Add lib/pty-private.h.
10087
10088 2011-10-20  Bruno Haible  <bruno@clisp.org>
10089
10090         posix_openpt: Fix autoconf macro.
10091         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10092         unneeded check for _getpty.
10093
10094 2011-10-20  Bruno Haible  <bruno@clisp.org>
10095
10096         openpty: Update comments.
10097         * lib/openpty.c: Add comments about Minix.
10098
10099 2011-10-19  Eric Blake  <eblake@redhat.com>
10100
10101         openpty: relax license
10102         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10103
10104         pt_chown: use configmake to simplify build
10105         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10106
10107         ptsname and others: relax license
10108         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10109         * modules/unlockpt (License): Likewise.
10110         * modules/pt_chown (License): Likewise.
10111         * modules/ptsname (License): Likewise.
10112         * modules/ttyname_r (License): Likewise.
10113
10114 2011-10-19  Jim Meyering  <meyering@redhat.com>
10115
10116         posix_openpt: remove spurious #endif
10117         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10118
10119 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10120
10121         maint.mk: Respect $(build_aux) in web-manual rule.
10122         * top/maint.mk (web-manual): Find gen-announce script in user's
10123         $(build_aux) directory instead of hard-coding 'build-aux'.
10124
10125 2011-10-19  Bruno Haible  <bruno@clisp.org>
10126
10127         posix_openpt: Fix compilation error.
10128         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10129         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10130         Mention the openpty module as an alternative.
10131
10132 2011-10-19  Bruno Haible  <bruno@clisp.org>
10133
10134         Support for old NeXTstep 3.3 frexp().
10135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10136         execution time of the test to 5 seconds.
10137         Reported by Daniel Richard G. <skunk@iskunk.org>.
10138
10139 2011-10-19  Bruno Haible  <bruno@clisp.org>
10140
10141         Support for old NeXTstep 3.3 sed.
10142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10143         part, use /.../, not \|...|. Escape periods in the header file name.
10144         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10145         Reported by Daniel Richard G. <skunk@iskunk.org>.
10146
10147 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10148
10149         Support for old NeXTstep 3.3 gcc.
10150         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10151         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10152         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10153         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10154         * lib/regex.h (_Restrict_arr_): Likewise.
10155         * lib/regex_internal.h (re_token_t): Likewise.
10156         * lib/regexec.c (check_node_accept_bytes): Likewise.
10157         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10158
10159 2011-10-18  Eric Blake  <eblake@redhat.com>
10160
10161         posix_openpt: new module
10162         * modules/posix_openpt: New module.
10163         * m4/posix_openpt.m4: New file.
10164         * lib/posix_openpt.c: Likewise.
10165         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10166         (gl_STDLIB_H_DEFAULTS): Set defaults.
10167         * modules/stdlib (Makefile.am): Substitute macros.
10168         * lib/stdlib.in.h (posix_openpt): Declare.
10169         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10170         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10171         * modules/posix_openpt-tests: New test module.
10172         * tests/test-posix_openpt.c: New test.
10173
10174 2011-10-15  Bruno Haible  <bruno@clisp.org>
10175
10176         xstrtoll: Fix compilation failure.
10177         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10178         from lib/strtol.c.
10179         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10180         some platforms.
10181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10182
10183 2011-10-15  Bruno Haible  <bruno@clisp.org>
10184
10185         vasnprintf: Optimize bit search operation.
10186         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10188         gl_DOUBLE_EXPONENT_LOCATION.
10189         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10190         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10191         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10192         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10193         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10194         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10195         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10196         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10197         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10198
10199 2011-10-15  Bruno Haible  <bruno@clisp.org>
10200
10201         vasnprintf: Fix comments.
10202         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10203
10204 2011-10-14  Bruno Haible  <bruno@clisp.org>
10205
10206         Tests for module 'integer_length_ll'.
10207         * modules/integer_length_ll-tests: New file.
10208         * tests/test-integer_length_ll.c: New file.
10209
10210         New module 'integer_length_ll'.
10211         * lib/integer_length_ll.c: New file.
10212         * modules/integer_length_ll: New file.
10213
10214 2011-10-14  Bruno Haible  <bruno@clisp.org>
10215
10216         Tests for module 'integer_length_l'.
10217         * modules/integer_length_l-tests: New file.
10218         * tests/test-integer_length_l.c: New file.
10219
10220         New module 'integer_length_l'.
10221         * lib/integer_length_l.c: New file.
10222         * modules/integer_length_l: New file.
10223
10224 2011-10-14  Bruno Haible  <bruno@clisp.org>
10225
10226         Tests for module 'integer_length'.
10227         * modules/integer_length-tests: New file.
10228         * tests/test-integer_length.c: New file.
10229
10230         New module 'integer_length'.
10231         * lib/integer_length.h: New file.
10232         * lib/integer_length.c: New file.
10233         * modules/integer_length: New file.
10234
10235 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10236
10237         popen: Fix dependency conditions.
10238         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10239
10240 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10241
10242         perror: Fix autoconf test.
10243         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10244         <stdlib.h> and <string.h>.
10245
10246 2011-10-14  Bruno Haible  <bruno@clisp.org>
10247
10248         ffsl: Optimize on 64-bit platforms.
10249         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10250         unrolling.
10251
10252 2011-10-13  Bruno Haible  <bruno@clisp.org>
10253
10254         ffsl: Optimize on 32-bit platforms.
10255         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10256         use ffs() without a loop.
10257
10258         ffsl, ffsll: Optimize for GCC.
10259         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10260         * lib/ffsl.c (GCC_BUILTIN): New macro.
10261         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10262
10263 2011-10-13  Bruno Haible  <bruno@clisp.org>
10264
10265         ffs, bcopy, memset: Support symbol renaming via config.h.
10266         * lib/ffs.c: Include <config.h>.
10267         * lib/bcopy.c: Likewise.
10268         * lib/memset.c: Likewise.
10269
10270 2011-10-10  Bruno Haible  <bruno@clisp.org>
10271
10272         atanl: Simplify for platforms where 'long double' == 'double'.
10273         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10274         alternative implementation.
10275         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10276         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10277         * modules/atanl (Depends-on): Add atan. Update conditions.
10278
10279 2011-10-10  Bruno Haible  <bruno@clisp.org>
10280
10281         acosl: Simplify for platforms where 'long double' == 'double'.
10282         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10283         alternative implementation.
10284         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10285         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10286         * modules/acosl (Depends-on): Add acos. Update conditions.
10287
10288 2011-10-10  Bruno Haible  <bruno@clisp.org>
10289
10290         asinl: Simplify for platforms where 'long double' == 'double'.
10291         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10292         alternative implementation.
10293         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10294         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10295         * modules/asinl (Depends-on): Add asin. Update conditions.
10296
10297 2011-10-10  Bruno Haible  <bruno@clisp.org>
10298
10299         tanl: Simplify for platforms where 'long double' == 'double'.
10300         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10301         implementation.
10302         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10303         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10304         * modules/tanl (Depends-on): Add tan. Update conditions.
10305         (configure.ac): Don't compile trigl.c if
10306         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10307
10308 2011-10-10  Bruno Haible  <bruno@clisp.org>
10309
10310         cosl: Simplify for platforms where 'long double' == 'double'.
10311         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10312         implementation.
10313         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10314         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10315         * modules/cosl (Depends-on): Add cos. Update conditions.
10316         (configure.ac): Don't compile sincosl.c and trigl.c if
10317         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10318
10319 2011-10-10  Bruno Haible  <bruno@clisp.org>
10320
10321         sinl: Simplify for platforms where 'long double' == 'double'.
10322         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10323         implementation.
10324         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10325         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10326         * modules/sinl (Depends-on): Add sin. Update conditions.
10327         (configure.ac): Don't compile sincosl.c and trigl.c if
10328         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10329
10330 2011-10-10  Bruno Haible  <bruno@clisp.org>
10331
10332         logl: Simplify for platforms where 'long double' == 'double'.
10333         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10334         implementation.
10335         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10336         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10337         * modules/logl (Depends-on): Add log. Update conditions.
10338
10339 2011-10-10  Bruno Haible  <bruno@clisp.org>
10340
10341         expl: Simplify for platforms where 'long double' == 'double'.
10342         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10343         implementation.
10344         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10345         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10346         * modules/expl (Depends-on): Add exp. Update conditions.
10347
10348 2011-10-10  Bruno Haible  <bruno@clisp.org>
10349
10350         sqrtl: Simplify for platforms where 'long double' == 'double'.
10351         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10352         alternative implementation.
10353         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10354         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10355         * modules/sqrtl (Depends-on): Update conditions.
10356
10357 2011-10-10  Bruno Haible  <bruno@clisp.org>
10358
10359         ldexpl: Simplify for platforms where 'long double' == 'double'.
10360         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10361         alternative implementation.
10362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10363         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10364         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10365
10366 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10367
10368         ffsll: set correct witness
10369         * modules/ffsll (configure.ac): Fix typo.
10370
10371 2011-10-10  Bruno Haible  <bruno@clisp.org>
10372
10373         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10374         * lib/printf-frexpl.c: Include <config.h>.
10375         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10376         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10377         second time.
10378         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10379         gl_LONG_DOUBLE_VS_DOUBLE.
10380         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10381         conditions.
10382
10383 2011-10-10  Bruno Haible  <bruno@clisp.org>
10384
10385         frexpl: Simplify for platforms where 'long double' == 'double'.
10386         * lib/frexpl.c: Include <config.h>.
10387         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10388         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10389         time.
10390         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10391         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10392         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10393         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10394         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10395         conditions.
10396
10397 2011-10-10  Jim Meyering  <meyering@redhat.com>
10398
10399         test-renameat: don't leave behind a temporary file
10400         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10401           ERROR: files left in build directory after distclean:
10402           ./gltests/test-renameat.too
10403           make[1]: *** [distcleancheck] Error 1
10404         Reported by Tom G. Christensen.
10405
10406 2011-10-09  Bruno Haible  <bruno@clisp.org>
10407
10408         rint: Determine RINT_LIBM correctly on AIX 7.
10409         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10410         directly, not only through a function pointer. Also accept an optional
10411         4th argument with extra code.
10412         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10413         rintf() call by gcc when optimizing.
10414
10415         mathfunc.m4: Refactor.
10416         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10417         m4 variable.
10418
10419 2011-10-09  Bruno Haible  <bruno@clisp.org>
10420
10421         rintl: Simplify for platforms where 'long double' == 'double'.
10422         * lib/rintl.c: Include <config.h>.
10423         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10424         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10425         time.
10426         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10427         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10428         * modules/rintl (Depends-on): Add rint. Update conditions.
10429
10430 2011-10-09  Bruno Haible  <bruno@clisp.org>
10431
10432         roundl: Simplify for platforms where 'long double' == 'double'.
10433         * lib/roundl.c: Include <config.h>.
10434         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10435         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10436         time.
10437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10438         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10439         * modules/roundl (Depends-on): Add round. Update conditions.
10440
10441 2011-10-09  Bruno Haible  <bruno@clisp.org>
10442
10443         truncl: Simplify for platforms where 'long double' == 'double'.
10444         * lib/truncl.c: Include <config.h>.
10445         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10446         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10447         time.
10448         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10449         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10450         * modules/truncl (Depends-on): Add trunc. Update conditions.
10451
10452 2011-10-09  Bruno Haible  <bruno@clisp.org>
10453
10454         ceill: Simplify for platforms where 'long double' == 'double'.
10455         * lib/ceill.c: Include <config.h>.
10456         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10457         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10458         time.
10459         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10460         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10461         * modules/ceill (Depends-on): Add ceil. Update conditions.
10462
10463 2011-10-09  Bruno Haible  <bruno@clisp.org>
10464
10465         floorl: Simplify for platforms where 'long double' == 'double'.
10466         * lib/floorl.c: Include <config.h>.
10467         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10468         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10469         time.
10470         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10471         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10472         * modules/floorl (Depends-on): Add floor. Update conditions.
10473
10474 2011-10-09  Bruno Haible  <bruno@clisp.org>
10475
10476         rint: Fix ordering constraints.
10477         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10478         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10479         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10480
10481 2011-10-09  Bruno Haible  <bruno@clisp.org>
10482
10483         copysignl: Simplify for platforms where 'long double' == 'double'.
10484         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10485         alternative.
10486         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10487         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10488         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10489
10490 2011-10-09  Bruno Haible  <bruno@clisp.org>
10491
10492         Tests for module 'rintl'.
10493         * modules/rintl-tests: New file.
10494         * tests/test-rintl.c: New file.
10495
10496         New module 'rintl'.
10497         * lib/math.in.h (rintl): New declaration.
10498         * lib/rintl.c: New file.
10499         * m4/rintl.m4: New file.
10500         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10502         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10503         * modules/rintl: New file.
10504         * tests/test-math-c++.cc: Check the declaration of rintl.
10505         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10506         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10507         * doc/posix-functions/rintl.texi: Mention the new module.
10508
10509 2011-10-09  Bruno Haible  <bruno@clisp.org>
10510
10511         Tests for module 'rintf'.
10512         * modules/rintf-tests: New file.
10513         * tests/test-rintf.c: New file.
10514
10515         New module 'rintf'.
10516         * lib/math.in.h (rintf): New declaration.
10517         * lib/rintf.c: New file.
10518         * m4/rintf.m4: New file.
10519         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10521         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10522         * modules/rintf: New file.
10523         * tests/test-math-c++.cc: Check the declaration of rintf.
10524         * doc/posix-functions/rintf.texi: Mention the new module.
10525
10526 2011-10-09  Bruno Haible  <bruno@clisp.org>
10527
10528         rint: Support for MSVC.
10529         * lib/math.in.h (rint): New declaration.
10530         * lib/rint.c: New file.
10531         * m4/rint.m4: New file.
10532         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10534         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10535         * modules/rint (Description): Fix.
10536         (Files): Add lib/rint.c, m4/rint.m4.
10537         (Depends-on): Add math.
10538         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10539         gl_MATH_MODULE_INDICATOR.
10540         * tests/test-math-c++.cc: Check the declaration of rint.
10541         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10542         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10543         * doc/posix-functions/rint.texi: Mention the replacement provided by
10544         the module.
10545
10546         rint tests: More tests.
10547         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10548         minus-zero.h, infinity.h, nan.h.
10549         (main): Skip the test if the current rounding mode is not standard. Add
10550         tests for negative numbers, minus zero, infinity, NaN.
10551         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10552         tests/nan.h.
10553         (Depends-on): Add isnand-nolibm.
10554
10555 2011-10-09  Bruno Haible  <bruno@clisp.org>
10556
10557         Tests for module 'copysignl'.
10558         * modules/copysignl-tests: New file.
10559         * tests/test-copysignl.c: New file.
10560
10561         New module 'copysignl'.
10562         * lib/math.in.h (copysignl): New declaration.
10563         * lib/copysignl.c: New file.
10564         * m4/copysignl.m4: New file.
10565         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10567         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10568         HAVE_COPYSIGNL.
10569         * modules/copysignl: New file.
10570         * tests/test-math-c++.cc: Check the declaration of copysignl.
10571         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10572         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10573         * doc/posix-functions/copysignl.texi: Mention the new module.
10574
10575 2011-10-09  Bruno Haible  <bruno@clisp.org>
10576
10577         Tests for module 'copysignf'.
10578         * modules/copysignf-tests: New file.
10579         * tests/test-copysignf.c: New file.
10580
10581         New module 'copysignf'.
10582         * lib/math.in.h (copysignf): New declaration.
10583         * lib/copysignf.c: New file.
10584         * m4/copysignf.m4: New file.
10585         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10587         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10588         HAVE_COPYSIGNF.
10589         * modules/copysignf: New file.
10590         * tests/test-math-c++.cc: Check the declaration of copysignf.
10591         * doc/posix-functions/copysignf.texi: Mention the new module.
10592
10593 2011-10-09  Bruno Haible  <bruno@clisp.org>
10594
10595         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10597         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10598         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10599         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10600         gl_SIGNAL_H_DEFAULTS.
10601
10602 2011-10-09  Bruno Haible  <bruno@clisp.org>
10603
10604         poll: Make macro safer.
10605         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10606         ac_cv_header_poll_h is not set.
10607
10608 2011-10-09  Bruno Haible  <bruno@clisp.org>
10609
10610         copysign: Provide replacement.
10611         * lib/math.in.h (copysign): New declaration.
10612         * lib/copysign.c: New file.
10613         * m4/copysign.m4: New file.
10614         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10616         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10617         HAVE_COPYSIGN.
10618         * modules/copysign (Description): Clarify.
10619         (Files): Add lib/copysign.c, m4/copysign.m4.
10620         (Depends-on): Add math, signbit.
10621         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10622         gl_MATH_MODULE_INDICATOR.
10623         * tests/test-math-c++.cc: Check the declaration of copysign.
10624         * doc/posix-functions/copysign.texi: Mention the effects of the module
10625         on Minix and MSVC.
10626
10627 2011-10-09  Bruno Haible  <bruno@clisp.org>
10628
10629         isinf: Ensure macro on AIX 5.1.
10630         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10631         macro.
10632         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10633
10634 2011-10-09  Bruno Haible  <bruno@clisp.org>
10635
10636         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10637         * modules/snprintf-posix-tests (configure.ac): Require
10638         gl_LONG_DOUBLE_VS_DOUBLE.
10639         * modules/sprintf-posix-tests (configure.ac): Likewise.
10640         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10641         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10642         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10643         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10644         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10645         tests on platforms where 'long double' is the same as 'double'.
10646         * tests/test-sprintf-posix.h (test_function): Likewise.
10647         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10648         * tests/test-vasprintf-posix.c (test_function): Likewise.
10649
10650         *printf: Fix for platforms where 'long double' == 'double'.
10651         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10652         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10653         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10654         * modules/fprintf-posix (Files): Likewise.
10655         * modules/obstack-printf-posix (Files): Likewise.
10656         * modules/snprintf-posix (Files): Likewise.
10657         * modules/sprintf-posix (Files): Likewise.
10658         * modules/vasnprintf (Files): Likewise.
10659         * modules/vasnprintf-posix (Files): Likewise.
10660         * modules/vasprintf-posix (Files): Likewise.
10661         * modules/vdprintf-posix (Files): Likewise.
10662         * modules/vfprintf-posix (Files): Likewise.
10663         * modules/vsnprintf-posix (Files): Likewise.
10664         * modules/vsprintf-posix (Files): Likewise.
10665         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10666         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10667         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10668         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10669         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10670         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10671         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10672
10673         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10674         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10675         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10676         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10677         'long double'.
10678         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10679
10680         isinf: Fix for platforms where 'long double' == 'double'.
10681         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10682         Don't blindly assume 80-bit 'long double'.
10683
10684         isfinite: Fix for platforms where 'long double' == 'double'.
10685         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10686         Don't blindly assume 80-bit 'long double'.
10687
10688         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10689         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10690         * modules/isfinite-tests (configure.ac): Require
10691         gl_LONG_DOUBLE_VS_DOUBLE.
10692         * modules/isinf-tests (configure.ac): Likewise.
10693         * modules/isnan-tests (configure.ac): Likewise.
10694         * modules/isnanl-tests (configure.ac): Likewise.
10695         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10696         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10697         tests on platforms where 'long double' is the same as 'double'.
10698         * tests/test-isinf.c (test_isinfl): Likewise.
10699         * tests/test-isnan.c (test_long_double): Likewise.
10700         * tests/test-isnanl.h (main): Likewise.
10701
10702 2011-10-08  Bruno Haible  <bruno@clisp.org>
10703
10704         Tests for module 'tanhf'.
10705         * modules/tanhf-tests: New file.
10706         * tests/test-tanhf.c: New file.
10707
10708         New module 'tanhf'.
10709         * lib/math.in.h (tanhf): New declaration.
10710         * lib/tanhf.c: New file.
10711         * m4/tanhf.m4: New file.
10712         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10714         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10715         * modules/tanhf: New file.
10716         * tests/test-math-c++.cc: Check the declaration of tanhf.
10717         * doc/posix-functions/tanhf.texi: Mention the new module.
10718
10719         tanh: Use a .m4 file.
10720         * m4/tanh.m4: New file.
10721         * modules/tanh (Files): Add it.
10722         (configure.ac): Just invoke gl_FUNC_TANH.
10723
10724 2011-10-08  Bruno Haible  <bruno@clisp.org>
10725
10726         Tests for module 'coshf'.
10727         * modules/coshf-tests: New file.
10728         * tests/test-coshf.c: New file.
10729
10730         New module 'coshf'.
10731         * lib/math.in.h (coshf): New declaration.
10732         * lib/coshf.c: New file.
10733         * m4/coshf.m4: New file.
10734         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10736         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10737         * modules/coshf: New file.
10738         * tests/test-math-c++.cc: Check the declaration of coshf.
10739         * doc/posix-functions/coshf.texi: Mention the new module.
10740
10741         cosh: Use a .m4 file.
10742         * m4/cosh.m4: New file.
10743         * modules/cosh (Files): Add it.
10744         (configure.ac): Just invoke gl_FUNC_COSH.
10745
10746 2011-10-08  Bruno Haible  <bruno@clisp.org>
10747
10748         Tests for module 'sinhf'.
10749         * modules/sinhf-tests: New file.
10750         * tests/test-sinhf.c: New file.
10751
10752         New module 'sinhf'.
10753         * lib/math.in.h (sinhf): New declaration.
10754         * lib/sinhf.c: New file.
10755         * m4/sinhf.m4: New file.
10756         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10758         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10759         * modules/sinhf: New file.
10760         * tests/test-math-c++.cc: Check the declaration of sinhf.
10761         * doc/posix-functions/sinhf.texi: Mention the new module.
10762
10763         sinh: Use a .m4 file.
10764         * m4/sinh.m4: New file.
10765         * modules/sinh (Files): Add it.
10766         (configure.ac): Just invoke gl_FUNC_SINH.
10767
10768 2011-10-08  Bruno Haible  <bruno@clisp.org>
10769
10770         Tests for module 'atan2f'.
10771         * modules/atan2f-tests: New file.
10772         * tests/test-atan2f.c: New file.
10773
10774         New module 'atan2f'.
10775         * lib/math.in.h (atan2f): New declaration.
10776         * lib/atan2f.c: New file.
10777         * m4/atan2f.m4: New file.
10778         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10780         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10781         * modules/atan2f: New file.
10782         * tests/test-math-c++.cc: Check the declaration of atan2f.
10783         * doc/posix-functions/atan2f.texi: Mention the new module.
10784
10785         atan2: Use a .m4 file.
10786         * m4/atan2.m4: New file.
10787         * modules/atan2 (Files): Add it.
10788         (configure.ac): Just invoke gl_FUNC_ATAN2.
10789
10790 2011-10-08  Bruno Haible  <bruno@clisp.org>
10791
10792         Tests for module 'atanf'.
10793         * modules/atanf-tests: New file.
10794         * tests/test-atanf.c: New file.
10795
10796         New module 'atanf'.
10797         * lib/math.in.h (atanf): New declaration.
10798         * lib/atanf.c: New file.
10799         * m4/atanf.m4: New file.
10800         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10802         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10803         * modules/atanf: New file.
10804         * tests/test-math-c++.cc: Check the declaration of atanf.
10805         * doc/posix-functions/atanf.texi: Mention the new module.
10806
10807         atan: Use a .m4 file.
10808         * m4/atan.m4: New file.
10809         * modules/atan (Files): Add it.
10810         (configure.ac): Just invoke gl_FUNC_ATAN.
10811
10812 2011-10-08  Bruno Haible  <bruno@clisp.org>
10813
10814         Tests for module 'acosf'.
10815         * modules/acosf-tests: New file.
10816         * tests/test-acosf.c: New file.
10817
10818         New module 'acosf'.
10819         * lib/math.in.h (acosf): New declaration.
10820         * lib/acosf.c: New file.
10821         * m4/acosf.m4: New file.
10822         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10824         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10825         * modules/acosf: New file.
10826         * tests/test-math-c++.cc: Check the declaration of acosf.
10827         * doc/posix-functions/acosf.texi: Mention the new module.
10828
10829         acos: Use a .m4 file.
10830         * m4/acos.m4: New file.
10831         * modules/acos (Files): Add it.
10832         (configure.ac): Just invoke gl_FUNC_ACOS.
10833
10834 2011-10-08  Bruno Haible  <bruno@clisp.org>
10835
10836         Tests for module 'asinf'.
10837         * modules/asinf-tests: New file.
10838         * tests/test-asinf.c: New file.
10839
10840         New module 'asinf'.
10841         * lib/math.in.h (asinf): New declaration.
10842         * lib/asinf.c: New file.
10843         * m4/asinf.m4: New file.
10844         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10846         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10847         * modules/asinf: New file.
10848         * tests/test-math-c++.cc: Check the declaration of asinf.
10849         * doc/posix-functions/asinf.texi: Mention the new module.
10850
10851         asin: Use a .m4 file.
10852         * m4/asin.m4: New file.
10853         * modules/asin (Files): Add it.
10854         (configure.ac): Just invoke gl_FUNC_ASIN.
10855
10856 2011-10-08  Bruno Haible  <bruno@clisp.org>
10857
10858         Tests for module 'tanf'.
10859         * modules/tanf-tests: New file.
10860         * tests/test-tanf.c: New file.
10861
10862         New module 'tanf'.
10863         * lib/math.in.h (tanf): New declaration.
10864         * lib/tanf.c: New file.
10865         * m4/tanf.m4: New file.
10866         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10868         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10869         * modules/tanf: New file.
10870         * tests/test-math-c++.cc: Check the declaration of tanf.
10871         * doc/posix-functions/tanf.texi: Mention the new module.
10872
10873         tan: Use a .m4 file.
10874         * m4/tan.m4: New file.
10875         * modules/tan (Files): Add it.
10876         (configure.ac): Just invoke gl_FUNC_TAN.
10877
10878 2011-10-08  Bruno Haible  <bruno@clisp.org>
10879
10880         Tests for module 'cosf'.
10881         * modules/cosf-tests: New file.
10882         * tests/test-cosf.c: New file.
10883
10884         New module 'cosf'.
10885         * lib/math.in.h (cosf): New declaration.
10886         * lib/cosf.c: New file.
10887         * m4/cosf.m4: New file.
10888         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10890         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10891         * modules/cosf: New file.
10892         * tests/test-math-c++.cc: Check the declaration of cosf.
10893         * doc/posix-functions/cosf.texi: Mention the new module.
10894
10895         cos: Use a .m4 file.
10896         * m4/cos.m4: New file.
10897         * modules/cos (Files): Add it.
10898         (configure.ac): Just invoke gl_FUNC_COS.
10899
10900 2011-10-08  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'sinf'.
10903         * modules/sinf-tests: New file.
10904         * tests/test-sinf.c: New file.
10905
10906         New module 'sinf'.
10907         * lib/math.in.h (sinf): New declaration.
10908         * lib/sinf.c: New file.
10909         * m4/sinf.m4: New file.
10910         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10912         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10913         * modules/sinf: New file.
10914         * tests/test-math-c++.cc: Check the declaration of sinf.
10915         * doc/posix-functions/sinf.texi: Mention the new module.
10916
10917         sin: Use a .m4 file.
10918         * m4/sin.m4: New file.
10919         * modules/sin (Files): Add it.
10920         (configure.ac): Just invoke gl_FUNC_SIN.
10921
10922 2011-10-08  Bruno Haible  <bruno@clisp.org>
10923
10924         Tests for module 'powf'.
10925         * modules/powf-tests: New file.
10926         * tests/test-powf.c: New file.
10927
10928         New module 'powf'.
10929         * lib/math.in.h (powf): New declaration.
10930         * lib/powf.c: New file.
10931         * m4/powf.m4: New file.
10932         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10934         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10935         * modules/powf: New file.
10936         * tests/test-math-c++.cc: Check the declaration of powf.
10937         * doc/posix-functions/powf.texi: Mention the new module.
10938
10939         pow: Use a .m4 file.
10940         * m4/pow.m4: New file.
10941         * modules/pow (Files): Add it.
10942         (configure.ac): Just invoke gl_FUNC_POW.
10943
10944 2011-10-08  Bruno Haible  <bruno@clisp.org>
10945
10946         Tests for module 'log10f'.
10947         * modules/log10f-tests: New file.
10948         * tests/test-log10f.c: New file.
10949
10950         New module 'log10f'.
10951         * lib/math.in.h (log10f): New declaration.
10952         * lib/log10f.c: New file.
10953         * m4/log10f.m4: New file.
10954         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10956         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10957         * modules/log10f: New file.
10958         * tests/test-math-c++.cc: Check the declaration of log10f.
10959         * doc/posix-functions/log10f.texi: Mention the new module.
10960
10961         log10: Use a .m4 file.
10962         * m4/log10.m4: New file.
10963         * modules/log10 (Files): Add it.
10964         (configure.ac): Just invoke gl_FUNC_LOG10.
10965
10966 2011-10-08  Bruno Haible  <bruno@clisp.org>
10967
10968         Tests for module 'logf'.
10969         * modules/logf-tests: New file.
10970         * tests/test-logf.c: New file.
10971
10972         New module 'logf'.
10973         * lib/math.in.h (logf): New declaration.
10974         * lib/logf.c: New file.
10975         * m4/logf.m4: New file.
10976         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10978         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10979         * modules/logf: New file.
10980         * tests/test-math-c++.cc: Check the declaration of logf.
10981         * doc/posix-functions/logf.texi: Mention the new module.
10982
10983         log: Use a .m4 file.
10984         * m4/log.m4: New file.
10985         * modules/log (Files): Add it.
10986         (configure.ac): Just invoke gl_FUNC_LOG.
10987
10988 2011-10-08  Bruno Haible  <bruno@clisp.org>
10989
10990         Tests for module 'expf'.
10991         * modules/expf-tests: New file.
10992         * tests/test-expf.c: New file.
10993
10994         New module 'expf'.
10995         * lib/math.in.h (expf): New declaration.
10996         * lib/expf.c: New file.
10997         * m4/expf.m4: New file.
10998         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11000         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11001         * modules/expf: New file.
11002         * tests/test-math-c++.cc: Check the declaration of expf.
11003         * doc/posix-functions/expf.texi: Mention the new module.
11004
11005         exp: Use a .m4 file.
11006         * m4/exp.m4: New file.
11007         * modules/exp (Files): Add it.
11008         (configure.ac): Just invoke gl_FUNC_EXP.
11009
11010 2011-10-08  Bruno Haible  <bruno@clisp.org>
11011
11012         Tests for module 'sqrtf'.
11013         * modules/sqrtf-tests: New file.
11014         * tests/test-sqrtf.c: New file.
11015
11016         New module 'sqrtf'.
11017         * lib/math.in.h (sqrtf): New declaration.
11018         * lib/sqrtf.c: New file.
11019         * m4/sqrtf.m4: New file.
11020         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11022         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11023         * modules/sqrtf: New file.
11024         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11025         * doc/posix-functions/sqrtf.texi: Mention the new module.
11026
11027 2011-10-08  Bruno Haible  <bruno@clisp.org>
11028
11029         Tests: Avoid link failures w.r.t. libintl.
11030         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11031         $(LIBINTL).
11032         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11033         $(LIBINTL).
11034         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11035         against $(LIBINTL).
11036         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11037         $(LIBINTL).
11038         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11039         $(LIBINTL).
11040         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11041
11042 2011-10-08  Bruno Haible  <bruno@clisp.org>
11043
11044         pow tests: Defeat compiler optimizations.
11045         * tests/test-pow.c (main): Assign arguments to x and y before use.
11046
11047 2011-10-08  Bruno Haible  <bruno@clisp.org>
11048
11049         gnulib-tool: Improve last commit.
11050         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11051         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11052         ignore dependencies that are not among the modules list.
11053
11054 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11055
11056         gnulib-tool: don't follow dependencies to avoided modules
11057         This fixes a bug that is related to the previous one.
11058         * gnulib-tool (func_modules_transitive_closure)
11059         (func_emit_autoconf_snippets):
11060         Check whether a dependency is acceptable before using it.
11061         (--extract-dependencies): Report an error if --avoid is also used,
11062         since this combination of options is not yet supported.
11063
11064         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11065         Problem reported by Peter Dyballa in
11066         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11067         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11068         when echoing "$condition".
11069
11070 2011-10-07  Bruno Haible  <bruno@clisp.org>
11071
11072         Fix documentation about math functions on MacOS X.
11073         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11074         MacOS X 10.5.
11075         * doc/posix-functions/fdim.texi: Likewise.
11076         * doc/posix-functions/feclearexcept.texi: Likewise.
11077         * doc/posix-functions/fegetenv.texi: Likewise.
11078         * doc/posix-functions/fegetround.texi: Likewise.
11079         * doc/posix-functions/feholdexcept.texi: Likewise.
11080         * doc/posix-functions/feraiseexcept.texi: Likewise.
11081         * doc/posix-functions/fesetenv.texi: Likewise.
11082         * doc/posix-functions/fesetround.texi: Likewise.
11083         * doc/posix-functions/fetestexcept.texi: Likewise.
11084         * doc/posix-functions/feupdateenv.texi: Likewise.
11085         * doc/posix-functions/fmax.texi: Likewise.
11086         * doc/posix-functions/fmin.texi: Likewise.
11087         * doc/posix-functions/log2.texi: Likewise.
11088         * doc/posix-functions/modff.texi: Likewise.
11089         * doc/posix-functions/nan.texi: Likewise.
11090         * doc/posix-functions/nanf.texi: Likewise.
11091         * doc/posix-functions/nextafterf.texi: Likewise.
11092         * doc/posix-functions/remquo.texi: Likewise.
11093
11094 2011-10-07  Bruno Haible  <bruno@clisp.org>
11095
11096         modff: Drop assumption about library that defines modff.
11097         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11098         AC_CHECK_FUNCS.
11099         * modules/modff (Files): Add m4/mathfunc.m4.
11100
11101 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11102
11103         raise tests: Avoid a GCC warning.
11104         * tests/test-raise.c (handler): Use _Noreturn.
11105
11106 2011-10-07  Bruno Haible  <bruno@clisp.org>
11107
11108         Tests for module 'ldexpf'.
11109         * modules/ldexpf-tests: New file.
11110         * tests/test-ldexpf.c: New file.
11111
11112         New module 'ldexpf'.
11113         * lib/math.in.h (ldexpf): New declaration.
11114         * lib/ldexpf.c: New file.
11115         * m4/ldexpf.m4: New file.
11116         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11118         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11119         * modules/ldexpf: New file.
11120         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11121         * doc/posix-functions/ldexpf.texi: Mention the new module.
11122
11123 2011-10-06  Bruno Haible  <bruno@clisp.org>
11124
11125         frexpf: Work around problems on IRIX and mingw.
11126         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11128         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11129         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11130         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11131         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11132         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11133
11134 2011-10-06  Bruno Haible  <bruno@clisp.org>
11135
11136         fabsf: Drop assumption about library that defines fabsf.
11137         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11138         AC_CHECK_FUNCS.
11139         * modules/fabsf (Files): Add m4/mathfunc.m4.
11140
11141 2011-10-06  Bruno Haible  <bruno@clisp.org>
11142
11143         frexpf: Drop assumption about library that defines frexpf.
11144         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11145         'int *', 'float *', 'long double *', 'float', 'long double'.
11146         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11147         AC_CHECK_FUNCS.
11148         * modules/frexpf (Files): Add m4/mathfunc.m4.
11149
11150         Tests for module 'frexpf'.
11151         * modules/frexpf-tests: New file.
11152         * tests/test-frexpf.c: New file.
11153
11154         New module 'frexpf'.
11155         * lib/math.in.h (frexpf): New declaration.
11156         * lib/frexpf.c: New file.
11157         * m4/frexpf.m4: New file.
11158         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11160         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11161         * modules/frexpf: New file.
11162         * tests/test-math-c++.cc: Check the declaration of frexpf.
11163         * doc/posix-functions/frexpf.texi: Mention the new module.
11164
11165 2011-10-06  Bruno Haible  <bruno@clisp.org>
11166
11167         math: Sort function declarations of math.in.h.
11168         * lib/math.in.h (frexp, logb): Move declarations.
11169
11170 2011-10-05  Bruno Haible  <bruno@clisp.org>
11171
11172         Tests for module 'modff'.
11173         * modules/modff-tests: New file.
11174         * tests/test-modff.c: New file.
11175
11176         New module 'modff'.
11177         * lib/math.in.h (modff): New declaration.
11178         * lib/modff.c: New file.
11179         * m4/modff.m4: New file.
11180         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11182         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11183         * modules/modff: New file.
11184         * tests/test-math-c++.cc: Check the declaration of modff.
11185         * doc/posix-functions/modff.texi: Mention the new module.
11186
11187         modf tests: Make test sharper.
11188         * tests/test-modf.c (main): Strengthen upper bound.
11189
11190         modf: Use a .m4 file.
11191         * m4/modf.m4: New file.
11192         * modules/modf (Files): Add it.
11193         (configure.ac): Just invoke gl_FUNC_MODF.
11194
11195 2011-10-05  Bruno Haible  <bruno@clisp.org>
11196
11197         Tests for module 'fmodf'.
11198         * modules/fmodf-tests: New file.
11199         * tests/test-fmodf.c: New file.
11200
11201         New module 'fmodf'.
11202         * lib/math.in.h (fmodf): New declaration.
11203         * lib/fmodf.c: New file.
11204         * m4/fmodf.m4: New file.
11205         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11207         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11208         * modules/fmodf: New file.
11209         * tests/test-math-c++.cc: Check the declaration of fmodf.
11210         * doc/posix-functions/fmodf.texi: Mention the new module.
11211
11212         fmod: Use a .m4 file.
11213         * m4/fmod.m4: New file.
11214         * modules/fmod (Files): Add it.
11215         (configure.ac): Just invoke gl_FUNC_FMOD.
11216
11217 2011-10-05  Bruno Haible  <bruno@clisp.org>
11218
11219         Tests for module 'fabsf'.
11220         * modules/fabsf-tests: New file.
11221         * tests/test-fabsf.c: New file.
11222
11223         New module 'fabsf'.
11224         * lib/math.in.h (fabsf): New declaration.
11225         * lib/fabsf.c: New file.
11226         * m4/fabsf.m4: New file.
11227         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11229         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11230         * modules/fabsf: New file.
11231         * tests/test-math-c++.cc: Check the declaration of fabsf.
11232         * doc/posix-functions/fabsf.texi: Mention the new module.
11233
11234         fabs: Use a .m4 file.
11235         * m4/fabs.m4: New file.
11236         * modules/fabs (Files): Add it.
11237         (configure.ac): Just invoke gl_FUNC_FABS.
11238
11239 2011-10-05  Jim Meyering  <meyering@redhat.com>
11240
11241         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11242         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11243         ls -lL regression introduced in coreutils-8.12, it does so at the
11244         cost of an additional stat call in the common case.  Besides, now
11245         that the kernel change that prompted commit 95f7c57f has been reverted
11246         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11247         we have no use for commit 95f7c57f, "file-has-acl: use
11248         acl_extended_file_nofollow if available".
11249
11250 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11251
11252         file-has-acl: revert unintended change in behavior of ls -L
11253         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11254         derived from...
11255         (file_has_acl): ...code here.  Call it.
11256         This problem was introduced with 2011-07-22 commit 95f7c57f,
11257         "file-has-acl: use acl_extended_file_nofollow if available".
11258         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11259
11260 2011-10-03  Bruno Haible  <bruno@clisp.org>
11261
11262         poll: Avoid link errors on MSVC.
11263         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11264         * modules/poll (Depends-on): Add sockets.
11265         (Link): New section.
11266         * NEWS: Mention the change.
11267         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11268         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11269         $(LIB_POLL) instead of $(LIBSOCKET).
11270
11271 2011-10-03  Bruno Haible  <bruno@clisp.org>
11272
11273         sys_select tests: Fix link error on MSVC 9.
11274         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11275         with $(LIB_SELECT) instead of $(LIBSOCKET).
11276
11277 2011-10-03  Bruno Haible  <bruno@clisp.org>
11278
11279         sys_select: Fix compilation error on mingw.
11280         * lib/sys_select.in.h: On native Windows, include <io.h>.
11281
11282 2011-10-03  Bruno Haible  <bruno@clisp.org>
11283
11284         wmemset: Support for MSVC.
11285         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11286         whether wmemset() exists.
11287
11288 2011-10-03  Bruno Haible  <bruno@clisp.org>
11289
11290         wmemmove: Support for MSVC.
11291         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11292         whether wmemmove() exists.
11293
11294 2011-10-03  Bruno Haible  <bruno@clisp.org>
11295
11296         wmemcpy: Support for MSVC.
11297         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11298         whether wmemcpy() exists.
11299
11300 2011-10-03  Bruno Haible  <bruno@clisp.org>
11301
11302         wmemcmp: Support for MSVC.
11303         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11304         whether wmemcmp() exists.
11305
11306 2011-10-03  Bruno Haible  <bruno@clisp.org>
11307
11308         wmemchr: Support for MSVC.
11309         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11310         whether wmemchr() exists.
11311
11312 2011-10-03  Bruno Haible  <bruno@clisp.org>
11313
11314         glthread/*, strsignal: Support for MSVC.
11315         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11316         including <winsock.h> on MSVC 9.
11317         * lib/glthread/lock.h: Likewise.
11318         * lib/glthread/thread.h: Likewise.
11319         * lib/glthread/tls.h: Likewise.
11320         * lib/glthread/yield.h: Likewise.
11321         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11322         if HAVE_UNISTD_H is false.
11323         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11324
11325 2011-10-03  Bruno Haible  <bruno@clisp.org>
11326
11327         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11328         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11329         Set to 100000.
11330
11331 2011-10-03  Bruno Haible  <bruno@clisp.org>
11332
11333         acl: Fix specification.
11334         * lib/file-has-acl.c (file_has_acl): Fix specification.
11335
11336 2011-10-03  Bruno Haible  <bruno@clisp.org>
11337
11338         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11339         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11340         (compute_curr_prefix, shared_library_fullname,
11341         find_shared_library_fullname, get_shared_library_fullname, relocate):
11342         Use it together with PIC && INSTALLDIR.
11343         Reported by <jojelino@gmail.com>
11344         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11345
11346 2011-10-01  Jim Meyering  <meyering@redhat.com>
11347
11348         maint.mk: adjust a release-related rule not to require use of gzip
11349         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11350         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11351         projects that build only .tar.xz files.  Also fix an erroneous test.
11352
11353         test-linkat: don't leave behind a temporary file
11354         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11355         Otherwise, coreutils' "make distcheck" would fail with this:
11356           Only in /c/cu/tests/torture/coreutils/test/\
11357             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11358           make[2]: *** [my-distcheck] Error 1
11359
11360         float, math: add omitted file
11361         * lib/itold.c: Add file, required for yesterday's float change.
11362
11363 2011-10-01  Bruno Haible  <bruno@clisp.org>
11364
11365         isinf: Fix for OpenBSD/x86.
11366         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11367         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11368         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11369
11370 2011-10-01  Bruno Haible  <bruno@clisp.org>
11371
11372         isfinite: Fix syntax error in configure test.
11373         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11374
11375         isfinite: Fix typo.
11376         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11377         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11378
11379 2011-10-01  Bruno Haible  <bruno@clisp.org>
11380
11381         nonblocking tests: Fix test failure on Linux/IA-64.
11382         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11383         Set to 270000.
11384
11385 2011-10-01  Bruno Haible  <bruno@clisp.org>
11386
11387         mkfifoat tests: Fix a test failure on mingw.
11388         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11389         with error ENOSYS.
11390
11391 2011-09-30  Bruno Haible  <bruno@clisp.org>
11392
11393         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11394         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11395         'long double'. Set REPLACE_ITOLD.
11396         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11397         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11398         * lib/itold.c: New file.
11399         * modules/float (Files): Add lib/itold.c.
11400         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11401         (Makefile.am): Substitute REPLACE_ITOLD.
11402         * modules/math (Depends-on): Add float.
11403         (Makefile.am): Substitute REPLACE_ITOLD.
11404         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11405         * doc/posix-headers/math.texi: Likewise.
11406         * doc/posix-functions/logl.texi: Likewise.
11407
11408 2011-09-30  Bruno Haible  <bruno@clisp.org>
11409
11410         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11411         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11412         Set to 140000.
11413
11414 2011-09-30  Bruno Haible  <bruno@clisp.org>
11415
11416         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11417         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11418         invocation, say "right after AC_PROG_CC_STDC", not "right after
11419         AC_PROG_CC".
11420         Reported by Gary V. Vaughan <gary@gnu.org>.
11421
11422 2011-09-30  Bruno Haible  <bruno@clisp.org>
11423
11424         Centralize C99 requirement.
11425         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11426         * modules/stdarg (configure.ac-early): Invoke it instead of
11427         AC_PROG_CC_STDC.
11428         Reported by Gary V. Vaughan and Paul Eggert.
11429
11430 2011-09-29  Bruno Haible  <bruno@clisp.org>
11431
11432         float: Fix LDBL_MAX value on Linux/PowerPC.
11433         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11434         on Linux/PowerPC.
11435         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11436         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11437         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11438         platform.
11439         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11440
11441 2011-09-29  Bruno Haible  <bruno@clisp.org>
11442
11443         doc: Improve doc about gl_EARLY.
11444         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11445         AC_PROG_CC_STDC invocation.
11446         Reported by Gary V. Vaughan <gary@gnu.org>.
11447
11448 2011-09-28  Bruno Haible  <bruno@clisp.org>
11449
11450         fgetc, fputc, fread, fwrite tests: Fix link error.
11451         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11452         on non-MSVC platforms.
11453         * tests/test-fputc.c (main): Likewise.
11454         * tests/test-fread.c (main): Likewise.
11455         * tests/test-fwrite.c (main): Likewise.
11456         Reported by Jim Meyering.
11457
11458 2011-09-27  Bruno Haible  <bruno@clisp.org>
11459
11460         fputc, fwrite tests: Avoid test failure on MSVC.
11461         * tests/test-fgetc.c: Include msvc-inval.h.
11462         (main): Invoke gl_msvc_inval_ensure_handler.
11463         * tests/test-fputc.c: Include msvc-inval.h.
11464         (main): Invoke gl_msvc_inval_ensure_handler.
11465         * tests/test-fread.c: Include msvc-inval.h.
11466         (main): Invoke gl_msvc_inval_ensure_handler.
11467         * tests/test-fwrite.c: Include msvc-inval.h.
11468         (main): Invoke gl_msvc_inval_ensure_handler.
11469         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11470         * modules/fputc-tests (Depends-on): Likewise.
11471         * modules/fread-tests (Depends-on): Likewise.
11472         * modules/fwrite-tests (Depends-on): Likewise.
11473
11474 2011-09-27  Bruno Haible  <bruno@clisp.org>
11475
11476         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11477         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11478         (raise): Remove older, duplicated declaration.
11479         (_gl_raise_SIGPIPE): New declaration.
11480         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11481         (rpl_raise): Remove function.
11482         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11483         a gnulib-defined SIGPIPE here.
11484         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11485         'sigprocmask' has detected missing signal-blocking and the module
11486         'sigpipe' is enabled.
11487         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11488
11489 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11490
11491         base64-tests: avoid memory leak
11492         * tests/test-base64.c (main): Plug memory leak.
11493
11494         base32: new module
11495         * modules/base32: New module.
11496         * lib/base32.c: New file.
11497         * lib/base32.h: Likewise.
11498         * m4/base32.m4: Likewise.
11499         * modules/base32-tests: New test.
11500         * tests/test-base32.c: Likewise.
11501         * MODULES.html.sh (Misc): Mention it.
11502
11503 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11504
11505         gnulib: use more-standard license notice wording
11506         * gnulib-tool (func_emit_copyright_notice): When emitting a
11507         license notice into a file, use the standard wording as suggested
11508         by the current information for GNU maintainers, except say "file"
11509         rather than "program".  The new wording gives a license version
11510         number, which addresses an issue raised by Glenn Morris in
11511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11512         * m4/onceonly.m4: Use that same wording here, too.
11513
11514         dup2: minor simplification
11515         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11516         as lib/dup2.c no longer uses 'inline'.
11517
11518 2011-09-25  Bruno Haible  <bruno@clisp.org>
11519
11520         strings: Fix compilation error on MSVC.
11521         * lib/strings.in.h: Include <stddef.h> for size_t.
11522
11523 2011-09-25  Bruno Haible  <bruno@clisp.org>
11524
11525         fflush et al.: Document limitation on MSVC.
11526         * doc/posix-functions/fflush.texi: Document possible crash in handling
11527         mode other than DEFAULT_HANDLING.
11528         * doc/posix-functions/fgetc.texi: Likewise.
11529         * doc/posix-functions/fputc.texi: Likewise.
11530         * doc/posix-functions/fread.texi: Likewise.
11531         * doc/posix-functions/fwrite.texi: Likewise.
11532
11533 2011-09-25  Bruno Haible  <bruno@clisp.org>
11534
11535         msvc-inval: Allow three invalid parameter handling modes.
11536         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11537         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11538         macros.
11539         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11540         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11541         SANE_LIBRARY_HANDLING as a no-op.
11542         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11543         <stdlib.h>.
11544         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11545
11546 2011-09-25  Bruno Haible  <bruno@clisp.org>
11547
11548         msvc-inval: Make handler multithread-safe.
11549         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11550         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11551         declarations.
11552         (gl_msvc_inval_current): New declaration.
11553         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11554         Operate on the structure returned by gl_msvc_inval_current().
11555         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11556         Remove varaiables.
11557         (tls_index, tls_initialized): New variables.
11558         (not_per_thread): New variable.
11559         (gl_msvc_inval_current): New function.
11560         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11561         returned by gl_msvc_inval_current().
11562
11563 2011-09-25  Bruno Haible  <bruno@clisp.org>
11564
11565         msvc-inval: Install handler globally.
11566         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11567         !_MSC_VER.
11568         (gl_msvc_invalid_parameter_handler): Remove declaration.
11569         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11570         declarations.
11571         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11572         Install the handler globally, don't uninstall it.
11573         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11574         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11575         currently valid, call RaiseException instead.
11576         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11577         for !_MSC_VER.
11578
11579 2011-09-25  Bruno Haible  <bruno@clisp.org>
11580
11581         strerror_r-posix: Fix for MSVC 9.
11582         * lib/strerror_r.c (local_snprintf): New function.
11583         (snprintf): Define to local_snprintf, not to _snprintf.
11584
11585 2011-09-25  Bruno Haible  <bruno@clisp.org>
11586
11587         ftruncate: Support for MSVC 9.
11588         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11589         (chsize_nothrow): New function.
11590         (chsize): Redefine as a macro.
11591         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11592         * modules/ftruncate (Depends-on): Add msvc-inval.
11593
11594 2011-09-25  Bruno Haible  <bruno@clisp.org>
11595
11596         New module 'fstat'.
11597         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11598         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11599         * lib/fchdir.c (rpl_fstat): Remove function.
11600         * m4/fstat.m4: New file.
11601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11603         declared.
11604         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11605         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11606         * modules/fstat: New file.
11607         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11608         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11609         is set.
11610         * doc/posix-functions/fstat.texi: Mention the new module and the
11611         problem on MSVC.
11612         * NEWS: Mention the change.
11613         * modules/acl (Depends-on): Add fstat.
11614         * modules/chdir-safer (Depends-on): Likewise.
11615         * modules/chown (Depends-on): Likewise.
11616         * modules/copy-file (Depends-on): Likewise.
11617         * modules/fchdir (Depends-on): Likewise.
11618         * modules/fdopendir (Depends-on): Likewise.
11619         * modules/fopen (Depends-on): Likewise.
11620         * modules/fts (Depends-on): Likewise.
11621         * modules/getcwd (Depends-on): Likewise.
11622         * modules/isapipe (Depends-on): Likewise.
11623         * modules/linkat (Depends-on): Likewise.
11624         * modules/lseek (Depends-on): Likewise.
11625         * modules/mkdir-p (Depends-on): Likewise.
11626         * modules/open (Depends-on): Likewise.
11627         * modules/openat (Depends-on): Likewise.
11628         * modules/read-file (Depends-on): Likewise.
11629         * modules/renameat (Depends-on): Likewise.
11630         * modules/utimens (Depends-on): Likewise.
11631
11632 2011-09-25  Bruno Haible  <bruno@clisp.org>
11633
11634         linkat: Fix compilation on MSVC 9.
11635         * lib/linkat.c: Don't include <stdint.h>.
11636
11637 2011-09-25  Bruno Haible  <bruno@clisp.org>
11638
11639         fclose: Support for MSVC 9.
11640         * lib/fclose.c: Include msvc-inval.h.
11641         (fclose_nothrow): New function.
11642         (rpl_fclose): Use it.
11643         * modules/fclose (Depends-on): Add msvc-inval.
11644         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11645
11646 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         dup2: minor simplifications
11649         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11650         that it's a performance win.
11651         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11652         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11653
11654 2011-09-24  Jim Meyering  <meyering@redhat.com>
11655
11656         test-futimens: avoid a warning from gcc -Wshadow
11657         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11658         to avoid a shadowing warning.
11659
11660 2011-09-24  Bruno Haible  <bruno@clisp.org>
11661
11662         fdopen: Support for MSVC 9.
11663         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11664         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11665         * lib/fdopen.c: Include msvc-inval.h.
11666         (fdopen_nothrow): New function.
11667         (rpl_fdopen): Use it.
11668         * modules/fdopen (Depends-on): Add msvc-inval.
11669         * modules/fclose-tests (Depends-on): Add fdopen.
11670         * modules/fflush-tests (Depends-on): Likewise.
11671         * modules/fgetc-tests (Depends-on): Likewise.
11672         * modules/fputc-tests (Depends-on): Likewise.
11673         * modules/fread-tests (Depends-on): Likewise.
11674         * modules/freopen-tests (Depends-on): Likewise.
11675         * modules/fseeko-tests (Depends-on): Likewise.
11676         * modules/ftello-tests (Depends-on): Likewise.
11677         * modules/fwrite-tests  (Depends-on): Likewise.
11678         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11679
11680 2011-09-24  Bruno Haible  <bruno@clisp.org>
11681
11682         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11683         * modules/fgetc-tests (Depends-on): Add unistd.
11684         * modules/fputc-tests (Depends-on): Likewise.
11685         * modules/fread-tests (Depends-on): Likewise.
11686         * modules/fwrite-tests (Depends-on): Likewise.
11687
11688 2011-09-24  Bruno Haible  <bruno@clisp.org>
11689
11690         dup: Simplify autoconf test.
11691         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11692         on gl_MSVC_INVAL's result.
11693
11694 2011-09-24  Bruno Haible  <bruno@clisp.org>
11695
11696         Tests for function fwrite().
11697         * modules/fwrite-tests: New file.
11698         * tests/test-fwrite.c: New file.
11699         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11700
11701         Tests for function fread().
11702         * modules/fread-tests: New file.
11703         * tests/test-fread.c: New file.
11704         * modules/stdio-tests (Depends-on): Add fread-tests.
11705
11706         Activate fputc tests.
11707         * modules/stdio-tests (Depends-on): Add fputc-tests.
11708
11709         Enhance fgetc, fputc tests.
11710         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11711         * tests/test-fputc.c (main): Likewise.
11712
11713 2011-09-24  Bruno Haible  <bruno@clisp.org>
11714
11715         write: Support for MSVC 9.
11716         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11717         is not 1.
11718         * lib/write.c (write_nothrow): New function.
11719         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11720         not 1. Use write_nothrow.
11721         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11722         invalid parameter handler.
11723         (gl_PREREQ_WRITE): New macro.
11724         * modules/write (Depends-on): Add msvc-inval.
11725         (configure.ac): Invoke gl_PREREQ_WRITE.
11726         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11727
11728 2011-09-24  Bruno Haible  <bruno@clisp.org>
11729
11730         read: Fix last commit.
11731         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11732
11733 2011-09-24  Bruno Haible  <bruno@clisp.org>
11734
11735         dup2: Fix last commit.
11736         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11737         (rpl_dup2): Disable fcntl workaround on native Windows.
11738
11739         sigprocmask: Make code safer.
11740         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11741         section that changes macro definitions for this compilation unit.
11742
11743 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11744
11745         dup2: clarify by coalescing Windows-specific material
11746         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11747         "msvc-nothrow.h"' to the Windows-specific section, so that the
11748         Emacs source need not contain these include files.
11749         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11750         Windows-specific fixes into this function rather than just the
11751         nothrow fix, as this shortens and clarifies the code.  Always
11752         define as a function, as that's a bit cleaner than having it be
11753         sometimes a function and sometimes a macro.
11754         (rpl_dup2): Move the Windows-specific stuff out of here and into
11755         ms_windows_dup2.  Don't protect the Haiku-related fix with
11756         "#if !defined __linux__", as the same code also works around
11757         a Linux kernel bug, and it doesn't add any system calls on any
11758         platform.  Add comment about FreeBSD 6.1.
11759
11760         sigprocmask: move #include directive
11761         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11762         Windows-specific section, so that the Emacs source need not
11763         contain msvc-inval.h.
11764
11765 2011-09-23  Bruno Haible  <bruno@clisp.org>
11766
11767         read: Support for MSVC 9.
11768         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11769         is not 1.
11770         * lib/read.c (read_nothrow): New function.
11771         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11772         read_nothrow.
11773         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11774         invalid parameter handler.
11775         (gl_PREREQ_READ): New macro.
11776         * modules/read (Depends-on): Add msvc-inval.
11777         (configure.ac): Invoke gl_PREREQ_READ.
11778         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11779
11780 2011-09-23  Bruno Haible  <bruno@clisp.org>
11781
11782         close: Support for MSVC 9.
11783         * lib/close.c: Include <errno.h>, msvc-inval.h.
11784         (close_nothrow): New function.
11785         (rpl_close): Use it.
11786         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11787         invalid parameter handler.
11788         * modules/close (Depends-on): Add msvc-inval.
11789         * modules/dup2-tests (Depends-on): Add close.
11790         * modules/dup3-tests (Depends-on): Likewise.
11791         * modules/fcntl-tests (Depends-on): Likewise.
11792         * modules/spawn-pipe-tests (Depends-on): Likewise.
11793         * modules/unistd-safer-tests (Depends-on): Likewise.
11794         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11795
11796 2011-09-23  Bruno Haible  <bruno@clisp.org>
11797
11798         New module 'dup'.
11799         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11800         Allow replacement.
11801         * lib/dup.c: New file.
11802         * lib/fchdir.c (rpl_dup): Remove function.
11803         * m4/dup.m4: New file.
11804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11805         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11806         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11807         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11808         * modules/dup: New file.
11809         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11810         'dup' module is in use.
11811         * modules/fdopendir (Depends-on): Add dup.
11812         * modules/fdutimensat-tests (Depends-on): Likewise.
11813         * modules/fts (Depends-on): Likewise.
11814         * modules/futimens-tests (Depends-on): Likewise.
11815         * modules/posix_spawnp-tests (Depends-on): Likewise.
11816         * modules/unistd-safer-tests (Depends-on): Likewise.
11817         * modules/utimens-tests (Depends-on): Likewise.
11818         * doc/posix-functions/dup.texi: Mention the new module and the problem
11819         on MSVC.
11820
11821 2011-09-23  Bruno Haible  <bruno@clisp.org>
11822
11823         getdtablesize: Support for MSVC 9.
11824         * lib/getdtablesize.c: Include msvc-inval.h.
11825         (_setmaxstdio_nothrow): New function.
11826         (_setmaxstdio): Redefine it.
11827         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11828         * modules/getdtablesize (Depends-on): Add msvc-inval.
11829         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11830
11831 2011-09-23  Bruno Haible  <bruno@clisp.org>
11832
11833         signal-h: Rename from signal.
11834         * modules/signal-h: Renamed from modules/signal.
11835         * modules/pthread_sigmask (Depends-on): Update.
11836         * modules/raise (Depends-on): Likewise.
11837         * modules/sigaction (Depends-on): Likewise.
11838         * modules/sigpipe (Depends-on): Likewise.
11839         * modules/sigprocmask (Depends-on): Likewise.
11840         * modules/sys_select (Depends-on): Likewise.
11841         * modules/signal-h-tests: Renamed from modules/signal-tests.
11842         (Files, Depends-on, Makefile.am): Update.
11843         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11844         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11845         (Files, Makefile.am): Update.
11846         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11847         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11848         * modules/signal: New placeholder file.
11849         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11850         * doc/posix-headers/signal.texi: Update.
11851         * NEWS: Mention the change.
11852
11853 2011-09-23  Bruno Haible  <bruno@clisp.org>
11854
11855         sigprocmask: Avoid crashes through signal() on MSVC 9.
11856         * lib/sigprocmask.c: Include msvc-inval.h.
11857         (signal_nothrow): New function.
11858         (signal): Redefine it.
11859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11860         * modules/sigprocmask (Depends-on): Add msvc-inval.
11861         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11862
11863 2011-09-23  Bruno Haible  <bruno@clisp.org>
11864
11865         Tests for module 'raise'.
11866         * modules/raise-tests: New file.
11867         * tests/test-raise.c: New file.
11868
11869         raise: Support for MSVC.
11870         * lib/signal.in.h (raise): New declaration.
11871         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11872         for native Windows platforms.
11873         * m4/raise.m4: New file.
11874         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11875         HAVE_RAISE, REPLACE_RAISE.
11876         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11877         REPLACE_RAISE.
11878         * modules/raise (Status, Notice): Remove fields.
11879         (Files): Add m4/raise.m4.
11880         (Depends-on): Add signal, msvc-inval.
11881         (configure.ac): Use the common idioms.
11882         (Maintainer): Add me.
11883         * tests/test-signal-c++.cc: Check the signature of raise.
11884         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11885
11886 2011-09-23  Bruno Haible  <bruno@clisp.org>
11887
11888         pipe2: Fix compilation on pre-C99 compilers.
11889         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11890
11891 2011-09-23  Bruno Haible  <bruno@clisp.org>
11892
11893         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11894         * lib/msvc-nothrow.h: New file.
11895         * lib/msvc-nothrow.c: New file.
11896         * m4/msvc-nothrow.m4: New file.
11897         * modules/msvc-nothrow: New file.
11898         * lib/dup2.c: Include msvc-nothrow.h.
11899         (rpl_dup2): No need to protect _get_osfhandle call here.
11900         * lib/accept4.c: Include msvc-nothrow.h.
11901         * lib/error.c: Likewise.
11902         * lib/fcntl.c: Likewise.
11903         * lib/lseek.c: Likewise.
11904         * lib/nonblocking.c: Likewise.
11905         * lib/poll.c: Likewise.
11906         * lib/read.c: Likewise.
11907         * lib/select.c: Likewise.
11908         * lib/sockets.h: Likewise.
11909         * lib/sockets.c: Likewise.
11910         * lib/stdio-read.c: Likewise.
11911         * lib/stdio-write.c: Likewise.
11912         * lib/write.c: Likewise.
11913         * lib/w32sock.h: Likewise.
11914         * lib/w32spawn.h: Likewise.
11915         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11916         * lib/fsync.c: Likewise.
11917         * lib/isapipe.c: Likewise.
11918         * modules/dup2 (Depends-on): Add msvc-nothrow.
11919         * modules/accept4 (Depends-on): Likewise.
11920         * modules/error (Depends-on): Likewise.
11921         * modules/fcntl (Depends-on): Likewise.
11922         * modules/lseek (Depends-on): Likewise.
11923         * modules/nonblocking (Depends-on): Likewise.
11924         * modules/poll (Depends-on): Likewise.
11925         * modules/read (Depends-on): Likewise.
11926         * modules/select (Depends-on): Likewise.
11927         * modules/sockets (Depends-on): Likewise.
11928         * modules/sigpipe (Depends-on): Likewise.
11929         * modules/write (Depends-on): Likewise.
11930         * modules/accept (Depends-on): Likewise.
11931         * modules/bind (Depends-on): Likewise.
11932         * modules/connect (Depends-on): Likewise.
11933         * modules/gethostname (Depends-on): Likewise.
11934         * modules/getpeername (Depends-on): Likewise.
11935         * modules/getsockname (Depends-on): Likewise.
11936         * modules/getsockopt (Depends-on): Likewise.
11937         * modules/ioctl (Depends-on): Likewise.
11938         * modules/listen (Depends-on): Likewise.
11939         * modules/recv (Depends-on): Likewise.
11940         * modules/recvfrom (Depends-on): Likewise.
11941         * modules/send (Depends-on): Likewise.
11942         * modules/sendto (Depends-on): Likewise.
11943         * modules/setsockopt (Depends-on): Likewise.
11944         * modules/shutdown (Depends-on): Likewise.
11945         * modules/socket (Depends-on): Likewise.
11946         * modules/execute (Depends-on): Likewise.
11947         * modules/spawn-pipe (Depends-on): Likewise.
11948         * modules/flock (Depends-on): Likewise.
11949         * modules/fsync (Depends-on): Likewise.
11950         * modules/isapipe (Depends-on): Likewise.
11951         * tests/test-cloexec.c: Include msvc-nothrow.h.
11952         * tests/test-dup-safer.c: Likewise.
11953         * tests/test-dup2.c: Likewise.
11954         * tests/test-dup3.c: Likewise.
11955         * tests/test-fcntl.c: Likewise.
11956         * tests/test-pipe.c: Likewise.
11957         * tests/test-pipe2.c: Likewise.
11958         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11959         * modules/unistd-safer-tests (Depends-on): Likewise.
11960         * modules/dup2-tests (Depends-on): Likewise.
11961         * modules/dup3-tests (Depends-on): Likewise.
11962         * modules/fcntl-tests (Depends-on): Likewise.
11963         * modules/pipe-posix-tests (Depends-on): Likewise.
11964         * modules/pipe2-tests (Depends-on): Likewise.
11965
11966 2011-09-23  Bruno Haible  <bruno@clisp.org>
11967
11968         dup2: Make code more maintainable.
11969         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11970         (rpl_dup2): Use it.
11971         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11972         * modules/dup2 (configure.ac): Invoke it.
11973         Reported by Paul Eggert.
11974
11975 2011-09-23  Bruno Haible  <bruno@clisp.org>
11976
11977         msvc-inval: Fix compilation error.
11978         * lib/msvc-inval.h: Include <excpt.h>.
11979
11980 2011-09-23  Bruno Haible  <bruno@clisp.org>
11981
11982         mkdir: Tweak for MSVC 9.
11983         * lib/sys_stat.in.h: Update comments.
11984         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11985
11986         Tests for module 'chdir'.
11987         * modules/chdir-tests: New file.
11988         * tests/test-chdir.c: New file.
11989
11990         New module 'chdir'.
11991         * modules/chdir: New file.
11992         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11993         (chdir): New declaration.
11994         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11995         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11996         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11997         * tests/test-unistd-c++.cc: Check signature of chdir.
11998         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11999         * modules/chdir-long (Depends-on): Add chdir.
12000         * modules/fchdir (Depends-on): Likewise.
12001         * modules/rename (Depends-on): Likewise.
12002         * modules/savewd (Depends-on): Likewise.
12003
12004         rmdir: Support for mingw, MSVC 9.
12005         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12006         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12007
12008         getcwd: Tweak for MSVC 9.
12009         * lib/unistd.in.h: Update comments.
12010         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12011
12012 2011-09-22  Bruno Haible  <bruno@clisp.org>
12013
12014         strerror_r-posix: Avoid a link error on MSVC.
12015         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12016         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12017
12018 2011-09-22  Bruno Haible  <bruno@clisp.org>
12019
12020         select: Avoid link errors on MSVC.
12021         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12022         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12023         * modules/pselect (Link): Likewise.
12024         * NEWS: Mention the change.
12025         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12026         test-select-stdin against $(LIB_SELECT).
12027         * modules/pselect-tests (Makefile.am): Link test-pselect against
12028         $(LIB_SELECT).
12029
12030 2011-09-22  Bruno Haible  <bruno@clisp.org>
12031
12032         select: Avoid compilation error on MSVC.
12033         * lib/select.c: Don't include <stdbool.h>.
12034
12035 2011-09-21  Bruno Haible  <bruno@clisp.org>
12036
12037         Consolidate all uses of PATH_MAX in *.m4 files.
12038         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12039         macros.
12040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12041         and gl_PATHMAX_SNIPPET.
12042         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12044         * modules/chdir-long (Files): Add m4/pathmax.m4.
12045         * modules/getcwd (Files): Likewise.
12046
12047 2011-09-21  Bruno Haible  <bruno@clisp.org>
12048
12049         ftruncate: Un-deprecate, concentrate on Win32 support.
12050         * modules/ftruncate (Status, Notice): Remove sections.
12051         (Depends-on): Add largefile.
12052         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12053         non-mingw platforms.
12054         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12055         include <io.h>.
12056         * modules/perror-tests (Depends-on): Add ftruncate.
12057         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12058         'ftruncate' module.
12059
12060 2011-09-21  Bruno Haible  <bruno@clisp.org>
12061
12062         Add dependencies to new dirent related modules.
12063         * modules/opendir (Depends-on): Add closedir.
12064         * modules/getcwd (Depends-on): Add opendir, closedir.
12065         * modules/dirent-safer-tests (Depends-on): Likewise.
12066         * modules/fdopendir-tests (Depends-on): Likewise.
12067         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12068         * modules/renameat-tests (Depends-on): Likewise.
12069
12070 2011-09-21  Bruno Haible  <bruno@clisp.org>
12071
12072         opendir: Avoid compilation error on mingw.
12073         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12074         * modules/opendir (Depends-on): Add unistd.
12075
12076 2011-09-21  Bruno Haible  <bruno@clisp.org>
12077
12078         ftruncate tests: Avoid a test failure on mingw.
12079         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12080
12081 2011-09-21  Bruno Haible  <bruno@clisp.org>
12082
12083         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12084         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12085         native Windows.
12086
12087 2011-09-21  Bruno Haible  <bruno@clisp.org>
12088
12089         New module 'fdopen'.
12090         * lib/stdio.in.h (fdopen): New declaration.
12091         * lib/fdopen.c: New file.
12092         * m4/fdopen.m4: New file.
12093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12094         REPLACE_FDOPEN.
12095         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12096         REPLACE_FDOPEN.
12097         * modules/fdopen: New file.
12098         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12099         * tests/test-stdio-c++.cc: Check signature of fdopen.
12100         * doc/posix-functions/fdopen.texi: Mention the new module.
12101
12102 2011-09-21  Bruno Haible  <bruno@clisp.org>
12103
12104         unlockpt tests: Avoid test failure on NetBSD 5.1.
12105         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12106         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12107
12108 2011-09-21  Bruno Haible  <bruno@clisp.org>
12109
12110         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12111         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12112         * tests/test-getlogin_r.c (main): Likewise.
12113
12114 2011-09-20  Bruno Haible  <bruno@clisp.org>
12115
12116         time tests: Don't require pid_t.
12117         * doc/posix-headers/time.texi: Revert last change.
12118         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12119         * tests/test-time.c: Comment out the check for pid_t.
12120
12121 2011-09-20  Bruno Haible  <bruno@clisp.org>
12122
12123         fsync tests: Avoid a test failure on mingw.
12124         * tests/test-fsync.c (main): Allow a failure with EIO.
12125
12126 2011-09-20  Bruno Haible  <bruno@clisp.org>
12127
12128         euidaccess: Update comments.
12129         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12130
12131 2011-09-20  Bruno Haible  <bruno@clisp.org>
12132
12133         Ensure EBADF returns for socket functions on mingw.
12134         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12135         descriptor is invalid.
12136         * lib/bind.c (rpl_bind): Likewise.
12137         * lib/connect.c (rpl_connect): Likewise.
12138         * lib/getpeername.c (rpl_getpeername): Likewise.
12139         * lib/getsockname.c (rpl_getsockname): Likewise.
12140         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12141         * lib/listen.c (rpl_listen): Likewise.
12142         * lib/recv.c (rpl_recv): Likewise.
12143         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12144         * lib/send.c (rpl_send): Likewise.
12145         * lib/sendto.c (rpl_sendto): Likewise.
12146         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12147         * lib/shutdown.c (rpl_shutdown): Likewise.
12148
12149 2011-09-20  Bruno Haible  <bruno@clisp.org>
12150
12151         select tests: EBADF tests.
12152         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12153         test_bad_fd): New functions.
12154         (test_function): Invoke also test_bad_fd.
12155
12156 2011-09-20  Bruno Haible  <bruno@clisp.org>
12157
12158         Tests for module 'posix_spawn_file_actions_addopen.
12159         * modules/posix_spawn_file_actions_addopen-tests: New file.
12160         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12161
12162         Tests for module 'posix_spawn_file_actions_adddup2'.
12163         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12164         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12165
12166         Tests for module 'posix_spawn_file_actions_addclose'.
12167         * modules/posix_spawn_file_actions_addclose-tests: New file.
12168         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12169
12170 2011-09-20  Bruno Haible  <bruno@clisp.org>
12171
12172         Tests for module 'unlockpt'.
12173         * modules/unlockpt-tests: New file.
12174         * tests/test-unlockpt.c: New file.
12175         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12176
12177         Tests for module 'grantpt'.
12178         * modules/grantpt-tests: New file.
12179         * tests/test-grantpt.c: New file.
12180         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12181
12182 2011-09-20  Bruno Haible  <bruno@clisp.org>
12183
12184         freopen tests: EBADF tests.
12185         * tests/test-freopen.c: Include errno.h, unistd.h.
12186         (main): Add tests for EBADF, commented out for the moment.
12187
12188         fclose tests: EBADF tests.
12189         * tests/test-fclose.c (main): Add tests for EBADF.
12190
12191         fflush tests: EBADF tests.
12192         * tests/test-fflush.c: Include errno.h, macros.h.
12193         (main): Add tests for EBADF.
12194
12195         ftello tests: EBADF tests.
12196         * tests/test-ftello4.sh: New file.
12197         * tests/test-ftello4.c: New file.
12198         * modules/ftello-tests (Files): Add them.
12199         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12200
12201         fseeko tests: EBADF tests.
12202         * tests/test-fseeko4.sh: New file.
12203         * tests/test-fseeko4.c: New file.
12204         * modules/fseeko-tests (Files): Add them.
12205         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12206
12207         Tests for function fputc().
12208         * modules/fputc-tests: New file.
12209         * tests/test-fputc.c: New file.
12210         * modules/stdio-tests (Depends-on): Add fputc-tests.
12211
12212         Tests for function fgetc().
12213         * modules/fgetc-tests: New file.
12214         * tests/test-fgetc.c: New file.
12215         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12216
12217         Tests for function fdopen().
12218         * modules/fdopen-tests: New file.
12219         * tests/test-fdopen.c: New file.
12220         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12221
12222         Tests for module 'vdprintf'.
12223         * modules/vdprintf-tests: New file.
12224         * tests/test-vdprintf.c: New file.
12225
12226         Tests for module 'dprintf'.
12227         * modules/dprintf-tests: New file.
12228         * tests/test-dprintf.c: New file.
12229
12230 2011-09-20  Bruno Haible  <bruno@clisp.org>
12231
12232         Tests for module 'ioctl'.
12233         * modules/ioctl-tests: New file.
12234         * tests/test-ioctl.c: New file.
12235
12236 2011-09-20  Bruno Haible  <bruno@clisp.org>
12237
12238         fcntl tests: EBADF tests.
12239         * tests/test-fcntl.c (main): Add more tests for EBADF.
12240
12241 2011-09-20  Bruno Haible  <bruno@clisp.org>
12242
12243         utimensat tests: EBADF tests.
12244         * tests/test-utimensat.c (main): Add tests for EBADF.
12245
12246         renameat tests: EBADF tests.
12247         * tests/test-renameat.c (main): Add tests for EBADF.
12248
12249         mkfifoat tests: EBADF tests.
12250         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12251
12252         readlinkat tests: EBADF tests.
12253         * tests/test-readlinkat.c (main): Add tests for EBADF.
12254
12255         symlinkat tests: EBADF tests.
12256         * tests/test-symlinkat.c (main): Add tests for EBADF.
12257
12258         linkat tests: EBADF tests.
12259         * tests/test-linkat.c (main): Add tests for EBADF.
12260
12261         Tests for module 'faccessat'.
12262         * modules/faccessat-tests: New file.
12263         * tests/test-faccessat.c: New file.
12264
12265         fdopendir tests: EBADF tests.
12266         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12267
12268         openat tests: EBADF tests.
12269         * tests/test-fchownat.c (main): Add tests for EBADF.
12270         * tests/test-fstatat.c (main): Likewise.
12271         * tests/test-mkdirat.c (main): Likewise.
12272         * tests/test-openat.c (main): Likewise.
12273         * tests/test-unlinkat.c (main): Likewise.
12274         * tests/test-fchmodat.c: New file.
12275         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12276         (Makefile.am): Also run 'test-fchmodat'.
12277
12278 2011-09-20  Bruno Haible  <bruno@clisp.org>
12279
12280         utimens, futimens, fdutimensat tests: EBADF tests.
12281         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12282
12283         Tests for function fstat().
12284         * modules/fstat-tests: New file.
12285         * tests/test-fstat.c: New file.
12286         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12287
12288 2011-09-20  Bruno Haible  <bruno@clisp.org>
12289
12290         test-ttyname_r tests: EBADF tests.
12291         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12292
12293         Tests for module 'isatty'.
12294         * modules/isatty-tests: New file.
12295         * tests/test-isatty.c: New file.
12296
12297         Tests for module 'write'.
12298         * modules/write-tests: New file.
12299         * tests/test-write.c: New file.
12300
12301         Tests for module 'read'.
12302         * modules/read-tests: New file.
12303         * tests/test-read.c: New file.
12304
12305         pwrite tests: EBADF tests.
12306         * tests/test-pwrite.c (main): Add tests for EBADF.
12307
12308         pread tests: EBADF tests.
12309         * tests/test-pread.c (main): Add tests for EBADF.
12310
12311         lseek tests: EBADF tests.
12312         * tests/test-lseek.c (main): Add more tests for EBADF.
12313
12314         Tests for module 'ftruncate'.
12315         * modules/ftruncate-tests: New file.
12316         * tests/test-ftruncate.sh: New file.
12317         * tests/test-ftruncate.c: New file.
12318
12319         fsync tests: EBADF tests.
12320         * tests/test-fsync.c (main): Add more tests for EBADF.
12321
12322         fdatasync tests: EBADF tests.
12323         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12324
12325         Tests for module 'fchown'.
12326         * modules/fchown-tests: New file.
12327         * tests/test-fchown.c: New file.
12328
12329         Tests for module 'fchmod'.
12330         * modules/fchmod-tests: New file.
12331         * tests/test-fchmod.c: New file.
12332
12333         fchdir tests: EBADF tests.
12334         * tests/test-fchdir.c (main): Add more tests for EBADF.
12335
12336         dup2 tests: EBADF tests.
12337         * tests/test-dup2.c (main): Add more tests for EBADF.
12338
12339         Tests for module 'dup'.
12340         * modules/dup-tests: New file.
12341         * tests/test-dup.c: New file.
12342
12343         Tests for module 'close'.
12344         * modules/close-tests: New file.
12345         * tests/test-close.c: New file.
12346
12347 2011-09-20  Bruno Haible  <bruno@clisp.org>
12348
12349         Tests for module 'shutdown'.
12350         * modules/shutdown-tests: New file.
12351         * tests/test-shutdown.c: New file.
12352
12353         Tests for module 'setsockopt'.
12354         * modules/setsockopt-tests: New file.
12355         * tests/test-setsockopt.c: New file.
12356
12357         Tests for module 'sendto'.
12358         * modules/sendto-tests: New file.
12359         * tests/test-sendto.c: New file.
12360
12361         Tests for module 'send'.
12362         * modules/send-tests: New file.
12363         * tests/test-send.c: New file.
12364
12365         Tests for module 'recvfrom'.
12366         * modules/recvfrom-tests: New file.
12367         * tests/test-recvfrom.c: New file.
12368
12369         Tests for module 'recv'.
12370         * modules/recv-tests: New file.
12371         * tests/test-recv.c: New file.
12372
12373         Tests for module 'listen'.
12374         * modules/listen-tests: New file.
12375         * tests/test-listen.c: New file.
12376
12377         Tests for module 'getsockopt'.
12378         * modules/getsockopt-tests: New file.
12379         * tests/test-getsockopt.c: New file.
12380
12381         Tests for module 'getsockname'.
12382         * modules/getsockname-tests: New file.
12383         * tests/test-getsockname.c: New file.
12384
12385         Tests for module 'getpeername'.
12386         * modules/getpeername-tests: New file.
12387         * tests/test-getpeername.c: New file.
12388
12389         Tests for module 'connect'.
12390         * modules/connect-tests: New file.
12391         * tests/test-connect.c: New file.
12392
12393         Tests for module 'bind'.
12394         * modules/bind-tests: New file.
12395         * tests/test-bind.c: New file.
12396
12397         accept4 tests: Fix for native Windows.
12398         * tests/test-accept4.c: Include sockets.h.
12399         (main): Invoke gl_sockets_startup.
12400         * modules/accept4-tests (Depends-on): Add sockets.
12401
12402         accept tests: Fix for native Windows.
12403         * tests/test-accept.c: Include sockets.h.
12404         (main): Invoke gl_sockets_startup.
12405         * modules/accept-tests (Depends-on): Add sockets.
12406
12407 2011-09-19  Bruno Haible  <bruno@clisp.org>
12408
12409         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12410         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12411         do...while(0).
12412         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12413         Suggested by Paul Eggert.
12414
12415 2011-09-19  Bruno Haible  <bruno@clisp.org>
12416
12417         sched: Ensure pid_t is defined.
12418         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12419         not define pid_t.
12420         * lib/sched.in.h: Include <sys/types.h>.
12421         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12423
12424 2011-09-19  Bruno Haible  <bruno@clisp.org>
12425
12426         msvc-inval: Ensure the entire expansion is a single statement.
12427         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12428         of braces.
12429
12430 2011-09-19  Jim Meyering  <meyering@redhat.com>
12431
12432         tests: use printf, not echo in init.sh's warn_ function
12433         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12434         misbehave when given strings containing a backslash or starting
12435         with e.g., -n.  James Youngman suggested setting IFS.
12436
12437 2011-09-19  Eric Blake  <eblake@redhat.com>
12438
12439         futimens: enhance test
12440         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12441         closed non-negative fd.
12442
12443         date: accept 'hence' as opposite of 'ago'
12444         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12445         * tests/test-parse-datetime.c (main): Enhance test.
12446         Suggested by Jesse Wilson.
12447
12448 2011-09-19  Jim Meyering  <meyering@redhat.com>
12449
12450         getcwd: don't fail in a deep directory on a system without openat
12451         Before this change, getcwd would fail when called from a directory
12452         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12453         the non-openat implementation used "..", "../..", "../../..", etc.
12454         to access ancestor directories.  With too many, that string would
12455         be longer than PATH_MAX.
12456         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12457         using gnulib's openat replacement.
12458         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12459         we're using the replacement function.
12460
12461 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12462
12463         maint.mk: avoid warnings from perl about missing files
12464         * top/maint.mk (def_sym_regex): Ignore files listed in
12465         $(gl_other_headers_) that do not exist, say because a project
12466         does not use a corresponding module.
12467
12468 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12469
12470         stat: use pathmax.h only if needed
12471         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12472         This is better for Emacs, which does not have a mingw port and
12473         therefore can avoid the pathmax module.
12474
12475         utimens: remove dependency on dup2
12476         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12477         to work around the Linux kernel bug.
12478         * modules/utimens (Depends-on): Remove dup2.
12479
12480 2011-09-18  Bruno Haible  <bruno@clisp.org>
12481
12482         inet_ntop, inet_pton: Look for it also in libresolv.
12483         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12484         libnsl, search for it in libresolv.
12485         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12486         Needed on Solaris 7.
12487
12488 2011-09-18  Bruno Haible  <bruno@clisp.org>
12489
12490         accept, accept4 tests: Avoid link error on Solaris.
12491         * modules/accept-tests (Makefile.am): Link test-accept against
12492         $(LIBSOCKET).
12493         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12494         $(LIBSOCKET).
12495
12496         accept4: Avoid link error on Solaris.
12497         * modules/accept4 (Link): New section.
12498
12499         socket functions: Avoid link errors on Solaris.
12500         * modules/accept (Depends-on): Add socketlib.
12501         (Link): New section.
12502         * modules/bind (Depends-on): Add socketlib.
12503         (Link): New section.
12504         * modules/connect (Depends-on): Add socketlib.
12505         (Link): New section.
12506         * modules/getpeername (Depends-on): Add socketlib.
12507         (Link): New section.
12508         * modules/getsockname (Depends-on): Add socketlib.
12509         (Link): New section.
12510         * modules/getsockopt (Depends-on): Add socketlib.
12511         (Link): New section.
12512         * modules/listen (Depends-on): Add socketlib.
12513         (Link): New section.
12514         * modules/recv (Depends-on): Add socketlib.
12515         (Link): New section.
12516         * modules/recvfrom (Depends-on): Add socketlib.
12517         (Link): New section.
12518         * modules/send (Depends-on): Add socketlib.
12519         (Link): New section.
12520         * modules/sendto (Depends-on): Add socketlib.
12521         (Link): New section.
12522         * modules/setsockopt (Depends-on): Add socketlib.
12523         (Link): New section.
12524         * modules/shutdown (Depends-on): Add socketlib.
12525         (Link): New section.
12526         * modules/socket (Depends-on): Add socketlib.
12527         (Link): New section.
12528
12529 2011-09-18  Bruno Haible  <bruno@clisp.org>
12530
12531         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12532         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12533         than 5 seconds.
12534         * modules/ptsname-tests (configure.ac): Test for alarm.
12535
12536 2011-09-18  Bruno Haible  <bruno@clisp.org>
12537
12538         posix_spawn_file_actions_add*: Fix module dependencies.
12539         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12540         posix_spawn_file_actions_init.
12541         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12542         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12543
12544 2011-09-18  Bruno Haible  <bruno@clisp.org>
12545
12546         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12547         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12548         * tests/test-renameat.c (main): Likewise.
12549
12550 2011-09-18  Bruno Haible  <bruno@clisp.org>
12551
12552         Tests for module 'accept4'.
12553         * modules/accept4-tests: New file.
12554         * tests/test-accept4.c: New file.
12555
12556 2011-09-18  Bruno Haible  <bruno@clisp.org>
12557
12558         Tests for module 'accept'.
12559         * modules/accept-tests: New file.
12560         * tests/test-accept.c: New file.
12561
12562 2011-09-18  Bruno Haible  <bruno@clisp.org>
12563
12564         dup2: Support for MSVC.
12565         * lib/dup2.c: Include msvc-inval.h.
12566         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12567         _get_osfhandle calls.
12568         * modules/dup2 (Depends-on): Add msvc-inval.
12569         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12570
12571         New module 'msvc-inval'.
12572         * lib/msvc-inval.h: New file.
12573         * lib/msvc-inval.c: New file.
12574         * m4/msvc-inval.m4: New file.
12575         * modules/msvc-inval: New file.
12576
12577 2011-09-17  Bruno Haible  <bruno@clisp.org>
12578
12579         Tests for module 'pclose'.
12580         * modules/pclose-tests: New file.
12581
12582         New module 'pclose'.
12583         * lib/stdio.in.h (pclose): New declaration.
12584         * lib/pclose.c: New file.
12585         * m4/pclose.m4: New file.
12586         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12587         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12588         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12589         * modules/pclose: New file.
12590         * modules/popen-tests (Depends-on): Add pclose.
12591         * modules/popen-safer-tests (Depends-on): Likewise.
12592         * doc/posix-functions/pclose.texi: Mention the new module.
12593
12594 2011-09-17  Bruno Haible  <bruno@clisp.org>
12595
12596         popen: Support for MSVC.
12597         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12598         * lib/popen.c (popen): Provide alternate definition for native Windows.
12599         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12601         * modules/popen (Depends-on, configure.ac): Update condition.
12602         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12603         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12604         fixed.
12605
12606 2011-09-17  Bruno Haible  <bruno@clisp.org>
12607
12608         isnanl, isnand, isnanf: Work around MSVC bug.
12609         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12610
12611 2011-09-17  Bruno Haible  <bruno@clisp.org>
12612
12613         sys_socket tests: Fix recent mistake.
12614         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12615
12616 2011-09-17  Bruno Haible  <bruno@clisp.org>
12617
12618         putenv: Support for MSVC.
12619         * modules/putenv (Depends-on): Add environ.
12620         * lib/putenv.c (environ): Disable declaration.
12621         * lib/unistd.in.h: Update comment.
12622
12623 2011-09-17  Bruno Haible  <bruno@clisp.org>
12624
12625         math: Avoid macro redefinition warnings on MSVC.
12626         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12627         Undefine before redefining.
12628
12629 2011-09-17  Bruno Haible  <bruno@clisp.org>
12630
12631         doc: Mention functions which are declared as macros.
12632         * doc/posix-functions/*[fl].texi: Mention that some functions are
12633         defined as macros with arguments only.
12634
12635 2011-09-17  Bruno Haible  <bruno@clisp.org>
12636
12637         Add dependencies to new dirent related modules.
12638         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12639         * modules/fts (Depends-on): Likewise.
12640         * modules/glob (Depends-on): Likewise.
12641         * modules/savedir (Depends-on): Likewise.
12642         * modules/scandir (Depends-on): Likewise.
12643         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12644         * modules/fdopendir (Depends-on): Add opendir.
12645
12646 2011-09-17  Bruno Haible  <bruno@clisp.org>
12647
12648         inet_pton: Support for MSVC on Windows Vista or newer.
12649         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12650         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12651         HAVE_DECL_INET_PTON is defined.
12652         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12653         On platforms with <winsock2.h>, test whether inet_pton is declared in
12654         <ws2tcpip.h>. If so, arrange to replace it.
12655         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12656         REPLACE_INET_PTON.
12657         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12658         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12659         (Depends-on, configure.ac): Update condition.
12660         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12661
12662 2011-09-17  Bruno Haible  <bruno@clisp.org>
12663
12664         inet_ntop: Support for MSVC on Windows Vista or newer.
12665         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12666         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12667         HAVE_DECL_INET_NTOP is defined.
12668         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12669         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12670         <ws2tcpip.h>. If so, arrange to replace it.
12671         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12672         REPLACE_INET_NTOP.
12673         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12674         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12675         (Depends-on, configure.ac): Update condition.
12676         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12677
12678 2011-09-16  Eric Blake  <eblake@redhat.com>
12679
12680         test-fsync: yet another enhancement
12681         * tests/test-fsync.c (main): Also test behavior on read-only text
12682         file.
12683
12684 2011-09-16  Bruno Haible  <bruno@clisp.org>
12685
12686         Enhance fsync, fdatasync tests.
12687         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12688         * tests/test-fdatasync.c (main): Likewise.
12689
12690 2011-09-16  Bruno Haible  <bruno@clisp.org>
12691
12692         Support for MSVC compiler: Ensure mode_t gets defined.
12693         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12694         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12696         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12697         * tests/test-fcntl-h.c: Check that mode_t is defined.
12698         * tests/test-sys_stat.c: Likewise.
12699         * tests/test-sys_types.c: Likewise.
12700         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12701         * doc/posix-headers/sys_stat.texi: Likewise.
12702         * doc/posix-headers/sys_types.texi: Likewise.
12703
12704 2011-09-16  Bruno Haible  <bruno@clisp.org>
12705
12706         sys_stat: Support for MSVC.
12707         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12708         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12709         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12710         MSVC.
12711
12712 2011-09-16  Bruno Haible  <bruno@clisp.org>
12713
12714         Support for MSVC compiler: Ensure off_t gets defined.
12715         * lib/unistd.in.h: Include <sys/types.h>.
12716         * tests/test-fcntl-h.c: Check that off_t is defined.
12717         * tests/test-sys_stat.c: Likewise.
12718         * tests/test-sys_types.c: Likewise.
12719
12720 2011-09-16  Eric Blake  <eblake@redhat.com>
12721
12722         fdatasync: port to Solaris
12723         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12724         * modules/fdatasync (Link): Document it.
12725         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12726
12727         fdatasync: port to MacOS X 10.7
12728         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12729         declared.
12730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12731         * modules/unistd (Makefile.am): Substitute it.
12732         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12733         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12734
12735         fdatasync: minor improvements
12736         * modules/fdatasync (Depends-on): Add condition for fsync.
12737         * lib/fdatasync.c (fdatasync): Add comment.
12738         * tests/test-unistd-c++.cc: Test fdatasync.
12739
12740         unistd: update refs to newer POSIX
12741         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12742         Suggested by Bruno Haible.
12743
12744         fdatasync: new module
12745         * modules/fsync (Description): Document difference to fdatasync.
12746         * modules/fdatasync: New module.
12747         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12748         * lib/fdatasync.c (fdatasync): Likewise.
12749         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12750         defaults.
12751         * modules/unistd (Makefile.am): Set witnesses.
12752         * lib/unistd.in.h (fdatasync): Declare.
12753         * MODULES.html.sh: Document it.
12754         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12755         * modules/fdatasync-tests: New test.
12756         * tests/test-fdatasync.c: Likewise.
12757
12758 2011-09-16  Eric Blake  <eblake@redhat.com>
12759
12760         test-fsync: enhance tests
12761         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12762         * tests/test-fsync.c (main): Enhance test.
12763
12764 2011-09-15  Bruno Haible  <bruno@clisp.org>
12765
12766         Support for MSVC compiler: Ensure ssize_t gets defined.
12767         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12768         * doc/posix-headers/stdio.texi: Likewise.
12769         * modules/stdio (Depends-on): Add ssize_t.
12770         * modules/sys_socket (Depends-on): Likewise.
12771         * modules/sys_types (Depends-on): Likewise.
12772         * modules/sys_uio (Depends-on): Likewise.
12773         * modules/unistd (Depends-on): Likewise.
12774         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12775         * tests/test-sys_types.c: Check that ssize_t is defined.
12776
12777 2011-09-14  Bruno Haible  <bruno@clisp.org>
12778
12779         Avoid using #, the m4 comment starter character, near brackets.
12780         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12781         delimiter character in sed expressions.
12782         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12783         Suggested by Eric Blake.
12784
12785         Properly quote AC_CHECK_DECLS' 4th argument.
12786         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12787         argument.
12788         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12789         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12790         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12791         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12792         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12793         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12795         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12796         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12797         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12799         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12800         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12801         * m4/isinf.m4 (gl_ISINF): Likewise.
12802         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12803         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12804         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12805         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12808         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12809         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12810         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12811         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12812         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12813         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12815         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12817         Reported by Eric Blake.
12818
12819         Properly quote AC_CHECK_DECL's 4th argument.
12820         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12821         argument.
12822         * m4/argp.m4 (gl_ARGP): Likewise.
12823         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12824         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12825         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12826         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12827         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12828         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12830         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12831         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12832         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12833         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12834         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12835         Reported by Eric Blake.
12836
12837 2011-09-14  Eric Blake  <eblake@redhat.com>
12838
12839         opendir: avoid compile warning
12840         * lib/opendir.c (includes): Always include errno.h.
12841         Reported by Tatsuro MATSUOKA.
12842
12843 2011-09-14  Jim Meyering  <meyering@redhat.com>
12844
12845         maint.mk: sc_tight_scope: propagate failure from sub-make
12846         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12847         Reported by Martin von Gagern.
12848
12849 2011-09-13  Bruno Haible  <bruno@clisp.org>
12850
12851         tempname: Support for MSVC.
12852         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12853         MSVC.
12854         * modules/tempname (Depends-on): Add fcntl-h.
12855
12856 2011-09-13  Bruno Haible  <bruno@clisp.org>
12857
12858         sys_time: Support for MSVC.
12859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12860         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12861         include <winsock2.h>.
12862         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12863         function declarations that collide with POSIX.
12864         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12865         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12866
12867 2011-09-13  Bruno Haible  <bruno@clisp.org>
12868
12869         stat: Support for MSVC.
12870         * lib/stat.c: Include pathmax.h.
12871         * modules/stat (Depends-on): Add pathmax.
12872
12873         pathmax: Support for native Windows.
12874         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12875
12876 2011-09-12  Bruno Haible  <bruno@clisp.org>
12877
12878         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12879         * lib/dirent.in.h (struct dirent): New type.
12880         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12881         DT_WHT): New macros.
12882         (DIR): New type.
12883         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12884         (readdir, rewinddir): New declarations.
12885         * lib/dirent-private.h: New file.
12886         * lib/opendir.c: New file.
12887         * lib/readdir.c: New file.
12888         * lib/rewinddir.c: New file.
12889         * lib/closedir.c: New file.
12890         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12891         * m4/opendir.m4: New file.
12892         * m4/readdir.m4: New file.
12893         * m4/rewinddir.m4: New file.
12894         * m4/closedir.m4: New file.
12895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12896         REPLACE_CLOSEDIR here.
12897         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12898         readdir, rewinddir are declared.
12899         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12900         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12901         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12902         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12903         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12904         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12905         * modules/opendir: New file.
12906         * modules/readdir: New file.
12907         * modules/rewinddir: New file.
12908         * modules/closedir: New file.
12909         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12910         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12911         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12912         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12913         * NEWS: Mention the 'fchdir' change.
12914
12915 2011-09-11  Bruno Haible  <bruno@clisp.org>
12916
12917         asm-underscore.m4: Support for MSVC.
12918         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12919         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12920
12921 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12922
12923         Doc about crypt functions.
12924         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12925         needing for _GNU_SOURCE to get crypt.
12926         * doc/posix-functions/encrypt.texi: Likewise.
12927         * doc/posix-functions/setkey.texi: Likewise.
12928
12929 2011-09-11  Bruno Haible  <bruno@clisp.org>
12930
12931         doc: Update regarding MSVC 9.
12932         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12933         tested".
12934         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12935         * doc/posix-headers/*.texi: Likewise.
12936         * doc/pastposix-functions/*.texi: Likewise.
12937         * doc/glibc-functions/*.texi: Likewise.
12938         * doc/glibc-headers/*.texi: Likewise.
12939
12940 2011-09-11  Bruno Haible  <bruno@clisp.org>
12941
12942         unistd et al.: Don't assume <unistd.h> exists.
12943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12944         does not exist.
12945         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12946         exist. But include <stdlib.h>.
12947         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12948         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12949         symlink() does not exist.
12950         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12951         include <io.h> instead.
12952         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12954         include <direct.h> instead.
12955         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12956         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12957         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12958         <io.h> instead.
12959         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12960         correctly if the system does not have hard links.
12961         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12962         <direct.h> instead.
12963         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12964         it when looking for function declarations.
12965         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12966         <direct.h> and <io.h> instead.
12967         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12968
12969 2011-09-11  Bruno Haible  <bruno@clisp.org>
12970
12971         strcase: Support for MSVC.
12972         * modules/strcase (Status, Notice): Remove obsoletion mark.
12973         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12974         * doc/posix-functions/strncasecmp.texi: Likewise.
12975
12976         strings: Don't assume <strings.h> exists.
12977         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12978         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12979         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12980         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12981
12982 2011-09-11  Bruno Haible  <bruno@clisp.org>
12983
12984         dirent: Don't assume <dirent.h> exists.
12985         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12986         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12987         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12988         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12989
12990 2011-09-11  Bruno Haible  <bruno@clisp.org>
12991
12992         Fix wint_t on MSVC.
12993         * lib/wchar.in.h (wint_t): On MSVC, override it.
12994         * lib/wctype.in.h (wint_t): Likewise.
12995         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12996         MSVC.
12997         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12998         * doc/posix-headers/wctype.texi: Likewise.
12999
13000 2011-09-11  Bruno Haible  <bruno@clisp.org>
13001
13002         sys_types: Fix typo.
13003         * lib/sys_types.in.h: Fix typo in comment.
13004         Reported by Paul Eggert.
13005
13006         Support for MSVC compiler: Ensure size_t gets defined.
13007         * modules/strings (Depends-on): Add 'sys_types'.
13008         * modules/sys_uio (Depends-on): Likewise.
13009         * lib/sys_uio.in.h: Update comment.
13010
13011         C++ tests for module 'sys_types'.
13012         * modules/sys_types-c++-tests: New file.
13013         * tests/test-sys_types-c++.cc: New file.
13014
13015         Tests for module 'sys_types'.
13016         * modules/sys_types-tests: New file.
13017         * tests/test-sys_types.c: New file.
13018
13019         New module 'sys_types'.
13020         * lib/sys_types.in.h: New file.
13021         * m4/sys_types_h.m4: New file.
13022         * modules/sys_types: New file.
13023         * doc/posix-headers/sys_types.texi: Mention the new module and the
13024         size_t problem on MSVC 9.
13025
13026 2011-09-11  Bruno Haible  <bruno@clisp.org>
13027
13028         Support for MSVC compiler: Avoid division by a literal 0.
13029         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13031         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13032         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13033         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13034         * tests/infinity.h: New file.
13035         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13036         on MSVC.
13037         * tests/test-ceilf1.c: Include infinity.h.
13038         (main): Use Infinityf.
13039         * tests/test-ceil1.c: Include infinity.h.
13040         (main): Use Infinityd.
13041         * tests/test-ceill.c: Include infinity.h.
13042         (main): Use Infinityl.
13043         * tests/test-dprintf-posix.c: Include infinity.h.
13044         (test_function): Use Infinityd.
13045         * tests/test-floorf1.c: Include infinity.h.
13046         (main): Use Infinityf.
13047         * tests/test-floor1.c: Include infinity.h.
13048         (main): Use Infinityd.
13049         * tests/test-floorl.c: Include infinity.h.
13050         (main): Use Infinityl.
13051         * tests/test-fprintf-posix.c: Include infinity.h.
13052         (test_function): Use Infinityd.
13053         * tests/test-frexp.c: Include infinity.h.
13054         (main): Use Infinityd.
13055         * tests/test-frexpl.c: Include infinity.h.
13056         (main): Use Infinityl.
13057         * tests/test-isfinite.c: Include infinity.h.
13058         (test_isfinitef): Use Infinityf.
13059         (test_isfinited): Use Infinityd.
13060         (test_isfinitel): Use Infinityl.
13061         * tests/test-isinf.c: Include infinity.h.
13062         (test_isinff): Use Infinityf.
13063         (test_isinfd): Use Infinityd.
13064         (test_isinfl): Use Infinityl.
13065         * tests/test-isnan.c: Include infinity.h.
13066         (test_float): Use Infinityf.
13067         (test_double): Use Infinityd.
13068         (test_long_double): Use Infinityl.
13069         * tests/test-isnanf.h: Include infinity.h.
13070         (main): Use Infinityf.
13071         * tests/test-isnand.h: Include infinity.h.
13072         (main): Use Infinityd.
13073         * tests/test-isnanl.h: Include infinity.h.
13074         (main): Use Infinityl.
13075         * tests/test-ldexpl.c: Include infinity.h.
13076         (main): Use Infinityl.
13077         * tests/test-printf-posix.h: Include infinity.h.
13078         (test_function): Use Infinityd.
13079         * tests/test-roundf1.c: Include infinity.h.
13080         (main): Use Infinityf.
13081         * tests/test-round1.c: Include infinity.h.
13082         (main): Use Infinityd.
13083         * tests/test-roundl.c: Include infinity.h.
13084         (main): Use Infinityl.
13085         * tests/test-signbit.c: Include infinity.h.
13086         (test_signbitf): Use Infinityf.
13087         (test_signbitd): Use Infinityd.
13088         (test_signbitl): Use Infinityl.
13089         * tests/test-snprintf-posix.h: Include infinity.h.
13090         (test_function): Use Infinityd, Infinityl.
13091         * tests/test-sprintf-posix.h: Include infinity.h.
13092         (test_function): Use Infinityd, Infinityl.
13093         * tests/test-truncf1.c: Include infinity.h.
13094         (main): Use Infinityf.
13095         * tests/test-trunc1.c: Include infinity.h.
13096         (main): Use Infinityd.
13097         * tests/test-truncl.c: Include infinity.h.
13098         (main): Use Infinityl.
13099         * tests/test-vasnprintf-posix.c: Include infinity.h.
13100         (test_function): Use Infinityd, Infinityl.
13101         * tests/test-vasprintf-posix.c: Include infinity.h.
13102         (test_function): Use Infinityd, Infinityl.
13103         * modules/ceilf-tests (Files): Add tests/infinity.h.
13104         * modules/ceil-tests (Files): Likewise.
13105         * modules/ceill-tests (Files): Likewise.
13106         * modules/dprintf-posix-tests (Files): Likewise.
13107         * modules/floorf-tests (Files): Likewise.
13108         * modules/floor-tests (Files): Likewise.
13109         * modules/floorl-tests (Files): Likewise.
13110         * modules/fprintf-posix-tests (Files): Likewise.
13111         * modules/frexp-tests (Files): Likewise.
13112         * modules/frexp-nolibm-tests (Files): Likewise.
13113         * modules/frexpl-tests (Files): Likewise.
13114         * modules/frexpl-nolibm-tests (Files): Likewise.
13115         * modules/isfinite-tests (Files): Likewise.
13116         * modules/isinf-tests (Files): Likewise.
13117         * modules/isnan-tests (Files): Likewise.
13118         * modules/isnanf-tests (Files): Likewise.
13119         * modules/isnanf-nolibm-tests (Files): Likewise.
13120         * modules/isnand-tests (Files): Likewise.
13121         * modules/isnand-nolibm-tests (Files): Likewise.
13122         * modules/isnanl-tests (Files): Likewise.
13123         * modules/isnanl-nolibm-tests (Files): Likewise.
13124         * modules/ldexpl-tests (Files): Likewise.
13125         * modules/printf-posix-tests (Files): Likewise.
13126         * modules/roundf-tests (Files): Likewise.
13127         * modules/round-tests (Files): Likewise.
13128         * modules/roundl-tests (Files): Likewise.
13129         * modules/signbit-tests (Files): Likewise.
13130         * modules/snprintf-posix-tests (Files): Likewise.
13131         * modules/sprintf-posix-tests (Files): Likewise.
13132         * modules/truncf-tests (Files): Likewise.
13133         * modules/trunc-tests (Files): Likewise.
13134         * modules/truncl-tests (Files): Likewise.
13135         * modules/vasnprintf-posix-tests (Files): Likewise.
13136         * modules/vasprintf-posix-tests (Files): Likewise.
13137         * modules/vdprintf-posix-tests (Files): Likewise.
13138         * modules/vfprintf-posix-tests (Files): Likewise.
13139         * modules/vprintf-posix-tests (Files): Likewise.
13140         * modules/vsnprintf-posix-tests (Files): Likewise.
13141         * modules/vsprintf-posix-tests (Files): Likewise.
13142         * modules/xprintf-posix-tests (Files): Likewise.
13143
13144 2011-09-11  Bruno Haible  <bruno@clisp.org>
13145
13146         Ensure pid_t gets defined.
13147         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13148         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13149         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13150         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13151         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13152         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13153         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13154         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13155         * tests/test-fcntl-h.c: Check that pid_t is defined.
13156         * tests/test-sched.c: Likewise.
13157         * tests/test-termios.c: Likewise.
13158         * tests/test-time.c: Likewise.
13159         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13160         * doc/posix-headers/signal.texi: Likewise.
13161         * doc/posix-headers/sys_types.texi: Likewise.
13162         * doc/posix-headers/time.texi: Likewise.
13163
13164 2011-09-11  Bruno Haible  <bruno@clisp.org>
13165
13166         acl: Fix compilation on Solaris 10 (older version).
13167         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13168         of ACE_EVERYONE.
13169         * lib/set-mode-acl.c (qset_acl): Likewise.
13170         Reported by Christian Jullien <eligis@orange.fr>.
13171
13172 2011-09-10  Bruno Haible  <bruno@clisp.org>
13173
13174         iconv, unsetenv: Add support for MSVC compiler.
13175         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13177
13178 2011-09-10  Bruno Haible  <bruno@clisp.org>
13179
13180         *printf: Add support for MSVC compiler.
13181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13182         handles the exception caused by the %n directive. When cross-compiling,
13183         guess no on native Windows.
13184         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13185         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13186         emulate it through vsnprintf.
13187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13188         * doc/posix-functions/dprintf.texi: Update documentation regarding
13189         MSVC 9.
13190         * doc/posix-functions/fprintf.texi: Likewise.
13191         * doc/posix-functions/printf.texi: Likewise.
13192         * doc/posix-functions/snprintf.texi: Likewise.
13193         * doc/posix-functions/sprintf.texi: Likewise.
13194         * doc/posix-functions/swprintf.texi: Likewise.
13195         * doc/posix-functions/vdprintf.texi: Likewise.
13196         * doc/posix-functions/vfprintf.texi: Likewise.
13197         * doc/posix-functions/vprintf.texi: Likewise.
13198         * doc/posix-functions/vsnprintf.texi: Likewise.
13199         * doc/posix-functions/vsprintf.texi: Likewise.
13200         * doc/glibc-functions/asprintf.texi: Likewise.
13201         * doc/glibc-functions/obstack_printf.texi: Likewise.
13202         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13203         * doc/glibc-functions/vasprintf.texi: Likewise.
13204
13205 2011-09-10  Bruno Haible  <bruno@clisp.org>
13206
13207         nocrash: Add support for native Windows.
13208         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13209
13210 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13211             Bruno Haible  <bruno@clisp.org>
13212
13213         absolute-header, include-next: Add support for MSVC compiler.
13214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13215         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13216         directory separator in #line directives.
13217         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13218         recognize also backslash as directory separator in #line directives.
13219
13220 2011-09-08  Jim Meyering  <meyering@redhat.com>
13221
13222         maint.mk: mark the post-release commit log with "maint: " prefix
13223         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13224         one-line commit-log summary.
13225
13226 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13227             Bruno Haible  <bruno@clisp.org>
13228
13229         Doc about crypt functions.
13230         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13231         systems.
13232         * doc/posix-functions/encrypt.texi: Likewise.
13233         * doc/posix-functions/setkey.texi: Likewise.
13234
13235 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13236
13237         * lib/gc.h: Fix copyright header.
13238
13239 2011-09-07  Bruno Haible  <bruno@clisp.org>
13240
13241         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13242         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13243         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13244
13245 2011-09-07  Bruno Haible  <bruno@clisp.org>
13246
13247         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13248         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13249         * lib/freopen.c: Likewise.
13250         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13251         * lib/lstat.c: Likewise.
13252         * lib/stat.c: Likewise.
13253         * lib/open.c: Use different syntax for include of <fcntl.h>.
13254         * lib/openat.c: Include fcntl.h again, explicitly.
13255
13256 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13257
13258         parse-datetime: document the newly accepted format
13259         * doc/parse-datetime.texi (Combined date and time of day items):
13260         New section.
13261
13262 2011-09-06  Bruno Haible  <bruno@clisp.org>
13263
13264         acl: Fix a test failure on newer Solaris 10 with ZFS.
13265         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13266         ENOSYS as no ACL.
13267         Reported by Jim Meyering.
13268
13269 2011-09-06  Bruno Haible  <bruno@clisp.org>
13270
13271         acl: Update for AIX >= 5.3 with NFS.
13272         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13273         ENOSYS as no ACL.
13274
13275         acl: Fix a test failure on AIX >= 5.3 with NFS.
13276         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13277         as no ACL.
13278
13279 2011-09-06  Bruno Haible  <bruno@clisp.org>
13280
13281         acl: Fix a test failure on IRIX 6.5 with NFS.
13282         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13283         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13284         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13285         * lib/copy-acl.c (qcopy_acl): Likewise.
13286
13287 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13288
13289         openat: port to AIX 7.1 with large files
13290         AIX 7.1 does a "#define openat open64at" if large files are in use,
13291         so we can't simply #undef openat.  Use the orig_openat trick (similar
13292         to orig_open in lib/open.c) to work around the problem.  Problem
13293         reported by Kevin Brott for GNU tar, in the thread containing
13294         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13295         * lib/openat.c (__need_system_fcntl_h): Define first.
13296         Include <fcntl.h> and <sys/types.h> before undefining.
13297         (orig_openat) [HAVE_OPENAT]: New inline function.
13298         (openat) [HAVE_OPENAT]: Do not undef.
13299         (rpl_openat): Use orig_openat, not openat.
13300
13301 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13302             Bruno Haible  <bruno@clisp.org>
13303
13304         acl: Avoid errors on NonStop Kernel.
13305         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13306         ENOTSUP errors.
13307
13308 2011-09-05  Bruno Haible  <bruno@clisp.org>
13309
13310         acl: Clean up Solaris code.
13311         * lib/acl-internal.h: Remove no-op #if.
13312         * lib/file-has-acl.c: Likewise.
13313         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13314         * lib/copy-acl.c (qcopy_acl): Likewise.
13315
13316 2011-09-05  Bruno Haible  <bruno@clisp.org>
13317
13318         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13319         binaries built on the original Solaris 10.
13320         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13321         trivial.
13322
13323 2011-09-05  Bruno Haible  <bruno@clisp.org>
13324
13325         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13326         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13327         10.
13328         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13329         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13330         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13331         instead of acl_get, facl_get, acl_set, facl_set.
13332
13333 2011-09-05  Bruno Haible  <bruno@clisp.org>
13334
13335         copy-file: Try unit tests on more file systems.
13336         * tests/test-copy-file-1.sh: New file.
13337         * tests/test-copy-file-2.sh: New file.
13338         * modules/copy-file-tests (Files): Add them.
13339         (Makefile.am): Add them to TESTS.
13340
13341         acl: Try unit tests on more file systems.
13342         * tests/test-file-has-acl-1.sh: New file.
13343         * tests/test-file-has-acl-2.sh: New file.
13344         * tests/test-set-mode-acl-1.sh: New file.
13345         * tests/test-set-mode-acl-2.sh: New file.
13346         * tests/test-copy-acl-1.sh: New file.
13347         * tests/test-copy-acl-2.sh: New file.
13348         * modules/acl-tests (Files): Add them.
13349         (Makefile.am): Add them to TESTS.
13350
13351 2011-09-04  Bruno Haible  <bruno@clisp.org>
13352
13353         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13354         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13355         10.
13356         (OLD_ALLOW, OLD_DENY): New macros.
13357         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13358         ACE_ACCESS_ALLOWED_ACE_TYPE.
13359         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13360         ACE_ACCESS_DENIED_ACE_TYPE.
13361         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13362         (NEW_ACE_EXECUTE): Fix value.
13363         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13364         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13365         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13366         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13367         NEW_ACE_SYNCHRONIZE): New macros.
13368         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13369         instead of acl_fromtext, acl_set, facl_set.
13370         Fixes a coreutils/tests/cp/perm failure.
13371
13372 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         openat: test for fstatat (..., 0) bug
13375         Further testing with tar suggests that fstatat (..., 0)
13376         does not work in general, on AIX 7.1; see
13377         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13378         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13379         replacement fstatat (which is what older AIX releases were using
13380         anyway).
13381         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13382         use is now changed to orig_fstatat.  This was probably the right
13383         thing to do anyway.
13384         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13385         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13386         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13387         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13388         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13389         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13390         if the bug is found.
13391
13392         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13393         This tests for another fstatat bug on AIX 7.1:
13394         fstatat (AT_FDCWD, ..., 0) does not work.  See
13395         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13396         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13397         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13398         (rpl_fstatat): Adjust so that it works around either (or both)
13399         bugs if present.
13400         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13401
13402 2011-09-03  Karl Berry  <karl@gnu.org>
13403
13404         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13405         in index entries.
13406
13407 2011-09-02  Bruno Haible  <bruno@clisp.org>
13408
13409         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13410         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13411         values of AR, ARFLAGS, RANLIB.
13412         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13413
13414 2011-09-02  Bruno Haible  <bruno@clisp.org>
13415
13416         Find 'ar' program that fits with --host argument.
13417         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13418
13419 2011-09-02  Bruno Haible  <bruno@clisp.org>
13420
13421         tests: init.sh: Support any non-GNU diff.
13422         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13423         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13424         Solaris 8.
13425
13426 2011-09-02  Bruno Haible  <bruno@clisp.org>
13427
13428         tests: init.sh: work also with any non-GNU diff that supports -u
13429         * tests/init.sh: Relax check for diff -u support.
13430         Rather than checking for GNU diff via --version, simply check
13431         for support for -u itself.  Useful at least on OpenBSD 4.9,
13432         AIX 7.1, IRIX 6.5, and Solaris 10.
13433
13434 2011-09-01  Bruno Haible  <bruno@clisp.org>
13435
13436         strtoimax, strtoumax: Document problem on HP-UX 11.
13437         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13438         * doc/posix-functions/strtoumax.texi: Likewise.
13439
13440 2011-09-01  Bruno Haible  <bruno@clisp.org>
13441
13442         strtoumax: Avoid link error on OSF/1 with DTK cc.
13443         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13444         defined as a function.
13445         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13446         strtoumax is defined, not whether it is declared.
13447
13448 2011-09-01  Bruno Haible  <bruno@clisp.org>
13449
13450         strtoimax: Avoid link error on OSF/1 with DTK cc.
13451         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13452         defined as a function.
13453         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13454         strtoimax is defined, not whether it is declared.
13455
13456 2011-09-01  Bruno Haible  <bruno@clisp.org>
13457
13458         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13459         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13460         as a function.
13461         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13462         whether it is declared.
13463
13464 2011-09-01  Bruno Haible  <bruno@clisp.org>
13465
13466         imaxabs: Avoid link error on OSF/1 with DTK cc.
13467         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13468         as a function.
13469         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13470         whether it is declared.
13471
13472 2011-09-01  Bruno Haible  <bruno@clisp.org>
13473
13474         Tests for module 'strtoumax'.
13475         * modules/strtoumax-tests: New file.
13476         * tests/test-strtoumax.c: New file.
13477
13478         Tests for module 'strtoimax'.
13479         * modules/strtoimax-tests: New file.
13480         * tests/test-strtoimax.c: New file.
13481
13482         Tests for module 'imaxdiv'.
13483         * modules/imaxdiv-tests: New file.
13484         * tests/test-imaxdiv.c: New file.
13485
13486         Tests for module 'imaxabs'.
13487         * modules/imaxabs-tests: New file.
13488         * tests/test-imaxabs.c: New file.
13489
13490 2011-09-01  Bruno Haible  <bruno@clisp.org>
13491
13492         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13493         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13494         pthread_create.
13495
13496 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         openat: work around AIX 7.1 fstatat issue
13499         This should fix the problem that was not properly fixed
13500         in the previous change, dated 2011-08-30.
13501         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13502         __need_system_stat_h defined.
13503         (orig_fstatat) [HAVE_FSTATAT]: New function.
13504         (rpl_fstatat): Go back to the old way of doing things,
13505         except call orig_fstatat instead of fstatat.
13506         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13507         Remove unnecessary check whether fstatat fills in st_size etc.
13508
13509 2011-09-01  Bruno Haible  <bruno@clisp.org>
13510
13511         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13512         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13513         just include the system's header.
13514
13515 2011-08-31  Jim Meyering  <meyering@redhat.com>
13516
13517         tests: avoid spurious assertion failure in test-float.c on ppc64
13518         * tests/test-float.c (test_long_double): Comment out an assertion,
13519         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13520         with gcc-4.4.4.
13521
13522         maint: indent with spaces, not TABs
13523         I need to get in the habit of running gnulib's "make check".
13524         Both of these would have been caught.
13525         * m4/largefile.m4: Indent with spaces, not TABs.
13526         * lib/parse-datetime.y (iso_8601_time): Likewise.
13527         Spotted by Pádraig Brady.
13528
13529         test-parse-datetime.c: accommodate a relatively strict gcc warning
13530         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13531         to avoid a warning from gcc's -Werror=missing-declarations.
13532         Insert a few spaces-before-funcall-parenthesis.
13533
13534 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13535
13536         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13537         The parser now accepts ISO 8601 date-time strings with "T" as the
13538         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13539         with a space between the date and time strings.  Now it also parses
13540         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13541         variants like "2004-02-29T16:21:42.333-07:00"
13542         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13543         of day representation using the 'T' separator character.
13544         * doc/parse-datetime.texi (General date syntax): replace use of
13545         deprecated --iso-8601 option with --rfc-3339 in example of date
13546         command output formats that can be parsed.
13547         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13548         lib/parse-datetime.y.
13549         (gmt_offset): New function.
13550         (main): Add additional test cases to validate ISO8601 extended
13551         date and time of day parsing.
13552
13553 2011-08-31  Bruno Haible  <bruno@clisp.org>
13554
13555         freopen: Documentation.
13556         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13557         name.
13558         Reported by Claudio Bley <claudio.bley@gmail.com>.
13559
13560 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13561
13562         freopen: Don't crash if the filename argument is NULL.
13563         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13564         NULL.
13565
13566 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         openat: work around AIX 7.1 fstatat bug
13569         Problem reported by Kevin Brott for GNU tar, in the thread containing
13570         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13571         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13572         FSTATAT_ST_SIZE_ETC_BROKEN.
13573         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13574         rpl_fstatat.
13575         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13576         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13577         AC_CHECK_FUNCS_ONCE for fstatat.
13578         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13579         fchmodat, mkdirat, openat and unlinkat.
13580
13581 2011-08-30  Bruno Haible  <bruno@clisp.org>
13582
13583         Avoid endless recursions if config.h includes some header files.
13584         * lib/fopen.c (__need_FILE): Define already before including config.h.
13585         * lib/freopen.c (__need_FILE): Likewise.
13586         * lib/open.c (__need_system_fcntl_h): Likewise.
13587         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13588         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13589         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13590
13591 2011-08-25  Karl Berry  <karl@gnu.org>
13592
13593         * config/srclist.txt (ylwrap): new try.
13594         * build-aux/ylwrap: new file.
13595
13596 2011-08-23  Bruno Haible  <bruno@clisp.org>
13597
13598         tmpdir: Use a good default directory on native Windows.
13599         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13600         (P_tmpdir): Default to _P_tmpdir on native Windows.
13601         (path_search): On native Windows, try the value returned by GetTempPath
13602         before trying P_tmpdir.
13603         * modules/tmpdir (Depends-on): Add pathmax.
13604         Suggested by John Darrington <john@darrington.wattle.id.au>.
13605
13606 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13607
13608         doc: fix typo in README-release
13609         * top/README-release: Capitalize first word of a sentence.
13610
13611 2011-08-19  Jim Meyering  <meyering@redhat.com>
13612
13613         fts: do not exhaust memory when processing million-entry directories
13614         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13615         directory would require about 256*N bytes of memory.  Thus, it was
13616         easy to construct a directory too large to be processed by any of
13617         those tools.  With this change, fts' maximum memory utilization is
13618         now limited to around 30MB.
13619         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13620         (fts_read): When we've processed the final entry (i.e., when
13621         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13622         using the parent entry to read any remaining entries.  Dispatch
13623         depending on what fts_build returns:
13624         - NULL+stop, aka failure: stop
13625         - NULL otherwise: move up in the dir hierarchy
13626         - non-NULL: handle this new entry
13627         (fts_build): Declare and use new local, continue_readdir.
13628         Prepare to be called from fts_read, when the entries
13629         from a partially-read directory have just been exhausted.
13630         In that case, we'll skip the opendir and instead use the parent's
13631         fts_dirp and derive dir_fd from that.
13632         Finally, in the readdir loop, if we read max_entries entries,
13633         exit the loop ensuring *not* to call closedir.  This is required
13634         so that fts_dirp can be reused on a subsequent call.
13635         Prompted by Ben England's report of memory exhaustion in find
13636         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13637
13638         maint: fts: move decl of `dp' down into while loop; split a long line
13639         * lib/fts.c (fts_build): No semantic change.
13640
13641         fts: add/use new struct member, fts_dirp
13642         We are about to use this to manage any directory with
13643         too many entries to read all of them into memory at once.
13644         To do that, we'll need to save the DIR* pointer in each
13645         affected FTSENT struct.
13646         * lib/fts_.h: Include <dirent.h>.
13647         (struct FTSENT) [fts_dirp]: New member.
13648         * lib/fts.c (closedir_and_clear): Define.
13649         Use it in place of closedir so that we are sure to
13650         clear the new fts_dirp member when done with it.
13651         (fts_alloc): Initialize the new member.
13652         (fts_lfree): Free, if needed.
13653
13654         maint: fts: give __opendir2 a new parameter and rename
13655         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13656         than surreptitiously using sole caller's "dir_fd".
13657         (fts_opendir): Rename from __opendir2.
13658
13659         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13660         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13661
13662         maint: fts.c: correct off-by-one indentation
13663         * lib/fts.c (fts_build): Correct indentation, change style
13664         of a couple of block comments, and bracing style.
13665
13666         maint: fts.c: move __opendir2 #define "up" out of function body
13667         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13668
13669         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13670         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13671         out for a long time and besides was useful only on BSD systems.
13672
13673 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13674
13675         regex: port to Stratus OpenVOS
13676         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13677         define to empty, rather than attempting nonportable optimizations.
13678         Problem reported by Paul Green in:
13679         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13680         and fix suggested by Eric Blake in:
13681         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13682
13683 2011-08-17  Eric Blake  <eblake@redhat.com>
13684
13685         getcwd: fix test failures on mingw
13686         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13687         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13688         test if long directory cannot be created, and allow mingw errno.
13689
13690         getcwd-lgpl: fix m4 to match relaxed test for BSD
13691         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13692         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13693         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13694         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13695         signature problem.
13696
13697         getcwd: fix compilation on mingw64
13698         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13699         getcwd.
13700         Reported by Marc-André Lureau.
13701
13702         pipe2: silence compiler warning
13703         * lib/pipe2.c (pipe2): Hide label if it is not used.
13704
13705 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13706
13707         relocatable-prog: fix link error
13708         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13709         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13710         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13711         into modules/relocatable-lib without noticing that
13712         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13713         also needs to build relocatable.c.
13714
13715 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13719         shell code: it contained a 'break' that was not in a loop.
13720         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13721         via a shell-language loop; this may have been true in old Autoconf
13722         versions, but it's not true in Autoconf 2.68.  I found this bug
13723         when testing coreutils git on Solaris 8, whose shell complains
13724         about the syntax error.
13725
13726 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13727
13728         * lib/base64.c: Fix comment to reference RFC 4648.
13729         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13730         <gvtulder@gmail.com>.
13731
13732 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13733
13734         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13735
13736         po/Makefile.in.in: fix make -q problem
13737         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13738         rule, since there's no file named 'check-macro-version' and its
13739         use as a file breaks make -q.
13740         (all): Don't depend on check-macro-version.
13741         (CHECK_MACRO_VERSION): New macro.
13742         (stamp-po): Use it.
13743
13744         configmake: fix make -q problem
13745         * modules/configmake (configmake.h): Update configmake.h's time stamp
13746         even if the file does not change.  Otherwise, 'make -q' fails.
13747         Problem reported by Simon Josefsson in
13748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13749
13750 2011-08-11  Jim Meyering  <meyering@redhat.com>
13751
13752         git-version-gen: correct the advice in a comment
13753         * build-aux/git-version-gen: Correct comment.
13754         Don't recommend to list .tarball-version in .gitignore.
13755
13756 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13757
13758         base64: fix off-by-one buffer size bug
13759         Problem and (trivial) fix reported by Gijs van Tulder in
13760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13761         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13762         * tests/test-base64.c (main): Catch the bug.
13763
13764 2011-08-10  Eric Blake  <eblake@redhat.com>
13765
13766         closein: correct comments
13767         * lib/closein.c (close_stdin): Improve comments.
13768
13769 2011-08-09  Bruno Haible  <bruno@clisp.org>
13770
13771         More tests for 'fseeko'.
13772         * tests/test-fseeko3.c: New file, from Eric Blake.
13773         * tests/test-fseeko3.sh: New file.
13774         * modules/fseeko-tests (Files): Add them.
13775         (TESTS): Add test-fseeko3.sh.
13776         (check_PROGRAMS): Add test-fseeko3.
13777
13778 2011-08-09  Eric Blake  <eblake@redhat.com>
13779
13780         fseeko: remove unneeded hack
13781         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13782
13783         fseeko: fix bug on glibc
13784         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13785         Reported by John W. Eaton.
13786
13787 2011-08-08  Bruno Haible  <bruno@clisp.org>
13788
13789         unictype/base: Fix interoperability with preinstalled libunistring.
13790         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13791         Reported by Simon Josefsson.
13792
13793 2011-08-08  Bruno Haible  <bruno@clisp.org>
13794
13795         iswblank: Detect declaration correctly.
13796         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13797         AC_CHECK_DECLS invocation.
13798
13799 2011-08-08  Bruno Haible  <bruno@clisp.org>
13800
13801         tcgetsid: Detect declaration correctly.
13802         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13803         AC_CHECK_DECLS invocation.
13804         Reported by Simon Josefsson.
13805
13806 2011-08-08  Eric Blake  <eblake@redhat.com>
13807
13808         largefile: fix typo that regressed large file support
13809         * modules/largefile (configure.ac-early): Fix section name.
13810
13811 2011-08-06  Karl Berry  <karl@gnu.org>
13812
13813         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13814         a separate module.
13815
13816 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13817
13818         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13819         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13820         get prototype for free.
13821
13822 2011-08-04  Bruno Haible  <bruno@clisp.org>
13823
13824         Tests for module 'pathmax'.
13825         * modules/pathmax-tests: New file.
13826         * tests/test-pathmax.c: New file.
13827
13828         canonicalize-lgpl: Support larger filenames on the Hurd.
13829         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13830         Reported by Paul Eggert.
13831
13832         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13833         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13834         * lib/chdir-long.h: Include pathmax.h.
13835         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13836         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13837         (PATH_MAX): Remove code that is done by pathmax.h.
13838         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13839         * lib/tmpfile.c: Add a comment.
13840         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13841         * modules/chdir-long (Depends-on): Add pathmax.
13842         * modules/getcwd (Depends-on): Add pathmax.
13843         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13844         is not defined.
13845         * doc/posix-headers/limits.texi: Mention the pathmax module.
13846         * NEWS: Mention the change.
13847
13848 2011-08-02  Bruno Haible  <bruno@clisp.org>
13849
13850         pthread_sigmask: Actually use results of gl_THREADLIB.
13851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13852         gl_THREADLIB, not gl_[]THREADLIB.
13853         Reported by Eric Blake.
13854
13855 2011-08-02  Jim Meyering  <meyering@redhat.com>
13856
13857         maint.mk: relax the default _gl_TS_function_match regexp
13858         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13859         space between function name and "(" in an "extern" declaration.
13860         That would fail to match a decl with no space there: extern void foo();
13861
13862 2011-07-31  Iain Nicol  <iain@thenicols.net>
13863
13864         git-version-gen: document that EXTRA_DIST must include .version
13865         * build-aux/git-version-gen: In the how-to-use comment, document
13866         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13867         will fail when run from an unpacked distribution tarball.
13868
13869 2011-08-01  Bruno Haible  <bruno@clisp.org>
13870
13871         wctype-h: Fix last change.
13872         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13873         REPLACE_TOWLOWER to 0.
13874         Reported by Sam Steingold <sds@gnu.org>.
13875
13876 2011-07-31  Bruno Haible  <bruno@clisp.org>
13877
13878         frexpl: Update autoconf test.
13879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13880         according to changes of 2011-06-20.
13881
13882 2011-07-31  Bruno Haible  <bruno@clisp.org>
13883
13884         sys_utsname: Add support for Minix.
13885         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13886         <sys/utsname.h>.
13887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13888         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13889
13890 2011-07-31  Bruno Haible  <bruno@clisp.org>
13891
13892         strings: Add support for Minix.
13893         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13894         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13895         * doc/posix-headers/strings.texi: Document the Minix problem.
13896
13897 2011-07-31  Bruno Haible  <bruno@clisp.org>
13898
13899         wctype-h: Add support for Minix.
13900         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13901         REPLACE_TOWLOWER.
13902         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13903         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13904         REPLACE_ISWCNTRL.
13905
13906 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13907
13908         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13909         This is a performance improvement for 64-bit hosts: it causes the
13910         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13911
13912 2011-07-31  Bruno Haible  <bruno@clisp.org>
13913
13914         stdioext: Add support for Minix.
13915         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13916         * lib/fpurge.c (fpurge): Likewise.
13917         * lib/freadahead.c (freadahead): Likewise.
13918         * lib/freadable.c (freadable): Likewise.
13919         * lib/freading.c (freading): Likewise.
13920         * lib/freadptr.c (freadptr): Likewise.
13921         * lib/freadseek.c (freadptrinc): Likewise.
13922         * lib/fseeko.c (rpl_fseeko): Likewise.
13923         * lib/fseterr.c (fseterr): Likewise.
13924         * lib/fwritable.c (fwritable): Likewise.
13925         * lib/fwriting.c (fwriting): Likewise.
13926         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13927         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13928
13929 2011-07-31  Bruno Haible  <bruno@clisp.org>
13930
13931         errno: Port to Minix.
13932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13933         ECONNABORTED are defined.
13934         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13935         GNULIB_defined_ECONNABORTED): New macros.
13936         * lib/strerror-override.h (strerror_override): Test also
13937         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13938         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13939         ECONNABORTED.
13940         * doc/posix-headers/errno.texi: Mention the Minix problem.
13941
13942 2011-07-31  Bruno Haible  <bruno@clisp.org>
13943
13944         Work around declaration collisions on Minix.
13945         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13946         defined, set REPLACE_MBSINIT.
13947         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13948         defined, set REPLACE_MBRTOWC.
13949         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13950         set REPLACE_MBRLEN.
13951         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13952         defined, set REPLACE_MBSRTOWCS.
13953         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13954         defined, set REPLACE_WCRTOMB.
13955         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13956         defined, set REPLACE_WCSRTOMBS.
13957
13958 2011-07-31  Bruno Haible  <bruno@clisp.org>
13959
13960         Add support for Minix with ACK compiler.
13961         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13962         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13963         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13964
13965 2011-07-31  Bruno Haible  <bruno@clisp.org>
13966
13967         Documentation about Minix.
13968         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13969         * doc/glibc-headers/*.texi: Likewise.
13970         * doc/posix-functions/*.texi: Likewise.
13971         * doc/glibc-functions/*.texi: Likewise.
13972
13973 2011-07-31  Bruno Haible  <bruno@clisp.org>
13974
13975         snippet/warn-on-use: Fix indentation.
13976         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13977
13978 2011-07-25  Jim Meyering  <meyering@redhat.com>
13979
13980         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13981         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13982         commands.
13983
13984 2011-07-27  Jim Meyering  <meyering@redhat.com>
13985
13986         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13987         * top/maint.mk (gl_extract_significant_defines_): Now that
13988         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13989         gnulib/lib/signal.in.h, and now that we recommend to
13990         define-if-undefined those two symbols in application code,
13991         we must filter them out of the "significant" list.
13992         This avoids a "make syntax-check" failure in coreutils.
13993
13994 2011-07-26  Eric Blake  <eblake@redhat.com>
13995
13996         warnings: add comments about previous patch
13997         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13998         * m4/include_next.m4: Likewise.
13999         * m4/warn-on-use.m4: Likewise.
14000         * m4/warnings.m4: Likewise, and simplify use.
14001         Suggested by Stefano Lattarini.
14002
14003         include-next, warnings: support older autoconf
14004         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14005         AS_VAR_PUSHDEF in a way that works with older autoconf.
14006         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14007         Reported by Daniel P. Berrange.
14008
14009 2011-07-25  Bruno Haible  <bruno@clisp.org>
14010
14011         fseek, ftell: Fix doc.
14012         * doc/posix-functions/fseek.texi: Reword statement about
14013         AC_SYS_LARGEFILE.
14014         * doc/posix-functions/ftell.texi: Likewise.
14015
14016 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14017             Bruno Haible  <bruno@clisp.org>
14018
14019         Add dependencies to the 'largefile' module.
14020         * modules/fopen (Depends-on): Add 'largefile'.
14021         * modules/freopen (Depends-on): Likewise.
14022         * modules/fseeko (Depends-on): Likewise.
14023         * modules/ftello (Depends-on): Likewise.
14024         * modules/glob (Depends-on): Likewise.
14025         * modules/lseek (Depends-on): Likewise.
14026         * modules/lstat (Depends-on): Likewise.
14027         * modules/mkostemp (Depends-on): Likewise.
14028         * modules/mkostemps (Depends-on): Likewise.
14029         * modules/mkstemp (Depends-on): Likewise.
14030         * modules/mkstemps (Depends-on): Likewise.
14031         * modules/open (Depends-on): Likewise.
14032         * modules/openat (Depends-on): Likewise.
14033         * modules/pread (Depends-on): Likewise.
14034         * modules/pwrite (Depends-on): Likewise.
14035         * modules/scandir (Depends-on): Likewise.
14036         * modules/stat (Depends-on): Likewise.
14037         * modules/tmpfile (Depends-on): Likewise.
14038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14039         since the containing module now depends on the largefile module.
14040         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14041         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14042         off_t is fixed by gnulib.
14043         * doc/posix-functions/freopen.texi: Likewise.
14044         * doc/posix-functions/fseeko.texi: Likewise.
14045         * doc/posix-functions/fstatat.texi: Likewise.
14046         * doc/posix-functions/ftello.texi: Likewise.
14047         * doc/posix-functions/glob.texi: Likewise.
14048         * doc/posix-functions/lseek.texi: Likewise.
14049         * doc/posix-functions/lstat.texi: Likewise.
14050         * doc/posix-functions/mkstemp.texi: Likewise.
14051         * doc/posix-functions/open.texi: Likewise.
14052         * doc/posix-functions/openat.texi: Likewise.
14053         * doc/posix-functions/pread.texi: Likewise.
14054         * doc/posix-functions/pwrite.texi: Likewise.
14055         * doc/posix-functions/scandir.texi: Likewise.
14056         * doc/posix-functions/stat.texi: Likewise.
14057         * doc/posix-functions/tmpfile.texi: Likewise.
14058         * doc/glibc-functions/mkostemp.texi: Likewise.
14059         * doc/glibc-functions/mkostemps.texi: Likewise.
14060         * doc/glibc-functions/mkstemps.texi: Likewise.
14061
14062 2011-07-25  Bruno Haible  <bruno@clisp.org>
14063
14064         fcntl: Move AC_LIBOBJ invocation to module description.
14065         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14066         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14067
14068         fcntl: Remove call-in from fchdir.m4.
14069         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14071
14072         dup3: Remove potential call-in from fchdir.m4.
14073         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14075
14076         dup2: Move AC_LIBOBJ invocation to module description.
14077         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14078         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14079         Don't invoke AC_LIBOBJ.
14080         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14081
14082         dup2: Remove call-in from fchdir.m4.
14083         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14085
14086         fclose: Move AC_LIBOBJ invocation to module description.
14087         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14088         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14089         to 1.
14090         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14091
14092         fclose: Remove call-in from close.m4.
14093         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14094         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14095
14096         close: Move AC_LIBOBJ invocation to module description.
14097         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14098         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14099         1.
14100         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14101
14102         close: Remove call-in from fchdir.m4.
14103         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14105
14106         open: Move AC_LIBOBJ invocation to module description.
14107         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14108         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14109         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14110
14111         open: Remove call-in from fchdir.m4.
14112         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14114
14115         fchdir: Start to remove gl_REPLACE_* idiom.
14116         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14117         (gl_FUNC_FCHDIR): Invoke it.
14118
14119 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14120
14121         * lib/ftell.c (ftell): Comment out cast.
14122
14123         close: use gl_REPLACE_FCLOSE only if defined
14124         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14125         is defined.  The close module doesn't depend on the fclose module
14126         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14128         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14129
14130 2011-07-24  Jim Meyering  <meyering@redhat.com>
14131
14132         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14133         * tests/test-select.h (test_function): Declare as "static".
14134
14135 2011-07-24  Bruno Haible  <bruno@clisp.org>
14136
14137         doc: Mention the effects of AC_SYS_LARGEFILE.
14138         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14139         on this function.
14140         * doc/posix-functions/aio_error.texi: Likewise.
14141         * doc/posix-functions/aio_fsync.texi: Likewise.
14142         * doc/posix-functions/aio_read.texi: Likewise.
14143         * doc/posix-functions/aio_return.texi: Likewise.
14144         * doc/posix-functions/aio_suspend.texi: Likewise.
14145         * doc/posix-functions/aio_write.texi: Likewise.
14146         * doc/posix-functions/fgetpos.texi: Likewise.
14147         * doc/posix-functions/fopen.texi: Likewise.
14148         * doc/posix-functions/freopen.texi: Likewise.
14149         * doc/posix-functions/fsetpos.texi: Likewise.
14150         * doc/posix-functions/fstatvfs.texi: Likewise.
14151         * doc/posix-functions/ftruncate.texi: Likewise.
14152         * doc/posix-functions/ftw.texi: Likewise.
14153         * doc/posix-functions/getrlimit.texi: Likewise.
14154         * doc/posix-functions/glob.texi: Likewise.
14155         * doc/posix-functions/lio_listio.texi: Likewise.
14156         * doc/posix-functions/lockf.texi: Likewise.
14157         * doc/posix-functions/mkstemp.texi: Likewise.
14158         * doc/posix-functions/mmap.texi: Likewise.
14159         * doc/posix-functions/nftw.texi: Likewise.
14160         * doc/posix-functions/openat.texi: Likewise.
14161         * doc/posix-functions/opendir.texi: Likewise.
14162         * doc/posix-functions/posix_fadvise.texi: Likewise.
14163         * doc/posix-functions/posix_fallocate.texi: Likewise.
14164         * doc/posix-functions/pread.texi: Likewise.
14165         * doc/posix-functions/pwrite.texi: Likewise.
14166         * doc/posix-functions/readdir.texi: Likewise.
14167         * doc/posix-functions/readdir_r.texi: Likewise.
14168         * doc/posix-functions/rewinddir.texi: Likewise.
14169         * doc/posix-functions/scandir.texi: Likewise.
14170         * doc/posix-functions/seekdir.texi: Likewise.
14171         * doc/posix-functions/setrlimit.texi: Likewise.
14172         * doc/posix-functions/statvfs.texi: Likewise.
14173         * doc/posix-functions/telldir.texi: Likewise.
14174         * doc/posix-functions/tmpfile.texi: Likewise.
14175         * doc/posix-functions/truncate.texi: Likewise.
14176         * doc/glibc-functions/fallocate.texi: Likewise.
14177         * doc/glibc-functions/fstatfs.texi: Likewise.
14178         * doc/glibc-functions/fts_children.texi: Likewise.
14179         * doc/glibc-functions/fts_read.texi: Likewise.
14180         * doc/glibc-functions/getdirentries.texi: Likewise.
14181         * doc/glibc-functions/mkostemp.texi: Likewise.
14182         * doc/glibc-functions/mkostemps.texi: Likewise.
14183         * doc/glibc-functions/mkstemps.texi: Likewise.
14184         * doc/glibc-functions/preadv.texi: Likewise.
14185         * doc/glibc-functions/pwritev.texi: Likewise.
14186         * doc/glibc-functions/sendfile.texi: Likewise.
14187         * doc/glibc-functions/statfs.texi: Likewise.
14188
14189 2011-07-24  Bruno Haible  <bruno@clisp.org>
14190
14191         doc: Fix typo.
14192         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14193
14194 2011-07-24  Bruno Haible  <bruno@clisp.org>
14195
14196         doc: Mention fsusage.
14197         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14198
14199 2011-07-24  Bruno Haible  <bruno@clisp.org>
14200
14201         doc: Mention new glibc headers and functions.
14202         * doc/glibc-headers/gshadow.texi: New file.
14203         * doc/glibc-functions/endsgent.texi: New file.
14204         * doc/glibc-functions/fgetsgent.texi: New file.
14205         * doc/glibc-functions/fgetsgent_r.texi: New file.
14206         * doc/glibc-functions/getsgent.texi: New file.
14207         * doc/glibc-functions/getsgent_r.texi: New file.
14208         * doc/glibc-functions/getsgnam.texi: New file.
14209         * doc/glibc-functions/getsgnam_r.texi: New file.
14210         * doc/glibc-functions/putsgent.texi: New file.
14211         * doc/glibc-functions/setsgent.texi: New file.
14212         * doc/glibc-functions/sgetsgent.texi: New file.
14213         * doc/glibc-functions/sgetsgent_r.texi: New file.
14214         * doc/glibc-functions/malloc_info.texi: New file.
14215         * doc/glibc-functions/preadv.texi: New file.
14216         * doc/glibc-functions/pwritev.texi: New file.
14217         * doc/glibc-functions/register_printf_modifier.texi: New file.
14218         * doc/glibc-functions/register_printf_specifier.texi: New file.
14219         * doc/glibc-functions/register_printf_type.texi: New file.
14220         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14221         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14222         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14223         * doc/glibc-functions/pthread_getname_np.texi: New file.
14224         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14225         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14226         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14227         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14228         * doc/glibc-functions/pthread_setname_np.texi: New file.
14229         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14230         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14231         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14232         * doc/glibc-functions/qsort_r.texi: New file.
14233         * doc/glibc-functions/quick_exit.texi: New file.
14234         * doc/glibc-functions/syncfs.texi: New file.
14235         * doc/gnulib.texi: Include them.
14236         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14237         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14238         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14239         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14240         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14241         * doc/glibc-functions/execvpe.texi: Likewise.
14242
14243 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14244
14245         ftell: don't include <unistd.h>
14246         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14247         guaranteed to define off_t, and the ftell module depends on the
14248         stdio module.
14249
14250         ftell: do not assume wraparound signed arithmetic
14251         * lib/ftell.c: Include <limits.h>.
14252         (ftell): Don't assume wraparound signed arithmetic.
14253
14254 2011-07-24  Bruno Haible  <bruno@clisp.org>
14255
14256         close: No longer depend on module 'fclose'.
14257         * modules/close (Depends-on): Remove fclose.
14258         * NEWS: Mention the change.
14259         Suggested by Sam Steingold <sds@gnu.org>.
14260
14261 2011-07-24  Bruno Haible  <bruno@clisp.org>
14262
14263         fsusage: Enable large volume support on AIX >= 5.2.
14264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14265         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14266         instead of STAT_STATVFS.
14267         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14268
14269         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14270         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14271         f_blocks field only on MacOS X.
14272
14273         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14275         * modules/fsusage (Depends-on): Add largefile.
14276
14277 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14278
14279         * README: Modernize discussion of signed integers.
14280         Assuming overflow wraparound is no longer safe.
14281         Mention ones' complement and signed magnitude.
14282
14283 2011-07-22  Bruno Haible  <bruno@clisp.org>
14284
14285         select tests, pselect tests: Refactor.
14286         * tests/test-select.h: New file, extracted from tests/test-select.c.
14287         (select_fn): New type.
14288         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14289         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14290         test_pipe): Add my_select argument.
14291         (test_function): Renamed from main. Add my_select argument.
14292         * tests/test-select.c: Move most code to tests/test-select.h. Include
14293         test-select.h.
14294         * modules/select-tests (Files): Add tests/test-select.h.
14295         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14296         (my_select, main): New functions.
14297         * modules/pselect-tests (Files): Add tests/test-select.h,
14298         tests/macros.h, tests/signature.h.
14299         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14300         (configure.ac): Check for <sys/wait.h>.
14301
14302 2011-07-22  Bruno Haible  <bruno@clisp.org>
14303
14304         sys_select tests: Check the signature of FD_*.
14305         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14306         signature tests from here...
14307         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14308         here.
14309         * modules/sys_select-tests (Files): Add tests/signature.h.
14310
14311 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         largefile: new module, replacing large-inode
14314         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14315         * MODULES.html.sh: Add largefile, remove large-inode.
14316         * modules/largefile, m4/largefile.m4: New files.
14317         * modules/large-inode, m4/large-inode.m4: Remove.
14318
14319         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14320         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14321         implementations that use only 32 bits to count blocks.
14322         On typical hosts with 1024-byte blocks, this fails with file
14323         systems as small as 4 TiB.  Problem reported by Herb Wartens
14324         <http://debbugs.gnu.org/9140> and this should also fix a similar
14325         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14326
14327         large-inode: New module
14328         * MODULES.html.sh: Add it.
14329         * modules/large-inode, m4/large-inode.m4: New files.
14330
14331         extensions: Enable extensions on MacOS X 10.5 and later.
14332         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14333
14334 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14335
14336         file-has-acl: use acl_extended_file_nofollow if available
14337         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14338         (acl_extended_file): New macro.
14339         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14340         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14341
14342 2011-07-21  Bruno Haible  <bruno@clisp.org>
14343
14344         Declare system functions in a way that works with C++.
14345         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14346         declare fdopendir as extern "C".
14347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14348         declare frexpl as extern "C".
14349         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14350         declare gai_strerror as extern "C".
14351         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14352         programs, declare gai_strerror as extern "C".
14353         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14354         declare getlogin_r as extern "C".
14355         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14356         as extern "C".
14357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14358         declare ldexpl as extern "C".
14359         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14360         as extern "C".
14361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14362         program, declare getmntinfo as extern "C".
14363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14364         stpncpy as extern "C".
14365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14366         program, declare __xpg_strerror_r as extern "C".
14367         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14368         strndup as extern "C".
14369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14370         declare memset and bzero as extern "C".
14371         Reported by Sam Steingold <sds@gnu.org>.
14372
14373 2011-07-12  Jim Meyering  <meyering@redhat.com>
14374
14375         maint.mk: prohibit inclusion of "verify.h" without use
14376         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14377
14378 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14379
14380         timer-time: A new module to check for timer_settime()
14381         * m4/timer_time.m4: Check for the posix function.
14382         * modules/timer-time: Add the new module.
14383         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14384         Mention it.
14385
14386 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14387             Bruno Haible  <bruno@clisp.org>
14388
14389         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14390         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14391         not defined, assume POSIX threads and look for pthread_sigmask in
14392         $LIBS, without changing $CPPFLAGS.
14393
14394 2011-07-19  Bruno Haible  <bruno@clisp.org>
14395
14396         strstr: Update cross-compilation guess.
14397         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14398         CPUs, guess no, in view of glibc
14399         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14400         Suggested by Eric Blake. Reported by Reuben Thomas.
14401
14402 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14403
14404         getopt-gnu: suppress core dumps from detection code
14405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14406         to suppress core dumps that may well occur on glibc systems.
14407         * modules/getopt-gnu: Depend on nocrash.
14408
14409 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14410
14411         pthread_sigmask: ensure usleep is declared
14412         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14413         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14414
14415 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14416
14417         doc: Document NonStop portability issues.
14418         * doc/posix-functions/sigaction.texi (sigaction):
14419         * doc/posix-headers/signal.texi (signal.h):
14420         Document NonStop.  See Joachim Schmitz in
14421         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14422
14423 2011-07-15  Bruno Haible  <bruno@clisp.org>
14424
14425         ffsl, ffsll: Avoid unportable behaviour.
14426         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14427
14428 2011-07-15  Bruno Haible  <bruno@clisp.org>
14429
14430         ffs: More tests.
14431         * tests/test-ffs.c (NBITS): New macro.
14432         (main): Add more tests.
14433         * tests/test-ffsl.c (NBITS): New macro.
14434         (main): Add more tests.
14435         * tests/test-ffsll.c (NBITS): New macro.
14436         (main): Add more tests.
14437
14438 2011-07-15  Eric Blake  <eblake@redhat.com>
14439
14440         ffsl, ffsll: new modules
14441         * modules/ffsl: New file.
14442         * modules/ffsll: Likewise.
14443         * m4/ffsl.m4: Likewise.
14444         * m4/ffsll.m4: Likewise.
14445         * lib/ffsl.c: Likewise.
14446         * lib/ffsl.h: Likewise.
14447         * lib/ffsll.c: Likewise.
14448         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14449         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14450         * modules/string (Makefile.am): Substitute witnesses.
14451         * lib/strings.in.h (ffsl, ffsll): Declare.
14452         * modules/ffsl-tests: New test file.
14453         * modules/ffsll-tests: Likewise.
14454         * tests/test-ffsl.c: Likewise.
14455         * tests/test-ffsll.c: Likewise.
14456         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14457         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14458         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14459
14460         ffs: fix m4 prerequisite
14461         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14462
14463         ffs: avoid undefined behavior
14464         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14465         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14466         Reported by Bruno Haible.
14467
14468 2011-07-12  Bruno Haible  <bruno@clisp.org>
14469
14470         pthread_sigmask: Rely on module 'threadlib'.
14471         * modules/pthread_sigmask (Depends-on): Add threadlib.
14472         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14473         is defined.
14474
14475 2011-07-12  Bruno Haible  <bruno@clisp.org>
14476
14477         regex: Depend on module 'strcase'.
14478         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14479
14480 2011-07-12  Jim Meyering  <meyering@redhat.com>
14481
14482         warn-on-use: fix typo in file name
14483         * modules/snippet/warn-on-use (Files): Correct file name:
14484         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14485
14486 2011-07-12  Bruno Haible  <bruno@clisp.org>
14487
14488         strings: Document module.
14489         * doc/posix-headers/strings.texi: Mention module 'strings'.
14490
14491 2011-07-12  Bruno Haible  <bruno@clisp.org>
14492
14493         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14494         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14495         (Files, Makefile.am): Update.
14496         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14497         * modules/stdlib (Depends-on): Update.
14498
14499 2011-07-12  Bruno Haible  <bruno@clisp.org>
14500
14501         * NEWS: Mention the changes.
14502
14503         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14504         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14505         (Files, Makefile.am): Update.
14506         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14507         * modules/arpa_inet (Depends-on): Update.
14508         * modules/ctype (Depends-on): Update.
14509         * modules/dirent (Depends-on): Update.
14510         * modules/fcntl-h (Depends-on): Update.
14511         * modules/glob (Depends-on): Update.
14512         * modules/iconv-h (Depends-on): Update.
14513         * modules/inttypes-incomplete (Depends-on): Update.
14514         * modules/langinfo (Depends-on): Update.
14515         * modules/locale (Depends-on): Update.
14516         * modules/math (Depends-on): Update.
14517         * modules/netdb (Depends-on): Update.
14518         * modules/poll-h (Depends-on): Update.
14519         * modules/pty (Depends-on): Update.
14520         * modules/search (Depends-on): Update.
14521         * modules/signal (Depends-on): Update.
14522         * modules/spawn (Depends-on): Update.
14523         * modules/stdio (Depends-on): Update.
14524         * modules/stdlib (Depends-on): Update.
14525         * modules/string (Depends-on): Update.
14526         * modules/strings (Depends-on): Update.
14527         * modules/sys_file (Depends-on): Update.
14528         * modules/sys_ioctl (Depends-on): Update.
14529         * modules/sys_select (Depends-on): Update.
14530         * modules/sys_socket (Depends-on): Update.
14531         * modules/sys_stat (Depends-on): Update.
14532         * modules/sys_time (Depends-on): Update.
14533         * modules/sys_times (Depends-on): Update.
14534         * modules/sys_utsname (Depends-on): Update.
14535         * modules/sys_wait (Depends-on): Update.
14536         * modules/termios (Depends-on): Update.
14537         * modules/time (Depends-on): Update.
14538         * modules/unistd (Depends-on): Update.
14539         * modules/wchar (Depends-on): Update.
14540         * modules/wctype-h (Depends-on): Update.
14541         * MODULES.html.sh (Support for building libraries and executables):
14542         Update.
14543
14544         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14545         * modules/snippet/unused-parameter: Renamed from
14546         modules/unused-parameter.
14547         (Files, Makefile.am): Update.
14548         * build-aux/snippet/unused-parameter.h: Renamed from
14549         build-aux/unused-parameter.h.
14550         * modules/selinux-h (Depends-on): Update.
14551         * modules/unistr/base (Depends-on): Update.
14552         * MODULES.html.sh (Core language properties): Update.
14553
14554         Rename module 'link-warning' to 'snippet/link-warning'.
14555         * modules/snippet/link-warning: Renamed from modules/link-warning.
14556         (Files, Makefile.am): Update.
14557         * build-aux/snippet/link-warning.h: Renamed from
14558         build-aux/link-warning.h.
14559         * MODULES.html.sh (Support for building libraries and executables):
14560         Update.
14561
14562         Rename module 'c++defs' to 'snippet/c++defs'.
14563         * modules/snippet/c++defs: Renamed from modules/c++defs.
14564         (Files, Makefile.am): Update.
14565         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14566         * modules/arpa_inet (Depends-on): Update.
14567         * modules/ctype (Depends-on): Update.
14568         * modules/dirent (Depends-on): Update.
14569         * modules/fcntl-h (Depends-on): Update.
14570         * modules/glob (Depends-on): Update.
14571         * modules/iconv-h (Depends-on): Update.
14572         * modules/langinfo (Depends-on): Update.
14573         * modules/locale (Depends-on): Update.
14574         * modules/math (Depends-on): Update.
14575         * modules/netdb (Depends-on): Update.
14576         * modules/poll-h (Depends-on): Update.
14577         * modules/pty (Depends-on): Update.
14578         * modules/search (Depends-on): Update.
14579         * modules/signal (Depends-on): Update.
14580         * modules/spawn (Depends-on): Update.
14581         * modules/stdio (Depends-on): Update.
14582         * modules/stdlib (Depends-on): Update.
14583         * modules/string (Depends-on): Update.
14584         * modules/strings (Depends-on): Update.
14585         * modules/sys_ioctl (Depends-on): Update.
14586         * modules/sys_select (Depends-on): Update.
14587         * modules/sys_socket (Depends-on): Update.
14588         * modules/sys_stat (Depends-on): Update.
14589         * modules/sys_time (Depends-on): Update.
14590         * modules/sys_wait (Depends-on): Update.
14591         * modules/termios (Depends-on): Update.
14592         * modules/time (Depends-on): Update.
14593         * modules/unistd (Depends-on): Update.
14594         * modules/wchar (Depends-on): Update.
14595         * modules/wctype-h (Depends-on): Update.
14596
14597         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14598         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14599         (Files, Makefile.am): Update.
14600         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14601         * modules/argv-iter (Depends-on): Update.
14602         * modules/arpa_inet (Depends-on): Update.
14603         * modules/dirent (Depends-on): Update.
14604         * modules/fcntl-h (Depends-on): Update.
14605         * modules/fnmatch (Depends-on): Update.
14606         * modules/getopt-posix (Depends-on): Update.
14607         * modules/glob (Depends-on): Update.
14608         * modules/iconv-h (Depends-on): Update.
14609         * modules/inttypes-incomplete (Depends-on): Update.
14610         * modules/locale (Depends-on): Update.
14611         * modules/math (Depends-on): Update.
14612         * modules/netdb (Depends-on): Update.
14613         * modules/search (Depends-on): Update.
14614         * modules/signal (Depends-on): Update.
14615         * modules/spawn (Depends-on): Update.
14616         * modules/stdio (Depends-on): Update.
14617         * modules/stdlib (Depends-on): Update.
14618         * modules/string (Depends-on): Update.
14619         * modules/strings (Depends-on): Update.
14620         * modules/sys_socket (Depends-on): Update.
14621         * modules/sys_stat (Depends-on): Update.
14622         * modules/sys_time (Depends-on): Update.
14623         * modules/sys_times (Depends-on): Update.
14624         * modules/sys_utsname (Depends-on): Update.
14625         * modules/time (Depends-on): Update.
14626         * modules/unistd (Depends-on): Update.
14627         * modules/wchar (Depends-on): Update.
14628         * MODULES.html.sh (Support for building libraries and executables):
14629         Update.
14630
14631 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14632
14633         Improvements on _Noreturn and related modules.
14634
14635         modules/_Exit-tests: test _Noreturn too
14636         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14637         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14638         (main): Use them.
14639
14640         stdnoreturn, stdnoreturn-tests: remove modules
14641         They're not needed here and a bit premature for use elsewhere.  See
14642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14643         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14644         * tests/test-stdnoreturn.c: Remove files.
14645         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14646         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14647         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14648         and using noreturn.
14649         * modules/openat, modules/sigpipe-die, modules/xalloc:
14650         * modules/xmemdup0, modules/xstrtol:
14651         Remove dependency on stdnoreturn.
14652
14653         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14654         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14655         Reparenthesize to avoid GCC warning.
14656         Support Microsoft's syntax.
14657         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14658
14659         _Noreturn-tests: remove module
14660         * modules/_Noreturn-tests: Remove.
14661         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14662         * tests/test-_Noreturn.c: Remove.
14663         * tests/test-stdnoreturn.c: Merge from the old
14664         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14665
14666 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14667
14668         _Noreturn, stdnoreturn, and related modules.
14669
14670         * top/maint.mk: Adjust to new noreturn support.
14671         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14672         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14673
14674         xalloc: use stdnoreturn.h
14675         * lib/xalloc.h: Include <stdnoreturn.h>.
14676         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14677         * modules/xalloc (Depends-on): Add stdnoreturn.
14678
14679         xstrtol: use stdnoreturn.h
14680         * lib/xstrtol.h: Include <stdnoreturn.h>.
14681         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14682         * modules/xstrtol (Depends-on): Add stdnoreturn.
14683
14684         xmemdup0: use stdnoreturn.h
14685         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14686         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14687         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14688
14689         sigpipe-die: use stdnoreturn.h
14690         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14691         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14692         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14693
14694         openat: use stdnoreturn.h
14695         * lib/openat.h: Include <stdnoreturn.h>.
14696         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14697         * modules/openat (Depends-on): Add stdnoreturn.
14698
14699         * lib/openat-die.c (openat_save_fail): Modernize comment.
14700
14701         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14702
14703         * lib/glthread/thread.h: Modernize comment.
14704
14705         obstack: use _Noreturn
14706         * lib/obstack.c (__attribute__): Remove macro.
14707         (print_and_abort): Use _Noreturn.
14708
14709         c-stack: use _Noreturn
14710         * lib/c-stack.c (die, overflow_handler, segv_handler):
14711         Use _Noreturn rather than __attribute__((noreturn)).
14712
14713         argmatch-tests, exclude_tests: use _Noreturn
14714         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14715         Remove.
14716         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14717
14718         stdlib: use _Noreturn
14719         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14720         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14721         * modules/stdlib (Depends-on): Add _Noreturn.
14722         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14723
14724         stdnoreturn-tests: new module
14725         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14726
14727         stdnoreturn: new module
14728         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14729         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14730
14731         _Noreturn-tests: new module
14732         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14733
14734         _Noreturn: new module
14735         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14736         New section, mentioning it.
14737         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14738
14739         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14740
14741 2011-07-11  Eric Blake  <eblake@redhat.com>
14742
14743         ffs: new module
14744         * modules/ffs: New file.
14745         * m4/ffs.m4: Likewise.
14746         * lib/ffs.c: Likewise.
14747         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14748         * modules/strings (Makefile.am): Substitute witness.
14749         (Depends-on): Add c++defs.
14750         * lib/strings.in.h (ffs): Declare.
14751         * modules/ffs-tests: New test file.
14752         * tests/test-ffs.c: Test new module.
14753         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14754         * doc/posix-functions/ffs.texi (ffs): Likewise.
14755
14756         regex: avoid compiler warning
14757         * lib/regex.c (includes): Include <strings.h>, for use of
14758         strcasecmp in regcomp.c.
14759         Reported by Joachim Schmitz.
14760
14761 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14762
14763         stdint: respect system's intmax_t if INTMAX_MAX
14764         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14765         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14766         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14767         long but int64_t is long long, and where we will clash with the
14768         system intmax_t if we override it.  See
14769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14770         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14771         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14772         similarly for UINTMAX_C.
14773
14774 2011-07-08  Bruno Haible  <bruno@clisp.org>
14775
14776         pthread_sigmask tests: Avoid a compiler warning.
14777         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14778         non-zero.
14779
14780         sigprocmask tests: A better way to avoid a compiler warning.
14781         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14782         (main): Complain if system() returns non-zero.
14783         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14784
14785 2011-07-08  Bruno Haible  <bruno@clisp.org>
14786
14787         pthread_sigmask: Work around IRIX bug.
14788         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14789         bug.
14790         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14791         there may be unblocked pending signals.
14792         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14793
14794 2011-07-08  Bruno Haible  <bruno@clisp.org>
14795
14796         pthread_sigmask: Work around Cygwin bug.
14797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14798         bug.
14799         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14800         the system's pthread_sigmask function.
14801         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14802
14803 2011-07-08  Bruno Haible  <bruno@clisp.org>
14804
14805         pthread_sigmask: Work around bug in single-threaded implementation.
14806         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14807         FreeBSD, HP-UX, Solaris bug.
14808         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14809         * lib/pthread_sigmask.c: Include <stddef.h>.
14810         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14811         the system's pthread_sigmask function.
14812         * modules/pthread_sigmask (configure.ac): Invoke
14813         gl_PREREQ_PTHREAD_SIGMASK.
14814         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14815         HP-UX, Solaris.
14816
14817 2011-07-08  Eric Blake  <eblake@redhat.com>
14818
14819         test-sigprocmask: avoid compiler warning
14820         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14821         * tests/test-sigprocmask.c (main): Use it to silence warning.
14822         Reported by Jim Meyering.
14823
14824         test-snprintf: avoid compiler warning
14825         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14826         * tests/test-vsnprintf.c (main): Likewise.
14827         Reported by Jim Meyering.
14828
14829 2011-07-08  Bruno Haible  <bruno@clisp.org>
14830
14831         Tests for module 'pthread_sigmask'.
14832         * modules/pthread_sigmask-tests: New file.
14833         * tests/test-pthread_sigmask1.c: New file, based on
14834         tests/test-sigprocmask.c.
14835         * tests/test-pthread_sigmask2.c: New file.
14836
14837 2011-07-08  Jim Meyering  <meyering@redhat.com>
14838
14839         test-getopt.h: avoid warning about an unused variable
14840         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14841
14842 2011-07-07  Jim Meyering  <meyering@redhat.com>
14843
14844         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14845         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14846         now that it no longer contains leading TABs.
14847         Remove unused "url=FIXME" statement.
14848
14849 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14850
14851         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14853         When gl_THREADLIB is not in use, assume that the POSIX sematics
14854         are desired.  This is better for Emacs, which uses POSIX semantics
14855         on GNUish and/or POSIXish platforms, and does not use threads at
14856         all otherwise.
14857
14858         pthread_sigmask: fix typo when testing for libraries
14859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14860         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14861
14862 2011-07-08  Eric Blake  <eblake@redhat.com>
14863
14864         fts: introduce FTS_NOATIME
14865         * lib/fts_.h (FTS_NOATIME): New bit flag.
14866         (FTS_OPTIONMASK): Adjust.
14867         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14868         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14869
14870 2011-07-08  Bruno Haible  <bruno@clisp.org>
14871
14872         Tests for module 'thread'.
14873         * modules/thread-tests: New file.
14874         * tests/test-thread_self.c: New file.
14875         * tests/test-thread_create.cc: New file.
14876
14877 2011-07-08  Bruno Haible  <bruno@clisp.org>
14878
14879         thread: Avoid gcc warnings when using gl_thread_self().
14880         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14881         'void *'.
14882         (gl_thread_self_pointer): Update.
14883
14884 2011-07-07  Bruno Haible  <bruno@clisp.org>
14885
14886         signal-c++-tests: Check declaration of pthread_sigmask.
14887         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14888         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14889         $(LIB_PTHREAD_SIGMASK).
14890
14891 2011-07-07  Bruno Haible  <bruno@clisp.org>
14892
14893         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14894         * lib/signal.in.h (pthread_sigmask): Override if
14895         REPLACE_PTHREAD_SIGMASK is 1.
14896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14897         REPLACE_PTHREAD_SIGMASK.
14898         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14899         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14900         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14901         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14902         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14903
14904 2011-07-07  Bruno Haible  <bruno@clisp.org>
14905
14906         pthread_sigmask: Ensure declaration in <signal.h>.
14907         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14908         include <pthread.h>.
14909         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14910         problem.
14911
14912 2011-07-07  Bruno Haible  <bruno@clisp.org>
14913
14914         pthread_sigmask: Document the module.
14915         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14916
14917 2011-07-07  Bruno Haible  <bruno@clisp.org>
14918
14919         pthread_sigmask: Follow gnulib conventions.
14920         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14921         gl_PTHREAD_SIGMASK.
14922         * modules/pthread_sigmask (configure.ac): Update.
14923
14924 2011-07-07  Bruno Haible  <bruno@clisp.org>
14925
14926         pthread_sigmask: Make declaration C++ safe.
14927         * lib/signal.in.h: In two special conditions, just do an #include_next.
14928         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14929         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14930         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14931         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14932         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14933         not REPLACE_PTHREAD_MASK.
14934         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14935         not REPLACE_PTHREAD_MASK.
14936         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14937
14938 2011-07-07  Bruno Haible  <bruno@clisp.org>
14939
14940         pthread_sigmask: Fix return value.
14941         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14942         * lib/pthread_sigmask.c: New file.
14943         * modules/pthread_sigmask (Files): Add it.
14944         (configure.ac): Invoke AC_LIBOBJ.
14945
14946 2011-07-07  Eric Blake  <eblake@redhat.com>
14947
14948         getopt: more portable argv creation
14949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14950         const, use char arrays rather than strings.
14951         Suggested by Paul Eggert.
14952
14953 2011-07-07  Bruno Haible  <bruno@clisp.org>
14954
14955         Tests for module 'sigprocmask'.
14956         * modules/sigprocmask-tests: New file.
14957         * tests/test-sigprocmask.c: New file.
14958
14959 2011-07-07  Bruno Haible  <bruno@clisp.org>
14960
14961         float tests: Tweak.
14962         * tests/test-float.c (main): Tweak skip message.
14963
14964 2011-07-07  Eric Blake  <eblake@redhat.com>
14965
14966         getopt: avoid compiler warning during configure
14967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14968         assigning string literals to non-const pointer.
14969
14970         getopt-gnu: avoid crash in glibc getopt
14971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14972         * tests/test-getopt.h (test_getopt): Enhance test.
14973         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14974         * doc/posix-functions/getopt.texi (getopt): Document it.
14975         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14976         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14977         Likewise.
14978
14979 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14980
14981         getopt: handle W; without long options in getopt [BZ #12922]
14982         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14983         but no long options are defined, just return 'W'.
14984
14985 2011-07-07  Bruno Haible  <bruno@clisp.org>
14986
14987         Avoid literal tabs.
14988         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14989         variable containing a tab instead of a literal tab.
14990         Reported by Jim Meyering.
14991
14992 2011-07-07  Bruno Haible  <bruno@clisp.org>
14993
14994         Comments.
14995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14996
14997 2011-07-06  Bruno Haible  <bruno@clisp.org>
14998
14999         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15000         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15001         <winsock2.h>.
15002         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15003         lib/sys_socket.in.h.
15004         (close, gethostname): Hide declarations from <winsock2.h>.
15005         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15006         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15007         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15008         (select): Don't override if gnulib's <sys/select.h> was already
15009         included.
15010         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15011         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15012         setsockopt, shutdown, select): Tweak indentation.
15013
15014 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15015
15016         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15017         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15018         in an application that does not use the sys_select module.
15019
15020 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15021
15022         poll: do not return 0 on timeout=-1
15023         * lib/poll.c: Loop with yield if no events occured
15024
15025 2011-07-06  Eric Blake  <eblake@redhat.com>
15026
15027         pthread_sigmask: always replace when not using pthread
15028         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15029         replacement when using some threading other than pthread.  Fix
15030         logic bug.
15031
15032 2011-07-06  Bruno Haible  <bruno@clisp.org>
15033
15034         Comments.
15035         * m4/printf.m4: Update comments about mingw.
15036
15037 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         sys_select: define sigset_t more portably
15040         * lib/sys_select.in.h: Always include <sys/types.h>, since
15041         we now need sigset_t and mingw defines it there.
15042         Include <signal.h> before split inclusion guard, to avoid
15043         mishaps on Solaris, whose <signal.h> eventually includes us.
15044         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15045         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15046         which come from ...
15047         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15048         gl_CHECK_TYPE_SIGSET_T.
15049         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15050         does the real work.
15051         * modules/sys_select (Depends-on): Add 'signal'.
15052
15053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15054         Suggested by Bruno Haible.
15055
15056         pselect: Use pthread_sigmask, not sigprocmask.
15057         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15058         multithreaded apps better than sigprocmask does.
15059         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15060         sigprocmask directly.
15061
15062 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15063
15064         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15065         Don't #undef,  since we don't need any underlying pselect.
15066         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15067         (Depends-on): Add select.
15068         (Link): Add $(LIBSOCKET).
15069         These changes suggested by Bruno Haible.
15070
15071         pselect: document better
15072         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15073         * doc/posix-functions/pselect.texi (pselect): Document new module.
15074
15075         pthread_sigmask: new module
15076         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15077         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15078         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15079         This is done only as a macro; I don't know how well that'll
15080         work for C++.  Move <sys/types.h> include before the include_next,
15081         to avoid mishap on Solaris.
15082         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15083         * modules/signal (Makefile.am): Substitute the check's results.
15084         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15085
15086         test-pselect: new module
15087         * modules/pselect-tests, tests/test-pselect.c: New files.
15088         * tests/test-select.c, tests/test-sys_select-c++.cc:
15089         If TEST_PSELECT is defined, test pselect instead of testing select.
15090
15091         * tests/test-sys_select.c (sigset_t): Test for it, too.
15092         Suggested by Bruno Haible.
15093
15094 2011-07-05  Eric Blake  <eblake@redhat.com>
15095
15096         snprintf: guarantee %1$d, for libintl
15097         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15098         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15099         * doc/posix-functions/snprintf.texi (snprintf): Update.
15100         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15101         * tests/test-snprintf.c (main): Enhance test.
15102         * tests/test-vsnprintf.c (main): Likewise.
15103
15104 2011-07-05  Jim Meyering  <meyering@redhat.com>
15105
15106         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15107         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15108         per Bruno's request, to accommodate this idiom (no space after "#")
15109         even when the function is inside an #if block:
15110         char *
15111         gets (char *s)
15112         #undef gets
15113         {
15114           ...
15115         }
15116
15117 2011-07-04  Jim Meyering  <meyering@redhat.com>
15118
15119         maint: indent with spaces, not TABs, and add a rule to check this
15120         * tests/test-userspec.c: Indent with spaces, not TABs.
15121         * tests/test-argp.c: Likewise.
15122         * tests/test-c-stack2.sh: Likewise.
15123         * tests/test-parse-duration.sh: Likewise
15124         * m4/strtod.m4: Likewise.
15125         * m4/alloca.m4: Likewise.
15126         * m4/pselect.m4: Likewise.
15127         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15128
15129 2011-07-03  Jim Meyering  <meyering@redhat.com>
15130
15131         maint.mk: correct omissions in prohibit_argmatch_without_use check
15132         This rule would mistakenly report that argmatch.h is included without
15133         use even when both the argmatch and invalid_arg macro were used.
15134         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15135         of argmatch and invalid_arg.
15136
15137 2011-07-03  Bruno Haible  <bruno@clisp.org>
15138
15139         Comments about EINTR.
15140         * lib/safe-read.h: Explain the purpose of this module.
15141         * lib/safe-write.h: Likewise.
15142         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15143         module.
15144         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15145         module.
15146         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15147
15148 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15149
15150         xnanosleep: Rewrite to use new dtotimespec module.
15151         It has the conversion code that used to be in xnanosleep.
15152         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15153         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15154         (TIME_T_MAX): Remove.
15155         (xnanosleep): Rewrite in terms of dtotimespec.
15156         * modules/xnanosleep (Depends-on): Add dtotimespec.
15157         Remove intprops, stdbool.
15158
15159         timespec-add, timespec-sub: new modules
15160         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15161         * lib/timespec-add.c, lib/timespec-sub.c:
15162         * modules/timespec-add, modules/timespec-sub: New files.
15163
15164         dtotimespec: new module
15165         * lib/timespec.h (dtotimespec): New decl.
15166         * lib/dtotimespec.c, modules/dtotimespec: New files.
15167
15168         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15169
15170         pselect: new module
15171         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15172         (pselect): New decls.
15173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15174         since the standard pselect decl uses 'restrict'.
15175         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15176         HAVE_PSELECT, REPLACE_PSELECT.
15177         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15178         HAVE_PSELECT, REPLACE_PSELECT.
15179         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15180
15181         sys_select: don't depend on sys_socket
15182         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15184         This fix works on GNU and GNU-like platforms, but has not been tested
15185         on native Windows.
15186         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15188         gl_HEADER_SYS_SOCKET.
15189         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15190         gl_PREREQ_SYS_H_WINSOCK2.
15191
15192 2011-06-29  Eric Blake  <eblake@redhat.com>
15193
15194         pipe2: fix C89 compile problem
15195         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15196         Reported by Bruno Haible.
15197
15198         pipe, pipe2: don't corrupt fd on error
15199         * lib/pipe.c (pipe): Leave fd unchanged on error.
15200         * lib/pipe2.c (pipe2): Likewise.
15201         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15202         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15203
15204 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15205
15206         mmap-anon: do not use regular expressions inadvertently
15207         * m4/mmap-anon.m4: Remove trailing period from strings sought
15208         in the output.
15209
15210 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15211
15212         nanosleep: fix integer overflow problem
15213         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15214         arithmetic wraps around on overflow.
15215
15216         nanosleep: simplify carrying
15217         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15218         first call to the underyling nanosleep, not for the last one.
15219         This doesn't fix any bugs, but it simplifies the computation of
15220         the remaining delay.  Found while auditing integer overflow issues.
15221
15222         dup2: remove test for existence of fcntl
15223         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15224         "#if HAVE_FCNTL", in the configure-time test program.
15225         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15226         and therefore speeds up "configure" a bit.  Found while
15227         adding the dup2 module to Emacs.
15228
15229 2011-06-24  Eric Blake  <eblake@redhat.com>
15230
15231         maint.mk: enhance useless header checks
15232         * top/maint.mk (_sc_header_without_use): Check both include
15233         styles.
15234         (sc_prohibit_assert_without_use)
15235         (sc_prohibit_close_stream_without_use)
15236         (sc_prohibit_getopt_without_use)
15237         (sc_prohibit_quotearg_without_use)
15238         (sc_prohibit_quote_without_use)
15239         (sc_prohibit_long_options_without_use)
15240         (sc_prohibit_inttostr_without_use)
15241         (sc_prohibit_ignore_value_without_use)
15242         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15243         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15244         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15245         (sc_prohibit_hash_pjw_without_use)
15246         (sc_prohibit_safe_read_without_use)
15247         (sc_prohibit_argmatch_without_use)
15248         (sc_prohibit_canonicalize_without_use)
15249         (sc_prohibit_root_dev_ino_without_use)
15250         (sc_prohibit_openat_without_use)
15251         (sc_prohibit_c_ctype_without_use)
15252         (sc_prohibit_signal_without_use)
15253         (sc_prohibit_stdio--_without_use)
15254         (sc_prohibit_stdio-safer_without_use)
15255         (sc_prohibit_strings_without_use)
15256         (sc_prohibit_intprops_without_use)
15257         (sc_prohibit_stddef_without_use)
15258         (sc_prohibit_xfreopen_without_use): Update clients.
15259
15260 2011-06-24  Jim Meyering  <meyering@redhat.com>
15261
15262         syntax-check: keep one maint.mk rule in sync with its header
15263         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15264         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15265         I prefer to avoid temporary files here, so use <(...), but that
15266         is not supported by /bin/sh, so...
15267         (SHELL): Define to /bin/bash.
15268
15269 2011-06-24  Eric Blake  <eblake@redhat.com>
15270
15271         maint.mk: update sc_prohibit_intprops_without_use
15272         * top/maint.mk (_intprops_names): Match recent changes.
15273
15274 2011-06-24  Bruno Haible  <bruno@clisp.org>
15275
15276         strerror-override: No-op tweak.
15277         * lib/strerror-override.h (strerror_override): Reorder conditions,
15278         for consistency with lib/strerror-override.c.
15279
15280 2011-06-23  Eric Blake  <eblake@redhat.com>
15281
15282         maint.mk: test further PATH_MAX issues
15283         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15284         (sc_prohibit_path_max_allocation): ...and also test alloca.
15285         Suggested by Jim Meyering.
15286
15287 2011-06-22  Eric Blake  <eblake@redhat.com>
15288
15289         maint.mk: add syntax-check to avoid char[PATH_MAX]
15290         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15291
15292         stat: be robust to PATH_MAX definition
15293         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15294         * modules/stat (Depends-on): Add verify.
15295
15296         link: work around IRIX bug
15297         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15298         * lib/link.c (rpl_link): Work around it.
15299         * tests/test-link.h (test_link): Enhance test.
15300         * doc/posix-functions/link.texi (link): Document the bug.
15301
15302         getopt: silence clang warning
15303         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15304         dereference.
15305         Reported by Gustavo Martin Domato.
15306
15307 2011-06-22  Jim Meyering  <meyering@redhat.com>
15308
15309         bootstrap: do not insert a blank line into each .gitignore file
15310         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15311
15312 2011-06-21  Eric Blake  <eblake@redhat.com>
15313
15314         perror: test for output mismatch
15315         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15316         perror on IRIX.
15317
15318         strerror_r: fix OpenBSD behavior on out-of-range
15319         * lib/strerror_r.c (strerror_r): Always use maximal string.
15320         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15321
15322         strerror_r: fix OpenBSD behavior on 0
15323         * lib/strerror-override.c (strerror_override): Also override 0
15324         when needed.
15325         * lib/strerror-override.h (strerror_override): Likewise.
15326         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15327         earlier.
15328         * lib/strerror_r.c (strerror_r): Likewise.
15329         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15330         behavior...
15331         (gl_FUNC_STRERROR_0): ...into new macro.
15332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15333         is overridden.
15334         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15335         * modules/strerror-override (Files): Add strerror.m4.
15336         (configure.ac): Also provide override for 0 when needed.
15337         * doc/posix-functions/strerror.texi (strerror): Document this.
15338         * doc/posix-functions/perror.texi (perror): Likewise.
15339
15340         perror: adjust array size
15341         * modules/perror (Depends-on): Add strerror-override.
15342         * lib/perror.c (perror): Use it to avoid magic number.
15343
15344         strerror-override: reduce size
15345         * lib/strerror-override.c (strerror_override): Use fewer lines.
15346
15347 2011-06-20  Bruno Haible  <bruno@clisp.org>
15348
15349         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15350         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15351
15352 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15353
15354         alloca: port to compilers that can optimize like GCC 4.6.0
15355         * lib/alloca.c (find_stack_direction): New signature, taken from
15356         Autoconf git.  This works with GCC 4.6.0.  This code should never
15357         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15358         be used with other compilers that optimize as well as GCC 4.6.0 does.
15359         (alloca): Adjust to new signature.
15360         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15361         New macro, which patches Autoconf in a similar way.
15362
15363         c-stack: stop worrying about stack direction
15364         * lib/c-stack.c (find_stack_direction): Remove.
15365         (segv_handler): Don't worry about stack direction growth, as it's
15366         too much of a pain to configure this correctly, given how compilers
15367         are optimizing-away our stack-growth detection code.  Instead, assume
15368         that any access to just before or just after the stack is OK.
15369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15370         Don't require AC_FUNC_ALLOCA; no longer needed.
15371
15372 2011-06-20  Eric Blake  <eblake@redhat.com>
15373
15374         test-stat: don't allocate PATH_MAX bytes
15375         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15376         PATH_MAX-sized buffer.
15377         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15378         * modules/stat-tests (Depends-on): Likewise.
15379         * tests/test-fstatat.c (includes): Drop pathmax.h.
15380         * tests/test-stat.c (includes): Likewise.
15381         Reported by Bruno Haible.
15382
15383 2011-06-20  Bruno Haible  <bruno@clisp.org>
15384
15385         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15386         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15387         * lib/float.c: New file.
15388         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15389         REPLACE_FLOAT_LDBL.
15390         * modules/float (Files): Add lib/float.c.
15391         (configure.ac): Invoke AC_LIBOBJ.
15392         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15393
15394 2011-06-20  Bruno Haible  <bruno@clisp.org>
15395
15396         Tests for module 'float'.
15397         * modules/float-tests: New file.
15398         * tests/test-float.c: New file.
15399
15400 2011-06-19  Bruno Haible  <bruno@clisp.org>
15401
15402         isinf: Coding style.
15403         * lib/isinf.c: Use GNU coding style.
15404
15405 2011-06-19  Bruno Haible  <bruno@clisp.org>
15406
15407         linkat test: Avoid test failure on AIX 7.1.
15408         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15409         * tests/test-link.h (test_link): Likewise.
15410
15411 2011-06-19  Bruno Haible  <bruno@clisp.org>
15412
15413         pread test: Avoid test failure on OpenBSD 4.9.
15414         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15415
15416 2011-06-19  Bruno Haible  <bruno@clisp.org>
15417
15418         sprintf-posix: Fix test failure on AIX 7.1.
15419         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15420         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15421         on AIX.
15422         * doc/posix-functions/fprintf.texi: Likewise.
15423         * doc/posix-functions/printf.texi: Likewise.
15424         * doc/posix-functions/snprintf.texi: Likewise.
15425         * doc/posix-functions/sprintf.texi: Likewise.
15426         * doc/posix-functions/vdprintf.texi: Likewise.
15427         * doc/posix-functions/vfprintf.texi: Likewise.
15428         * doc/posix-functions/vprintf.texi: Likewise.
15429         * doc/posix-functions/vsnprintf.texi: Likewise.
15430         * doc/posix-functions/vsprintf.texi: Likewise.
15431
15432 2011-06-19  Bruno Haible  <bruno@clisp.org>
15433
15434         roundl-ieee: Fix test failure on AIX 7.1.
15435         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15436         * doc/posix-functions/roundl.texi: Mention problem with negative
15437         arguments.
15438
15439 2011-06-19  Bruno Haible  <bruno@clisp.org>
15440
15441         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15442         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15443         * doc/posix-functions/round.texi: Mention problem with negative
15444         arguments.
15445         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15446
15447 2011-06-19  Bruno Haible  <bruno@clisp.org>
15448
15449         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15451         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15452         * doc/posix-functions/roundf.texi: Mention problem with negative
15453         arguments.
15454         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15455
15456 2011-06-19  Bruno Haible  <bruno@clisp.org>
15457
15458         ceilf-ieee: Work around bug on MacOS X 10.5.
15459         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15460
15461         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15462         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15463         IEEE compliant, avoid compiler optimizations.
15464         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15465         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15466         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15467         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15468         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15469         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15470         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15472         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15473         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15474
15475 2011-06-19  Bruno Haible  <bruno@clisp.org>
15476
15477         ceilf-ieee: Work around bug on AIX 7.1.
15478         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15479         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15480
15481 2011-06-19  Bruno Haible  <bruno@clisp.org>
15482
15483         ceil-ieee: Work around bug on AIX 7.1.
15484         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15485         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15486
15487 2011-06-18  Bruno Haible  <bruno@clisp.org>
15488
15489         fsync test: Avoid test failure on MacOS X and AIX.
15490         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15491         EINVAL.
15492
15493 2011-06-18  Bruno Haible  <bruno@clisp.org>
15494
15495         openat, fdopendir tests: Fix link errors.
15496         * modules/openat-tests (Depends-on): Add progname.
15497         * modules/fdopendir-tests (Depends-on): Likewise.
15498         * tests/test-fchownat.c: Include progname.h.
15499         (main): Call set_program_name.
15500         * tests/test-fstatat.c: Include progname.h.
15501         (main): Call set_program_name.
15502         * tests/test-mkdirat.c: Include progname.h.
15503         (main): Call set_program_name.
15504         * tests/test-openat.c: Include progname.h.
15505         (main): Call set_program_name.
15506         * tests/test-unlinkat.c: Include progname.h.
15507         (main): Call set_program_name.
15508         * tests/test-fdopendir.c: Include progname.h.
15509         (main): Call set_program_name.
15510
15511 2011-06-18  Bruno Haible  <bruno@clisp.org>
15512
15513         Doc update.
15514         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15515         HP-UX.
15516         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15517
15518 2011-06-18  Bruno Haible  <bruno@clisp.org>
15519
15520         getcwd tests: Avoid compilation error on HP-UX 11.31.
15521         * modules/getcwd-tests (Depends-on): Add pathmax.
15522         * tests/test-getcwd.c: Include pathmax.h.
15523
15524 2011-06-18  Bruno Haible  <bruno@clisp.org>
15525
15526         isfinite, isinf: Fix link error on AIX 6 and 7.
15527         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15528         needed, also test the macro with a 'float' argument.
15529         * m4/isinf.m4 (gl_ISINF): Likewise.
15530
15531 2011-06-18  Bruno Haible  <bruno@clisp.org>
15532
15533         getloadavg: Don't clobber LIBS. Regression from previous commit.
15534         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15535         AC_CHECK_LIB from here...
15536         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15537         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15538         gl_func_getloadavg_done.
15539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15540
15541 2011-06-18  Bruno Haible  <bruno@clisp.org>
15542
15543         clean-temp: Improve documentation.
15544         * lib/clean-temp.h: Explain better how to use this module.
15545         Reported by John Darrington <john@darrington.wattle.id.au>.
15546
15547 2011-06-17  Bruno Haible  <bruno@clisp.org>
15548
15549         pread, pwrite: Avoid cc warning on AIX.
15550         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15551         (pwrite): Likewise.
15552
15553 2011-06-17  Bruno Haible  <bruno@clisp.org>
15554
15555         spawn-pipe tests: Fix link error.
15556         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15558
15559 2011-06-17  Bruno Haible  <bruno@clisp.org>
15560
15561         Tests: Remove unnecessary dependency.
15562         * modules/canonicalize-tests (Depends-on): Remove progname.
15563         * modules/chown-tests (Depends-on): Likewise.
15564         * modules/dirname-tests (Depends-on): Likewise.
15565         * modules/fdopendir-tests (Depends-on): Likewise.
15566         * modules/fdutimensat-tests (Depends-on): Likewise.
15567         * modules/hash-tests (Depends-on): Likewise.
15568         * modules/lchown-tests (Depends-on): Likewise.
15569         * modules/linkat-tests (Depends-on): Likewise.
15570         * modules/renameat-tests (Depends-on): Likewise.
15571         * modules/spawn-pipe-tests (Depends-on): Likewise.
15572         * modules/utimensat-tests (Depends-on): Likewise.
15573
15574 2011-06-17  Bruno Haible  <bruno@clisp.org>
15575
15576         spawn-pipe tests: Fix link error.
15577         * tests/test-spawn-pipe-child.c: Undefine fflush.
15578
15579 2011-06-17  Bruno Haible  <bruno@clisp.org>
15580
15581         Fix tests link errors.
15582         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15583         * modules/chown-tests (Makefile.am): Don't link test-chown with
15584         LIBINTL.
15585         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15586         LIBINTL.
15587         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15588         LIBINTL.
15589         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15590         LIBINTL.
15591
15592 2011-06-16  Bruno Haible  <bruno@clisp.org>
15593
15594         crypto/gc-sha1: Fix recent regression.
15595         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15596         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15597
15598         crypto/gc-md5: Fix recent regression.
15599         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15600
15601         crypto/gc-md4: Fix recent regression.
15602         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15603         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15604
15605         crypto/gc-arctwo: Fix recent regression.
15606         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15607         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15608
15609         crypto/gc-rijndael: Fix recent regression.
15610         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15611         (configure.ac): Invoke AC_LIBOBJ here.
15612         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15614
15615         crypto/gc-hmac-sha1: Fix recent regression.
15616         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15617         (configure.ac): Invoke AC_LIBOBJ here.
15618         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15620
15621         crypto/gc-hmac-md5: Fix recent regression.
15622         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15623         (configure.ac): Invoke AC_LIBOBJ here.
15624         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15626
15627         crypto/gc-des: Fix recent regression.
15628         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15629         (configure.ac): Invoke AC_LIBOBJ here.
15630         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15632
15633         crypto/gc-arcfour: Fix recent regression.
15634         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15635         (configure.ac): Invoke AC_LIBOBJ here.
15636         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15638
15639 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15640
15641         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15642         After the 2011-05-21 change, this macro requires
15643         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15644         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15645
15646 2011-06-16  Bruno Haible  <bruno@clisp.org>
15647
15648         fprintftime: Move AC_LIBOBJ invocations to module description.
15649         * m4/fprintftime.m4: Remove file.
15650         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15651         (configure.ac): Remove gl_FPRINTFTIME call.
15652         (Makefile.am): Augment lib_SOURCES.
15653         Reported by Jim Meyering.
15654
15655 2011-06-16  Bruno Haible  <bruno@clisp.org>
15656
15657         tmpfile-safer: Finish 2011-05-23 commit.
15658         * m4/stdio-safer.m4: Really remove file.
15659         Reported by Jim Meyering.
15660
15661 2011-06-16  Bruno Haible  <bruno@clisp.org>
15662
15663         syntax-check: Fix typo.
15664         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15665         printf-posix.m4.
15666         Reported by Jim Meyering.
15667
15668 2011-06-13  Jim Meyering  <meyering@redhat.com>
15669
15670         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15671         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15672
15673 2011-05-23  Bruno Haible  <bruno@clisp.org>
15674
15675         yesno: Move AC_LIBOBJ invocations to module description.
15676         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15677         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15678
15679 2011-05-23  Bruno Haible  <bruno@clisp.org>
15680
15681         xstrtol: Move AC_LIBOBJ invocations to module description.
15682         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15683         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15684
15685 2011-05-23  Bruno Haible  <bruno@clisp.org>
15686
15687         xstrtold: Move AC_LIBOBJ invocations to module description.
15688         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15689         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15690
15691 2011-05-23  Bruno Haible  <bruno@clisp.org>
15692
15693         xstrtod: Move AC_LIBOBJ invocations to module description.
15694         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15695         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15696
15697 2011-05-23  Bruno Haible  <bruno@clisp.org>
15698
15699         xnanosleep: Move AC_LIBOBJ invocations to module description.
15700         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15701         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15702
15703 2011-05-23  Bruno Haible  <bruno@clisp.org>
15704
15705         xgetcwd: Move AC_LIBOBJ invocations to module description.
15706         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15707         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15708
15709 2011-05-23  Bruno Haible  <bruno@clisp.org>
15710
15711         xalloc: Move AC_LIBOBJ invocations to module description.
15712         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15713         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15714
15715 2011-05-23  Bruno Haible  <bruno@clisp.org>
15716
15717         write-any-file: Move AC_LIBOBJ invocations to module description.
15718         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15719         invocation.
15720         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15721
15722 2011-05-23  Bruno Haible  <bruno@clisp.org>
15723
15724         utimens: Move AC_LIBOBJ invocations to module description.
15725         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15726         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15727
15728 2011-05-23  Bruno Haible  <bruno@clisp.org>
15729
15730         utimecmp: Move AC_LIBOBJ invocations to module description.
15731         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15732         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15733
15734 2011-05-23  Bruno Haible  <bruno@clisp.org>
15735
15736         userspec: Move AC_LIBOBJ invocations to module description.
15737         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15738         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15739
15740 2011-05-23  Bruno Haible  <bruno@clisp.org>
15741
15742         unlinkdir: Move AC_LIBOBJ invocations to module description.
15743         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15744         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15745
15746 2011-05-23  Bruno Haible  <bruno@clisp.org>
15747
15748         unistd-safer: Move AC_LIBOBJ invocations to module description.
15749         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15750         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15751
15752 2011-05-23  Bruno Haible  <bruno@clisp.org>
15753
15754         tempname: Move AC_LIBOBJ invocations to module description.
15755         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15756         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15757
15758 2011-05-23  Bruno Haible  <bruno@clisp.org>
15759
15760         strftime: Move AC_LIBOBJ invocations to module description.
15761         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15762         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15763
15764 2011-05-23  Bruno Haible  <bruno@clisp.org>
15765
15766         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15767         * m4/stdlib-safer.m4: Remove file.
15768         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15769         (configure.ac): Remove gl_STDLIB_SAFER call.
15770         (Makefile.am): Augment lib_SOURCES.
15771
15772 2011-05-23  Bruno Haible  <bruno@clisp.org>
15773
15774         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15775         * m4/stdio-safer.m4: Remove file.
15776         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15777         (configure.ac): Remove gl_TMPFILE_SAFER call.
15778         (Makefile.am): Augment lib_SOURCES.
15779
15780 2011-05-23  Bruno Haible  <bruno@clisp.org>
15781
15782         popen-safer: Move AC_LIBOBJ invocations to module description.
15783         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15784         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15785         (configure.ac): Remove gl_POPEN_SAFER call.
15786         (Makefile.am): Augment lib_SOURCES.
15787
15788 2011-05-23  Bruno Haible  <bruno@clisp.org>
15789
15790         freopen-safer: Move AC_LIBOBJ invocations to module description.
15791         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15792         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15793         (configure.ac): Remove gl_FREOPEN_SAFER call.
15794         (Makefile.am): Augment lib_SOURCES.
15795
15796 2011-05-23  Bruno Haible  <bruno@clisp.org>
15797
15798         fopen-safer: Move AC_LIBOBJ invocations to module description.
15799         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15800         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15801         (configure.ac): Remove gl_FOPEN_SAFER call.
15802         (Makefile.am): Augment lib_SOURCES.
15803
15804 2011-05-23  Bruno Haible  <bruno@clisp.org>
15805
15806         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15807         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15808         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15809
15810 2011-05-23  Bruno Haible  <bruno@clisp.org>
15811
15812         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15813         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15814         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15815
15816 2011-05-23  Bruno Haible  <bruno@clisp.org>
15817
15818         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15819         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15820         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15821
15822 2011-05-23  Bruno Haible  <bruno@clisp.org>
15823
15824         settime: Move AC_LIBOBJ invocations to module description.
15825         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15826         * modules/settime (Makefile.am): Augment lib_SOURCES.
15827
15828 2011-05-23  Bruno Haible  <bruno@clisp.org>
15829
15830         savedir: Move AC_LIBOBJ invocations to module description.
15831         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15832         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15833
15834 2011-05-23  Bruno Haible  <bruno@clisp.org>
15835
15836         save-cwd: Move AC_LIBOBJ invocations to module description.
15837         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15838         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15839
15840 2011-05-23  Bruno Haible  <bruno@clisp.org>
15841
15842         same: Move AC_LIBOBJ invocations to module description.
15843         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15844         * modules/same (Makefile.am): Augment lib_SOURCES.
15845
15846 2011-05-23  Bruno Haible  <bruno@clisp.org>
15847
15848         safe-write: Move AC_LIBOBJ invocations to module description.
15849         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15850         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15851         instead of gl_SAFE_WRITE.
15852         (Makefile.am): Augment lib_SOURCES.
15853
15854 2011-05-23  Bruno Haible  <bruno@clisp.org>
15855
15856         safe-read: Move AC_LIBOBJ invocations to module description.
15857         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15858         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15859         of gl_SAFE_READ.
15860         (Makefile.am): Augment lib_SOURCES.
15861
15862 2011-05-23  Bruno Haible  <bruno@clisp.org>
15863
15864         safe-alloc: Move AC_LIBOBJ invocations to module description.
15865         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15866         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15867
15868 2011-05-23  Bruno Haible  <bruno@clisp.org>
15869
15870         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15871         * m4/rijndael.m4: Remove file.
15872         * modules/crypto/rijndael (Files): Remove it.
15873         (configure.ac): Remove gl_RIJNDAEL call.
15874         (Makefile.am): Augment lib_SOURCES.
15875
15876 2011-05-23  Bruno Haible  <bruno@clisp.org>
15877
15878         readtokens: Move AC_LIBOBJ invocations to module description.
15879         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15880         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15881
15882 2011-05-23  Bruno Haible  <bruno@clisp.org>
15883
15884         read-file: Move AC_LIBOBJ invocations to module description.
15885         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15886         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15887         of gl_FUNC_READ_FILE.
15888         (Makefile.am): Augment lib_SOURCES.
15889
15890 2011-05-23  Bruno Haible  <bruno@clisp.org>
15891
15892         quotearg: Move AC_LIBOBJ invocations to module description.
15893         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15894         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15895
15896 2011-05-23  Bruno Haible  <bruno@clisp.org>
15897
15898         quote: Move AC_LIBOBJ invocations to module description.
15899         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15900         * modules/quote (Makefile.am): Augment lib_SOURCES.
15901
15902 2011-05-23  Bruno Haible  <bruno@clisp.org>
15903
15904         posixver: Move AC_LIBOBJ invocations to module description.
15905         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15906         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15907
15908 2011-05-23  Bruno Haible  <bruno@clisp.org>
15909
15910         posixtm: Move AC_LIBOBJ invocations to module description.
15911         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15912         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15913
15914 2011-05-23  Bruno Haible  <bruno@clisp.org>
15915
15916         physmem: Move AC_LIBOBJ invocations to module description.
15917         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15918         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15919
15920 2011-05-23  Bruno Haible  <bruno@clisp.org>
15921
15922         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15923         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15924         invocation.
15925         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15926
15927 2011-05-23  Bruno Haible  <bruno@clisp.org>
15928
15929         mpsort: Move AC_LIBOBJ invocations to module description.
15930         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15931         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15932
15933 2011-05-23  Bruno Haible  <bruno@clisp.org>
15934
15935         modechange: Move AC_LIBOBJ invocations to module description.
15936         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15937         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15938
15939 2011-05-23  Bruno Haible  <bruno@clisp.org>
15940
15941         mkdir-p: Move AC_LIBOBJ invocations to module description.
15942         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15943         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15944
15945 2011-05-23  Bruno Haible  <bruno@clisp.org>
15946
15947         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15948         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15949         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15950
15951 2011-05-23  Bruno Haible  <bruno@clisp.org>
15952
15953         mgetgroups: Move AC_LIBOBJ invocations to module description.
15954         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15955         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15956
15957 2011-05-23  Bruno Haible  <bruno@clisp.org>
15958
15959         memxor: Move AC_LIBOBJ invocations to module description.
15960         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15961         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15962
15963 2011-05-23  Bruno Haible  <bruno@clisp.org>
15964
15965         memcoll: Move AC_LIBOBJ invocations to module description.
15966         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15967         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15968
15969 2011-05-23  Bruno Haible  <bruno@clisp.org>
15970
15971         memcasecmp: Move AC_LIBOBJ invocations to module description.
15972         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15973         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15974
15975 2011-05-23  Bruno Haible  <bruno@clisp.org>
15976
15977         crypto/md5: Move AC_LIBOBJ invocations to module description.
15978         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15979         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15980
15981 2011-05-23  Bruno Haible  <bruno@clisp.org>
15982
15983         crypto/md4: Move AC_LIBOBJ invocations to module description.
15984         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15985         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15986
15987 2011-05-23  Bruno Haible  <bruno@clisp.org>
15988
15989         crypto/md2: Move AC_LIBOBJ invocations to module description.
15990         * m4/md2.m4: Remove file.
15991         * modules/crypto/md2 (Files): Remove it.
15992         (configure.ac): Remove gl_MD2 call.
15993         (Makefile.am): Augment lib_SOURCES.
15994
15995 2011-05-23  Bruno Haible  <bruno@clisp.org>
15996
15997         long-options: Move AC_LIBOBJ invocations to module description.
15998         * m4/long-options.m4: Remove file.
15999         * modules/long-options (Files): Remove it.
16000         (configure.ac): Remove gl_LONG_OPTIONS call.
16001         (Makefile.am): Augment lib_SOURCES.
16002
16003 2011-05-23  Bruno Haible  <bruno@clisp.org>
16004
16005         i-ring: Move AC_LIBOBJ invocations to module description.
16006         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16007         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16008
16009 2011-05-23  Bruno Haible  <bruno@clisp.org>
16010
16011         idcache: Move AC_LIBOBJ invocations to module description.
16012         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16013         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16014
16015 2011-05-23  Bruno Haible  <bruno@clisp.org>
16016
16017         human: Move AC_LIBOBJ invocations to module description.
16018         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16019         * modules/human (Makefile.am): Augment lib_SOURCES.
16020
16021 2011-05-23  Bruno Haible  <bruno@clisp.org>
16022
16023         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16024         * m4/hmac-sha1.m4: Remove file.
16025         * modules/crypto/hmac-sha1 (Files): Remove it.
16026         (configure.ac): Remove gl_HMAC_SHA1 call.
16027         (Makefile.am): Augment lib_SOURCES.
16028
16029 2011-05-23  Bruno Haible  <bruno@clisp.org>
16030
16031         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16032         * m4/hmac-md5.m4: Remove file.
16033         * modules/crypto/hmac-md5 (Files): Remove it.
16034         (configure.ac): Remove gl_HMAC_MD5 call.
16035         (Makefile.am): Augment lib_SOURCES.
16036
16037 2011-05-23  Bruno Haible  <bruno@clisp.org>
16038
16039         hash: Move AC_LIBOBJ invocations to module description.
16040         * m4/hash.m4: Remove file.
16041         * modules/hash (Files): Remove it.
16042         (configure.ac): Remove gl_HASH call.
16043         (Makefile.am): Augment lib_SOURCES.
16044
16045 2011-05-23  Bruno Haible  <bruno@clisp.org>
16046
16047         hard-locale: Move AC_LIBOBJ invocations to module description.
16048         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16049         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16050
16051 2011-05-23  Bruno Haible  <bruno@clisp.org>
16052
16053         getugroups: Move AC_LIBOBJ invocations to module description.
16054         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16055         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16056
16057 2011-05-23  Bruno Haible  <bruno@clisp.org>
16058
16059         gettime: Move AC_LIBOBJ invocations to module description.
16060         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16061         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16062
16063 2011-05-23  Bruno Haible  <bruno@clisp.org>
16064
16065         getndelim2: Move AC_LIBOBJ invocations to module description.
16066         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16067         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16068
16069 2011-05-23  Bruno Haible  <bruno@clisp.org>
16070
16071         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16072         * m4/gc-pbkdf2-sha1.m4: Remove file.
16073         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16074         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16075         (Makefile.am): Augment lib_SOURCES.
16076
16077 2011-05-23  Bruno Haible  <bruno@clisp.org>
16078
16079         fts: Move AC_LIBOBJ invocations to module description.
16080         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16081         * modules/fts (configure.ac): ... to here.
16082
16083 2011-05-23  Bruno Haible  <bruno@clisp.org>
16084
16085         file-type: Move AC_LIBOBJ invocations to module description.
16086         * m4/file-type.m4: Remove file.
16087         * modules/file-type (Files): Remove it.
16088         (configure.ac): Remove gl_FILE_TYPE call.
16089         (Makefile.am): Augment lib_SOURCES.
16090
16091 2011-05-23  Bruno Haible  <bruno@clisp.org>
16092
16093         filenamecat*: Respect rules for use of AC_LIBOBJ.
16094         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16095         Remove AC_LIBOBJ invocation.
16096         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16097         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16098
16099 2011-05-23  Bruno Haible  <bruno@clisp.org>
16100
16101         filemode: Move AC_LIBOBJ invocations to module description.
16102         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16103         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16104
16105 2011-05-23  Bruno Haible  <bruno@clisp.org>
16106
16107         openat-safer: Move AC_LIBOBJ invocations to module description.
16108         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16109         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16110
16111 2011-05-23  Bruno Haible  <bruno@clisp.org>
16112
16113         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16114         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16115         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16116
16117 2011-05-23  Bruno Haible  <bruno@clisp.org>
16118
16119         exclude: Move AC_LIBOBJ invocations to module description.
16120         * m4/exclude.m4: Remove file.
16121         * modules/exclude (Files): Remove it.
16122         (configure.ac): Remove gl_EXCLUDE call.
16123         (Makefile.am): Augment lib_SOURCES.
16124
16125 2011-05-23  Bruno Haible  <bruno@clisp.org>
16126
16127         dirname*: Respect rules for use of AC_LIBOBJ.
16128         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16129         invocations.
16130         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16131         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16132
16133 2011-05-23  Bruno Haible  <bruno@clisp.org>
16134
16135         dirent-safer: Move AC_LIBOBJ invocations to module description.
16136         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16137         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16138
16139 2011-05-23  Bruno Haible  <bruno@clisp.org>
16140
16141         crypto/des: Move AC_LIBOBJ invocations to module description.
16142         * m4/des.m4: Remove file.
16143         * modules/crypto/des (Files): Remove it.
16144         (configure.ac): Remove gl_DES call.
16145         (Makefile.am): Augment lib_SOURCES.
16146
16147 2011-05-23  Bruno Haible  <bruno@clisp.org>
16148
16149         cycle-check: Move AC_LIBOBJ invocations to module description.
16150         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16151         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16152
16153 2011-05-23  Bruno Haible  <bruno@clisp.org>
16154
16155         c-strtold: Move AC_LIBOBJ invocations to module description.
16156         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16157         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16158
16159 2011-05-23  Bruno Haible  <bruno@clisp.org>
16160
16161         c-strtod: Move AC_LIBOBJ invocations to module description.
16162         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16163         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16164
16165 2011-05-23  Bruno Haible  <bruno@clisp.org>
16166
16167         crc: Move AC_LIBOBJ invocations to module description.
16168         * m4/crc.m4: Remove file.
16169         * modules/crc (Files): Remove it.
16170         (configure.ac): Remove gl_CRC call.
16171         (Makefile.am): Augment lib_SOURCES.
16172
16173 2011-05-23  Bruno Haible  <bruno@clisp.org>
16174
16175         close-stream: Move AC_LIBOBJ invocations to module description.
16176         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16177         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16178
16179 2011-05-23  Bruno Haible  <bruno@clisp.org>
16180
16181         closeout: Move AC_LIBOBJ invocations to module description.
16182         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16183         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16184
16185 2011-05-23  Bruno Haible  <bruno@clisp.org>
16186
16187         closein: Move AC_LIBOBJ invocations to module description.
16188         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16189         * modules/closein (Makefile.am): Augment lib_SOURCES.
16190
16191 2011-05-23  Bruno Haible  <bruno@clisp.org>
16192
16193         cloexec: Move AC_LIBOBJ invocations to module description.
16194         * m4/cloexec.m4: Remove file.
16195         * modules/cloexec (Files): Remove it.
16196         (configure.ac): Remove gl_CLOEXEC call.
16197         (Makefile.am): Augment lib_SOURCES.
16198
16199 2011-05-23  Bruno Haible  <bruno@clisp.org>
16200
16201         check-version: Move AC_LIBOBJ invocations to module description.
16202         * m4/check-version.m4: Remove file.
16203         * modules/check-version (Files): Remove it.
16204         (configure.ac): Remove gl_CHECK_VERSION call.
16205         (Makefile.am): Augment lib_SOURCES.
16206
16207 2011-05-23  Bruno Haible  <bruno@clisp.org>
16208
16209         chdir-safer: Move AC_LIBOBJ invocations to module description.
16210         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16211         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16212
16213 2011-05-23  Bruno Haible  <bruno@clisp.org>
16214
16215         canonicalize: Move AC_LIBOBJ invocations to module description.
16216         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16217         AC_LIBOBJ invocation.
16218         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16219
16220 2011-05-23  Bruno Haible  <bruno@clisp.org>
16221
16222         canon-host: Move AC_LIBOBJ invocations to module description.
16223         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16224         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16225         instead of gl_CANON_HOST.
16226         (Makefile.am): Augment lib_SOURCES.
16227
16228 2011-05-23  Bruno Haible  <bruno@clisp.org>
16229
16230         backupfile: Move AC_LIBOBJ invocations to module description.
16231         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16232         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16233
16234 2011-05-23  Bruno Haible  <bruno@clisp.org>
16235
16236         argmatch: Move AC_LIBOBJ invocations to module description.
16237         * m4/argmatch.m4: Remove file.
16238         * modules/argmatch (Files): Remove it.
16239         (configure.ac): Remove gl_ARGMATCH call.
16240         (Makefile.am): Augment lib_SOURCES.
16241
16242 2011-05-23  Bruno Haible  <bruno@clisp.org>
16243
16244         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16245         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16246         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16247
16248 2011-05-23  Bruno Haible  <bruno@clisp.org>
16249
16250         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16251         * m4/arcfour.m4: Remove file.
16252         * modules/crypto/arcfour (Files): Remove it.
16253         (configure.ac): Remove gl_ARCFOUR call.
16254         (Makefile.am): Augment lib_SOURCES.
16255
16256 2011-05-22  Bruno Haible  <bruno@clisp.org>
16257
16258         write: Move AC_LIBOBJ invocations to module description.
16259         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16260         * modules/write (configure.ac): ... to here.
16261
16262 2011-05-22  Bruno Haible  <bruno@clisp.org>
16263
16264         wmemset: Move AC_LIBOBJ invocations to module description.
16265         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16266         here...
16267         * modules/wmemset (configure.ac): ... to here.
16268
16269 2011-05-22  Bruno Haible  <bruno@clisp.org>
16270
16271         wmemmove: Move AC_LIBOBJ invocations to module description.
16272         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16273         here...
16274         * modules/wmemmove (configure.ac): ... to here.
16275
16276 2011-05-22  Bruno Haible  <bruno@clisp.org>
16277
16278         wmemcpy: Move AC_LIBOBJ invocations to module description.
16279         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16280         here...
16281         * modules/wmemcpy (configure.ac): ... to here.
16282
16283 2011-05-22  Bruno Haible  <bruno@clisp.org>
16284
16285         wmemcmp: Move AC_LIBOBJ invocations to module description.
16286         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16287         here...
16288         * modules/wmemcmp (configure.ac): ... to here.
16289
16290 2011-05-22  Bruno Haible  <bruno@clisp.org>
16291
16292         wmemchr: Move AC_LIBOBJ invocations to module description.
16293         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16294         here...
16295         * modules/wmemchr (configure.ac): ... to here.
16296
16297 2011-05-22  Bruno Haible  <bruno@clisp.org>
16298
16299         wcswidth: Move AC_LIBOBJ invocations to module description.
16300         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16301         here...
16302         * modules/wcswidth (configure.ac): ... to here.
16303
16304 2011-05-22  Bruno Haible  <bruno@clisp.org>
16305
16306         wcwidth: Respect rules for use of AC_LIBOBJ.
16307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16308         invocation from here...
16309         * modules/wcwidth (configure.ac): ... to here.
16310         (Depends-on): Update conditions.
16311
16312 2011-05-22  Bruno Haible  <bruno@clisp.org>
16313
16314         wctype: Move AC_LIBOBJ invocations to module description.
16315         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16316         invocation from here...
16317         * modules/wctype (configure.ac): ... to here.
16318         (Depends-on): Update conditions.
16319
16320 2011-05-22  Bruno Haible  <bruno@clisp.org>
16321
16322         wctrans: Move AC_LIBOBJ invocations to module description.
16323         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16324         invocation from here...
16325         * modules/wctrans (configure.ac): ... to here.
16326
16327 2011-05-22  Bruno Haible  <bruno@clisp.org>
16328
16329         wctomb: Move AC_LIBOBJ invocations to module description.
16330         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16331         invocations from here...
16332         * modules/wctomb (configure.ac): ... to here.
16333
16334 2011-05-22  Bruno Haible  <bruno@clisp.org>
16335
16336         wctob: Move AC_LIBOBJ invocations to module description.
16337         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16338         gl_PREREQ_WCTOB invocations from here...
16339         * modules/wctob (configure.ac): ... to here.
16340         (Depends-on): Update conditions.
16341
16342 2011-05-22  Bruno Haible  <bruno@clisp.org>
16343
16344         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16345         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16346         here...
16347         * modules/wcsxfrm (configure.ac): ... to here.
16348
16349 2011-05-22  Bruno Haible  <bruno@clisp.org>
16350
16351         wcstok: Move AC_LIBOBJ invocations to module description.
16352         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16353         * modules/wcstok (configure.ac): ... to here.
16354
16355 2011-05-22  Bruno Haible  <bruno@clisp.org>
16356
16357         wcsstr: Move AC_LIBOBJ invocations to module description.
16358         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16359         * modules/wcsstr (configure.ac): ... to here.
16360
16361 2011-05-22  Bruno Haible  <bruno@clisp.org>
16362
16363         wcsspn: Move AC_LIBOBJ invocations to module description.
16364         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16365         * modules/wcsspn (configure.ac): ... to here.
16366
16367 2011-05-22  Bruno Haible  <bruno@clisp.org>
16368
16369         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16370         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16371         gl_PREREQ_WCSRTOMBS invocations from here...
16372         * modules/wcsrtombs (configure.ac): ... to here.
16373
16374 2011-05-22  Bruno Haible  <bruno@clisp.org>
16375
16376         wcsrchr: Move AC_LIBOBJ invocations to module description.
16377         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16378         here...
16379         * modules/wcsrchr (configure.ac): ... to here.
16380
16381 2011-05-22  Bruno Haible  <bruno@clisp.org>
16382
16383         wcspbrk: Move AC_LIBOBJ invocations to module description.
16384         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16385         here...
16386         * modules/wcspbrk (configure.ac): ... to here.
16387
16388 2011-05-22  Bruno Haible  <bruno@clisp.org>
16389
16390         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16391         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16392         gl_PREREQ_WCSNRTOMBS invocations from here...
16393         * modules/wcsnrtombs (configure.ac): ... to here.
16394
16395 2011-05-22  Bruno Haible  <bruno@clisp.org>
16396
16397         wcsnlen: Move AC_LIBOBJ invocations to module description.
16398         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16399         here...
16400         * modules/wcsnlen (configure.ac): ... to here.
16401
16402 2011-05-22  Bruno Haible  <bruno@clisp.org>
16403
16404         wcsncpy: Move AC_LIBOBJ invocations to module description.
16405         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16406         here...
16407         * modules/wcsncpy (configure.ac): ... to here.
16408
16409 2011-05-22  Bruno Haible  <bruno@clisp.org>
16410
16411         wcsncmp: Move AC_LIBOBJ invocations to module description.
16412         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16413         here...
16414         * modules/wcsncmp (configure.ac): ... to here.
16415
16416 2011-05-22  Bruno Haible  <bruno@clisp.org>
16417
16418         wcsncat: Move AC_LIBOBJ invocations to module description.
16419         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16420         here...
16421         * modules/wcsncat (configure.ac): ... to here.
16422
16423 2011-05-22  Bruno Haible  <bruno@clisp.org>
16424
16425         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16426         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16427         from here...
16428         * modules/wcsncasecmp (configure.ac): ... to here.
16429
16430 2011-05-22  Bruno Haible  <bruno@clisp.org>
16431
16432         wcslen: Move AC_LIBOBJ invocations to module description.
16433         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16434         * modules/wcslen (configure.ac): ... to here.
16435
16436 2011-05-22  Bruno Haible  <bruno@clisp.org>
16437
16438         wcsdup: Move AC_LIBOBJ invocations to module description.
16439         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16440         * modules/wcsdup (configure.ac): ... to here.
16441
16442 2011-05-22  Bruno Haible  <bruno@clisp.org>
16443
16444         wcscspn: Move AC_LIBOBJ invocations to module description.
16445         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16446         here...
16447         * modules/wcscspn (configure.ac): ... to here.
16448
16449 2011-05-22  Bruno Haible  <bruno@clisp.org>
16450
16451         wcscpy: Move AC_LIBOBJ invocations to module description.
16452         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16453         * modules/wcscpy (configure.ac): ... to here.
16454
16455 2011-05-22  Bruno Haible  <bruno@clisp.org>
16456
16457         wcscoll: Move AC_LIBOBJ invocations to module description.
16458         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16459         here...
16460         * modules/wcscoll (configure.ac): ... to here.
16461
16462 2011-05-22  Bruno Haible  <bruno@clisp.org>
16463
16464         wcscmp: Move AC_LIBOBJ invocations to module description.
16465         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16466         * modules/wcscmp (configure.ac): ... to here.
16467
16468 2011-05-22  Bruno Haible  <bruno@clisp.org>
16469
16470         wcschr: Move AC_LIBOBJ invocations to module description.
16471         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16472         * modules/wcschr (configure.ac): ... to here.
16473
16474 2011-05-22  Bruno Haible  <bruno@clisp.org>
16475
16476         wcscat: Move AC_LIBOBJ invocations to module description.
16477         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16478         * modules/wcscat (configure.ac): ... to here.
16479
16480 2011-05-22  Bruno Haible  <bruno@clisp.org>
16481
16482         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16483         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16484         here...
16485         * modules/wcscasecmp (configure.ac): ... to here.
16486
16487 2011-05-22  Bruno Haible  <bruno@clisp.org>
16488
16489         wcrtomb: Move AC_LIBOBJ invocations to module description.
16490         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16491         invocations from here...
16492         * modules/wcrtomb (configure.ac): ... to here.
16493
16494 2011-05-22  Bruno Haible  <bruno@clisp.org>
16495
16496         wcpncpy: Move AC_LIBOBJ invocations to module description.
16497         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16498         here...
16499         * modules/wcpncpy (configure.ac): ... to here.
16500
16501 2011-05-22  Bruno Haible  <bruno@clisp.org>
16502
16503         wcpcpy: Move AC_LIBOBJ invocations to module description.
16504         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16505         * modules/wcpcpy (configure.ac): ... to here.
16506
16507 2011-05-22  Bruno Haible  <bruno@clisp.org>
16508
16509         waitpid: Move AC_LIBOBJ invocations to module description.
16510         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16511         invocation from here...
16512         * modules/waitpid (configure.ac): ... to here.
16513
16514 2011-05-22  Bruno Haible  <bruno@clisp.org>
16515
16516         utimensat: Move AC_LIBOBJ invocations to module description.
16517         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16518         here...
16519         * modules/utimensat (configure.ac): ... to here.
16520
16521 2011-05-22  Bruno Haible  <bruno@clisp.org>
16522
16523         usleep: Move AC_LIBOBJ invocations to module description.
16524         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16525         here...
16526         * modules/usleep (configure.ac): ... to here.
16527
16528 2011-05-22  Bruno Haible  <bruno@clisp.org>
16529
16530         unlockpt: Move AC_LIBOBJ invocations to module description.
16531         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16532         gl_PREREQ_UNLOCKPT invocations from here...
16533         * modules/unlockpt (configure.ac): ... to here.
16534
16535 2011-05-22  Bruno Haible  <bruno@clisp.org>
16536
16537         unlink: Respect rules for use of AC_LIBOBJ.
16538         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16539         * modules/unlink (configure.ac): ... to here.
16540
16541 2011-05-22  Bruno Haible  <bruno@clisp.org>
16542
16543         uname: Move AC_LIBOBJ invocations to module description.
16544         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16546         here...
16547         * modules/uname (configure.ac): ... to here.
16548
16549 2011-05-22  Bruno Haible  <bruno@clisp.org>
16550
16551         ttyname_r: Move AC_LIBOBJ invocations to module description.
16552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16553         gl_PREREQ_TTYNAME_R invocations from here...
16554         * modules/ttyname_r (configure.ac): ... to here.
16555
16556 2011-05-22  Bruno Haible  <bruno@clisp.org>
16557
16558         tsearch: Move AC_LIBOBJ invocations to module description.
16559         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16560         invocations from here...
16561         * modules/tsearch (configure.ac): ... to here.
16562
16563 2011-05-22  Bruno Haible  <bruno@clisp.org>
16564
16565         towctrans: Move AC_LIBOBJ invocations to module description.
16566         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16567         AC_LIBOBJ invocation from here...
16568         * modules/towctrans (configure.ac): ... to here.
16569
16570 2011-05-22  Bruno Haible  <bruno@clisp.org>
16571
16572         tmpfile: Move AC_LIBOBJ invocations to module description.
16573         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16574         invocations from here...
16575         * modules/tmpfile (configure.ac): ... to here.
16576
16577 2011-05-22  Bruno Haible  <bruno@clisp.org>
16578
16579         times: Move AC_LIBOBJ invocations to module description.
16580         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16581         * modules/times (configure.ac): ... to here.
16582
16583 2011-05-22  Bruno Haible  <bruno@clisp.org>
16584
16585         time_r: Move AC_LIBOBJ invocations to module description.
16586         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16587         invocations from here...
16588         * modules/time_r (configure.ac): ... to here.
16589
16590 2011-05-22  Bruno Haible  <bruno@clisp.org>
16591
16592         timegm: Move AC_LIBOBJ invocations to module description.
16593         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16594         invocations from here...
16595         * modules/timegm (configure.ac): ... to here.
16596
16597 2011-05-22  Bruno Haible  <bruno@clisp.org>
16598
16599         tcgetsid: Move AC_LIBOBJ invocations to module description.
16600         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16601         and gl_PREREQ_TCGETSID invocations from here...
16602         * modules/tcgetsid (configure.ac): ... to here.
16603         (Depends-on): Update conditions.
16604
16605 2011-05-22  Bruno Haible  <bruno@clisp.org>
16606
16607         symlinkat: Move AC_LIBOBJ invocations to module description.
16608         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16609         here...
16610         * modules/symlinkat (configure.ac): ... to here.
16611
16612 2011-05-22  Bruno Haible  <bruno@clisp.org>
16613
16614         symlink: Move AC_LIBOBJ invocations to module description.
16615         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16616         here...
16617         * modules/symlink (configure.ac): ... to here.
16618
16619 2011-05-22  Bruno Haible  <bruno@clisp.org>
16620
16621         strverscmp: Move AC_LIBOBJ invocations to module description.
16622         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16624         from here...
16625         * modules/strverscmp (configure.ac): ... to here.
16626
16627 2011-05-22  Bruno Haible  <bruno@clisp.org>
16628
16629         strtok_r: Move AC_LIBOBJ invocations to module description.
16630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16631         and gl_PREREQ_STRTOK_R invocations from here...
16632         * modules/strtok_r (configure.ac): ... to here.
16633         (Depends-on): Update conditions.
16634
16635 2011-05-22  Bruno Haible  <bruno@clisp.org>
16636
16637         strtoumax: Move AC_LIBOBJ invocations to module description.
16638         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16640         from here...
16641         * modules/strtoumax (configure.ac): ... to here.
16642
16643 2011-05-22  Bruno Haible  <bruno@clisp.org>
16644
16645         strtoimax: Move AC_LIBOBJ invocations to module description.
16646         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16648         from here...
16649         * modules/strtoimax (configure.ac): ... to here.
16650
16651 2011-05-22  Bruno Haible  <bruno@clisp.org>
16652
16653         strtoull: Move AC_LIBOBJ invocations to module description.
16654         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16656         from here...
16657         * modules/strtoull (configure.ac): ... to here.
16658
16659 2011-05-22  Bruno Haible  <bruno@clisp.org>
16660
16661         strtoll: Move AC_LIBOBJ invocations to module description.
16662         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16664         here...
16665         * modules/strtoll (configure.ac): ... to here.
16666
16667 2011-05-22  Bruno Haible  <bruno@clisp.org>
16668
16669         strtoul: Move AC_LIBOBJ invocations to module description.
16670         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16671         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16672         * modules/strtoul (configure.ac): ... to here.
16673
16674 2011-05-22  Bruno Haible  <bruno@clisp.org>
16675
16676         strtol: Move AC_LIBOBJ invocations to module description.
16677         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16678         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16679         * modules/strtol (configure.ac): ... to here.
16680
16681 2011-05-22  Bruno Haible  <bruno@clisp.org>
16682
16683         strtod: Move AC_LIBOBJ invocations to module description.
16684         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16685         invocations from here...
16686         * modules/strtod (configure.ac): ... to here.
16687
16688 2011-05-22  Bruno Haible  <bruno@clisp.org>
16689
16690         strstr*: Move AC_LIBOBJ invocations to module description.
16691         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16692         invocations from here...
16693         * modules/strstr-simple (configure.ac): ... to here.
16694         * modules/strstr (configure.ac): ... and here.
16695
16696 2011-05-22  Bruno Haible  <bruno@clisp.org>
16697
16698         strsignal: Move AC_LIBOBJ invocations to module description.
16699         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16700         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16701         * modules/strsignal (configure.ac): ... to here.
16702         (Depends-on): Update conditions.
16703
16704 2011-05-22  Bruno Haible  <bruno@clisp.org>
16705
16706         strsep: Move AC_LIBOBJ invocations to module description.
16707         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16709         here...
16710         * modules/strsep (configure.ac): ... to here.
16711
16712 2011-05-22  Bruno Haible  <bruno@clisp.org>
16713
16714         strptime: Move AC_LIBOBJ invocations to module description.
16715         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16716         gl_PREREQ_STRPTIME invocations from here...
16717         * modules/strptime (configure.ac): ... to here.
16718
16719 2011-05-22  Bruno Haible  <bruno@clisp.org>
16720
16721         strpbrk: Move AC_LIBOBJ invocations to module description.
16722         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16724         here...
16725         * modules/strpbrk (configure.ac): ... to here.
16726
16727 2011-05-22  Bruno Haible  <bruno@clisp.org>
16728
16729         strnlen: Move AC_LIBOBJ invocations to module description.
16730         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16731         invocations from here...
16732         * modules/strnlen (configure.ac): ... to here.
16733
16734 2011-05-22  Bruno Haible  <bruno@clisp.org>
16735
16736         strndup: Move AC_LIBOBJ invocations to module description.
16737         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16738         invocations from here...
16739         * modules/strndup (configure.ac): ... to here.
16740         (Depends-on): Update conditions.
16741
16742 2011-05-22  Bruno Haible  <bruno@clisp.org>
16743
16744         strncat: Move AC_LIBOBJ invocations to module description.
16745         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16746         invocations from here...
16747         * modules/strncat (configure.ac): ... to here.
16748
16749 2011-05-22  Bruno Haible  <bruno@clisp.org>
16750
16751         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16752         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16753         invocations from here...
16754         * modules/strdup (configure.ac): ... to here.
16755         * modules/strdup-posix (configure.ac): ... and here.
16756
16757 2011-05-22  Bruno Haible  <bruno@clisp.org>
16758
16759         strcspn: Move AC_LIBOBJ invocations to module description.
16760         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16762         here...
16763         * modules/strcspn (configure.ac): ... to here.
16764
16765 2011-05-22  Bruno Haible  <bruno@clisp.org>
16766
16767         strchrnul: Move AC_LIBOBJ invocations to module description.
16768         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16769         gl_PREREQ_STRCHRNUL invocations from here...
16770         * modules/strchrnul (configure.ac): ... to here.
16771
16772 2011-05-22  Bruno Haible  <bruno@clisp.org>
16773
16774         strcasestr*: Move AC_LIBOBJ invocations to module description.
16775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16776         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16777         * modules/strcasestr-simple (configure.ac): ... to here.
16778         * modules/strcasestr (configure.ac): ... and here.
16779
16780 2011-05-22  Bruno Haible  <bruno@clisp.org>
16781
16782         strcase: Move AC_LIBOBJ invocations to module description.
16783         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16784         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16785         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16786         gl_PREREQ_STRNCASECMP invocations from here...
16787         * modules/strcase (configure.ac): ... to here.
16788
16789 2011-05-22  Bruno Haible  <bruno@clisp.org>
16790
16791         stpncpy: Move AC_LIBOBJ invocations to module description.
16792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16793         here...
16794         * modules/stpncpy (configure.ac): ... to here.
16795
16796 2011-05-22  Bruno Haible  <bruno@clisp.org>
16797
16798         stpcpy: Move AC_LIBOBJ invocations to module description.
16799         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16801         here...
16802         * modules/stpcpy (configure.ac): ... to here.
16803
16804 2011-05-21  Bruno Haible  <bruno@clisp.org>
16805
16806         stat: Move AC_LIBOBJ invocations to module description.
16807         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16808         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16809         here...
16810         * modules/stat (configure.ac): ... to here.
16811
16812 2011-05-21  Bruno Haible  <bruno@clisp.org>
16813
16814         sleep: Move AC_LIBOBJ invocations to module description.
16815         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16816         * modules/sleep (configure.ac): ... to here.
16817
16818 2011-05-21  Bruno Haible  <bruno@clisp.org>
16819
16820         signbit: Move AC_LIBOBJ invocations to module description.
16821         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16822         * modules/signbit (configure.ac): ... to here.
16823
16824 2011-05-21  Bruno Haible  <bruno@clisp.org>
16825
16826         sigprocmask: Move AC_LIBOBJ invocations to module description.
16827         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16828         gl_PREREQ_SIGPROMASK invocations from here...
16829         * modules/sigprocmask (configure.ac): ... to here.
16830
16831 2011-05-21  Bruno Haible  <bruno@clisp.org>
16832
16833         sigaction: Move AC_LIBOBJ invocations to module description.
16834         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16835         gl_PREREQ_SIGACTION invocations from here...
16836         * modules/sigaction (configure.ac): ... to here.
16837
16838 2011-05-21  Bruno Haible  <bruno@clisp.org>
16839
16840         sig2str: Move AC_LIBOBJ invocations to module description.
16841         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16842         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16843         here...
16844         * modules/sig2str (configure.ac): ... to here.
16845
16846 2011-05-21  Bruno Haible  <bruno@clisp.org>
16847
16848         setlocale: Move AC_LIBOBJ invocations to module description.
16849         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16850         gl_PREREQ_SETLOCALE invocations from here...
16851         * modules/setlocale (configure.ac): ... to here.
16852
16853 2011-05-21  Bruno Haible  <bruno@clisp.org>
16854
16855         unsetenv: Move AC_LIBOBJ invocations to module description.
16856         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16857         and gl_PREREQ_UNSETENV invocations from here...
16858         * modules/unsetenv (configure.ac): ... to here.
16859         (Depends-on): Update.
16860
16861 2011-05-21  Bruno Haible  <bruno@clisp.org>
16862
16863         setenv: Move AC_LIBOBJ invocations to module description.
16864         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16865         here...
16866         * modules/setenv (configure.ac): ... to here.
16867
16868 2011-05-21  Bruno Haible  <bruno@clisp.org>
16869
16870         selinux-h: Move AC_LIBOBJ invocations to module description.
16871         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16872         AC_LIBOBJ invocation from here...
16873         * modules/selinux-h (configure.ac): ... to here.
16874
16875 2011-05-21  Bruno Haible  <bruno@clisp.org>
16876
16877         select: Respect rules for use of AC_LIBOBJ.
16878         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16879         here...
16880         * modules/select (configure.ac): ... to here.
16881
16882 2011-05-21  Bruno Haible  <bruno@clisp.org>
16883
16884         scandir: Move AC_LIBOBJ invocations to module description.
16885         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16886         invocations from here...
16887         * modules/scandir (configure.ac): ... to here.
16888
16889 2011-05-21  Bruno Haible  <bruno@clisp.org>
16890
16891         rpmatch: Move AC_LIBOBJ invocations to module description.
16892         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16894         here...
16895         * modules/rpmatch (configure.ac): ... to here.
16896
16897 2011-05-21  Bruno Haible  <bruno@clisp.org>
16898
16899         rmdir: Respect rules for use of AC_LIBOBJ.
16900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16901         * modules/rmdir (configure.ac): ... to here.
16902
16903 2011-05-21  Bruno Haible  <bruno@clisp.org>
16904
16905         renameat: Move AC_LIBOBJ invocations to module description.
16906         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16907         here...
16908         * modules/renameat (configure.ac): ... to here.
16909
16910 2011-05-21  Bruno Haible  <bruno@clisp.org>
16911
16912         rename: Respect rules for use of AC_LIBOBJ.
16913         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16914         here...
16915         * modules/rename (configure.ac): ... to here.
16916
16917 2011-05-21  Bruno Haible  <bruno@clisp.org>
16918
16919         remove: Move AC_LIBOBJ invocations to module description.
16920         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16921         here...
16922         * modules/remove (configure.ac): ... to here.
16923
16924 2011-05-21  Bruno Haible  <bruno@clisp.org>
16925
16926         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16927         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16928         macro.
16929         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16930         * modules/relocatable-lib (configure.ac): ... to here.
16931         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16932         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16933
16934 2011-05-21  Bruno Haible  <bruno@clisp.org>
16935
16936         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16937         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16938         here...
16939         * modules/relocatable-prog (configure.ac): ... to here.
16940
16941 2011-05-21  Bruno Haible  <bruno@clisp.org>
16942
16943         regex: Move AC_LIBOBJ invocations to module description.
16944         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16945         invocations from here...
16946         * modules/regex (configure.ac): ... to here.
16947
16948 2011-05-21  Bruno Haible  <bruno@clisp.org>
16949
16950         realloc-*: Move AC_LIBOBJ invocations to module description.
16951         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16952         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16953         AC_LIBOBJ invocations from here...
16954         * modules/realloc-gnu (configure.ac): ... to here.
16955         * modules/realloc-posix (configure.ac): ... and here.
16956
16957 2011-05-21  Bruno Haible  <bruno@clisp.org>
16958
16959         readutmp: Move AC_LIBOBJ invocations to module description.
16960         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16961         * modules/readutmp (configure.ac): ... to here.
16962
16963 2011-05-21  Bruno Haible  <bruno@clisp.org>
16964
16965         readlinkat: Move AC_LIBOBJ invocations to module description.
16966         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16967         here...
16968         * modules/readlinkat (configure.ac): ... to here.
16969
16970 2011-05-21  Bruno Haible  <bruno@clisp.org>
16971
16972         readlink: Move AC_LIBOBJ invocations to module description.
16973         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16974         gl_PREREQ_READLINK invocations from here...
16975         * modules/readlink (configure.ac): ... to here.
16976
16977 2011-05-21  Bruno Haible  <bruno@clisp.org>
16978
16979         readline: Move AC_LIBOBJ invocations to module description.
16980         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16981         gl_PREREQ_READLINE invocations from here...
16982         * modules/readline (configure.ac): ... to here.
16983
16984 2011-05-21  Bruno Haible  <bruno@clisp.org>
16985
16986         read: Move AC_LIBOBJ invocations to module description.
16987         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16988         * modules/read (configure.ac): ... to here.
16989
16990 2011-05-21  Bruno Haible  <bruno@clisp.org>
16991
16992         rawmemchr: Move AC_LIBOBJ invocations to module description.
16993         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16995         from here...
16996         * modules/rawmemchr (configure.ac): ... to here.
16997
16998 2011-05-21  Bruno Haible  <bruno@clisp.org>
16999
17000         random_r: Move AC_LIBOBJ invocations to module description.
17001         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17002         gl_PREREQ_RANDOM_R invocations from here...
17003         * modules/random_r (configure.ac): ... to here.
17004
17005 2011-05-21  Bruno Haible  <bruno@clisp.org>
17006
17007         pwrite: Move AC_LIBOBJ invocations to module description.
17008         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17009         * modules/pwrite (configure.ac): ... to here.
17010
17011 2011-05-21  Bruno Haible  <bruno@clisp.org>
17012
17013         putenv: Move AC_LIBOBJ invocations to module description.
17014         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17015         * modules/putenv (configure.ac): ... to here.
17016
17017 2011-05-21  Bruno Haible  <bruno@clisp.org>
17018
17019         login_tty: Move AC_LIBOBJ invocations to module description.
17020         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17021         * modules/login_tty (configure.ac): ... to here.
17022
17023 2011-05-21  Bruno Haible  <bruno@clisp.org>
17024
17025         openpty: Move AC_LIBOBJ invocations to module description.
17026         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17027         * modules/openpty (configure.ac): ... to here.
17028
17029 2011-05-21  Bruno Haible  <bruno@clisp.org>
17030
17031         forkpty: Move AC_LIBOBJ invocations to module description.
17032         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17033         * modules/forkpty (configure.ac): ... to here.
17034
17035 2011-05-21  Bruno Haible  <bruno@clisp.org>
17036
17037         ptsname: Move AC_LIBOBJ invocations to module description.
17038         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17039         invocations from here...
17040         * modules/ptsname (configure.ac): ... to here.
17041
17042 2011-05-21  Bruno Haible  <bruno@clisp.org>
17043
17044         pread: Move AC_LIBOBJ invocations to module description.
17045         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17046         * modules/pread (configure.ac): ... to here.
17047
17048 2011-05-21  Bruno Haible  <bruno@clisp.org>
17049
17050         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17051         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17052         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17053         * modules/posix_spawn (configure.ac): ... to here.
17054         * modules/posix_spawnp (configure.ac): ... and here.
17055
17056 2011-05-21  Bruno Haible  <bruno@clisp.org>
17057
17058         popen: Move AC_LIBOBJ invocations to module description.
17059         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17060         invocations from here...
17061         * modules/popen (configure.ac): ... to here.
17062
17063 2011-05-21  Bruno Haible  <bruno@clisp.org>
17064
17065         poll: Move AC_LIBOBJ invocations to module description.
17066         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17067         invocations from here...
17068         * modules/poll (configure.ac): ... to here.
17069
17070 2011-05-21  Bruno Haible  <bruno@clisp.org>
17071
17072         pipe-posix: Move AC_LIBOBJ invocations to module description.
17073         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17074         * modules/pipe-posix (configure.ac): ... to here.
17075
17076 2011-05-21  Bruno Haible  <bruno@clisp.org>
17077
17078         openat: Respect rules for use of AC_LIBOBJ.
17079         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17080         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17081         * modules/openat (configure.ac): ... to here.
17082
17083 2011-05-21  Bruno Haible  <bruno@clisp.org>
17084
17085         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17086         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17087         invocation from here...
17088         * modules/obstack-printf (configure.ac): ... to here.
17089         * modules/obstack-printf-posix (configure.ac): ... and here.
17090
17091 2011-05-21  Bruno Haible  <bruno@clisp.org>
17092
17093         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17094         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17095         from here...
17096         * modules/nl_langinfo (configure.ac): ... to here.
17097
17098 2011-05-21  Bruno Haible  <bruno@clisp.org>
17099
17100         nanosleep: Move AC_LIBOBJ invocations to module description.
17101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17102         gl_PREREQ_NANOSLEEP invocations from here...
17103         * modules/nanosleep (configure.ac): ... to here.
17104
17105 2011-05-21  Bruno Haible  <bruno@clisp.org>
17106
17107         mountlist: Move AC_LIBOBJ invocations to module description.
17108         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17109         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17110         * modules/mountlist (configure.ac): ... to here.
17111
17112 2011-05-21  Bruno Haible  <bruno@clisp.org>
17113
17114         mktime: Respect rules for use of AC_LIBOBJ.
17115         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17116         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17117         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17118         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17119         * modules/mktime (configure.ac): ... to here.
17120         * modules/mktime-internal (configure.ac): ... and here.
17121         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17122
17123 2011-05-21  Bruno Haible  <bruno@clisp.org>
17124
17125         mkstemps: Move AC_LIBOBJ invocations to module description.
17126         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17127         here...
17128         * modules/mkstemps (configure.ac): ... to here.
17129
17130 2011-05-21  Bruno Haible  <bruno@clisp.org>
17131
17132         mkstemp: Move AC_LIBOBJ invocations to module description.
17133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17134         gl_PREREQ_MKSTEMP invocations from here...
17135         * modules/mkstemp (configure.ac): ... to here.
17136
17137 2011-05-21  Bruno Haible  <bruno@clisp.org>
17138
17139         mkostemps: Move AC_LIBOBJ invocations to module description.
17140         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17141         here...
17142         * modules/mkostemps (configure.ac): ... to here.
17143
17144 2011-05-21  Bruno Haible  <bruno@clisp.org>
17145
17146         mkostemp: Move AC_LIBOBJ invocations to module description.
17147         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17148         gl_PREREQ_MKOSTEMP invocations from here...
17149         * modules/mkostemp (configure.ac): ... to here.
17150
17151 2011-05-21  Bruno Haible  <bruno@clisp.org>
17152
17153         mknod: Move AC_LIBOBJ invocations to module description.
17154         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17155         * modules/mknod (configure.ac): ... to here.
17156
17157 2011-05-21  Bruno Haible  <bruno@clisp.org>
17158
17159         mkfifoat: Move AC_LIBOBJ invocations to module description.
17160         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17161         here...
17162         * modules/mkfifoat (configure.ac): ... to here.
17163
17164 2011-05-21  Bruno Haible  <bruno@clisp.org>
17165
17166         mkfifo: Respect rules for use of AC_LIBOBJ.
17167         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17168         here...
17169         * modules/mkfifo (configure.ac): ... to here.
17170
17171 2011-05-21  Bruno Haible  <bruno@clisp.org>
17172
17173         mkdtemp: Move AC_LIBOBJ invocations to module description.
17174         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17175         invocations from here...
17176         * modules/mkdtemp (configure.ac): ... to here.
17177
17178 2011-05-21  Bruno Haible  <bruno@clisp.org>
17179
17180         mkdir: Move AC_LIBOBJ invocations to module description.
17181         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17182         * modules/mkdir (configure.ac): ... to here.
17183
17184 2011-05-21  Bruno Haible  <bruno@clisp.org>
17185
17186         memset: Move AC_LIBOBJ invocations to module description.
17187         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17189         here...
17190         * modules/memset (configure.ac): ... to here.
17191
17192 2011-05-21  Bruno Haible  <bruno@clisp.org>
17193
17194         memrchr: Move AC_LIBOBJ invocations to module description.
17195         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17197         here...
17198         * modules/memrchr (configure.ac): ... to here.
17199
17200 2011-05-21  Bruno Haible  <bruno@clisp.org>
17201
17202         mempcpy: Move AC_LIBOBJ invocations to module description.
17203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17205         here...
17206         * modules/mempcpy (configure.ac): ... to here.
17207
17208 2011-05-21  Bruno Haible  <bruno@clisp.org>
17209
17210         memmove: Move AC_LIBOBJ invocations to module description.
17211         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17213         here...
17214         * modules/memmove (configure.ac): ... to here.
17215
17216 2011-05-21  Bruno Haible  <bruno@clisp.org>
17217
17218         memmem*: Move AC_LIBOBJ invocations to module description.
17219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17220         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17221         here...
17222         (gl_FUNC_MEMMEM): ... and here...
17223         * modules/memmem-simple (configure.ac): ... to here.
17224         * modules/memmem (configure.ac): ... and here.
17225
17226 2011-05-21  Bruno Haible  <bruno@clisp.org>
17227
17228         memcpy: Move AC_LIBOBJ invocations to module description.
17229         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17231         here...
17232         * modules/memcpy (configure.ac): ... to here.
17233
17234 2011-05-21  Bruno Haible  <bruno@clisp.org>
17235
17236         memcmp: Simplify autoconf macro.
17237         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17238         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17239         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17240
17241 2011-05-21  Bruno Haible  <bruno@clisp.org>
17242
17243         memcmp: Move AC_LIBOBJ invocations to module description.
17244         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17245         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17246         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17247         * modules/memcmp (configure.ac): ... to here.
17248         (Depends-on): Update conditions.
17249
17250 2011-05-21  Bruno Haible  <bruno@clisp.org>
17251
17252         memchr: Respect rules for use of AC_LIBOBJ.
17253         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17254         invocations from here...
17255         * modules/memchr (configure.ac): ... to here.
17256
17257 2011-05-21  Bruno Haible  <bruno@clisp.org>
17258
17259         mbtowc: Move AC_LIBOBJ invocations to module description.
17260         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17261         invocations from here...
17262         * modules/mbtowc (configure.ac): ... to here.
17263
17264 2011-05-21  Bruno Haible  <bruno@clisp.org>
17265
17266         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17267         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17268         gl_PREREQ_MBSRTOWCS invocations from here...
17269         * modules/mbsrtowcs (configure.ac): ... to here.
17270
17271 2011-05-21  Bruno Haible  <bruno@clisp.org>
17272
17273         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17274         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17275         gl_PREREQ_MBSNRTOWCS invocations from here...
17276         * modules/mbsnrtowcs (configure.ac): ... to here.
17277
17278 2011-05-21  Bruno Haible  <bruno@clisp.org>
17279
17280         mbsinit: Move AC_LIBOBJ invocations to module description.
17281         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17282         invocations from here...
17283         * modules/mbsinit (configure.ac): ... to here.
17284
17285 2011-05-21  Bruno Haible  <bruno@clisp.org>
17286
17287         mbrlen: Move AC_LIBOBJ invocations to module description.
17288         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17289         invocations from here...
17290         * modules/mbrlen (configure.ac): ... to here.
17291
17292 2011-05-21  Bruno Haible  <bruno@clisp.org>
17293
17294         mbrtowc: Respect rules for use of AC_LIBOBJ.
17295         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17296         invocations from here...
17297         * modules/mbrtowc (configure.ac): ... to here.
17298
17299 2011-05-21  Bruno Haible  <bruno@clisp.org>
17300
17301         malloc-*: Move AC_LIBOBJ invocations to module description.
17302         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17303         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17304         AC_LIBOBJ invocations from here...
17305         * modules/malloc-gnu (configure.ac): ... to here.
17306         * modules/malloc-posix (configure.ac): ... and here.
17307
17308 2011-05-21  Bruno Haible  <bruno@clisp.org>
17309
17310         lstat, openat: Respect rules for use of AC_LIBOBJ.
17311         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17313         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17314         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17315         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17316         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17317         here.
17318         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17319
17320 2011-05-21  Bruno Haible  <bruno@clisp.org>
17321
17322         lseek: Move AC_LIBOBJ invocations to module description.
17323         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17324         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17325         * modules/lseek (configure.ac): ... to here.
17326
17327 2011-05-21  Bruno Haible  <bruno@clisp.org>
17328
17329         linkat: Move AC_LIBOBJ invocations to module description.
17330         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17331         here...
17332         * modules/linkat (configure.ac): ... to here.
17333
17334 2011-05-21  Bruno Haible  <bruno@clisp.org>
17335
17336         link: Respect rules for use of AC_LIBOBJ.
17337         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17338         * modules/link (configure.ac): ... to here.
17339
17340 2011-05-21  Bruno Haible  <bruno@clisp.org>
17341
17342         lchown: Move AC_LIBOBJ invocations to module description.
17343         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17344         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17345         * modules/lchown (configure.ac): ... to here.
17346
17347 2011-05-21  Bruno Haible  <bruno@clisp.org>
17348
17349         iswctype: Move AC_LIBOBJ invocations to module description.
17350         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17351         here...
17352         * modules/iswctype (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         iswblank: Move AC_LIBOBJ invocations to module description.
17357         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17358         here...
17359         * modules/iswblank (configure.ac): ... to here.
17360
17361 2011-05-21  Bruno Haible  <bruno@clisp.org>
17362
17363         atanl: Move AC_LIBOBJ invocations to module description.
17364         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17365         * modules/atanl (configure.ac): ... to here.
17366
17367 2011-05-21  Bruno Haible  <bruno@clisp.org>
17368
17369         acosl: Move AC_LIBOBJ invocations to module description.
17370         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17371         * modules/acosl (configure.ac): ... to here.
17372
17373 2011-05-21  Bruno Haible  <bruno@clisp.org>
17374
17375         asinl: Respect rules for use of AC_LIBOBJ.
17376         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17377         * modules/asinl (configure.ac): ... to here.
17378
17379 2011-05-21  Bruno Haible  <bruno@clisp.org>
17380
17381         tanl: Move AC_LIBOBJ invocations to module description.
17382         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17383         * modules/tanl (configure.ac): ... to here.
17384
17385 2011-05-21  Bruno Haible  <bruno@clisp.org>
17386
17387         cosl: Move AC_LIBOBJ invocations to module description.
17388         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17389         * modules/cosl (configure.ac): ... to here.
17390
17391 2011-05-21  Bruno Haible  <bruno@clisp.org>
17392
17393         sinl: Move AC_LIBOBJ invocations to module description.
17394         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17395         * modules/sinl (configure.ac): ... to here.
17396
17397 2011-05-21  Bruno Haible  <bruno@clisp.org>
17398
17399         logl: Move AC_LIBOBJ invocations to module description.
17400         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17401         * modules/logl (configure.ac): ... to here.
17402
17403 2011-05-21  Bruno Haible  <bruno@clisp.org>
17404
17405         expl: Move AC_LIBOBJ invocations to module description.
17406         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17407         * modules/expl (configure.ac): ... to here.
17408
17409 2011-05-21  Bruno Haible  <bruno@clisp.org>
17410
17411         roundl: Move AC_LIBOBJ invocations to module description.
17412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17413         * modules/roundl (configure.ac): ... to here.
17414
17415 2011-05-21  Bruno Haible  <bruno@clisp.org>
17416
17417         round: Move AC_LIBOBJ invocations to module description.
17418         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17419         * modules/round (configure.ac): ... to here.
17420
17421 2011-05-21  Bruno Haible  <bruno@clisp.org>
17422
17423         roundf: Move AC_LIBOBJ invocations to module description.
17424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17425         * modules/roundf (configure.ac): ... to here.
17426
17427 2011-05-21  Bruno Haible  <bruno@clisp.org>
17428
17429         truncl: Move AC_LIBOBJ invocations to module description.
17430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17431         * modules/truncl (configure.ac): ... to here.
17432
17433 2011-05-21  Bruno Haible  <bruno@clisp.org>
17434
17435         trunc: Move AC_LIBOBJ invocations to module description.
17436         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17437         * modules/trunc (configure.ac): ... to here.
17438
17439 2011-05-21  Bruno Haible  <bruno@clisp.org>
17440
17441         truncf: Move AC_LIBOBJ invocations to module description.
17442         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17443         * modules/truncf (configure.ac): ... to here.
17444
17445 2011-05-21  Bruno Haible  <bruno@clisp.org>
17446
17447         ceill: Move AC_LIBOBJ invocations to module description.
17448         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17449         * modules/ceill (configure.ac): ... to here.
17450
17451 2011-05-21  Bruno Haible  <bruno@clisp.org>
17452
17453         ceil: Move AC_LIBOBJ invocations to module description.
17454         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17455         * modules/ceil (configure.ac): ... to here.
17456
17457 2011-05-21  Bruno Haible  <bruno@clisp.org>
17458
17459         ceilf: Move AC_LIBOBJ invocations to module description.
17460         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17461         * modules/ceilf (configure.ac): ... to here.
17462
17463 2011-05-21  Bruno Haible  <bruno@clisp.org>
17464
17465         floorl: Respect rules for use of AC_LIBOBJ.
17466         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17467         * modules/floorl (configure.ac): ... to here.
17468
17469 2011-05-21  Bruno Haible  <bruno@clisp.org>
17470
17471         floor: Respect rules for use of AC_LIBOBJ.
17472         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17473         * modules/floor (configure.ac): ... to here.
17474
17475 2011-05-21  Bruno Haible  <bruno@clisp.org>
17476
17477         floorf: Move AC_LIBOBJ invocations to module description.
17478         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17479         * modules/floorf (configure.ac): ... to here.
17480
17481 2011-05-20  Bruno Haible  <bruno@clisp.org>
17482
17483         sqrtl: Respect rules for use of AC_LIBOBJ.
17484         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17485         * modules/sqrtl (configure.ac): ... to here.
17486
17487 2011-05-20  Bruno Haible  <bruno@clisp.org>
17488
17489         ldexpl: Respect rules for use of AC_LIBOBJ.
17490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17491         * modules/ldexpl (configure.ac): ... to here.
17492
17493 2011-05-20  Bruno Haible  <bruno@clisp.org>
17494
17495         frexpl*: Respect rules for use of AC_LIBOBJ.
17496         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17497         invocation from here...
17498         * modules/frexpl (configure.ac): ... to here.
17499         * modules/frexpl-nolibm (configure.ac): ... and here.
17500
17501 2011-05-20  Bruno Haible  <bruno@clisp.org>
17502
17503         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17504         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17505         invocation from here...
17506         * modules/frexp (configure.ac): ... to here.
17507         * modules/frexp-nolibm (configure.ac): ... and here.
17508
17509 2011-05-20  Bruno Haible  <bruno@clisp.org>
17510
17511         isnan: Respect rules for use of AC_LIBOBJ.
17512         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17513         invocations here.
17514         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17515         REPLACE_ISNAN.
17516         * modules/isnand (configure.ac): Likewise.
17517         * modules/isnanl (configure.ac): Likewise.
17518
17519 2011-05-20  Bruno Haible  <bruno@clisp.org>
17520
17521         isnanl*: Respect rules for use of AC_LIBOBJ.
17522         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17523         invocation from here...
17524         * modules/isnanl (configure.ac): ... to here.
17525         * modules/isnanl-nolibm (configure.ac): ... and here.
17526
17527 2011-05-20  Bruno Haible  <bruno@clisp.org>
17528
17529         isnand*: Move AC_LIBOBJ invocations to module description.
17530         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17531         invocation from here...
17532         * modules/isnand (configure.ac): ... to here.
17533         * modules/isnand-nolibm (configure.ac): ... and here.
17534
17535 2011-05-20  Bruno Haible  <bruno@clisp.org>
17536
17537         isnanf*: Move AC_LIBOBJ invocations to module description.
17538         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17539         invocation from here...
17540         * modules/isnanf (configure.ac): ... to here.
17541         * modules/isnanf-nolibm (configure.ac): ... and here.
17542
17543 2011-05-20  Bruno Haible  <bruno@clisp.org>
17544
17545         isnan*: Separate the AC_LIBOBJ invocations.
17546         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17547         AC_LIBOBJ invocation.
17548         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17549         here.
17550         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17551         AC_LIBOBJ invocation.
17552         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17553         here.
17554         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17555         AC_LIBOBJ invocation.
17556         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17557         here.
17558         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17559
17560 2011-05-08  Bruno Haible  <bruno@clisp.org>
17561
17562         isinf: Move AC_LIBOBJ invocations to module description.
17563         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17564         * modules/isinf (configure.ac): ... to here.
17565
17566 2011-05-08  Bruno Haible  <bruno@clisp.org>
17567
17568         isfinite: Move AC_LIBOBJ invocations to module description.
17569         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17570         * modules/isfinite (configure.ac): ... to here.
17571
17572 2011-05-08  Bruno Haible  <bruno@clisp.org>
17573
17574         isblank: Move AC_LIBOBJ invocations to module description.
17575         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17576         here...
17577         * modules/isblank (configure.ac): ... to here.
17578
17579 2011-05-08  Bruno Haible  <bruno@clisp.org>
17580
17581         isapipe: Move AC_LIBOBJ invocations to module description.
17582         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17583         gl_PREREQ_ISAPIPE invocations from here...
17584         * modules/isapipe (configure.ac): ... to here.
17585         (Depends-on): Update condition.
17586
17587 2011-05-08  Bruno Haible  <bruno@clisp.org>
17588
17589         ioctl: Move AC_LIBOBJ invocations to module description.
17590         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17591         invocations from here...
17592         * modules/ioctl (configure.ac): ... to here.
17593         (Depends-on): Update condition.
17594
17595 2011-05-08  Bruno Haible  <bruno@clisp.org>
17596
17597         imaxdiv: Move AC_LIBOBJ invocations to module description.
17598         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17599         invocations from here...
17600         * modules/imaxdiv (configure.ac): ... to here.
17601
17602 2011-05-08  Bruno Haible  <bruno@clisp.org>
17603
17604         imaxabs: Move AC_LIBOBJ invocations to module description.
17605         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17606         invocations from here...
17607         * modules/imaxabs (configure.ac): ... to here.
17608
17609 2011-05-08  Bruno Haible  <bruno@clisp.org>
17610
17611         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17613         AC_LIBOBJ invocations from here...
17614         * modules/getaddrinfo (configure.ac): ... to here.
17615         (Depends-on): Add conditions.
17616
17617 2011-05-08  Bruno Haible  <bruno@clisp.org>
17618
17619         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17620         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17621         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17622         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17623         (gl_PREREQ_INET_PTON): ... from here.
17624         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17625         gl_PREREQ_INET_PTON here.
17626         (Depends-on): Update condition.
17627
17628 2011-05-08  Bruno Haible  <bruno@clisp.org>
17629
17630         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17631         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17632         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17633         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17634         (gl_PREREQ_INET_NTOP): ... from here.
17635         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17636         gl_PREREQ_INET_NTOP here.
17637         (Depends-on): Update condition.
17638
17639 2011-05-08  Bruno Haible  <bruno@clisp.org>
17640
17641         iconv_open: Move AC_LIBOBJ invocations to module description.
17642         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17643         AC_LIBOBJ invocations from here...
17644         * modules/iconv_open (configure.ac): ... to here.
17645
17646 2011-05-08  Bruno Haible  <bruno@clisp.org>
17647
17648         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17649         If module 'iconv_open' is among the main modules and module
17650         'iconv_open-utf' is among the tests dependencies, then
17651         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17652         return the special iconv_t values. Therefore iconv() and iconv_close()
17653         must support these special iconv_t values, already in lib, not only in
17654         tests.
17655         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17656         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17657         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17658         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17659         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17660         (Depends-on): Add the dependencies of iconv_open-utf.
17661         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17662         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17663         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17664
17665 2011-05-08  Bruno Haible  <bruno@clisp.org>
17666
17667         group-member: Move AC_LIBOBJ invocations to module description.
17668         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17669         gl_PREREQ_GROUP_MEMBER invocations from here...
17670         * modules/group-member (configure.ac): ... to here.
17671
17672 2011-05-08  Bruno Haible  <bruno@clisp.org>
17673
17674         grantpt: Move AC_LIBOBJ invocations to module description.
17675         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17676         invocations from here...
17677         * modules/grantpt (configure.ac): ... to here.
17678
17679 2011-05-08  Bruno Haible  <bruno@clisp.org>
17680
17681         glob: Move AC_LIBOBJ invocations to module description.
17682         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17683         from here...
17684         * modules/glob (configure.ac): ... to here.
17685
17686 2011-05-08  Bruno Haible  <bruno@clisp.org>
17687
17688         getusershell: Move AC_LIBOBJ invocations to module description.
17689         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17690         Move AC_LIBOBJ invocation from here...
17691         * modules/getusershell (configure.ac): ... to here.
17692         (Depends-on): Update condition.
17693
17694 2011-05-08  Bruno Haible  <bruno@clisp.org>
17695
17696         gettimeofday: Move AC_LIBOBJ invocations to module description.
17697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17698         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17699         gl_PREREQ_GETTIMEOFDAY invocations from here...
17700         * modules/gettimeofday (configure.ac): ... to here.
17701
17702 2011-05-08  Bruno Haible  <bruno@clisp.org>
17703
17704         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17705         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17706         just gl_FUNC_TZSET.
17707         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17708         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17710         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17711
17712 2011-05-08  Bruno Haible  <bruno@clisp.org>
17713
17714         getsubopt: Move AC_LIBOBJ invocations to module description.
17715         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17716         gl_PREREQ_GETSUBOPT invocations from here...
17717         * modules/getsubopt (configure.ac): ... to here.
17718
17719 2011-05-08  Bruno Haible  <bruno@clisp.org>
17720
17721         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17722         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17723         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17724         * modules/getpass-gnu (configure.ac): ... to here.
17725
17726 2011-05-08  Bruno Haible  <bruno@clisp.org>
17727
17728         getpass: Move AC_LIBOBJ invocations to module description.
17729         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17730         gl_PREREQ_GETPASS invocations from here...
17731         * modules/getpass (configure.ac): ... to here.
17732
17733 2011-05-08  Bruno Haible  <bruno@clisp.org>
17734
17735         getpagesize: Move AC_LIBOBJ invocations to module description.
17736         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17737         from here...
17738         * modules/getpagesize (configure.ac): ... to here.
17739
17740 2011-05-08  Bruno Haible  <bruno@clisp.org>
17741
17742         getopt: Move AC_LIBOBJ invocations to module description.
17743         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17744         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17745         invocations from here...
17746         * modules/getopt-gnu (configure.ac): ... to here.
17747         * modules/getopt-posix (configure.ac): ... and here.
17748         (Depends-on): Update condition.
17749
17750 2011-05-08  Bruno Haible  <bruno@clisp.org>
17751
17752         getopt, argp: Respect rules for use of AC_LIBOBJ.
17753         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17754         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17755         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17756         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17757
17758 2011-05-08  Bruno Haible  <bruno@clisp.org>
17759
17760         getlogin_r: Move AC_LIBOBJ invocations to module description.
17761         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17762         gl_PREREQ_GETLOGIN_R invocations from here...
17763         * modules/getlogin_r (configure.ac): ... to here.
17764
17765 2011-05-08  Bruno Haible  <bruno@clisp.org>
17766
17767         getlogin: Move AC_LIBOBJ invocations to module description.
17768         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17769         here...
17770         * modules/getlogin (configure.ac): ... to here.
17771
17772 2011-05-08  Bruno Haible  <bruno@clisp.org>
17773
17774         getloadavg: Move AC_LIBOBJ invocations to module description.
17775         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17776         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17777         * modules/getloadavg (configure.ac): ... to here.
17778
17779 2011-05-08  Bruno Haible  <bruno@clisp.org>
17780
17781         gethrxtime: Move AC_LIBOBJ invocations to module description.
17782         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17783         LIB_GETHRXTIME from here...
17784         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17785         invocations from here...
17786         * modules/gethrxtime (configure.ac): ... to here.
17787
17788 2011-05-08  Bruno Haible  <bruno@clisp.org>
17789
17790         gethostname: Move AC_LIBOBJ invocations to module description.
17791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17792         gl_PREREQ_GETHOSTNAME invocations from here...
17793         * modules/gethostname (configure.ac): ... to here.
17794
17795 2011-05-08  Bruno Haible  <bruno@clisp.org>
17796
17797         getgroups: Move AC_LIBOBJ invocations to module description.
17798         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17799         here...
17800         * modules/getgroups (configure.ac): ... to here.
17801
17802 2011-05-08  Bruno Haible  <bruno@clisp.org>
17803
17804         getdtablesize: Move AC_LIBOBJ invocations to module description.
17805         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17806         invocation from here...
17807         * modules/getdtablesize (configure.ac): ... to here.
17808
17809 2011-05-08  Bruno Haible  <bruno@clisp.org>
17810
17811         getdomainname: Move AC_LIBOBJ invocations to module description.
17812         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17813         gl_PREREQ_GETDOMAINNAME invocations from here...
17814         * modules/getdomainname (configure.ac): ... to here.
17815
17816 2011-05-08  Bruno Haible  <bruno@clisp.org>
17817
17818         getline: Move AC_LIBOBJ invocations to module description.
17819         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17820         invocations from here...
17821         * modules/getline (configure.ac): ... to here.
17822
17823 2011-05-08  Bruno Haible  <bruno@clisp.org>
17824
17825         getline: Simplify.
17826         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17827         It's already handled through the module dependency.
17828
17829 2011-05-08  Bruno Haible  <bruno@clisp.org>
17830
17831         getdelim: Move AC_LIBOBJ invocations to module description.
17832         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17833         and gl_PREREQ_GETDELIM invocations from here...
17834         * modules/getdelim (configure.ac): ... to here.
17835         (Depends-on): Fix condition.
17836
17837 2011-05-08  Bruno Haible  <bruno@clisp.org>
17838
17839         getcwd: Move AC_LIBOBJ invocations to module description.
17840         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17841         invocations from here...
17842         * modules/getcwd (configure.ac): ... to here.
17843
17844 2011-05-08  Bruno Haible  <bruno@clisp.org>
17845
17846         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17847         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17848         here...
17849         * modules/getcwd-lgpl (configure.ac): ... to here.
17850
17851 2011-05-07  Bruno Haible  <bruno@clisp.org>
17852
17853         crypto/gc: Move AC_LIBOBJ invocations to module description.
17854         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17855         * modules/crypto/gc (configure.ac): ... to here.
17856
17857 2011-05-07  Bruno Haible  <bruno@clisp.org>
17858
17859         fwriting: Move AC_LIBOBJ invocations to module description.
17860         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17861         here...
17862         * modules/fwriting (configure.ac): ... to here.
17863
17864 2011-05-07  Bruno Haible  <bruno@clisp.org>
17865
17866         fwritable: Move AC_LIBOBJ invocations to module description.
17867         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17868         here...
17869         * modules/fwritable (configure.ac): ... to here.
17870
17871 2011-05-07  Bruno Haible  <bruno@clisp.org>
17872
17873         futimens: Move AC_LIBOBJ invocations to module description.
17874         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17875         here...
17876         * modules/futimens (configure.ac): ... to here.
17877
17878 2011-05-07  Bruno Haible  <bruno@clisp.org>
17879
17880         ftruncate: Move AC_LIBOBJ invocations to module description.
17881         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17882         gl_PREREQ_FTRUNCATE invocations from here...
17883         * modules/ftruncate (configure.ac): ... to here.
17884
17885 2011-05-07  Bruno Haible  <bruno@clisp.org>
17886
17887         fsync: Move AC_LIBOBJ invocations to module description.
17888         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17889         invocations from here...
17890         * modules/fsync (configure.ac): ... to here.
17891
17892 2011-05-07  Bruno Haible  <bruno@clisp.org>
17893
17894         fsusage: Move AC_LIBOBJ invocations to module description.
17895         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17896         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17897         * modules/fsusage (configure.ac): ... to here.
17898
17899 2011-05-07  Bruno Haible  <bruno@clisp.org>
17900
17901         freopen: Move AC_LIBOBJ invocations to module description.
17902         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17903         invocations from here...
17904         * modules/freopen (configure.ac): ... to here.
17905
17906 2011-05-07  Bruno Haible  <bruno@clisp.org>
17907
17908         free: Move AC_LIBOBJ invocations to module description.
17909         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17910         invocations from here...
17911         * modules/free (configure.ac): ... to here.
17912
17913 2011-05-07  Bruno Haible  <bruno@clisp.org>
17914
17915         freadable: Move AC_LIBOBJ invocations to module description.
17916         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17917         here...
17918         * modules/freadable (configure.ac): ... to here.
17919
17920 2011-05-07  Bruno Haible  <bruno@clisp.org>
17921
17922         fpurge: Move AC_LIBOBJ invocations to module description.
17923         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17924         invocations from here...
17925         * modules/fpurge (configure.ac): ... to here.
17926
17927 2011-05-07  Bruno Haible  <bruno@clisp.org>
17928
17929         fpending: Move AC_LIBOBJ invocations to module description.
17930         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17931         gl_FUNC_FPENDING.
17932         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17933         invocations from here...
17934         * modules/fpending (configure.ac): ... to here.
17935
17936 2011-05-07  Bruno Haible  <bruno@clisp.org>
17937
17938         fopen: Move AC_LIBOBJ invocations to module description.
17939         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17940         invocations from here...
17941         * modules/fopen (configure.ac): ... to here.
17942
17943 2011-05-07  Bruno Haible  <bruno@clisp.org>
17944
17945         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17946         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17947         gl_FUNC_FNMATCH_POSIX.
17948         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17949         invocations from here...
17950         * modules/fnmatch (configure.ac): ... to here.
17951         * modules/fnmatch-gnu (configure.ac): ... and here.
17952
17953 2011-05-07  Bruno Haible  <bruno@clisp.org>
17954
17955         flock: Move AC_LIBOBJ invocations to module description.
17956         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17957         invocations from here...
17958         * modules/flock (configure.ac): ... to here.
17959
17960 2011-05-07  Bruno Haible  <bruno@clisp.org>
17961
17962         fileblocks: Move AC_LIBOBJ invocations to module description.
17963         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17964         gl_PREREQ_FILEBLOCKS invocations from here...
17965         * modules/fileblocks (configure.ac): ... to here.
17966
17967 2011-05-06  Bruno Haible  <bruno@clisp.org>
17968
17969         fflush: Move AC_LIBOBJ invocations to module description.
17970         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17971         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17972         invocations from here...
17973         * modules/fflush (configure.ac): ... to here.
17974
17975 2011-05-06  Bruno Haible  <bruno@clisp.org>
17976
17977         fdopendir: Move AC_LIBOBJ invocations to module description.
17978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17979         here...
17980         * modules/fdopendir (configure.ac): ... to here.
17981         (Depends-on): Improve conditions.
17982
17983 2011-05-06  Bruno Haible  <bruno@clisp.org>
17984
17985         _Exit: Move AC_LIBOBJ invocations to module description.
17986         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17987         invocations from here...
17988         * modules/_Exit (configure.ac): ... to here.
17989
17990 2011-05-21  Bruno Haible  <bruno@clisp.org>
17991
17992         euidaccess: Respect rules for use of AC_LIBOBJ.
17993         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17995         from here...
17996         * modules/euidaccess (configure.ac): ... to here.
17997
17998 2011-05-06  Bruno Haible  <bruno@clisp.org>
17999
18000         error: Move AC_LIBOBJ invocations to module description.
18001         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18002         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18003         invocations from here...
18004         * modules/error (configure.ac): ... to here.
18005
18006 2011-05-06  Bruno Haible  <bruno@clisp.org>
18007
18008         duplocale: Move AC_LIBOBJ invocations to module description.
18009         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18010         gl_PREREQ_DUPLOCALE invocations from here...
18011         * modules/duplocale (configure.ac): ... to here.
18012
18013 2011-05-05  Bruno Haible  <bruno@clisp.org>
18014
18015         dirfd: Move AC_LIBOBJ invocations to module description.
18016         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18017         gl_FUNC_DIRFD.
18018         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18019         here...
18020         * modules/dirfd (configure.ac): ... to here.
18021         (Depends-on): Fix condition.
18022
18023 2011-05-05  Bruno Haible  <bruno@clisp.org>
18024
18025         chown: Respect rules for use of AC_LIBOBJ.
18026         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18027         * modules/chown (configure.ac): ... to here.
18028
18029 2011-05-05  Bruno Haible  <bruno@clisp.org>
18030
18031         chdir-long: Move AC_LIBOBJ invocations to module description.
18032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18033         gl_PREREQ_CHDIR_LONG invocations from here...
18034         * modules/chdir-long (configure.ac): ... to here.
18035
18036 2011-05-05  Bruno Haible  <bruno@clisp.org>
18037
18038         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18039         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18040         from here...
18041         * modules/canonicalize-lgpl (configure.ac): ... to here.
18042
18043 2011-05-05  Bruno Haible  <bruno@clisp.org>
18044
18045         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18046         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18047         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18048         REPLACE_CALLOC.
18049         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18050         * modules/calloc-gnu (configure.ac): Likewise.
18051
18052 2011-05-05  Bruno Haible  <bruno@clisp.org>
18053
18054         btowc: Move AC_LIBOBJ invocations to module description.
18055         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18056         invocations from here...
18057         * modules/btowc (configure.ac): ... to here.
18058
18059 2011-05-21  Bruno Haible  <bruno@clisp.org>
18060
18061         atexit: Move AC_LIBOBJ invocations to module description.
18062         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18064         here...
18065         * modules/atexit (configure.ac): ... to here.
18066
18067 2011-05-05  Bruno Haible  <bruno@clisp.org>
18068
18069         atoll: Move AC_LIBOBJ invocations to module description.
18070         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18071         invocations from here...
18072         * modules/atoll (configure.ac): ... to here.
18073
18074 2011-05-05  Bruno Haible  <bruno@clisp.org>
18075
18076         argz: Move AC_LIBOBJ invocations to module description.
18077         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18078         * modules/argz (configure.ac): ... to here.
18079
18080 2011-05-05  Bruno Haible  <bruno@clisp.org>
18081
18082         alphasort: Move AC_LIBOBJ invocations to module description.
18083         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18084         gl_PREREQ_ALPHASORT invocations from here...
18085         * modules/alphasort (configure.ac): ... to here.
18086
18087 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18088
18089         verify: new macro verify_expr; verify_true deprecated
18090         * NEWS: Mention this.
18091         * doc/verify.texi (Compile-time Assertions): Document this.
18092         * lib/verify.h (verify_true): Deprecate.
18093         (verify_expr): New macro.
18094         * tests/test-verify.c (function): Test verify_expr.
18095
18096 2011-06-14  Jim Meyering  <meyering@redhat.com>
18097
18098         init.sh: give more portable redirection-related advice in a comment
18099         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18100         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18101         for lots of discussion.  Stefano Lattarini suggested the solution
18102         of putting "9>&2" after the command.  Reported by Bruno Haible.
18103
18104 2011-06-13  Bruno Haible  <bruno@clisp.org>
18105
18106         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18107         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18108         'none'.
18109
18110 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18111
18112         ftoastr: use strtof only if HAVE_STRTOF
18113         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18115         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18116         * modules/ftoastr (configure.ac): Check for strtof.
18117
18118 2011-06-13  Bruno Haible  <bruno@clisp.org>
18119
18120         gnulib-tool: Addendum to 2011-06-08 commit.
18121         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18122         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18123
18124 2011-06-13  Bruno Haible  <bruno@clisp.org>
18125
18126         fseeko: Provide a non-inline replacement of fseek().
18127         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18128         * modules/fseeko (Depends-on): Add fseek.
18129         * modules/fseek (License): Change to LGPLv2+.
18130
18131 2011-06-13  Bruno Haible  <bruno@clisp.org>
18132
18133         ftello: Provide a non-inline replacement of ftell().
18134         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18135         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18136         not have ftello() (such as on mingw).
18137         * modules/ftello (Depends-on): Add ftell.
18138         * modules/ftell (License): Change to LGPLv2+.
18139
18140 2011-05-07  Bruno Haible  <bruno@clisp.org>
18141
18142         ftell: Move AC_LIBOBJ invocations to module description.
18143         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18144         * modules/ftell (configure.ac): ... to here.
18145
18146 2011-05-07  Bruno Haible  <bruno@clisp.org>
18147
18148         ftello: Respect rules for use of AC_LIBOBJ.
18149         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18150         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18151         here...
18152         * modules/ftello (configure.ac): ... to here.
18153
18154 2011-05-07  Bruno Haible  <bruno@clisp.org>
18155
18156         fseeko: Simplify.
18157         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18158         (gl_FUNC_FSEEKO): Inline it here.
18159
18160 2011-05-07  Bruno Haible  <bruno@clisp.org>
18161
18162         fseek: Move AC_LIBOBJ invocations to module description.
18163         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18164         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18165         * modules/fseek (configure.ac): ... to here.
18166
18167 2011-05-07  Bruno Haible  <bruno@clisp.org>
18168
18169         fseek: Respect rules for use of AC_LIBOBJ.
18170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18171         here...
18172         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18173
18174 2011-05-07  Bruno Haible  <bruno@clisp.org>
18175
18176         fseeko: Respect rules for use of AC_LIBOBJ.
18177         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18178         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18179         here...
18180         * modules/fseeko (configure.ac): ... to here.
18181
18182 2011-06-13  Bruno Haible  <bruno@clisp.org>
18183
18184         gnulib-tool: Allow comments in the 'Depends-on' section.
18185         * doc/gnulib.texi (Module description): Mention comment syntax in the
18186         Depends-on section.
18187         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18188
18189 2011-06-13  Bruno Haible  <bruno@clisp.org>
18190
18191         file-set.h: guard __attibute__ use, now that it's not always defined
18192         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18193         versions that support it.  This fixes a coreutils build failure with
18194         the vendor cc on HP-UX 11.31.
18195
18196 2011-06-12  Bruno Haible  <bruno@clisp.org>
18197
18198         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18199         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18200         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18201         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18202         (acl, aclsort): New declarations.
18203         (aclv_nontrivial): New declaration.
18204         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18205         (file_has_acl): Read also the second kind of HP-UX ACLs.
18206         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18207         kind of HP-UX ACLs if the first kind fails.
18208         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18209         second kind of HP-UX ACLs.
18210         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18211         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18212         agree.
18213         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18214         hpuxjfs.
18215         Handle hpuxjfs.
18216         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18217         hpuxjfs.
18218         Handle hpuxjfs.
18219         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18220         (func_test_same_acls): Use both lsacl and getacl.
18221         Handle hpuxjfs.
18222         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18223         (func_test_same_acls): Use both lsacl and getacl.
18224         Handle hpuxjfs.
18225
18226 2011-06-12  Bruno Haible  <bruno@clisp.org>
18227
18228         acl: Complete the 2010-08-10 fix.
18229         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18230         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18231         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18232         explicitly.
18233         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18234         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18235
18236 2011-06-12  Bruno Haible  <bruno@clisp.org>
18237
18238         spawn-pipe tests: Comments.
18239         * tests/test-spawn-pipe-child.c (main): Update comment.
18240         Reported by James Youngman <jay@gnu.org>.
18241
18242 2011-06-11  James Youngman  <jay@gnu.org>
18243
18244         New module 'stat-size'.
18245         * modules/stat-size: New module.  Provides macros for accessing
18246         file size information in instances of struct stat.  Depends on the
18247         fileblocks module because it calls st_blocks.
18248         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18249         * doc/gnulib.texi: Include stat-size.texi.
18250         * doc/stat-size.texi: Documentation for this module.
18251         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18252         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18253         AC_STRUCT_ST_BLOCKS.
18254
18255 2011-06-09  Bruno Haible  <bruno@clisp.org>
18256
18257         thread: Support pthreads-win32.
18258         * lib/glthread/thread.h (gl_thread_self): Define differently on
18259         pthreads-win32.
18260         (gl_null_thread): New declaration.
18261         (gl_thread_self_pointer): New macro.
18262         * lib/glthread/thread.c (gl_null_thread): New constant.
18263         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18264         gl_thread_self.
18265         * tests/test-tls.c: Likewise.
18266         Suggested by Paul Eggert. Reported by Eric Blake.
18267
18268 2011-06-09  Bruno Haible  <bruno@clisp.org>
18269
18270         thread: Fix confusion between NULL and 0.
18271         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18272         Reported by Paul Eggert.
18273
18274 2011-06-09  Bruno Haible  <bruno@clisp.org>
18275
18276         spawn-pipe tests: Avoid test failure on HP-UX 11.
18277         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18278         is closed.
18279
18280 2011-06-09  Bruno Haible  <bruno@clisp.org>
18281
18282         acl tests: Fix compilation error on HP-UX 11.
18283         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18284
18285 2011-06-09  Bruno Haible  <bruno@clisp.org>
18286
18287         rmdir: Avoid test failure on HP-UX 10.20.
18288         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18289         EEXIST.
18290
18291 2011-06-08  Eric Blake  <eblake@redhat.com>
18292
18293         perror: fix test on mingw
18294         * modules/perror-tests (Depends-on): Add dup2.
18295
18296         strerror_r-posix: fix on MacOS
18297         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18299         logic bug.
18300         * lib/strerror_r.c (strerror_r): Fix the bug.
18301         * lib/strerror.c (strerror): Likewise.
18302         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18303         problem.
18304         * doc/posix-functions/strerror.texi (strerror): Likewise.
18305         * doc/posix-functions/perror.texi (perror): Likewise.
18306         * tests/test-strerror.c (main): Enhance test.
18307         * tests/test-strerror_r.c (main): Likewise.
18308
18309 2011-06-08  Bruno Haible  <bruno@clisp.org>
18310
18311         gnulib-tool: Better isolation between different gnulib-tool invocations.
18312         * gnulib-tool: New option --witness-c-macro.
18313         (witness_c_macro): New variable.
18314         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18315         AM_CPPFLAGS define it as a C macro.
18316         (func_emit_tests_Makefile_am): Likewise.
18317         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18318         read it from there.
18319         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18320         m4_define, not AC_DEFUN.
18321         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18322         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18323         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18324         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18325         s|...|...|, to substitute the values of the GNULIB_* module indicator
18326         variables.
18327         * modules/dirent (Makefile.am): Likewise.
18328         * modules/fcntl-h (Makefile.am): Likewise.
18329         * modules/iconv-h (Makefile.am): Likewise.
18330         * modules/langinfo (Makefile.am): Likewise.
18331         * modules/locale (Makefile.am): Likewise.
18332         * modules/math (Makefile.am): Likewise.
18333         * modules/netdb (Makefile.am): Likewise.
18334         * modules/poll-h (Makefile.am): Likewise.
18335         * modules/pty (Makefile.am): Likewise.
18336         * modules/search (Makefile.am): Likewise.
18337         * modules/signal (Makefile.am): Likewise.
18338         * modules/spawn (Makefile.am): Likewise.
18339         * modules/stdio (Makefile.am): Likewise.
18340         * modules/stdlib (Makefile.am): Likewise.
18341         * modules/string (Makefile.am): Likewise.
18342         * modules/sys_ioctl (Makefile.am): Likewise.
18343         * modules/sys_select (Makefile.am): Likewise.
18344         * modules/sys_socket (Makefile.am): Likewise.
18345         * modules/sys_stat (Makefile.am): Likewise.
18346         * modules/sys_times (Makefile.am): Likewise.
18347         * modules/sys_utsname (Makefile.am): Likewise.
18348         * modules/sys_wait (Makefile.am): Likewise.
18349         * modules/termios (Makefile.am): Likewise.
18350         * modules/time (Makefile.am): Likewise.
18351         * modules/unistd (Makefile.am): Likewise.
18352         * modules/wchar (Makefile.am): Likewise.
18353
18354 2011-06-08  Eric Blake  <eblake@redhat.com>
18355
18356         strerror: simplify replacement
18357         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18358         * modules/strerror (configure.ac): No prereqs needed here...
18359         * modules/strerror-override (configure.ac): ...but this needs it.
18360         (Files): Add file for needed prereq macro.
18361
18362 2011-06-08  Bruno Haible  <bruno@clisp.org>
18363
18364         strerror_r-posix: Tweaks.
18365         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18366         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18368         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18369         (gl_FUNC_STRERROR_R): ... to here.
18370         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18371
18372 2011-06-07  Eric Blake  <eblake@redhat.com>
18373
18374         perror: document fixed bugs
18375         * doc/posix-functions/perror.texi (perror): Document recent
18376         patches.
18377
18378 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         stat-time: get_stat_birthtime failure is better-defined
18381         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18382         return a timestamp whose tv_sec and tv_nsec values are both -1.
18383         Previously, the spec said only that the tv_nsec value was negative.
18384         This upward-compatible change simplifies GNU tar a bit.
18385
18386 2011-06-07  Eric Blake  <eblake@redhat.com>
18387
18388         strerror_r-posix: work around cygwin 1.7.9
18389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18390         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18391         bug without replacing strerror_r.
18392         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18393         strerror_r is buggy, but without requiring strerror_r compilation.
18394         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18395
18396         test-perror: relax test to ignore cygwin bug
18397         * tests/test-perror2.c (main): Relax test on requiring detection
18398         of stream errors, and use unbuffered stream.
18399         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18400         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18401         * doc/posix-functions/fputc.texi (fputc): Likewise.
18402         * doc/posix-functions/fputs.texi (fputs): Likewise.
18403         * doc/posix-functions/fputws.texi (fputws): Likewise.
18404         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18405         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18406         * doc/posix-functions/getopt.texi (getopt): Likewise.
18407         * doc/posix-functions/perror.texi (perror): Likewise.
18408         * doc/posix-functions/printf.texi (printf): Likewise.
18409         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18410         * doc/posix-functions/psignal.texi (psignal): Likewise.
18411         * doc/posix-functions/putc.texi (putc): Likewise.
18412         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18413         Likewise.
18414         * doc/posix-functions/putchar.texi (putchar): Likewise.
18415         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18416         Likewise.
18417         * doc/posix-functions/puts.texi (puts): Likewise.
18418         * doc/posix-functions/putwc.texi (putwc): Likewise.
18419         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18420         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18421         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18422         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18423         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18424         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18425         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18426         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18427
18428 2011-05-22  Bruno Haible  <bruno@clisp.org>
18429
18430         strerror: Move AC_LIBOBJ invocations to module description.
18431         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18432         gl_PREREQ_STRERROR invocations from here...
18433         * modules/strerror (configure.ac): ... to here.
18434
18435 2011-05-21  Bruno Haible  <bruno@clisp.org>
18436
18437         perror: Use common idiom.
18438         * modules/perror (configure.ac): Reorder statements.
18439
18440 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18441
18442         tests: fix usage message in 'mktempd_'
18443         * tests/init.sh (mktempd_): In the usage message, use literal
18444         'mktempd_', not '$ME' (which is even undefined), as the name of
18445         the subroutine.
18446
18447 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18448
18449         tests init: new function 'fatal_', for hard errors
18450         Before this patch, the only way offered by tests/init.sh to
18451         properly signal a hard error was the `framework_failure_'
18452         function.  But the error message issued by that function,
18453         as its name would suggest, refers to a set-up failure in the
18454         testsuite, while hard errors can obviously also be due to
18455         other reasons.  The best way to fix this inconsistency is to
18456         introduce a new function with a more general error message.
18457         * tests/init.sh (fatal_): New function.
18458
18459 2011-06-06  Eric Blake  <eblake@redhat.com>
18460
18461         canonicalize-lgpl: use common idiom
18462         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18463         over newer POSIX -Rf.
18464         Reported by Bruno Haible.
18465
18466         canonicalize-lgpl: work around AIX realpath bug
18467         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18468         * doc/posix-functions/realpath.texi (realpath): Document it.
18469         Reported by Bruno Haible.
18470
18471         strerror: work around FreeBSD bug
18472         * lib/strerror.c (strerror): Special case 0.
18473         Reported by Bruno Haible.
18474
18475         strerror-override: avoid bloating errno module
18476         * modules/errno (Files, configure.ac): Move replacement strings...
18477         * modules/strerror-override: ...to new module.
18478         * modules/strerror (Depends-on): Add strerror-override.
18479         * modules/strerror_r-posix (Depends-on): Likewise.
18480         * MODULES.html.sh: Document new module.
18481         Reported by Bruno Haible.
18482
18483 2011-06-06  Bruno Haible  <bruno@clisp.org>
18484
18485         spawn-pipe tests: Rename program.
18486         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18487         * tests/test-spawn-pipe-child.c: Update comment.
18488         * tests/test-spawn-pipe.sh: Update.
18489         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18490
18491         spawn-pipe tests: Link the child program only against libc.
18492         * tests/test-spawn-pipe-child.c: New file, extracted from
18493         tests/test-spawn-pipe.c.
18494         (main): Expect only one argument.
18495         (is_open): New function, copied from tests/test-pipe.c.
18496         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18497         (child_main): Remove function.
18498         (test_pipe): Pass only one argument to the child program.
18499         (main): Remove child process code. Expect the child program's name as
18500         first argument.
18501         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18502         argument.
18503         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18504         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18505         test-spawn-pipe-child against no libraries.
18506
18507 2011-06-06  Bruno Haible  <bruno@clisp.org>
18508
18509         careadlinkat: Avoid mismatch between ssize_t and int.
18510         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18511         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18512
18513 2011-06-06  Jim Meyering  <meyering@redhat.com>
18514
18515         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18516         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18517         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18518
18519 2011-06-05  Bruno Haible  <bruno@clisp.org>
18520
18521         ansi-c++-opt: Interoperability with libtool.
18522         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18523         set the variable to "no", not to ":".
18524         * NEWS: Mention the change.
18525
18526 2011-06-05  Bruno Haible  <bruno@clisp.org>
18527
18528         acl: Fix test failure on AIX 7.
18529         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18530         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18531
18532 2011-06-05  Bruno Haible  <bruno@clisp.org>
18533
18534         pipe-filter-ii: Fix test failure on AIX and IRIX.
18535         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18536         with EAGAIN, retry with a smaller buffer size.
18537
18538 2011-06-05  Bruno Haible  <bruno@clisp.org>
18539
18540         localename: Fix link dependencies.
18541         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18542         * modules/localename-tests (Makefile.am): Link test-localename with
18543         $(LIBTHREAD).
18544
18545 2011-06-05  Bruno Haible  <bruno@clisp.org>
18546
18547         error: Avoid gcc warning.
18548         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18549
18550 2011-06-05  Bruno Haible  <bruno@clisp.org>
18551
18552         unsetenv: Avoid gcc warning.
18553         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18554
18555 2011-06-05  Bruno Haible  <bruno@clisp.org>
18556
18557         setenv: Avoid gcc warning.
18558         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18559
18560 2011-06-05  Bruno Haible  <bruno@clisp.org>
18561
18562         sys_select: Ensure memset is declared also on AIX 7.
18563         * lib/sys_select.in.h: Include <string.h> also on AIX.
18564         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18565         self-contained also on AIX 7.1.
18566
18567 2011-06-04  Jim Meyering  <meyering@redhat.com>
18568
18569         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18570         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18571         function name, "error".
18572         (_gl_translatable_diag_func_re): New configurable variable.
18573
18574 2011-06-04  Bruno Haible  <bruno@clisp.org>
18575
18576         getopt: Avoid gcc warning.
18577         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18578
18579 2011-06-04  Bruno Haible  <bruno@clisp.org>
18580
18581         strerror_r: Fix comments.
18582         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18583         commit.
18584
18585 2011-06-04  Bruno Haible  <bruno@clisp.org>
18586
18587         perror: Fix compilation error.
18588         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18589         Undefine fprintf, not sprintf.
18590         * modules/perror (Depends-on): Remove intprops, verify.
18591
18592 2011-06-04  Bruno Haible  <bruno@clisp.org>
18593
18594         setlocale: Enable replacement on Cygwin 1.5.
18595         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18596         Cygwin 1.5.x.
18597         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18598         LC_CTYPE category also exists on Cygwin 1.5.x.
18599
18600 2011-06-04  Bruno Haible  <bruno@clisp.org>
18601
18602         strerror-override: Don't disable symbol renamings.
18603         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18604         * lib/strerror-override.c: Include config.h.
18605         (strerror_override): Don't undefine.
18606
18607 2011-06-03  Bruno Haible  <bruno@clisp.org>
18608
18609         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18610         * lib/localename.h: Update copyright header.
18611         * lib/localename.c: Likewise.
18612         * lib/relocatable.h: Likewise.
18613         * lib/relocatable.c: Likewise.
18614
18615 2011-06-02  Bruno Haible  <bruno@clisp.org>
18616
18617         doc: Fix a module name.
18618         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18619
18620 2011-06-02  Bruno Haible  <bruno@clisp.org>
18621
18622         pipe2: Remove dependency on 'nonblocking' module.
18623         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18624         O_NONBLOCK is defined by gnulib.
18625         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18626         is zero.
18627         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18628         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18629         defined by gnulib.
18630         (get_nonblocking_flag): New function.
18631         (main): Test O_NONBLOCK flag only if it is nonzero.
18632         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18633
18634 2011-06-03  Jim Meyering  <meyering@redhat.com>
18635
18636         maint: three new prohibit-header-without-use rules
18637         Prohibit use of cloexec.h, posixver.h, same.h without use.
18638         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18639         (sc_prohibit_posixver_without_use): Likewise.
18640         (sc_prohibit_same_without_use): Likewise.
18641
18642 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18643
18644         allocator: 'die' routine is now given requested size
18645         * lib/allocator.h (struct allocator.die): New size arg.
18646         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18647         If the actual problem is an ssize_t limitation, not a size_t or
18648         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18649
18650 2011-06-01  Eric Blake  <eblake@redhat.com>
18651
18652         strerror: drop strerror_r dependency
18653         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18654         * lib/strerror-override.c (strerror_override): ...to new file.
18655         * lib/strerror-override.h: Add prototype.
18656         * lib/strerror-impl.h: Delete.
18657         * lib/strerror.c (strerror): New implementation.
18658         * modules/errno (Files): Add new files.
18659         (configure.ac): Compile new file as appropriate.
18660         * modules/strerror (Files): Drop unused file.
18661         (Depends-on): Drop strerror_r-posix.
18662         * MODULES.html.sh: Document strerror_r-posix.
18663         Requested by Sam Steingold.
18664
18665         perror: call strerror_r directly
18666         * modules/perror (Files): Drop strerror-impl.h.
18667         * lib/perror.c (perror): Use our own stack buffer, rather than
18668         calling a wrapper that uses static storage.
18669         * doc/posix-functions/perror.texi (perror): Document a limitation
18670         of our replacement.
18671
18672         strerror_r: fix includes for FreeBSD
18673         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18674         since we use abort on some platforms.
18675         Reported by Matthias Bolte.
18676
18677 2011-05-31  Bruno Haible  <bruno@clisp.org>
18678
18679         Fix link errors in tests: openat-die uses gettext-h.
18680         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18681         against $(LIBINTL).
18682         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18683         against $(LIBINTL).
18684         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18685         $(LIBINTL).
18686         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18687         against $(LIBINTL).
18688         * modules/linkat-tests (Makefile.am): Link test-linkat against
18689         $(LIBINTL).
18690         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18691         $(LIBINTL).
18692         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18693         against $(LIBINTL).
18694         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18695         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18696         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18697         $(LIBINTL).
18698         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18699         $(LIBINTL).
18700         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18701         $(LIBINTL).
18702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18703
18704 2011-05-31  Bruno Haible  <bruno@clisp.org>
18705
18706         Fix link errors in tests: wait-process uses gettext-h.
18707         * modules/nonblocking-pipe-tests (Makefile.am): Set
18708         test_nonblocking_pipe_main_LDADD.
18709         * modules/nonblocking-socket-tests (Makefile.am): Link
18710         test-nonblocking-socket-main against $(LIBINTL).
18711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18712
18713 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18714
18715         assert-h: work around 'verify' incompatibility
18716         * lib/verify.h: Use @...@ directives, not ifdef.
18717         * modules/assert-h (assert.h): Implement the directives.
18718         (assert.h): Substitute the symbol-prefix more consistently.
18719
18720 2011-05-29  Jim Meyering  <meyering@redhat.com>
18721
18722         trim: remove three superfluous assignments
18723         * lib/trim.c (trim2): Remove three superfluous assignments
18724         and correct brace positioning.
18725
18726 2011-05-29  Bruno Haible  <bruno@clisp.org>
18727
18728         wctype-h: Avoid namespace pollution on Solaris 2.6.
18729         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18730         identifiers.
18731         * doc/posix-headers/wctype.texi: Mention the problem.
18732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18733
18734 2011-05-28  Jim Meyering  <meyering@redhat.com>
18735
18736         parse-datetime.y: accommodate -Wstrict-overflow
18737         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18738         placate -Wstrict-overflow.
18739
18740         trim: avoid a warning from -O2 -Wstrict-overflow
18741         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18742
18743 2011-05-29  Bruno Haible  <bruno@clisp.org>
18744
18745         gnulib-tool: Fix bug in yesterday's commit.
18746         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18747         twice.
18748
18749 2011-05-29  Bruno Haible  <bruno@clisp.org>
18750
18751         Allow multiple gnulib generated include files to be combined.
18752         * gnulib-tool (func_compute_include_guard_prefix): New function.
18753         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18754         ${gl_include_guard_prefix} references.
18755         (func_import, func_create_testdir): Invoke
18756         func_compute_include_guard_prefix.
18757         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18758         * lib/ctype.in.h: Likewise.
18759         * lib/dirent.in.h: Likewise.
18760         * lib/errno.in.h: Likewise.
18761         * lib/fcntl.in.h: Likewise.
18762         * lib/float.in.h: Likewise.
18763         * lib/getopt.in.h: Likewise.
18764         * lib/iconv.in.h: Likewise.
18765         * lib/langinfo.in.h: Likewise.
18766         * lib/locale.in.h: Likewise.
18767         * lib/math.in.h: Likewise.
18768         * lib/netdb.in.h: Likewise.
18769         * lib/netinet_in.in.h: Likewise.
18770         * lib/poll.in.h: Likewise.
18771         * lib/pthread.in.h: Likewise.
18772         * lib/pty.in.h: Likewise.
18773         * lib/sched.in.h: Likewise.
18774         * lib/se-selinux.in.h: Likewise.
18775         * lib/search.in.h: Likewise.
18776         * lib/signal.in.h: Likewise.
18777         * lib/spawn.in.h: Likewise.
18778         * lib/stdarg.in.h: Likewise.
18779         * lib/stddef.in.h: Likewise.
18780         * lib/stdint.in.h: Likewise.
18781         * lib/stdio.in.h: Likewise.
18782         * lib/stdlib.in.h: Likewise.
18783         * lib/string.in.h: Likewise.
18784         * lib/strings.in.h: Likewise.
18785         * lib/sys_file.in.h: Likewise.
18786         * lib/sys_ioctl.in.h: Likewise.
18787         * lib/sys_select.in.h: Likewise.
18788         * lib/sys_socket.in.h: Likewise.
18789         * lib/sys_stat.in.h: Likewise.
18790         * lib/sys_time.in.h: Likewise.
18791         * lib/sys_times.in.h: Likewise.
18792         * lib/sys_uio.in.h: Likewise.
18793         * lib/sys_utsname.in.h: Likewise.
18794         * lib/sys_wait.in.h: Likewise.
18795         * lib/sysexits.in.h: Likewise.
18796         * lib/termios.in.h: Likewise.
18797         * lib/time.in.h: Likewise.
18798         * lib/unistd.in.h: Likewise.
18799         * lib/wchar.in.h: Likewise.
18800         * lib/wctype.in.h: Likewise.
18801         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18802         * modules/ctype (Makefile.am): Likewise.
18803         * modules/dirent (Makefile.am): Likewise.
18804         * modules/errno (Makefile.am): Likewise.
18805         * modules/fcntl-h (Makefile.am): Likewise.
18806         * modules/float (Makefile.am): Likewise.
18807         * modules/getopt-posix (Makefile.am): Likewise.
18808         * modules/iconv-h (Makefile.am): Likewise.
18809         * modules/langinfo (Makefile.am): Likewise.
18810         * modules/locale (Makefile.am): Likewise.
18811         * modules/math (Makefile.am): Likewise.
18812         * modules/netdb (Makefile.am): Likewise.
18813         * modules/netinet_in (Makefile.am): Likewise.
18814         * modules/poll-h (Makefile.am): Likewise.
18815         * modules/pthread (Makefile.am): Likewise.
18816         * modules/pty (Makefile.am): Likewise.
18817         * modules/sched (Makefile.am): Likewise.
18818         * modules/search (Makefile.am): Likewise.
18819         * modules/selinux-h (Makefile.am): Likewise.
18820         * modules/signal (Makefile.am): Likewise.
18821         * modules/spawn (Makefile.am): Likewise.
18822         * modules/stdarg (Makefile.am): Likewise.
18823         * modules/stddef (Makefile.am): Likewise.
18824         * modules/stdint (Makefile.am): Likewise.
18825         * modules/stdio (Makefile.am): Likewise.
18826         * modules/stdlib (Makefile.am): Likewise.
18827         * modules/string (Makefile.am): Likewise.
18828         * modules/strings (Makefile.am): Likewise.
18829         * modules/sys_file (Makefile.am): Likewise.
18830         * modules/sys_ioctl (Makefile.am): Likewise.
18831         * modules/sys_select (Makefile.am): Likewise.
18832         * modules/sys_socket (Makefile.am): Likewise.
18833         * modules/sys_stat (Makefile.am): Likewise.
18834         * modules/sys_time (Makefile.am): Likewise.
18835         * modules/sys_times (Makefile.am): Likewise.
18836         * modules/sys_uio (Makefile.am): Likewise.
18837         * modules/sys_utsname (Makefile.am): Likewise.
18838         * modules/sys_wait (Makefile.am): Likewise.
18839         * modules/sysexits (Makefile.am): Likewise.
18840         * modules/termios (Makefile.am): Likewise.
18841         * modules/time (Makefile.am): Likewise.
18842         * modules/unistd (Makefile.am): Likewise.
18843         * modules/wchar (Makefile.am): Likewise.
18844         * modules/wctype-h (Makefile.am): Likewise.
18845         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18846
18847 2011-05-29  Bruno Haible  <bruno@clisp.org>
18848
18849         assert-h: Allow multiple gnulib generated replacements to coexist.
18850         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18851
18852 2011-05-29  Bruno Haible  <bruno@clisp.org>
18853
18854         argp: Allow coexistence with strerror_r-posix module.
18855         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18856         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18857         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18858         not the glibc signature.
18859
18860 2011-05-28  Bruno Haible  <bruno@clisp.org>
18861
18862         gnulib-tool: Alternative structure of testdirs, similar to --import.
18863         * gnulib-tool: New option --single-configure.
18864         (func_usage): Document it.
18865         (single_configure): New variable.
18866         (func_modules_transitive_closure_separately,
18867         func_modules_transitive_closure_separately,
18868         func_determine_use_libtests, func_modules_add_dummy_separately,
18869         func_modules_to_filelist_separately): New functions, extracted from
18870         func_import.
18871         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18872         (func_import): Use the new functions.
18873         (func_create_testdir): Set final_modules. Handle $single_configure =
18874         true case.
18875
18876 2011-05-28  Bruno Haible  <bruno@clisp.org>
18877
18878         getloadavg: Remove an unreliable safety check.
18879         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18880         getloadavg.c is in place.
18881         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18882         Reported by Sam Steingold <sds@gnu.org>.
18883
18884 2011-05-28  Bruno Haible  <bruno@clisp.org>
18885
18886         doc: Cleanup yet another file produced by texinfo.tex.
18887         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18888
18889 2011-05-28  Bruno Haible  <bruno@clisp.org>
18890
18891         Finish the conditional dependencies mechanism.
18892         * gnulib-tool: New option --no-conditional-dependencies.
18893         (func_usage): Document it. Don't mark --conditional-dependencies as
18894         experimental.
18895         (cond_dependencies): The possible values can now be true, false, empty.
18896         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18897         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18898         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18899
18900 2011-05-28  Bruno Haible  <bruno@clisp.org>
18901
18902         doc: Use a recent texinfo.tex.
18903         * doc/Makefile (tex_opts): New variable.
18904         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18905
18906 2011-05-28  Jim Meyering  <meyering@redhat.com>
18907
18908         intprops.h: adjust comment to match code change
18909         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18910         only once, it *may* have side effects.  Also fix an unrelated typo.
18911         (_GL_INT_SIGNED): Likewise.
18912
18913 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18914
18915         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18916
18917 2011-05-26  Bruno Haible  <bruno@clisp.org>
18918
18919         mbsrchr: Avoid collision with system function on Interix.
18920         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18921         Reported by Markus Duft <mduft@gentoo.org>.
18922
18923 2011-05-15  James Youngman  <jay@gnu.org>
18924
18925         getopt: for ambiguous options, enumerate the possibilities.
18926         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18927         the ambiguous options when an ambiguous prefix is given. This was
18928         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18929         glibc change was
18930         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18931
18932 2011-05-25  Eric Blake  <eblake@redhat.com>
18933
18934         getcwd: work around mingw bug
18935         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18936         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18937         Reported by Matthias Bolte.
18938
18939 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         test-intprops: disable -Wtype-limits diagnostics
18942         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18943         diagnostics.  Otherwise, the integer overflow macros generate many
18944         diagnostics.  Reported by Jim Meyering in
18945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18946
18947         intprops: shorten, to pacify gcc -Woverlength-strings
18948         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18949         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18950         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18951         likely to run afoul of C compiler limits for string constant lengths.
18952         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18953
18954 2011-05-24  Eric Blake  <eblake@redhat.com>
18955
18956         docs: document recently fixed glibc printf bug
18957         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18958         * doc/posix-functions/printf.texi (printf): Likewise.
18959         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18960         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18961
18962         closein-tests: convert to init.sh
18963         * modules/closein-tests (Files): Add init.sh
18964         * tests/test-closein.sh Use it.
18965
18966         yesno-tests: convert to init.sh
18967         * modules/yesno-tests (Files): Add init.sh.
18968         * tests/test-yesno.sh: Use it.
18969
18970         atexit-tests: ensure reliable exit status
18971         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18972         Reported by Bruno Haible.
18973
18974 2011-05-24  Bruno Haible  <bruno@clisp.org>
18975
18976         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18977         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18978         gl_PREREQ_STRERROR_R invocations from here...
18979         * modules/strerror_r-posix (configure.ac): ... to here.
18980
18981 2011-05-24  Eric Blake  <eblake@redhat.com>
18982
18983         strerror_r: fix missing header
18984         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18985
18986         strerror_r: fix AIX test failures
18987         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18988         ERANGE failure.
18989
18990         strerror_r: fix Solaris test failures
18991         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18992         failures.
18993         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18994
18995         strerror_r: enforce POSIX recommendations
18996         * lib/strerror_r.c (safe_copy): New helper method.
18997         (strerror_r): Guarantee a non-empty string.
18998         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18999         recent POSIX rulings and to match our strerror guarantees.
19000         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19001
19002 2011-05-24  Jim Meyering  <meyering@redhat.com>
19003
19004         test-perror2.c: avoid warning about unused variable
19005         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19006
19007 2011-05-24  Eric Blake  <eblake@redhat.com>
19008
19009         perror: avoid spurious test failure on HP-UX
19010         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19011
19012         tests: fix logic bug in init.sh
19013         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19014         shell.
19015
19016 2011-05-24  Jim Meyering  <meyering@redhat.com>
19017
19018         utimensat: do not reference an out-of-scope buffer
19019         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19020         declared in an inner scope, yet "times" would be dereferenced outside
19021         the scope in which "ts" was valid.
19022         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19023         of ts[2] "out/up", so that the use of aliased "times" (via
19024         "times = ts;") does not end up referencing an out-of-scope "ts"
19025
19026         opendir-safer.c: don't clobber errno; don't close negative FD
19027         * lib/opendir-safer.c (opendir_safer):
19028         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19029         file descriptor, and more importantly, don't clobber the
19030         offending errno value with EINVAL.  Before, upon failure
19031         of dup_safer, we would pass the negative file descriptor to
19032         fdopendir, which would clobber errno.
19033
19034 2011-05-23  Bruno Haible  <bruno@clisp.org>
19035
19036         idcache: Fix module description.
19037         * modules/idcache (Include): Set to "idcache.h".
19038
19039 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19040
19041         gnulib-tool: fix portability problem with MacOS sed
19042         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19043         before the "}".  Problem reported by Leo in
19044         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19045         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19046         sed_extract_condition1, sed_extract_condition2.
19047
19048 2011-05-23  Bruno Haible  <bruno@clisp.org>
19049
19050         hash: Simplify autoconf macro.
19051         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19052
19053 2011-05-23  Bruno Haible  <bruno@clisp.org>
19054
19055         getugroups: Fix module description.
19056         * modules/getugroups (Include): Set to "getugroups.h".
19057
19058 2011-05-23  Bruno Haible  <bruno@clisp.org>
19059
19060         linkat: Simplify autoconf macro.
19061         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19062
19063 2011-05-23  Bruno Haible  <bruno@clisp.org>
19064             Eric Blake  <eblake@redhat.com>
19065
19066         linkat, renameat: Update dependencies.
19067         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19068         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19069         symlinkat.
19070
19071 2011-05-23  Jim Meyering  <meyering@redhat.com>
19072
19073         maint.mk: more tight_scope improvements
19074         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19075         (_gl_TS_headers): Define only in if-0'd block.
19076         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19077         sometimes we must *not* use it.  Adjust uses accordingly.
19078         (sc_tight_scope): Use much simpler grep-based test to determine
19079         whether we skip this rule.
19080
19081         maint.mk: generalize/improve the tight-scope rule
19082         * top/maint.mk: Emit a warning when the test is skipped.
19083         (_gl_TS_dir): Add $(srcdir)/ prefix.
19084         (_gl_TS_function_match): Simplify, rather than trying
19085         to enumerate common types.  Otherwise, it would fail to match an
19086         "extern unsigned char const *" declaration in idutils.
19087         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19088         a way to support use of that type of macro.
19089         (_gl_TS_var_match): Simplify regexp.
19090         (_gl_TS_obj_files): New configurable variable.
19091         (_gl_TS_headers): Likewise.
19092
19093 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         verify: fix bug when gnulib <assert.h> is also included
19096         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19097         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19098         Perhaps there's a better way, but this fixes the immediate problem.
19099         Problem reported by Bruno Haible in
19100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19101
19102 2011-05-22  Bruno Haible  <bruno@clisp.org>
19103
19104         xgetcwd: Simplify autoconf macro.
19105         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19106
19107 2011-05-22  Bruno Haible  <bruno@clisp.org>
19108
19109         New module 'mktime-internal'.
19110         * modules/mktime-internal: New file.
19111         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19112         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19113         mktime_internal as a C macro if libc has __mktime_internal.
19114         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19115         conditions.
19116         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19117
19118 2011-05-22  Bruno Haible  <bruno@clisp.org>
19119
19120         timegm: Correct mktime replacement statements.
19121         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19122         defining mktime as a C macro. This completes a 2009-07-28 commit.
19123
19124 2011-05-22  Bruno Haible  <bruno@clisp.org>
19125
19126         timegm: Simplify autoconf macro.
19127         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19128
19129 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19130
19131         clock-time: change to LGPLv2+.
19132         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19133         BSD-like but we have no mark for that; this is good enough for now.
19134
19135 2011-05-21  Bruno Haible  <bruno@clisp.org>
19136
19137         strerror_r: Fix comments.
19138         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19139
19140 2011-05-21  Bruno Haible  <bruno@clisp.org>
19141
19142         relocatable-prog-wrapper: Fix possible link error.
19143         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19144         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19145         (gl_FUNC_SETENV): ... to here.
19146         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19147         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19148
19149 2011-05-21  Bruno Haible  <bruno@clisp.org>
19150
19151         relocatable-prog-wrapper: Assume strerror() exists.
19152         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19153         m4/strerror.m4.
19154         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19155         * lib/relocwrapper.c: Remove mention of strerror module.
19156         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19158         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19159         C macro.
19160
19161 2011-05-21  Bruno Haible  <bruno@clisp.org>
19162
19163         select: Simplify replacement idiom.
19164         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19165         Win32 platforms.
19166         * lib/sys_select.in.h (select): Simplify accordingly.
19167         * modules/select (Depends-on): Likewise.
19168
19169 2011-05-21  Bruno Haible  <bruno@clisp.org>
19170
19171         mkdir-p: Simplify autoconf macro.
19172         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19173         gl_FUNC_LCHOWN.
19174
19175 2011-05-21  Eric Blake  <eblake@redhat.com>
19176
19177         strerror_r: avoid clobbering strerror on cygwin
19178         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19179         fall back instead to sys_errlist.
19180         * modules/strerror (configure.ac): Add witness.
19181         * tests/test-strerror_r.c (main): Enhance test.
19182         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19183         * tests/test-perror2.c (main): Free memory before exit.
19184
19185 2011-05-21  Bruno Haible  <bruno@clisp.org>
19186
19187         mkdtemp: Use gnulib naming conventions.
19188         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19189         * modules/mkdtemp (configure.ac): Update.
19190
19191 2011-05-20  Eric Blake  <eblake@redhat.com>
19192
19193         strerror_r: avoid corrupting errno on Solaris
19194         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19195         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19196
19197         strerror_r: avoid compiler warning
19198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19199
19200         strerror_r: simplify AIX code
19201         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19202
19203         test-perror: avoid spurious failure on FreeBSD
19204         * modules/perror-tests (Depends-on): Add strerror, now that
19205         strerror_r no longer pulls it in.
19206
19207 2011-05-20  Bruno Haible  <bruno@clisp.org>
19208
19209         strerror_r-posix: Remove unused dependencies.
19210         * modules/strerror_r-posix (Depends-on): Remove strerror.
19211         Reported by Eric Blake.
19212
19213 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         intprops: remove assumption about A|B representation
19216         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19217         is a valid integer if both A and B are.  Although this is true for
19218         all known practical hosts, the C standard doesn't guarantee it,
19219         and the code need not assume it.  Also, this change may work around
19220         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19222
19223 2011-05-20  Eric Blake  <eblake@redhat.com>
19224
19225         perror: work around FreeBSD bug
19226         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19227         is broken.  Move AC_LIBOBJ...
19228         * modules/perror (configure.ac): Here.
19229         * doc/posix-functions/perror.texi (perror): Document this.
19230         * tests/test-perror2.c (main): Enhance test.
19231
19232         test-perror: check for strerror interactions
19233         * tests/macros.h (STREQ): Add macro.
19234         * modules/perror-tests (Files): Add second test.
19235         * tests/test-perror2.c (main): New file.
19236         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19237
19238         test-perror: rewrite to use init script
19239         * modules/perror-tests (Files): Add init.sh.
19240         * tests/test-perror.sh: Use temporary directory.
19241
19242 2011-05-20  Jim Meyering  <meyering@redhat.com>
19243
19244         maint: replace misused "a" with "an"
19245         * doc/intprops.texi: "a integer"
19246         * doc/regex.texi: "a explanation"
19247         * lib/alignof.h: "a object"
19248         * lib/argmatch.h: "a explanation"
19249         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19250         * lib/stdint.in.h: "a integer"
19251         * lib/userspec.c: "a owner"
19252         * doc/gnulib.texi: Fix "a idea", and reword.
19253
19254 2011-05-19  Jim Meyering  <meyering@redhat.com>
19255
19256         maint: correct misuse of "a" and "an"
19257         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19258         * lib/argp-help.c: "an docum...": s/an/a/
19259         * lib/argp-parse.c: "An vector": s/An/A/
19260         * lib/execute.c: "an native": s/an/a/
19261         * lib/spawn-pipe.c: Likewise.
19262         * lib/gc.h: "an Gc_rc": s/an/a/
19263         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19264         * lib/fts.c: "an stat.st_dev": s/an/a/
19265
19266 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19267
19268         intprops-tests: work around HP-UX 11.23 cc bug with constants
19269         * tests/test-intprops.c (VERIFY): New macro.
19270         (main): Use it, instead of verify, to work around the compiler bug; see
19271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19272
19273         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19274         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19275         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19276         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19277         (_GL_REMAINDER_OVERFLOW): Use it.
19278
19279         intprops-tests: revert unsigned part of previous change
19280         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19281         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19282         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19284
19285 2011-05-19  Bruno Haible  <bruno@clisp.org>
19286
19287         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19288         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19289         strerror_r() returned without filling the buffer.
19290         Reported by Eric Blake.
19291
19292 2011-05-19  Eric Blake  <eblake@redhat.com>
19293
19294         strerror_r: guarantee unchanged errno
19295         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19296         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19297         failure.
19298         * tests/test-strerror_r.c (main): Enhance test.
19299
19300 2011-05-19  Bruno Haible  <bruno@clisp.org>
19301
19302         strerror_r: Reorder #if blocks.
19303         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19304         for consistency with the previous commit.
19305
19306 2011-05-19  Bruno Haible  <bruno@clisp.org>
19307
19308         perror: Avoid clobbering the strerror buffer when possible.
19309         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19310         * lib/strerror.c: Include it.
19311         * modules/strerror (Files): Add lib/strerror-impl.h.
19312         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19313         (my_strerror): New function, defined through lib/strerror-impl.h.
19314         (perror): Use it instead of strerror.
19315         * modules/perror (Files): Add lib/strerror-impl.h.
19316         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19317
19318 2011-05-19  Eric Blake  <eblake@redhat.com>
19319
19320         strerror_r: fix on newer cygwin
19321         * lib/strerror_r.c (strerror_r): Cygwin now has
19322         __xpg_strerror_r, use it.
19323
19324 2011-05-19  Bruno Haible  <bruno@clisp.org>
19325
19326         strerror_r: Avoid clobbering the strerror buffer when possible.
19327         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19328         (sys_nerr, sys_errlist): New declarations.
19329         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19330         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19331         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19332
19333 2011-05-19  Bruno Haible  <bruno@clisp.org>
19334
19335         strerror_r: Fix test failure on mingw.
19336         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19337         EXTEND_STRERROR_R.
19338         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19339         macros from errno.in.h instead.
19340
19341 2011-05-19  Eric Blake  <eblake@redhat.com>
19342
19343         strerror: relax test for Solaris
19344         * tests/test-strerror.c (main): Permit Solaris behavior.
19345         * tests/test-strerror_r.c (main): Likewise.
19346
19347         strerror: enforce POSIX ruling on strerror(0)
19348         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19350         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19351         * doc/posix-functions/strerror.texi (strerror): Document it.
19352         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19353         * tests/test-strerror.c (main): Strengthen test.
19354         * tests/test-strerror_r.c (main): Likewise.
19355
19356 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         intprop-tests: port to older and more-pedantic compilers
19359         * modules/intprops-tests (Files): Add tests/macros.h.
19360         * tests/test-intprops.c: Include macros.h.
19361         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19362         it's no longer documented to expand to an integer constant expression.
19363         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19364         argument is floating point, as it's no longer documented to expand
19365         to an integer constant expression in that case.
19366         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19367         compiler bugs reported by Bruno Haible.  See
19368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19369         (U0, U1): New constants, to work around the same bugs.  Also,
19370         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19371
19372         intprops: work around C compiler bugs
19373         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19374         bug in Sun C 5.11 2010/08/13 and other compilers; see
19375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19376
19377         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19378         * doc/intprops.texi (Integer Type Determination): Fix
19379         documentation for TYPE_IS_INTEGER: it returns an constant
19380         expression, not an integer constant expression.  Fix doc for
19381         TYPE_SIGNED: it returns an integer constant expression only if its
19382         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19383         hardly worth documented that way....)
19384
19385 2011-05-18  Bruno Haible  <bruno@clisp.org>
19386
19387         strerror_r: Avoid clobbering the strerror buffer when possible.
19388         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19389         Handle gnulib defined errno values here. When strerror() returns NULL
19390         or an empty string, return EINVAL.
19391         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19392         gnulib defined errno values here.
19393         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19394
19395 2011-05-18  Eric Blake  <eblake@redhat.com>
19396
19397         fnmatch: avoid compiler warning
19398         * lib/fnmatch_loop.c (FCT): Use correct type.
19399         Reported by Matthias Bolte.
19400
19401 2011-05-13  Jim Meyering  <meyering@redhat.com>
19402
19403         maint.mk: three new prohibit_<HDR>_without_use rules
19404         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19405         (sc_prohibit_stdio-safer_without_use): Likewise.
19406         (sc_prohibit_xfreopen_without_use): Likewise.
19407
19408 2011-05-17  Jim Meyering  <meyering@redhat.com>
19409
19410         announce-gen: fail if the NEWS delta is empty
19411         If there's nothing noteworthy in NEWS, then either you forgot
19412         or you shouldn't be releasing.
19413         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19414
19415 2011-05-17  Pádraig Brady <P@draigBrady.com>
19416
19417         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19418         reserved symbols starting with double underscore from the check.
19419
19420 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19421
19422         intprops: add doc
19423         * doc/intprops.texi: New file, documenting intprops.
19424         * doc/gnulib.texi (Particular Modules): Include it.
19425
19426         verify: add doc to gnulib manual and fix example
19427         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19428         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19429         (Compile-time Assertions): Fix example so it can't overflow.
19430
19431 2011-05-17  Jim Meyering  <meyering@redhat.com>
19432
19433         warnings.m4: don't usurp save_CPPFLAGS variable name
19434         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19435
19436         doc: fix typo
19437         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19438
19439 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19440             Bruno Haible  <bruno@clisp.org>
19441
19442         doc: Tweak recent change.
19443         * README (Portability guidelines): Tweak new text.
19444         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19445         Interix 6.1.
19446
19447 2011-05-16  Eric Blake  <eblake@redhat.com>
19448
19449         inttypes: avoid autoconf warning
19450         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19451         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19452
19453 2011-05-16  Sam Steingold <sds@gnu.org>
19454         and Eric Blake  <eblake@redhat.com>
19455
19456         vc-list-files: accept multiple directory operands
19457         * build-aux/vc-list-files: Iterate over all remaining operands.
19458
19459 2011-05-16  Bruno Haible  <bruno@clisp.org>
19460
19461         Fix confusion regarding deprecated modules.
19462         * modules/calloc (Status, Notice): Mark module as deprecated, not
19463         obsolete.
19464         * modules/fnmatch-posix (Status, Notice): Likewise.
19465         * modules/getdate (Status, Notice): Likewise.
19466         * modules/getopt (Status, Notice): Likewise.
19467         * modules/malloc (Status, Notice): Likewise.
19468         * modules/pipe (Status, Notice): Likewise.
19469         * modules/realloc (Status, Notice): Likewise.
19470         * modules/rename-dest-slash (Status, Notice): Likewise.
19471         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19472         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19473         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19474         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19475         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19476
19477 2011-05-16  Bruno Haible  <bruno@clisp.org>
19478
19479         doc: List the target platforms.
19480         * doc/gnulib-intro.texi (Target Platforms): New section.
19481         * doc/gnulib.texi (Introduction): Update menu.
19482         * README (Portability guidelines): Refer to the new section. Update
19483         statement about oldest supported environment. Remove rationale why
19484         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19485         unportable C89 function.
19486         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19487         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19488
19489 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19490
19491         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19492
19493 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19494
19495         intprops-tests: new module
19496         * modules/intprops-tests, tests/test-intprops.c: New files.
19497
19498         intprops: add safe, portable integer overflow checking
19499         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19500         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19501         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19502         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19503         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19504         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19505         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19506         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19507         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19508         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19509         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19510
19511 2011-05-12  James Youngman  <jay@gnu.org>
19512
19513         Add a test for glibc's Bugzilla bug #12378.
19514         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19515         doesn't allow the literal matching of a lone "[" (which is
19516         required by POSIX).
19517         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19518
19519 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19520
19521         Sync glibc change fixing Bugzilla bug #12378.
19522         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19523         beginning and fall back to matching as normal character if the
19524         string ends before the matching ']' is found.  This is what POSIX
19525         requires.
19526
19527 2011-05-13  Eric Blake  <eblake@redhat.com>
19528
19529         getcwd-lgpl: relax test for FreeBSD
19530         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19531         issue.
19532         * tests/test-getcwd-lgpl.c (main): Relax test.
19533         Reported by Matthias Bolte.
19534
19535 2011-05-11  Eric Blake  <eblake@redhat.com>
19536
19537         test-fflush: silence compiler warning
19538         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19539
19540 2011-05-11  Bruno Haible  <bruno@clisp.org>
19541
19542         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19543         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19544         * modules/canonicalize (Depends-on): Add 'nocrash'.
19545         * modules/canonicalize-lgpl (Depends-on): Likewise.
19546         * doc/posix-functions/realpath.texi: Update platforms list.
19547         Reported by Ryan Schmidt <ryandesign@macports.org>.
19548
19549 2011-05-11  Bruno Haible  <bruno@clisp.org>
19550
19551         group-member: Declare function in <unistd.h>.
19552         * lib/unistd.in.h (group_member): New declaration.
19553         * lib/group-member.h: Remove file.
19554         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19555         * tests/test-unistd-c++.cc: Check signature of group_member.
19556         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19557         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19558         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19559         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19560         HAVE_GROUP_MEMBER.
19561         * modules/group-member (Files): Remove lib/group-member.h.
19562         (Depends-on): Add unistd. Specify conditions.
19563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19564         (Include): Change to <unistd.h>.
19565         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19566         HAVE_GROUP_MEMBER.
19567         * NEWS: Mention the change.
19568         * lib/euidaccess.c: Don't include group-member.h.
19569
19570 2011-05-11  Bruno Haible  <bruno@clisp.org>
19571
19572         group-member: Document module.
19573         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19574         module.
19575
19576 2011-05-11  Bruno Haible  <bruno@clisp.org>
19577
19578         fclose: Fix mistake earlier today.
19579         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19580
19581 2011-05-11  Eric Blake  <eblake@redhat.com>
19582
19583         fclose: preserve fflush errors
19584         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19585         Reported by Jim Meyering.
19586
19587         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19588         * build-aux/bootstrap (check_versions): When no specific version
19589         is required, merely check that the app produces an exit status
19590         that indicates its existence.
19591
19592         maint.mk: drop redundant check
19593         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19594         the same but better.
19595
19596 2011-05-11  Bruno Haible  <bruno@clisp.org>
19597
19598         fclose: Fix possible link error.
19599         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19600         unregister_shadow_fd. Improve comments.
19601         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19602         Eric Blake.
19603
19604 2011-05-11  Jim Meyering  <meyering@redhat.com>
19605
19606         maint.mk: improve "can not" detection and generalize rule name
19607         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19608         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19609         Use the same technique as in sc_prohibit_doubled_word, so that
19610         we recognize "can not" also when the words are separated by a newline.
19611         Suggested by Eric Blake.
19612         (perl_filename_lineno_text_): Define.  Factored out of...
19613         (prohibit_doubled_word_): ...here.  Use the new definition.
19614         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19615         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19616         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19617
19618 2011-05-10  Eric Blake  <eblake@redhat.com>
19619
19620         fclose: avoid double close race when possible
19621         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19622         all but WINDOWS_SOCKETS.
19623
19624 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19625
19626         openat: correct new comment
19627         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19628
19629 2011-05-10  Jim Meyering  <meyering@redhat.com>
19630
19631         openat: add comments
19632         * lib/openat-proc.c (openat_proc_name): Add comments,
19633         mostly from Eric Blake.
19634
19635 2011-05-09  Eric Blake  <eblake@redhat.com>
19636
19637         openat: reduce syscalls in first probe of /proc
19638         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19639         be a directory.  Simplify the probe for .. bugs.
19640         * modules/openat (Depends-on): Drop same-inode.
19641         Reported by Bastien ROUCARIES.
19642
19643 2011-05-09  Jim Meyering  <meyering@redhat.com>
19644
19645         maint.mk: change semantics/name of tight_scope variables
19646         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19647         Rename variables to align with semantics that make them more useful.
19648
19649         maint.mk: tweak new rule's name not to impinge
19650         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19651         (sc_tight_scope): Use new rule name rather than $@-0.
19652
19653         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19654         * top/maint.mk (sc_tight_scope): New rule.
19655         (sc_tight_scope-0): New rule, ifdef'd out.
19656         (_gl_TS_dir): Default.
19657         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19658         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19659
19660 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19661
19662         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19663         Haible <bruno@clisp.org>.
19664
19665 2011-05-08  Bruno Haible  <bruno@clisp.org>
19666
19667         Comments.
19668         * m4/isnanf.m4: Add comment.
19669         * m4/isnanl.m4: Likewise.
19670
19671 2011-05-08  Bruno Haible  <bruno@clisp.org>
19672
19673         glob: Remove obsolete macro.
19674         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19675
19676 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19677
19678         intprops: Sun C 5.11 supports __typeof__
19679         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19680         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19681         which is new.
19682         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19683
19684         intprops: switch to usual gnulib indenting and naming
19685         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19686         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19687
19688         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19689
19690 2011-05-08  Jim Meyering  <meyering@redhat.com>
19691
19692         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19693         * top/maint.mk (release-prep): Use make's --no-print-directory
19694         option when generating the announcement.  This eliminates the
19695         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19696         generated announcement template.
19697
19698 2011-05-08  Bruno Haible  <bruno@clisp.org>
19699
19700         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19701         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19702         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19703
19704 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19705
19706         ignore-value, verify: Omit include files from lib_SOURCES.
19707         * modules/ignore-value, modules/verify (Makefile.am):
19708         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19709         that leads Automake to duplicate use of am__objects_... variables
19710         in Makefile.in.  See
19711         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19712
19713 2011-05-07  Bruno Haible  <bruno@clisp.org>
19714
19715         fclose: Simplify autoconf macro.
19716         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19717         defined.
19718
19719 2011-05-07  Bruno Haible  <bruno@clisp.org>
19720
19721         canonicalize-lgpl: Fix autoconf macro ordering bug.
19722         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19723         gl_STDLIB_H_DEFAULTS.
19724
19725 2011-05-06  Eric Blake  <eblake@redhat.com>
19726
19727         maintainer-makefile: make sc_po_check easier to tune
19728         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19729         to probe for strings, such as an alternate location for gnulib.
19730
19731         fclose: guarantee behavior on seekable stdin
19732         * modules/fclose (Depends-on): Add fflush.
19733         * doc/posix-functions/fclose.texi (fclose): Document this.
19734         * tests/test-fclose.c (main): Make test for this unconditional.
19735
19736 2011-05-06  Bruno Haible  <bruno@clisp.org>
19737
19738         fflush, fpurge: Relicense under LGPLv2+.
19739         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19740         * modules/fpurge (License): Likewise.
19741         With permission from Eric Blake and Jim Meyering.
19742         Suggested by Eric Blake.
19743
19744 2011-05-06  Karl Berry  <karl@gnu.org>
19745
19746         * MODULES.html.sh (func_all_modules): remove exit.
19747
19748 2011-05-06  Jim Meyering  <meyering@redhat.com>
19749
19750         maint.mk: use info-gnu@ as the default only for a stable release
19751         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19752         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19753         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19754         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19755
19756 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19757
19758         assert-h: new module, which supports C1X-style static_assert
19759         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19760         * lib/verify.h: Revamp so that this can be copied into assert.h,
19761         while retaining the ability to use it standalone as before.
19762         Rename private identifiers so as not to encroach on the
19763         standard C namespace, since this is now used by assert.h.
19764         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19765         the old verify_true.
19766         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19767         the old verify_true.  Use _GL_VERIFY_TYPE.
19768         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19769         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19770         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19771         defined when this file is copied into the replacement assert.h.
19772         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19773         and _Static_assert is not built in.
19774         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19775         defined, and use the new macros mentioned above.
19776         * doc/posix-headers/assert.texi: Document this.
19777
19778 2011-05-05  Bruno Haible  <bruno@clisp.org>
19779
19780         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19781         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19782         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19783         gl_REPLACE_FCLOSE here.
19784         * modules/fflush (Depends-on): Remove fclose.
19785         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19786         combination with module 'fclose'.
19787
19788 2011-05-05  Bruno Haible  <bruno@clisp.org>
19789
19790         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19791         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19792         gl_FUNC_FFLUSH.
19793         (gl_FUNC_FFLUSH): Use it.
19794         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19796         gl_REPLACE_FSEEKO here.
19797
19798 2011-05-05  Bruno Haible  <bruno@clisp.org>
19799
19800         tzset: Relicense under LGPL.
19801         * modules/tzset (License): Change to LGPL.
19802         No agreement needed; it's a no-op.
19803
19804         strtoimax, strtoumax: Relicense under LGPL.
19805         * modules/strtoimax (License): Change to LGPL.
19806         * modules/strtoumax (License): Likewise.
19807         With permission from Jim Meyering, Paul Eggert:
19808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19810
19811         getgroups: Relicense under LGPL.
19812         * modules/getgroups (License): Change to LGPL.
19813         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19817
19818         nanosleep: Relicense under LGPL.
19819         * modules/nanosleep (License): Change to LGPL.
19820         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19821         Haible:
19822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19826
19827         futimens: Relicense under LGPL.
19828         * modules/futimens (License): Change to LGPL.
19829         With permission from Eric Blake:
19830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19831
19832         fflush: Relicense under LGPL.
19833         * modules/fflush (License): Change to LGPL.
19834         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19838
19839         tmpfile: Relicense under LGPL.
19840         * modules/tmpfile (License): Change to LGPL.
19841         With permission from Ben Pfaff:
19842         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19843
19844         isfinite: Relicense under LGPL.
19845         * modules/isfinite (License): Change to LGPL.
19846         With permission from Ben Pfaff, Bruno Haible:
19847         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19849
19850         acosl..tanl: Relicense under LGPL.
19851         * modules/acosl (License): Change to LGPL.
19852         * modules/asinl (License): Likewise.
19853         * modules/atanl (License): Likewise.
19854         * modules/cosl (License): Likewise.
19855         * modules/expl (License): Likewise.
19856         * modules/logl (License): Likewise.
19857         * modules/sinl (License): Likewise.
19858         * modules/sqrtl (License): Likewise.
19859         * modules/tanl (License): Likewise.
19860         Source code originally from glibc and Paolo Bonzini. Agreements:
19861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19863
19864 2011-05-05  Bruno Haible  <bruno@clisp.org>
19865
19866         signal: Define sighandler_t.
19867         * lib/signal.in.h (sighandler_t): New type.
19868         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19869         whether sighandler_t is defined.
19870         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19871         * modules/signal (Depends-on): Add extensions.
19872         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19873         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19874         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19875
19876 2011-05-05  Eric Blake  <eblake@redhat.com>
19877
19878         maint: remove useless REPLACE_*_H macros
19879         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19880         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19881         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19882         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19883         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19884         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19885         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19886         * m4/btowc.m4: Update callers.
19887         * m4/dirfd.m4: Likewise.
19888         * m4/duplocale.m4: Likewise.
19889         * m4/fchdir.m4: Likewise.
19890         * m4/fdopendir.m4: Likewise.
19891         * m4/inet_ntop.m4: Likewise.
19892         * m4/inet_pton.m4: Likewise.
19893         * m4/ioctl.m4: Likewise.
19894         * m4/mbrlen.m4: Likewise.
19895         * m4/mbrtowc.m4: Likewise.
19896         * m4/mbsinit.m4: Likewise.
19897         * m4/mbsnrtowcs.m4: Likewise.
19898         * m4/mbsrtowcs.m4: Likewise.
19899         * m4/poll.m4: Likewise.
19900         * m4/setlocale.m4: Likewise.
19901         * m4/wcrtomb.m4: Likewise.
19902         * m4/wcsnrtombs.m4: Likewise.
19903         * m4/wcsrtombs.m4: Likewise.
19904         * m4/wctob.m4: Likewise.
19905         * m4/wcwidth.m4: Likewise.
19906         * modules/posix_spawn: Likewise.
19907         * modules/posix_spawn_file_actions_addclose: Likewise.
19908         * modules/posix_spawn_file_actions_adddup2: Likewise.
19909         * modules/posix_spawn_file_actions_addopen: Likewise.
19910         * modules/posix_spawn_file_actions_destroy: Likewise.
19911         * modules/posix_spawn_file_actions_init: Likewise.
19912         * modules/posix_spawnattr_destroy: Likewise.
19913         * modules/posix_spawnattr_getflags: Likewise.
19914         * modules/posix_spawnattr_getpgroup: Likewise.
19915         * modules/posix_spawnattr_getschedparam: Likewise.
19916         * modules/posix_spawnattr_getschedpolicy: Likewise.
19917         * modules/posix_spawnattr_getsigdefault: Likewise.
19918         * modules/posix_spawnattr_getsigmask: Likewise.
19919         * modules/posix_spawnattr_init: Likewise.
19920         * modules/posix_spawnattr_setflags: Likewise.
19921         * modules/posix_spawnattr_setpgroup: Likewise.
19922         * modules/posix_spawnattr_setschedparam: Likewise.
19923         * modules/posix_spawnattr_setschedpolicy: Likewise.
19924         * modules/posix_spawnattr_setsigdefault: Likewise.
19925         * modules/posix_spawnattr_setsigmask: Likewise.
19926         * modules/posix_spawnp: Likewise.
19927
19928 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19929
19930         Add option to do-release-commit-and-tag to specify branch.
19931         * build-aux/do-release-commit-and-tag: Add --branch.
19932
19933 2011-05-03  Bruno Haible  <bruno@clisp.org>
19934
19935         Avoid unnecessary compilation units, through conditional dependencies.
19936         * modules/accept (Depends-on): Add conditions to the dependencies.
19937         * modules/acosl (Depends-on): Likewise.
19938         * modules/argz (Depends-on): Likewise.
19939         * modules/asinl (Depends-on): Likewise.
19940         * modules/atanl (Depends-on): Likewise.
19941         * modules/atoll (Depends-on): Likewise.
19942         * modules/bind (Depends-on): Likewise.
19943         * modules/btowc (Depends-on): Likewise.
19944         * modules/canonicalize-lgpl (Depends-on): Likewise.
19945         * modules/ceil (Depends-on): Likewise.
19946         * modules/ceilf (Depends-on): Likewise.
19947         * modules/ceill (Depends-on): Likewise.
19948         * modules/chdir-long (Depends-on): Likewise.
19949         * modules/chown (Depends-on): Likewise.
19950         * modules/close (Depends-on): Likewise.
19951         * modules/connect (Depends-on): Likewise.
19952         * modules/cosl (Depends-on): Likewise.
19953         * modules/dirfd (Depends-on): Likewise.
19954         * modules/dprintf (Depends-on): Likewise.
19955         * modules/dprintf-posix (Depends-on): Likewise.
19956         * modules/error (Depends-on): Likewise.
19957         * modules/euidaccess (Depends-on): Likewise.
19958         * modules/expl (Depends-on): Likewise.
19959         * modules/faccessat (Depends-on): Likewise.
19960         * modules/fchdir (Depends-on): Likewise.
19961         * modules/fclose (Depends-on): Likewise.
19962         * modules/fcntl (Depends-on): Likewise.
19963         * modules/fdopendir (Depends-on): Likewise.
19964         * modules/fflush (Depends-on): Likewise.
19965         * modules/floor (Depends-on): Likewise.
19966         * modules/floorf (Depends-on): Likewise.
19967         * modules/floorl (Depends-on): Likewise.
19968         * modules/fnmatch (Depends-on): Likewise.
19969         * modules/fopen (Depends-on): Likewise.
19970         * modules/fprintf-posix (Depends-on): Likewise.
19971         * modules/frexp (Depends-on): Likewise.
19972         * modules/frexp-nolibm (Depends-on): Likewise.
19973         * modules/frexpl (Depends-on): Likewise.
19974         * modules/frexpl-nolibm (Depends-on): Likewise.
19975         * modules/fseek (Depends-on): Likewise.
19976         * modules/fsusage (Depends-on): Likewise.
19977         * modules/ftell (Depends-on): Likewise.
19978         * modules/ftello (Depends-on): Likewise.
19979         * modules/futimens (Depends-on): Likewise.
19980         * modules/getcwd (Depends-on): Likewise.
19981         * modules/getcwd-lgpl (Depends-on): Likewise.
19982         * modules/getdelim (Depends-on): Likewise.
19983         * modules/getdomainname (Depends-on): Likewise.
19984         * modules/getgroups (Depends-on): Likewise.
19985         * modules/gethostname (Depends-on): Likewise.
19986         * modules/getline (Depends-on): Likewise.
19987         * modules/getlogin_r (Depends-on): Likewise.
19988         * modules/getopt-posix (Depends-on): Likewise.
19989         * modules/getpeername (Depends-on): Likewise.
19990         * modules/getsockname (Depends-on): Likewise.
19991         * modules/getsockopt (Depends-on): Likewise.
19992         * modules/getsubopt (Depends-on): Likewise.
19993         * modules/getusershell (Depends-on): Likewise.
19994         * modules/glob (Depends-on): Likewise.
19995         * modules/grantpt (Depends-on): Likewise.
19996         * modules/iconv_open (Depends-on): Likewise.
19997         * modules/iconv_open-utf (Depends-on): Likewise.
19998         * modules/inet_ntop (Depends-on): Likewise.
19999         * modules/inet_pton (Depends-on): Likewise.
20000         * modules/ioctl (Depends-on): Likewise.
20001         * modules/isapipe (Depends-on): Likewise.
20002         * modules/isfinite (Depends-on): Likewise.
20003         * modules/isinf (Depends-on): Likewise.
20004         * modules/lchown (Depends-on): Likewise.
20005         * modules/ldexpl (Depends-on): Likewise.
20006         * modules/link (Depends-on): Likewise.
20007         * modules/linkat (Depends-on): Likewise.
20008         * modules/listen (Depends-on): Likewise.
20009         * modules/logl (Depends-on): Likewise.
20010         * modules/lstat (Depends-on): Likewise.
20011         * modules/mbrlen (Depends-on): Likewise.
20012         * modules/mbrtowc (Depends-on): Likewise.
20013         * modules/mbsinit (Depends-on): Likewise.
20014         * modules/mbsnrtowcs (Depends-on): Likewise.
20015         * modules/mbsrtowcs (Depends-on): Likewise.
20016         * modules/mbtowc (Depends-on): Likewise.
20017         * modules/memcmp (Depends-on): Likewise.
20018         * modules/mkdir (Depends-on): Likewise.
20019         * modules/mkdtemp (Depends-on): Likewise.
20020         * modules/mkfifo (Depends-on): Likewise.
20021         * modules/mkfifoat (Depends-on): Likewise.
20022         * modules/mknod (Depends-on): Likewise.
20023         * modules/mkostemp (Depends-on): Likewise.
20024         * modules/mkostemps (Depends-on): Likewise.
20025         * modules/mkstemp (Depends-on): Likewise.
20026         * modules/mkstemps (Depends-on): Likewise.
20027         * modules/mktime (Depends-on): Likewise.
20028         * modules/nanosleep (Depends-on): Likewise.
20029         * modules/open (Depends-on): Likewise.
20030         * modules/openat (Depends-on): Likewise.
20031         * modules/perror (Depends-on): Likewise.
20032         * modules/poll (Depends-on): Likewise.
20033         * modules/popen (Depends-on): Likewise.
20034         * modules/posix_spawn (Depends-on): Likewise.
20035         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20036         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20037         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20038         * modules/posix_spawnp (Depends-on): Likewise.
20039         * modules/pread (Depends-on): Likewise.
20040         * modules/printf-posix (Depends-on): Likewise.
20041         * modules/ptsname (Depends-on): Likewise.
20042         * modules/putenv (Depends-on): Likewise.
20043         * modules/pwrite (Depends-on): Likewise.
20044         * modules/readline (Depends-on): Likewise.
20045         * modules/readlink (Depends-on): Likewise.
20046         * modules/readlinkat (Depends-on): Likewise.
20047         * modules/recv (Depends-on): Likewise.
20048         * modules/recvfrom (Depends-on): Likewise.
20049         * modules/regex (Depends-on): Likewise.
20050         * modules/remove (Depends-on): Likewise.
20051         * modules/rename (Depends-on): Likewise.
20052         * modules/renameat (Depends-on): Likewise.
20053         * modules/rmdir (Depends-on): Likewise.
20054         * modules/round (Depends-on): Likewise.
20055         * modules/roundf (Depends-on): Likewise.
20056         * modules/roundl (Depends-on): Likewise.
20057         * modules/rpmatch (Depends-on): Likewise.
20058         * modules/select (Depends-on): Likewise.
20059         * modules/send (Depends-on): Likewise.
20060         * modules/sendto (Depends-on): Likewise.
20061         * modules/setenv (Depends-on): Likewise.
20062         * modules/setlocale (Depends-on): Likewise.
20063         * modules/setsockopt (Depends-on): Likewise.
20064         * modules/shutdown (Depends-on): Likewise.
20065         * modules/sigaction (Depends-on): Likewise.
20066         * modules/signbit (Depends-on): Likewise.
20067         * modules/sigprocmask (Depends-on): Likewise.
20068         * modules/sinl (Depends-on): Likewise.
20069         * modules/sleep (Depends-on): Likewise.
20070         * modules/snprintf (Depends-on): Likewise.
20071         * modules/snprintf-posix (Depends-on): Likewise.
20072         * modules/socket (Depends-on): Likewise.
20073         * modules/sprintf-posix (Depends-on): Likewise.
20074         * modules/sqrtl (Depends-on): Likewise.
20075         * modules/stat (Depends-on): Likewise.
20076         * modules/strchrnul (Depends-on): Likewise.
20077         * modules/strdup-posix (Depends-on): Likewise.
20078         * modules/strerror (Depends-on): Likewise.
20079         * modules/strerror_r-posix (Depends-on): Likewise.
20080         * modules/strndup (Depends-on): Likewise.
20081         * modules/strnlen (Depends-on): Likewise.
20082         * modules/strptime (Depends-on): Likewise.
20083         * modules/strsep (Depends-on): Likewise.
20084         * modules/strsignal (Depends-on): Likewise.
20085         * modules/strstr-simple (Depends-on): Likewise.
20086         * modules/strtod (Depends-on): Likewise.
20087         * modules/strtoimax (Depends-on): Likewise.
20088         * modules/strtok_r (Depends-on): Likewise.
20089         * modules/strtoumax (Depends-on): Likewise.
20090         * modules/symlink (Depends-on): Likewise.
20091         * modules/symlinkat (Depends-on): Likewise.
20092         * modules/tanl (Depends-on): Likewise.
20093         * modules/tcgetsid (Depends-on): Likewise.
20094         * modules/tmpfile (Depends-on): Likewise.
20095         * modules/trunc (Depends-on): Likewise.
20096         * modules/truncf (Depends-on): Likewise.
20097         * modules/truncl (Depends-on): Likewise.
20098         * modules/uname (Depends-on): Likewise.
20099         * modules/unlink (Depends-on): Likewise.
20100         * modules/unlockpt (Depends-on): Likewise.
20101         * modules/unsetenv (Depends-on): Likewise.
20102         * modules/usleep (Depends-on): Likewise.
20103         * modules/utimensat (Depends-on): Likewise.
20104         * modules/vasprintf (Depends-on): Likewise.
20105         * modules/vdprintf (Depends-on): Likewise.
20106         * modules/vdprintf-posix (Depends-on): Likewise.
20107         * modules/vfprintf-posix (Depends-on): Likewise.
20108         * modules/vprintf-posix (Depends-on): Likewise.
20109         * modules/vsnprintf (Depends-on): Likewise.
20110         * modules/vsnprintf-posix (Depends-on): Likewise.
20111         * modules/vsprintf-posix (Depends-on): Likewise.
20112         * modules/wcrtomb (Depends-on): Likewise.
20113         * modules/wcscasecmp (Depends-on): Likewise.
20114         * modules/wcscspn (Depends-on): Likewise.
20115         * modules/wcsdup (Depends-on): Likewise.
20116         * modules/wcsncasecmp (Depends-on): Likewise.
20117         * modules/wcsnrtombs (Depends-on): Likewise.
20118         * modules/wcspbrk (Depends-on): Likewise.
20119         * modules/wcsrtombs (Depends-on): Likewise.
20120         * modules/wcsspn (Depends-on): Likewise.
20121         * modules/wcsstr (Depends-on): Likewise.
20122         * modules/wcstok (Depends-on): Likewise.
20123         * modules/wcswidth (Depends-on): Likewise.
20124         * modules/wctob (Depends-on): Likewise.
20125         * modules/wctomb (Depends-on): Likewise.
20126         * modules/wctype (Depends-on): Likewise.
20127         * modules/wcwidth (Depends-on): Likewise.
20128         * modules/write (Depends-on): Likewise.
20129
20130 2011-05-03  Bruno Haible  <bruno@clisp.org>
20131
20132         Support for conditional dependencies.
20133         * doc/gnulib.texi (Module description): Document the syntax of
20134         conditional dependencies.
20135         * gnulib-tool: New option --conditional-dependencies.
20136         (func_usage): Document it.
20137         (cond_dependencies): New variable.
20138         (func_get_automake_snippet_conditional,
20139         func_get_automake_snippet_unconditional): New functions, extracted from
20140         func_get_automake_snippet.
20141         (func_get_automake_snippet): Use them.
20142         (sed_first_32_chars): New variable.
20143         (func_module_shellfunc_name): New function.
20144         (func_module_shellvar_name): New function.
20145         (func_module_conditional_name): New function.
20146         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20147         func_cond_module_condition): New functions.
20148         (func_modules_transitive_closure): Add support for conditional
20149         dependencies.
20150         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20151         conditional automake snippet in an automake conditional.
20152         (func_emit_autoconf_snippets): Emit shell functions that contain the
20153         code for conditional modules.
20154         (func_import, func_create_testdir): Update specification.
20155
20156 2011-05-03  Eric Blake  <eblake@redhat.com>
20157
20158         test-getaddrinfo: report error information
20159         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20160
20161 2011-05-03  Jim Meyering  <meyering@redhat.com>
20162
20163         bootstrap: avoid build failure when $GZIP is set
20164         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20165         program name.  If defined at all, it is supposed to list gzip options.
20166         Reported by Alan Curry in http://debbugs.gnu.org/8609
20167
20168 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20169
20170         readme-release: new module with release instructions
20171         * modules/readme-release: New module.
20172         * top/README-release: New file, from coreutils, grep, diffutils.
20173         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20174
20175 2011-05-02  Eric Blake  <eblake@redhat.com>
20176
20177         fflush: also replace fclose when fixing fflush
20178         * modules/fflush (Depends-on): Add fclose.
20179         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20180         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20181         memstreams with no backing fd.
20182         * doc/posix-functions/fclose.texi (fclose): Document the use of
20183         fflush module to fix the bug.
20184         * tests/test-fclose.c (main): Relax test when fclose is used in
20185         isolation.
20186
20187         fclose: add some tests
20188         * modules/fclose-tests: New test module.
20189         * tests/test-fclose.c: New file.
20190         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20191
20192         fclose: reduced dependencies
20193         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20194         simpler lseek.
20195         * lib/fclose.c (rpl_fclose): Likewise.
20196         Reported by Simon Josefsson.
20197
20198         exit: drop remaining clients
20199         * modules/argmatch (Depends-on): Replace exit with stdlib.
20200         * modules/copy-file (Depends-on): Likewise.
20201         * modules/execute (Depends-on): Likewise.
20202         * modules/exitfail (Depends-on): Likewise.
20203         * modules/obstack (Depends-on): Likewise.
20204         * modules/pagealign_alloc (Depends-on): Likewise.
20205         * modules/pipe-filter-gi (Depends-on): Likewise.
20206         * modules/pipe-filter-ii (Depends-on): Likewise.
20207         * modules/savewd (Depends-on): Likewise.
20208         * modules/spawn-pipe (Depends-on): Likewise.
20209         * modules/wait-process (Depends-on): Likewise.
20210         * modules/xsetenv (Depends-on): Likewise.
20211         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20212         * modules/git-merge-changelog (Depends-on): Likewise.
20213         * modules/long-options (Depends-on): Likewise.
20214         * modules/pt_chown (Depends-on): Likewise.
20215         * modules/sysexits (Depends-on): Likewise.
20216
20217         freading: relax license from LGPLv3+ to LGPLv2+
20218         * modules/freading (License): Relax LGPL version.
20219
20220 2011-05-02  Bruno Haible  <bruno@clisp.org>
20221
20222         fchdir: Remove unused dependencies.
20223         * modules/fchdir (Depends-on): Remove include_next.
20224
20225 2011-05-02  Bruno Haible  <bruno@clisp.org>
20226
20227         gnulib-tool: Refactor.
20228         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20229         from func_emit_autoconf_snippets.
20230         (func_emit_autoconf_snippets): Use it.
20231
20232 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20233
20234         * NEWS: Document removal of 'exit'.
20235         * modules/exit: Remove file.
20236
20237 2011-05-01  Bruno Haible  <bruno@clisp.org>
20238
20239         Update DEPENDENCIES.
20240         * DEPENDENCIES (gettext): Recommend the newest release.
20241         Reported by Simon Josefsson.
20242
20243 2011-05-01  Bruno Haible  <bruno@clisp.org>
20244
20245         gnulib-tool: Reduce code duplication.
20246         * gnulib-tool (func_emit_autoconf_snippets): New function.
20247         (func_import, func_create_testdir): Use it.
20248
20249 2011-04-30  Eric Blake  <eblake@redhat.com>
20250
20251         fclose: don't fail on non-seekable input stream
20252         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20253         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20254         since fflush is allowed to fail in that case.
20255
20256 2011-04-30  Bruno Haible  <bruno@clisp.org>
20257
20258         dup3: cleanup
20259         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20260
20261 2011-04-30  Bruno Haible  <bruno@clisp.org>
20262
20263         netdb: Make it work in C++ mode.
20264         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20265         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20266         module.
20267         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20268         gl_MODULE_INDICATOR_FOR_TESTS.
20269         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20270         * modules/netdb-c++-tests: New file.
20271         * tests/test-netdb-c++.cc: New file.
20272
20273 2011-04-30  Bruno Haible  <bruno@clisp.org>
20274
20275         New modules 'vfscanf', 'vscanf'.
20276         * modules/vfscanf: New file.
20277         * modules/vscanf: New file.
20278         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20279         here.
20280         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20281         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20282
20283 2011-04-30  Bruno Haible  <bruno@clisp.org>
20284
20285         passfd: Add comments.
20286         * lib/passfd.c: Add comments about platforms.
20287
20288 2011-04-30  Bruno Haible  <bruno@clisp.org>
20289
20290         sys_uio: Make <sys/uio.h> self-contained.
20291         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20292         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20293
20294 2011-04-30  Bruno Haible  <bruno@clisp.org>
20295
20296         sys_socket: Ensure 'struct iovec' definition.
20297         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20298         <sys/socket.h>.
20299         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20300
20301 2011-04-30  Bruno Haible  <bruno@clisp.org>
20302
20303         sys_uio: Protect definition of 'struct iovec'.
20304         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20305         it as a C struct.
20306
20307 2011-04-30  Bruno Haible  <bruno@clisp.org>
20308
20309         manywarnings: fix indentation
20310         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20311
20312 2011-04-30  Pádraig Brady <P@draigBrady.com>
20313
20314         manywarnings: add -Wno-missing-field-initializers if needed.
20315         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20316         option if it's needed to allow initialization with { 0, }
20317
20318 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20319
20320         announce-gen: cosmetic improvement
20321         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20322
20323 2011-04-29  Jim Meyering  <meyering@redhat.com>
20324
20325         vc-list-files: indent with spaces, not TABs
20326         * build-aux/vc-list-files: Convert leading TABs to spaces,
20327         to match the style of most other files in gnulib.
20328
20329         announce-gen: indent with spaces, not TABs
20330         * build-aux/announce-gen: Convert all TABs to spaces, to match
20331         the style of most other files in gnulib.
20332
20333 2011-04-29  Eric Blake  <eblake@redhat.com>
20334
20335         quotearg: avoid uninitialized variable use
20336         * lib/quotearg.c (quoting_options_from_style): Initialize
20337         remaining fields, and ensure that custom styles are only used via
20338         quoting_options rather than quoting_style.
20339
20340 2011-04-29  Jim Meyering  <meyering@redhat.com>
20341
20342         maint.mk: remove unused VC-tag variable
20343         * top/maint.mk (VC-tag): Remove unused variable.
20344
20345 2011-04-29  Bruno Haible  <bruno@clisp.org>
20346
20347         netdb: fix gai_strerror replacements
20348         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20349         * modules/netdb: Substitute it.
20350
20351 2011-04-29  Jim Meyering  <meyering@redhat.com>
20352
20353         test-getcwd.c: avoid new set-but-not-used warning
20354         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20355         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20356         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20357         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20358
20359         test-hash.c: avoid a new shadowing warning
20360         * tests/test-hash.c (main): Don't shadow "dup".
20361
20362 2011-04-28  Eric Blake  <eblake@redhat.com>
20363
20364         getaddrinfo: fix gai_strerror signature
20365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20366         and work around mingw with UNICODE defined.
20367         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20368         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20369         * modules/netdb (Makefile.am): Substitute it.
20370         * lib/netdb.in.h (gai_strerror): Declare replacement.
20371         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20372         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20373         the fix.
20374
20375         getsockopt: avoid compiler warning
20376         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20377         Reported by Matthias Bolte.
20378
20379         tests: drop unused link dependency
20380         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20381         * modules/dirent-safer-tests (Makefile.am): Likewise.
20382         * modules/fdopendir-tests (Makefile.am): Likewise.
20383         * modules/mkfifoat-tests (Makefile.am): Likewise.
20384         * modules/openat-safer-tests (Makefile.am): Likewise.
20385         * modules/openat-tests (Makefile.am): Likewise.
20386         * modules/readlinkat-tests (Makefile.am): Likewise.
20387         * modules/symlinkat-tests (Makefile.am): Likewise.
20388         * modules/linkat-tests (Makefile.am): Likewise.
20389         (Depends-on): Switch to filenamecat-lgpl.
20390         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20391         LIBINTL.
20392         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20393         * tests/test-linkat.c (main): Don't require xalloc.
20394
20395         hash, mgetgroups: drop xalloc dependency
20396         * lib/hash.c (includes): Adjust includes.
20397         * lib/mgetgroups.c (includes): Likewise.
20398         (xgetgroups): Move...
20399         * lib/xgetgroups.c: ...to new file.
20400         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20401         * modules/xgetgroups: New file, split from...
20402         * modules/mgetgroups: ...here.
20403         (Depends-on): Add xalloc-oversized.
20404         * modules/hash (Depends-on): Likewise.
20405         * modules/hash-tests (Depends-on): Drop xalloc.
20406         (test_hash_LDADD): Drop unused library.
20407         * tests/test-hash.c (main): Break xalloc dependency.
20408         (includes): Drop unused include.
20409
20410         xalloc-oversized: new module
20411         * modules/xalloc-oversized: New module.
20412         * modules/xalloc (Depends-on): Add it.
20413         * lib/xalloc.h (xalloc_oversized): Move...
20414         * lib/xalloc-oversized.h: ...into new file.
20415
20416         utimecmp: drop dependency on xmalloc
20417         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20418         due to memory pressure.
20419         * modules/utimecmp (Depends-on): Drop xalloc.
20420
20421 2011-04-27  Eric Blake  <eblake@redhat.com>
20422
20423         getcwd: fix mingw bugs
20424         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20425         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20426         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20427
20428 2011-04-27  Bruno Haible  <bruno@clisp.org>
20429
20430         mkstemps: Ensure declaration on MacOS X 10.5.
20431         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20432         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20433         MacOS X.
20434
20435 2011-04-27  Bruno Haible  <bruno@clisp.org>
20436
20437         mkstemp: More documentation.
20438         * doc/posix-functions/mkstemp.texi: Document header file problem on
20439         MacOS X.
20440
20441 2011-04-27  Bruno Haible  <bruno@clisp.org>
20442
20443         mkstemp: Tweak configure message when cross-compiling.
20444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20445         result as a guess.
20446
20447 2011-04-27  Bruno Haible  <bruno@clisp.org>
20448
20449         clean-temp: Clarify what it does.
20450         * lib/clean-temp.h: Add more comments.
20451         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20452         module.
20453         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20454         * doc/glibc-functions/mkstemps.texi: Likewise.
20455         * doc/glibc-functions/mkostemps.texi: Likewise.
20456
20457 2011-04-27  Eric Blake  <eblake@redhat.com>
20458
20459         fchdir: avoid extra chdir and fix test
20460         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20461         getcwd-lgpl.
20462         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20463         have to be canonical.
20464         (canonicalize_file_name): Drop unused macro.
20465         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20466
20467         filenamecat-lgpl: fix licence
20468         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20469         when it was first created.
20470
20471         linkat, renameat: add missing dependency
20472         * modules/linkat (Depends-on): Require getcwd-lgpl.
20473         * modules/renameat (Depends-on): Likewise.
20474
20475         tests: reduce dependencies
20476         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20477         * tests/test-renameat.c (main): Likewise.
20478         * modules/linkat-tests (Depends-on): Relax dependency.
20479         * modules/renameat-tests (Depends-on): Likewise.
20480         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20481         dependency explicit.
20482
20483         save-cwd: reduce default dependency
20484         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20485         * lib/save-cwd.c: Update comments.
20486         * NEWS: Document the semantic change.
20487
20488         getcwd: enhance tests
20489         * tests/test-getcwd-lgpl.c: New file, taken from...
20490         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20491         repeat long path stress tests from m4 probe.
20492         * modules/getcwd-lgpl-tests: New module.
20493         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20494         * m4/getcwd-abort-bug.m4: Update comment.
20495         * m4/getcwd-path-max.m4: Likewise.
20496
20497         getcwd-lgpl: new module
20498         * modules/getcwd-lgpl: New module.
20499         * lib/getcwd-lgpl.c: New file.
20500         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20501         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20502         * modules/getcwd (configure.ac): Set C witness.
20503         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20504
20505         getcwd: tweak comments
20506         * m4/getcwd-abort-bug.m4: Fix comments.
20507         * m4/getcwd-path-max.m4: Likewise.
20508         * m4/getcwd.m4: Likewise.
20509
20510 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20511         and Eric Blake  <eblake@redhat.com>
20512
20513         mkstemp: replace if system version uses wrong permissions
20514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20515         read/write mode bits set in file created by mkstemp.
20516         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20517
20518 2011-04-27  Eric Blake  <eblake@redhat.com>
20519
20520         passfd: avoid compiler warning
20521         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20522         Reported by Laine Stump.
20523
20524 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20525
20526         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20527         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20528
20529 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20530         and Eric Blake  <eblake@redhat.com>
20531
20532         mkstemp: mention clean-temp module
20533         * lib/mkstemp.c: Add comment.
20534         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20535
20536 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20537
20538         inttypes: also provide default values for 32-bit tests
20539         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20540         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20541
20542 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         strtoumax: remove dependency on strtoimax
20545         This is like the strtoull change of yesterday.
20546         * modules/strtoumax (Files): Add lib/strtoimax.c.
20547         (Depends-on): Remove strtoimax and add verify.
20548
20549         inttypes-incomplete: new module
20550         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20551         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20552         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20553         of gl_INTTYPES_H.
20554         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20555         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20556         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20557         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20558         * modules/strtoumax, modules/xstrtol (Depends-on):
20559         Depend on inttypes-incomplete, not inttypes.
20560         * modules/inttypes-incomplete: New module, containing the contents
20561         of the old modules/inttypes module, except that the Files: section
20562         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20563         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20564         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20565         (Depends-on): Depend only on inttypes-incomplete.
20566         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20567
20568         inttypes: omit now-redundant strtoimax and strtoumax work
20569         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20570         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20571
20572         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20573         This supports apps that need pointers to strtoimax and strtoumax,
20574         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20575         nonexistent functions.  See
20576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20577         et seq.
20578         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20579         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20580         a macro.
20581         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20582
20583 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20584
20585         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20586
20587 2011-04-25  Bruno Haible  <bruno@clisp.org>
20588
20589         strtol, strtoul: Mark modules as obsolete.
20590         * modules/strtol (Status, Notice): New sections.
20591         * modules/strtoul (Status, Notice): New sections.
20592
20593 2011-04-25  Bruno Haible  <bruno@clisp.org>
20594
20595         strtod: Remove check for strtod, unless supporting old platforms.
20596         * modules/strtod-obsolete: New file.
20597         * m4/strtod-obsolete.m4: New file.
20598         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20599         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20600         * modules/strtod (Depends-on): Add strtod-obsolete.
20601         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20602
20603 2011-04-25  Bruno Haible  <bruno@clisp.org>
20604
20605         strcase: Make module obsolete.
20606         * modules/strcase (Status, Notice): New sections.
20607
20608 2011-04-25  Bruno Haible  <bruno@clisp.org>
20609
20610         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20611         * modules/dup2-obsolete: New file.
20612         * m4/dup2-obsolete.m4: New file.
20613         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20614         gl_FUNC_DUP2_OBSOLETE is not also defined.
20615         * modules/dup2 (Depends-on): Add dup2-obsolete.
20616         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20617
20618 2011-04-25  Bruno Haible  <bruno@clisp.org>
20619
20620         strnlen: Avoid memchr related link error on old obsolete platforms.
20621         * modules/memchr-obsolete: New file.
20622         * m4/memchr-obsolete.m4: New file.
20623         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20624         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20625         * modules/memchr (Depends-on): Add memchr-obsolete.
20626         * modules/strnlen (Depends-on): Likewise.
20627         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20628
20629 2011-04-25  Jim Meyering  <meyering@redhat.com>
20630
20631         maint.mk: makefile_at_at_check extend and clean up
20632         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20633         in addition to */Makefile.am.
20634         Exempt legitimate uses of @VAR@ notation, e.g.,
20635         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20636         Remove obsolete coreutils-specific comment.
20637         Prompted by discussion here:
20638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20639
20640 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20641
20642         strtoul: remove dependency on strtol
20643         This is so that 'configure' need not check for strtol merely because
20644         the application needs strtoul.
20645         * modules/strtoul (Files): Add lib/strtol.c.
20646         (Depends-on): Remove strtol.
20647
20648         strtoull: remove dependency on strtoul
20649         This is like the strtoll change.
20650         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20651         (Depends-on): Remove strtoul.
20652
20653         strtoll: remove dependency on strtol
20654         This is so that 'configure' need not check for strtol merely because
20655         the application needs strtoll.
20656         * modules/strtoll (Files): Add lib/strtol.c.
20657         (Depends-on): Remove strtol.
20658
20659 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         inttypes: Move some configure check to module 'imaxdiv'.
20662         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20663         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20664         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20665
20666 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         inttypes: Move some configure check to module 'imaxabs'.
20669         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20670         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20671         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20672
20673 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20674
20675         inttypes: Remove configure tests that are not needed since 2009-12-31.
20676         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20677         gl_cv_header_working_inttypes_h.
20678
20679 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20680
20681         * modules/strnlen (Depends-on): Remove memchr.
20682         The strnlen implementation doesn't need the memchr module's fixes; see
20683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20684
20685         strtol: remove dependency on wchar
20686         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20687         * modules/strtol (Depends-on): Remove wchar.
20688
20689 2011-04-21  Eric Blake  <eblake@redhat.com>
20690
20691         passfd: fix test regression on Linux
20692         * modules/passfd-tests (configure.ac): Correct socketpair check.
20693
20694         passfd: speed up configure and drop unused code
20695         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20696         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20697         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20698         Instead of probing at configure for unix_scm_rights_bsd44_way,
20699         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20700         check to a struct member probe.
20701         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20702         (sendfd, recvfd): Update preprocessor checks.
20703         * modules/passfd (Files): Reflect rename, and drop unused file.
20704         (Depends-on): Drop unused dependency.
20705
20706         passfd: allow compilation on mingw
20707         * modules/sys_socket (Depends-on): Add sys_uio.
20708         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20709         iovec and a minimal struct msghdr.
20710         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20711         * tests/test-sys_socket.c (main): Enhance test.
20712         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20713         guaranteed to provide what we need.
20714         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20715         * modules/passfd-tests (Depends-on): Add sys_wait.
20716         * tests/test-passfd.c (main): Skip test on mingw, for now.
20717         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20718         partial 'struct msghdr' implementation.
20719
20720         sys_uio: new module
20721         * modules/sys_uio: New module.
20722         * modules/sys_uio-tests: Likewise.
20723         * lib/sys_uio.in.h: New file.
20724         * m4/sys_uio_h.m4: Likewise.
20725         * tests/test-sys_uio.c: Likewise.
20726         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20727         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20728
20729 2011-04-20  Jim Meyering  <meyering@redhat.com>
20730
20731         useless-if-before-free: avoid false-positive
20732         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20733         disjunct so that it too requires a terminating ";".  Without that,
20734         this script would identify as useless one statement from gcc that
20735         was not:
20736           if (aligned_ptr)
20737             free (((void **) aligned_ptr) [-1]);
20738
20739 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20740
20741         doc: update users.txt.
20742         * users.txt: Add barcode.
20743
20744 2011-04-19  Bruno Haible  <bruno@clisp.org>
20745
20746         ioctl: Remove link dependency on native Windows.
20747         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20748         (gl_close_fn, gl_ioctl_fn): New types.
20749         (struct fd_hook): Renamed from struct close_hook. Change type of
20750         private_close_fn field. Add private_ioctl_fn field.
20751         (close_hook_fn): Add parameter for primary close method.
20752         (execute_close_hooks, execute_all_close_hooks): Likewise.
20753         (ioctl_hook_fn): New type.
20754         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20755         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20756         argument.
20757         (unregister_fd_hook): Renamed from unregister_close_hook.
20758         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20759         Don't include <unistd.h>.
20760         (close): Remove undef.
20761         (anchor): Update.
20762         (execute_close_hooks): Add argument for primary close method.
20763         (execute_all_close_hooks): Likewise.
20764         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20765         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20766         argument. Allow each argument to be NULL.
20767         (unregister_fd_hook): Renamed from unregister_close_hook.
20768         * lib/close.c (rpl_close): Pass 'close' function pointer to
20769         execute_all_close_hooks.
20770         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20771         (primary_ioctl): New function.
20772         (ioctl): Don't call ioctlsocket here. Instead, call
20773         execute_all_ioctl_hooks.
20774         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20775         close method.
20776         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20777         (fd_sockets_hook): Renamed from close_sockets_hook.
20778         (gl_sockets_startup, gl_sockets_cleanup): Update.
20779         * modules/fd-hook: Renamed from modules/close-hook. Update.
20780         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20781         * modules/sockets (Depends-on): Likewise.
20782         * modules/ioctl (Depends-on): Add fd-hook.
20783         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20784         GNULIB_SOCKET.
20785
20786 2011-04-19  Bruno Haible  <bruno@clisp.org>
20787
20788         Move the support of O_NONBLOCK in open() to the 'open' module.
20789         * modules/nonblocking (Depends-on): Remove 'open'.
20790         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20791         gl_cv_have_open_O_NONBLOCK.
20792         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20793         O_NONBLOCK support.
20794         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20795
20796 2011-04-17  Bruno Haible  <bruno@clisp.org>
20797
20798         pipe2: Simplify code.
20799         * lib/pipe2.c (pipe2): Reduce code duplication.
20800
20801 2011-04-17  Bruno Haible  <bruno@clisp.org>
20802
20803         nonblocking: Add comment.
20804         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20805
20806 2011-04-17  Bruno Haible  <bruno@clisp.org>
20807
20808         nonblocking: Add tests for sockets.
20809         * tests/test-nonblocking-socket.sh: New file.
20810         * tests/test-nonblocking-socket-main.c: New file.
20811         * tests/test-nonblocking-socket-child.c: New file.
20812         * tests/test-nonblocking-socket.h: New file.
20813         * tests/socket-server.h: New file.
20814         * tests/socket-client.h: New file.
20815         * modules/nonblocking-socket-tests: New file.
20816         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20817
20818 2011-04-17  Bruno Haible  <bruno@clisp.org>
20819
20820         nonblocking: Add tests for pipes.
20821         * tests/test-nonblocking-pipe.sh: New file.
20822         * tests/test-nonblocking-pipe-main.c: New file.
20823         * tests/test-nonblocking-pipe-child.c: New file.
20824         * tests/test-nonblocking-pipe.h: New file.
20825         * tests/test-nonblocking-writer.h: New file.
20826         * tests/test-nonblocking-reader.h: New file.
20827         * tests/test-nonblocking-misc.h: New file.
20828         * modules/nonblocking-pipe-tests: New file.
20829         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20830
20831 2011-04-16  Bruno Haible  <bruno@clisp.org>
20832
20833         gettext: Clarify the needed programmer actions.
20834         * modules/gettext (Notice): New field.
20835         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20836
20837 2011-04-16  Bruno Haible  <bruno@clisp.org>
20838
20839         strchrnul: Tweak last commit.
20840         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20841         bug.
20842         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20843         as in _GL_FUNCDECL_SYS.
20844         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20845         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20846
20847 2011-04-15  Eric Blake  <eblake@redhat.com>
20848
20849         strchrnul: work around cygwin bug
20850         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20851         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20853         * modules/string (Makefile.am): Substitute it.
20854         * lib/string.in.h (strchrnul): Use it.
20855
20856 2011-04-15  Bruno Haible  <bruno@clisp.org>
20857
20858         Don't require lib/stdio-write.c when only module 'stdio' is used.
20859         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20860         invocation.
20861         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20862
20863 2011-04-14  Bruno Haible  <bruno@clisp.org>
20864
20865         Support non-blocking pipe I/O in read() on native Windows.
20866         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20867         (read): New declaration.
20868         * lib/read.c: New file.
20869         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20870         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20871         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20872         vscanf): New declarations.
20873         * lib/stdio-read.c: New file.
20874         * m4/read.m4: New file.
20875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20876         REPLACE_READ.
20877         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20878         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20879         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20880         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20881         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20882         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20883         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20884         * modules/read: New file.
20885         * modules/nonblocking (Files): Add lib/stdio-read.c.
20886         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20887         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20888         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20889         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20890         * modules/pread (Depends-on): Add read.
20891         * modules/safe-read (Depends-on): Likewise.
20892         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20893         gets, scanf, vfscanf, vscanf): Verify signatures.
20894         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20895         problem with non-blocking pipes.
20896         * doc/posix-functions/fgetc.texi: Likewise.
20897         * doc/posix-functions/fgets.texi: Likewise.
20898         * doc/posix-functions/fread.texi: Likewise.
20899         * doc/posix-functions/fscanf.texi: Likewise.
20900         * doc/posix-functions/getc.texi: Likewise.
20901         * doc/posix-functions/getchar.texi: Likewise.
20902         * doc/posix-functions/gets.texi: Likewise.
20903         * doc/posix-functions/scanf.texi: Likewise.
20904         * doc/posix-functions/vfscanf.texi: Likewise.
20905         * doc/posix-functions/vscanf.texi: Likewise.
20906
20907 2011-04-14  Bruno Haible  <bruno@clisp.org>
20908
20909         Support non-blocking pipe I/O in write() on native Windows.
20910         * lib/write.c (rpl_write): Split a write request that failed merely
20911         because the byte count was larger than the pipe buffer's size.
20912         * doc/posix-functions/write.texi: Mention the problem with large byte
20913         counts.
20914
20915 2011-04-14  Bruno Haible  <bruno@clisp.org>
20916
20917         wchar: Ensure that wchar_t gets defined on uClibc.
20918         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20919         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20920
20921 2011-04-13  Bruno Haible  <bruno@clisp.org>
20922
20923         safe-write, full-read: Avoid unnecessary compilation units.
20924         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20925         (Depends-on): Remove safe-read. Add ssize_t.
20926         * modules/full-read (Files): Add lib/full-write.c.
20927         (Depends-on): Add full-write.
20928
20929 2011-04-13  Bruno Haible  <bruno@clisp.org>
20930
20931         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20932         * modules/pwrite (Depends-on): Add 'write'.
20933
20934 2011-04-13  Bruno Haible  <bruno@clisp.org>
20935
20936         Support non-blocking pipe I/O in write() on native Windows.
20937         * lib/unistd.in.h (write): Enable replacement also if
20938         GNULIB_UNISTD_H_NONBLOCKING is 1.
20939         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20940         (rpl_write): When failing to write on a non-blocking pipe, change
20941         errno from ENOSPC to EAGAIN.
20942         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20943         putchar, puts, vfprintf, vprintf): Enable replacement also if
20944         GNULIB_STDIO_H_NONBLOCKING is 1.
20945         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20946         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20947         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20948         CALL_WITH_SIGPIPE_EMULATION.
20949         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20950         * m4/nonblocking.m4: New file.
20951         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20952         for non-blocking I/O support.
20953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20954         GNULIB_UNISTD_H_NONBLOCKING.
20955         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20956         required for non-blocking I/O support.
20957         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20958         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20959         lib/stdio-write.c, m4/asm-underscore.m4.
20960         (Depends-on): Add stdio, unistd.
20961         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20962         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20963         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20964         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20965         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20966         problem with non-blocking pipes.
20967         * doc/posix-functions/fputc.texi: Likewise.
20968         * doc/posix-functions/fputs.texi: Likewise.
20969         * doc/posix-functions/fwrite.texi: Likewise.
20970         * doc/posix-functions/printf.texi: Likewise.
20971         * doc/posix-functions/putc.texi: Likewise.
20972         * doc/posix-functions/putchar.texi: Likewise.
20973         * doc/posix-functions/puts.texi: Likewise.
20974         * doc/posix-functions/vfprintf.texi: Likewise.
20975         * doc/posix-functions/vprintf.texi: Likewise.
20976         * doc/posix-functions/write.texi: Likewise.
20977
20978 2011-04-10  Jim Meyering  <meyering@redhat.com>
20979
20980         maint.mk: prohibit doubled words
20981         Detect them also when they're separated by a newline.
20982         There are 3 ways to customize it:
20983           - disable the test on a per file basis, as usual with rules using
20984             $(VC_LIST_EXCEPT)
20985           - replace the default doubled-word-selecting regexp (affects all files)
20986           - ignore a particular file-vs-doubled-word match
20987         I nearly used that last one to ignore the "is is" match in
20988         coreutils' NEWS file, since the text was "ls -is is ..."
20989         To do that, I would have added this line to cfg.mk:
20990           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20991         but it would have ignored any "is is" match in NEWS.
20992         Low probability, but still...
20993         Instead, I changed the text, slightly:
20994           -  ls -is is now consistent with ls -lis in ignoring values returned
20995           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20996         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20997         (prohibit_doubled_word_): Define.
20998         (sc_prohibit_doubled_word): New rule.
20999         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21000
21001 2011-04-10  Jim Meyering  <meyering@redhat.com>
21002
21003         maint: fix doubled-word typo in comment
21004         * m4/gethostname.m4: s/is is/it is/
21005         * m4/getdomainname.m4: Likewise.
21006
21007 2011-04-10  Jim Meyering  <meyering@redhat.com>
21008
21009         maint: remove doubled word: s/it it/it/
21010         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21011
21012 2011-04-10  Jim Meyering  <meyering@redhat.com>
21013
21014         maint.mk: remove useless semicolon and backslash
21015         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21016         semicolon and backslash.
21017
21018 2011-04-10  Bruno Haible  <bruno@clisp.org>
21019
21020         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21021         * modules/stdint-tests (Depends-on): Add wchar.
21022
21023 2011-04-10  Jim Meyering  <meyering@redhat.com>
21024
21025         maint: remove doubled words in comments, e.g., s/a a/a/
21026         * lib/strptime.c (day_of_the_week): s/the the/the/
21027         * tests/test-chown.h (test_chown): s/a a/a/
21028
21029         test-chown.h: correct a cast
21030         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21031         when the destination is a stat.st_gid.
21032
21033 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21034
21035         getaddrinfo: Fix test for sa_len member.
21036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21037         include <sys/types.h> before <sys/socket.h>.
21038
21039 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21040
21041         maint: change "can not" to "cannot"
21042         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21043         boundaries.
21044
21045 2011-04-09  Jim Meyering  <meyering@redhat.com>
21046
21047         maint: change "a a" to "a"
21048         * tests/test-lchown.h (test_lchown): s/a a/a/
21049
21050         maint.mk: prohibit \<the the\>
21051         * top/maint.mk (sc_prohibit_the_the): New rule.
21052
21053         maint: fix "the the" in comment
21054         * lib/count-one-bits.h: s/the the/the/
21055
21056         maint: change "can not" to "cannot"
21057         But do not change the occurrences in maintain.texi or in
21058         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21059         * doc/gnulib-tool.texi: s/can not/cannot/
21060         * doc/posix-functions/accept.texi (accept): Likewise.
21061         * doc/posix-functions/socket.texi (socket): Likewise.
21062         * lib/mbrtowc.c: Likewise.
21063
21064         maint.mk: prohibit use of "can not"
21065         * top/maint.mk (sc_prohibit_can_not): New rule.
21066         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21067
21068 2011-04-09  Bruno Haible  <bruno@clisp.org>
21069
21070         careadlinkat: Guard against misuse of careadlinkatcwd.
21071         * lib/careadlinkat.c: Include <stdlib.h>.
21072         (careadlinkatcwd): Check that the fd argument is as expected.
21073
21074 2011-04-09  Bruno Haible  <bruno@clisp.org>
21075
21076         careadlinkat: Use common coding style.
21077         * lib/careadlinkat.c: Move gnulib includes after system includes.
21078
21079 2011-04-09  Bruno Haible  <bruno@clisp.org>
21080
21081         careadlinkat: Clarify specification.
21082         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21083         (careadlinkatcwd): Add comment.
21084         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21085
21086 2011-04-09  Bruno Haible  <bruno@clisp.org>
21087
21088         areadlinkat: Avoid link error on many platforms.
21089         * modules/areadlinkat (Depends-on): Add areadlink.
21090
21091 2011-04-09  Bruno Haible  <bruno@clisp.org>
21092
21093         allocator, careadlinkat: Fix double-inclusion guard.
21094         * lib/allocator.h: Fix double-inclusion guard.
21095         * lib/careadlinkat.h: Likewise.
21096
21097 2011-04-09  Bruno Haible  <bruno@clisp.org>
21098
21099         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21100         * lib/relocwrapper.c: Update dependencies hierarchy.
21101         * build-aux/install-reloc: Update list of files to be compiled.
21102         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21103         lib/allocator.[hc].
21104
21105 2011-04-08  Eric Blake  <eblake@redhat.com>
21106
21107         strftime: silence gnulib-tool warning
21108         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21109
21110 2011-04-08  Bruno Haible  <bruno@clisp.org>
21111
21112         verify: Fix syntax error with GCC 4.6 in C++ mode.
21113         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21114         (HAVE_STATIC_ASSERT): New macro.
21115         (verify_true, verify): Use 'static_assert' if it is supported and
21116         '_Static_assert' is not supported.
21117
21118 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21119
21120         allocator: New module.
21121         * modules/allocator, lib/allocator.c: New files.
21122         * lib/allocator.h (stdlib_allocator): New decl.
21123         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21124         Remove.  Do not include <stdlib.h>.
21125         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21126         * modules/careadlinkat (Files): Remove lib/allocator.h.
21127         (Depends-on): Add allocator.
21128
21129         stdlib: let modules use system malloc, realloc
21130         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21131         if !_GL_USE_STDLIB_ALLOC.
21132         (malloc, realloc): Limit this change to a smaller scope.
21133
21134         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21135         (malloc, realloc): Don't #undef; no longer needed.
21136         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21137         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21138         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21139         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21140         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21141         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21142         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21143         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21144
21145         careadlinkat: rename members to avoid problem
21146         * lib/allocator.h (struct allocator): Rename members from
21147         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21148         and realloc are #define'd.  Reported by Eric Blake in
21149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21150         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21151
21152 2011-04-08  Eric Blake  <eblake@redhat.com>
21153
21154         nonblocking: reduce dependency
21155         * tests/test-nonblocking.c: Only test sockets when in use.
21156         * modules/nonblocking-tests (Depends-on): Drop socket.
21157         (Makefile.am): Link even if sockets are not present.
21158         * modules/pipe2-tests (Makefile.am): Likewise.
21159         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21160
21161         pipe2: fix O_NONBLOCK support on mingw
21162         * modules/pipe2 (Depends-on): Add nonblocking.
21163         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21164         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21165         * tests/test-nonblocking.c (main): Likewise.
21166         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21167
21168         fcntl-h: fix O_ACCMODE on cygwin
21169         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21170         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21171
21172         pipe-filter: drop O_NONBLOCK workarounds
21173         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21174         * modules/pipe-filter-ii (Depends-on): Likewise.
21175         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21176
21177         nonblocking: provide O_NONBLOCK for mingw
21178         * modules/nonblocking (Depends-on): Add open.
21179         (configure.ac): Set new witness macro.
21180         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21181         * modules/fcntl-h (Makefile.am): Substitute it.
21182         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21183         nonblocking module is in use.
21184         * lib/nonblocking.c: Adjust portability test.
21185         * lib/open.c (open): Don't let native open see gnulib flag.
21186         * tests/test-fcntl-h.c (main): Enhance test.
21187         * tests/test-open.h (test_open): Likewise.
21188         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21189
21190         careadlinkat: fix compilation error on mingw
21191         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21192         within struct allocator.
21193
21194 2011-04-06  Eric Blake  <eblake@redhat.com>
21195
21196         binary-io: relicense under LGPLv2+
21197         * modules/binary-io (License): Relax to LGPLv2+.
21198         Requested for libvirt, and required by pipe2.
21199
21200 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21201
21202         verify: use _Static_assert if available
21203         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21204         (verify_true, verify): Use it if available.  This generates better
21205         diagnostics with GCC 4.6.0 and later.
21206
21207 2011-04-05  Bruno Haible  <bruno@clisp.org>
21208
21209         Remove leftover generated .h files after config.status changed.
21210
21211         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21212         GL_GENERATE_ALLOCA_H.
21213         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21214         GL_GENERATE_ALLOCA_H evaluates to false.
21215
21216         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21217         GL_GENERATE_ARGZ_H.
21218         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21219         evaluates to false.
21220
21221         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21222         GL_GENERATE_BYTESWAP_H.
21223         * modules/byteswap (Makefile.am): Remove byteswap.h if
21224         GL_GENERATE_BYTESWAP_H evaluates to false.
21225
21226         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21227         GL_GENERATE_ERRNO_H.
21228         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21229         evaluates to false.
21230
21231         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21232         GL_GENERATE_FLOAT_H.
21233         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21234         evaluates to false.
21235
21236         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21237         GL_GENERATE_FNMATCH_H.
21238         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21239         GL_GENERATE_FNMATCH_H evaluates to false.
21240
21241         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21242         GL_GENERATE_GLOB_H.
21243         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21244         evaluates to false.
21245
21246         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21247         automake conditional GL_GENERATE_ICONV_H.
21248         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21249         evaluates to false.
21250
21251         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21252         GL_GENERATE_NETINET_IN_H.
21253         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21254         GL_GENERATE_NETINET_IN_H evaluates to false.
21255
21256         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21257         conditional GL_GENERATE_PTHREAD_H.
21258         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21259         * modules/pthread (Makefile.am): Remove pthread.h if
21260         GL_GENERATE_PTHREAD_H evaluates to false.
21261
21262         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21263         GL_GENERATE_SCHED_H.
21264         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21265         evaluates to false.
21266
21267         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21268         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21269         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21270         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21271
21272         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21273         GL_GENERATE_STDARG_H.
21274         * modules/stdarg (Makefile.am): Remove stdarg.h if
21275         GL_GENERATE_STDARG_H evaluates to false.
21276
21277         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21278         GL_GENERATE_STDBOOL_H.
21279         * modules/stdbool (Makefile.am): Remove stdbool.h if
21280         GL_GENERATE_STDBOOL_H evaluates to false.
21281
21282         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21283         conditional GL_GENERATE_STDDEF_H.
21284         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21285         * modules/stddef (Makefile.am): Remove stddef.h if
21286         GL_GENERATE_STDDEF_H evaluates to false.
21287
21288         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21289         GL_GENERATE_STDINT_H.
21290         * modules/stdint (Makefile.am): Remove stdint.h if
21291         GL_GENERATE_STDINT_H evaluates to false.
21292
21293         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21294         GL_GENERATE_SYSEXITS_H.
21295         * modules/sysexits (Makefile.am): Remove sysexits.h if
21296         GL_GENERATE_SYSEXITS_H evaluates to false.
21297
21298         Reported by Karl Berry and Ralf Wildenhues.
21299
21300 2011-04-05  Bruno Haible  <bruno@clisp.org>
21301
21302         Ensure to rebuild generated .h files when config.status has changed.
21303         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21304         config.status.
21305         * modules/ctype (Makefile.am): Likewise.
21306         * modules/dirent (Makefile.am): Likewise.
21307         * modules/errno (Makefile.am): Likewise.
21308         * modules/fcntl-h (Makefile.am): Likewise.
21309         * modules/float (Makefile.am): Likewise.
21310         * modules/getopt-posix (Makefile.am): Likewise.
21311         * modules/glob (Makefile.am): Likewise.
21312         * modules/iconv-h (Makefile.am): Likewise.
21313         * modules/inttypes (Makefile.am): Likewise.
21314         * modules/langinfo (Makefile.am): Likewise.
21315         * modules/locale (Makefile.am): Likewise.
21316         * modules/math (Makefile.am): Likewise.
21317         * modules/netdb (Makefile.am): Likewise.
21318         * modules/netinet_in (Makefile.am): Likewise.
21319         * modules/poll-h (Makefile.am): Likewise.
21320         * modules/pthread (Makefile.am): Likewise.
21321         * modules/pty (Makefile.am): Likewise.
21322         * modules/sched (Makefile.am): Likewise.
21323         * modules/search (Makefile.am): Likewise.
21324         * modules/selinux-h (Makefile.am): Likewise.
21325         * modules/signal (Makefile.am): Likewise.
21326         * modules/spawn (Makefile.am): Likewise.
21327         * modules/stdarg (Makefile.am): Likewise.
21328         * modules/stdbool (Makefile.am): Likewise.
21329         * modules/stddef (Makefile.am): Likewise.
21330         * modules/stdint (Makefile.am): Likewise.
21331         * modules/stdio (Makefile.am): Likewise.
21332         * modules/stdlib (Makefile.am): Likewise.
21333         * modules/string (Makefile.am): Likewise.
21334         * modules/strings (Makefile.am): Likewise.
21335         * modules/sys_file (Makefile.am): Likewise.
21336         * modules/sys_ioctl (Makefile.am): Likewise.
21337         * modules/sys_select (Makefile.am): Likewise.
21338         * modules/sys_socket (Makefile.am): Likewise.
21339         * modules/sys_stat (Makefile.am): Likewise.
21340         * modules/sys_time (Makefile.am): Likewise.
21341         * modules/sys_times (Makefile.am): Likewise.
21342         * modules/sys_utsname (Makefile.am): Likewise.
21343         * modules/sys_wait (Makefile.am): Likewise.
21344         * modules/sysexits (Makefile.am): Likewise.
21345         * modules/termios (Makefile.am): Likewise.
21346         * modules/time (Makefile.am): Likewise.
21347         * modules/unistd (Makefile.am): Likewise.
21348         * modules/wchar (Makefile.am): Likewise.
21349         * modules/wctype-h (Makefile.am): Likewise.
21350         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21351
21352 2011-04-05  Bruno Haible  <bruno@clisp.org>
21353
21354         pipe2: Relicense under LGPLv2+.
21355         * modules/pipe2 (License): Change to LGPLv2+.
21356         Requested by Eric Blake, for libvirt.
21357
21358 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21359
21360         bootstrap: compute gnulib_extra_files after updating build_aux
21361         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21362         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21363
21364 2011-04-05  Eric Blake  <eblake@redhat.com>
21365
21366         bootstrap: preserve git whitelist item sorting
21367         * build-aux/bootstrap (sort_patterns): New function.
21368         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21369
21370 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21371
21372         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21373         sc_space_tab check.
21374
21375 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21376
21377         areadlink, areadlinkat: rewrite in terms of careadlinkat
21378         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21379         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21380         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21381         (malloc, realloc): Remove #undefs.
21382         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21383         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21384         readlink, ssize_t, stdint, unistd.
21385         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21386         areadlink, stdint.
21387
21388         careadlinkat: new module
21389         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21390         * modules/careadlinkat: New files, written by me with
21391         a review and feedback from Ben Pfaff in
21392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21393
21394 2011-04-01  Bruno Haible  <bruno@clisp.org>
21395
21396         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21397         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21398         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21399         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21400         Reported by Bruce Korb <bruce.korb@gmail.com>.
21401
21402 2011-04-01  Bruno Haible  <bruno@clisp.org>
21403
21404         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21405         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21406         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21407         * modules/wcpcpy (Depends-on): Add extensions.
21408         * modules/wcpncpy (Depends-on): Likewise.
21409         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21410         systems.
21411         * doc/posix-functions/wcpncpy.texi: Likewise.
21412         * doc/posix-functions/wcwidth.texi: Likewise.
21413
21414 2011-03-31  Eric Blake  <eblake@redhat.com>
21415
21416         nonblocking: fix mingw test failures
21417         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21418         non-blocking flag on regular file.
21419         (get_nonblocking_flag): Set errno on invalid fd.
21420         * tests/test-nonblocking.c (main): Avoid test failure on
21421         directories if fchdir is not active.
21422         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21423
21424 2011-03-31  Bruno Haible  <bruno@clisp.org>
21425
21426         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21427         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21428         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21429         Reported by Simon Josefsson <simon@josefsson.org>.
21430
21431 2011-03-31  Bruno Haible  <bruno@clisp.org>
21432         and Eric Blake  <eblake@redhat.com>
21433
21434         nonblocking: new module
21435         * modules/nonblocking: New module.
21436         * modules/nonblocking-tests: Likewise.
21437         * lib/nonblocking.h: New file.
21438         * lib/nonblocking.c: Likewise.
21439         * tests/test-nonblocking.c: New test.
21440         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21441
21442 2011-03-30  Bruno Haible  <bruno@clisp.org>
21443
21444         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21445         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21446         instead of 'printf' format for GCC >= 4.4.
21447         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21448         (fprintf, printf, vfprintf, vprintf): Declare with
21449         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21450         the system's vfprintf() function.
21451         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21452
21453 2011-03-30  Eric Blake  <eblake@redhat.com>
21454
21455         passfd: fix scoping bug
21456         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21457         before sendmsg/recvmsg.
21458
21459         passfd: standardize coding conventions
21460         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21461         can be learned at compile time.
21462         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21463         ifdefs.
21464         (sendfd, recvfd): Follow gnulib code conventions.
21465
21466         passfd: fix incorrect sendmsg arguments
21467         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21468         incorrect msg_controllen value.
21469         * modules/passfd-tests (Depends-on): Check for alarm.
21470         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21471         Reported by Bastien ROUCARIES.
21472
21473 2011-03-30  Bruno Haible  <bruno@clisp.org>
21474
21475         c-strcasestr: Relicense under LGPLv2+.
21476         * modules/c-strcasestr (License): Change to LGPLv2+.
21477         Requested by Eric Blake, for libvirt.
21478
21479 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21480
21481         * users.txt: Add libidn2.  Fix libtasn1 link.
21482
21483 2011-03-30  Jim Meyering  <meyering@redhat.com>
21484
21485         tests: readlink* ("",... fails with EINVAL on newer kernels
21486         readlink and readlinkat have typically failed with ENOENT for
21487         the invalid, empty file name,  "".  However, with the advent
21488         of linux-2.6.39, they fail with EINVAL.
21489         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21490         when operating on the empty file name.
21491         * tests/test-readlink.h (test_readlink): Likewise.
21492
21493 2011-03-29  Bruno Haible  <bruno@clisp.org>
21494
21495         Relicense some modules under LGPLv2+, for libidn2.
21496         * modules/array-mergesort (License): Change to LGPLv2+.
21497         * modules/c-strcaseeq (License): Likewise.
21498         * modules/striconveh (License): Likewise.
21499         * modules/striconveha (License): Likewise.
21500         * modules/uniconv/base (License): Likewise.
21501         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21502         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21503         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21504         * modules/unictype/base (License): Likewise.
21505         * modules/unictype/bidiclass-of (License): Likewise.
21506         * modules/unictype/category-M (License): Likewise.
21507         * modules/unictype/category-none (License): Likewise.
21508         * modules/unictype/category-of (License): Likewise.
21509         * modules/unictype/category-test (License): Likewise.
21510         * modules/unictype/category-test-withtable (License): Likewise.
21511         * modules/unictype/combining-class (License): Likewise.
21512         * modules/unictype/joiningtype-of (License): Likewise.
21513         * modules/unictype/scripts (License): Likewise.
21514         * modules/uninorm/base (License): Likewise.
21515         * modules/uninorm/canonical-decomposition (License): Likewise.
21516         * modules/uninorm/composition (License): Likewise.
21517         * modules/uninorm/decompose-internal (License): Likewise.
21518         * modules/uninorm/decomposition-table (License): Likewise.
21519         * modules/uninorm/nfc (License): Likewise.
21520         * modules/uninorm/nfd (License): Likewise.
21521         * modules/uninorm/u32-normalize (License): Likewise.
21522         * modules/unistr/base (License): Likewise.
21523         * modules/unistr/u32-cpy (License): Likewise.
21524         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21525         * modules/unistr/u32-to-u8 (License): Likewise.
21526         * modules/unistr/u32-uctomb (License): Likewise.
21527         * modules/unistr/u8-check (License): Likewise.
21528         * modules/unistr/u8-mblen (License): Likewise.
21529         * modules/unistr/u8-mbtouc (License): Likewise.
21530         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21531         * modules/unistr/u8-mbtoucr (License): Likewise.
21532         * modules/unistr/u8-prev (License): Likewise.
21533         * modules/unistr/u8-strlen (License): Likewise.
21534         * modules/unistr/u8-to-u32 (License): Likewise.
21535         * modules/unistr/u8-uctomb (License): Likewise.
21536         * modules/unitypes (License): Likewise.
21537         Requested by Simon Josefsson.
21538
21539 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21540
21541         lib-symbol-visibility: Add a notice.
21542         * modules/lib-symbol-visibility (Notice): New field.
21543
21544 2011-03-29  Bruno Haible  <bruno@clisp.org>
21545
21546         getaddrinfo: Doc fix.
21547         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21548         section "fixed in Gnulib".
21549
21550 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21551
21552         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21553         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21554
21555 2011-03-26  Bruno Haible  <bruno@clisp.org>
21556
21557         unictype/property-byname: Reduce the number of load-time relocations.
21558         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21559         (UC_PROPERTY_INDEX_*): New enumeration values.
21560         (uc_property_byname): Convert an index from the lookup table to an
21561         uc_property_t.
21562         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21563         values.
21564
21565 2011-03-26  Bruno Haible  <bruno@clisp.org>
21566
21567         unictype/property-byname: Allow omitted word separators and aliases.
21568         * lib/unictype/pr_byname.gperf: Add property names without word
21569         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21570         for 'space'.
21571
21572 2011-03-26  Bruno Haible  <bruno@clisp.org>
21573
21574         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21575         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21576         also hyphens to space.
21577         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21578         without spaces.
21579         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21580
21581 2011-03-26  Bruno Haible  <bruno@clisp.org>
21582
21583         unictype/joiningtype-byname: Recognize long names as well.
21584         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21585         a long name.
21586         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21587         unictype/joiningtype_byname.h.
21588         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21589         * lib/unictype/joiningtype_byname.gperf: New file.
21590         * modules/unictype/joiningtype-byname (Files): Add
21591         lib/unictype/joiningtype_byname.gperf.
21592         (Depends-on): Add gperf.
21593         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21594         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21595         long names.
21596
21597         Tests for module 'unictype/joiningtype-longname'.
21598         * modules/unictype/joiningtype-longname-tests: New file.
21599         * tests/unictype/test-joiningtype_longname.c: New file.
21600
21601         New module 'unictype/joiningtype-longname'.
21602         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21603         * lib/unictype/joiningtype_longname.c: New file.
21604         * modules/unictype/joiningtype-longname: New file.
21605         * modules/unictype/joiningtype-all (Depends-on): Add
21606         unictype/joiningtype-longname.
21607
21608 2011-03-26  Bruno Haible  <bruno@clisp.org>
21609
21610         unictype/bidiclass-byname: Recognize long names as well.
21611         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21612         name.
21613         * lib/unictype/bidi_byname.c: Include <string.h>,
21614         unictype/bidi_byname.h.
21615         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21616         * lib/unictype/bidi_byname.gperf: New file.
21617         * modules/unictype/bidiclass-byname (Files): Add
21618         lib/unictype/bidi_byname.gperf.
21619         (Depends-on): Add gperf.
21620         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21621         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21622         long names.
21623
21624         Tests for module 'unictype/bidiclass-longname'.
21625         * modules/unictype/bidiclass-longname-tests: New file.
21626         * tests/unictype/test-bidi_longname.c: New file.
21627
21628         New module 'unictype/bidiclass-longname'.
21629         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21630         * lib/unictype/bidi_longname.c: New file.
21631         * modules/unictype/bidiclass-longname: New file.
21632         * modules/unictype/bidiclass-all (Depends-on): Add
21633         unictype/bidiclass-longname.
21634
21635 2011-03-26  Bruno Haible  <bruno@clisp.org>
21636
21637         unictype/bidi*: Rename modules.
21638         * modules/unictype/bidiclass-all: Renamed from
21639         modules/unictype/bidicategory-all.
21640         * modules/unictype/bidiclass-name: Renamed from
21641         modules/unictype/bidiclass-name.
21642         (Description): Update.
21643         * modules/unictype/bidiclass-name-tests: Renamed from
21644         modules/unictype/bidicategory-name-tests.
21645         * modules/unictype/bidiclass-byname: Renamed from
21646         modules/unictype/bidicategory-byname.
21647         (Description): Update.
21648         * modules/unictype/bidiclass-byname-tests: Renamed from
21649         modules/unictype/bidicategory-byname-tests.
21650         * modules/unictype/bidiclass-of: Renamed from
21651         modules/unictype/bidicategory-of.
21652         (Description): Update.
21653         * modules/unictype/bidiclass-of-tests: Renamed from
21654         modules/unictype/bidicategory-of-tests.
21655         * modules/unictype/bidiclass-test: Renamed from
21656         modules/unictype/bidicategory-test.
21657         (Description): Update.
21658         * modules/unictype/bidiclass-test-tests: Renamed from
21659         modules/unictype/bidicategory-test-tests.
21660         * modules/unictype/bidicategory-all: New file, a simple redirection.
21661         * modules/unictype/bidicategory-name: Likewise.
21662         * modules/unictype/bidicategory-byname: Likewise.
21663         * modules/unictype/bidicategory-of: Likewise.
21664         * modules/unictype/bidicategory-test: Likewise.
21665         * modules/unictype/property-bidi-* (Dependencies): Update.
21666         * lib/unictype/bidi_*.c: Update comment.
21667
21668 2011-03-26  Bruno Haible  <bruno@clisp.org>
21669
21670         unictype/bidi*: Rename functions, part 2.
21671         * modules/unictype/bidicategory-name (configure.ac): Update required
21672         libunistring version.
21673         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21674
21675 2011-03-25  Bruno Haible  <bruno@clisp.org>
21676
21677         New module 'unictype/combining-class-all'.
21678         * modules/unictype/combining-class-all: New file.
21679
21680         Tests for module 'unictype/combining-class-byname'.
21681         * modules/unictype/combining-class-byname-tests: New file.
21682         * tests/unictype/test-combiningclass_byname.c: New file.
21683
21684         New module 'unictype/combining-class-byname'.
21685         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21686         * lib/unictype/combiningclass_byname.c: New file.
21687         * lib/unictype/combiningclass_byname.gperf: New file.
21688         * modules/unictype/combining-class-byname: New file.
21689
21690         Tests for module 'unictype/combining-class-longname'.
21691         * modules/unictype/combining-class-longname-tests: New file.
21692         * tests/unictype/test-combiningclass_longname.c: New file.
21693
21694         New module 'unictype/combining-class-longname'.
21695         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21696         * lib/unictype/combiningclass_longname.c: New file.
21697         * modules/unictype/combining-class-longname: New file.
21698
21699         Tests for module 'unictype/combining-class-name'.
21700         * modules/unictype/combining-class-name-tests: New file.
21701         * tests/unictype/test-combiningclass_name.c: New file.
21702
21703         New module 'unictype/combining-class-name'.
21704         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21705         * lib/unictype/combiningclass_name.c: New file.
21706         * modules/unictype/combining-class-name: New file.
21707
21708 2011-03-25  Bruno Haible  <bruno@clisp.org>
21709
21710         unictype/combining-class: Rename source files.
21711         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21712         of unictype/combining.h.
21713         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21714         Update.
21715         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21716         * modules/unictype/combining-class (Description): Fix.
21717         (Files, Makefile.am): Update.
21718         * tests/unictype/test-combiningclass.c: Renamed from
21719         tests/unictype/test-combining.c.
21720         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21721
21722 2011-03-25  Bruno Haible  <bruno@clisp.org>
21723
21724         unictype: Update list of canonical combining classes.
21725         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21726
21727 2011-03-25  Bruno Haible  <bruno@clisp.org>
21728
21729         unictype/category-byname: Recognize long names as well.
21730         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21731         a long name.
21732         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21733         unictype/categ_byname.h.
21734         (UC_CATEGORY_INDEX_*): New enumeration values.
21735         (uc_general_category_byname): Use uc_general_category_lookup and
21736         convert from index to value.
21737         * lib/unictype/categ_byname.gperf: New file.
21738         * modules/unictype/category-byname (Files): Add
21739         lib/unictype/categ_byname.gperf.
21740         (Depends-on): Add gperf.
21741         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21742         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21743         long names.
21744
21745         Tests for module 'unictype/category-longname'.
21746         * modules/unictype/category-longname-tests: New file.
21747         * tests/unictype/test-categ_longname.c: New file.
21748
21749         New module 'unictype/category-longname'.
21750         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21751         * lib/unictype/categ_longname.c: New file.
21752         * modules/unictype/category-longname: New file.
21753         * modules/unictype/category-all (Depends-on): Add it.
21754
21755 2011-03-25  Bruno Haible  <bruno@clisp.org>
21756
21757         Tests for module 'unictype/category-LC'.
21758         * modules/unictype/category-LC-tests: New file.
21759         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21760
21761         New module 'unictype/category-LC'.
21762         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21763         (UC_CATEGORY_LC): New declaration.
21764         (UC_CASED_LETTER): New macro.
21765         * lib/gen-uni-tables.c (is_category_LC): New function.
21766         (output_categories): Also handle category LC.
21767         (UC_CATEGORY_MASK_LC): New enumeration value.
21768         (general_category_byname): Also handle category LC.
21769         * lib/unictype/categ_LC.c: New file.
21770         * lib/unictype/categ_LC.h: New file, automatically generated.
21771         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21772         category LC.
21773         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21774         * modules/unictype/category-LC: New file.
21775         * modules/unictype/category-byname (Depends-on): Add
21776         unictype/category-LC.
21777         * modules/unictype/category-all (Depends-on): Likewise.
21778
21779 2011-03-25  Eric Blake  <eblake@redhat.com>
21780
21781         xmalloc: revert yesterday's regression
21782         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21783         realloc's underlying behavior (allowing allocation of zero-size
21784         objects, especially if malloc-gnu is also in use).
21785
21786 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21787
21788         maint.mk: add missing version to VC-tag
21789         * top/maint.mk: git tag was missing actual tag name; add it.
21790
21791         valgrind: do leak checking, and exit with code 1 on error (not 0)
21792         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21793         to VALGRIND.
21794
21795 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21796
21797         posix-modules: say what it does.
21798         * posix-modules: Add a line to the --help output saying what it does.
21799
21800 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21801
21802         xmalloc: Do not leak if underlying realloc is C99 compatible.
21803         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21804         This avoids a leak on C99-based systems.  See
21805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21806
21807 2011-03-24  Eric Blake  <eblake@redhat.com>
21808
21809         realloc: document portability problem
21810         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21811         passing 0 size to realloc.
21812
21813 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21814
21815         doc: update users.txt
21816         * users.txt: Add cvsps, tmpwatch
21817
21818 2011-03-23  Matt Rice  <ratmice@gmail.com>
21819
21820         doc: update users.txt
21821         * users.txt: Add gdb.
21822
21823 2011-03-23  Jim Meyering  <meyering@redhat.com>
21824
21825         doc: update users.txt
21826         Looking through matches up to the following URL (there are still
21827         several more pages), I found several projects that use gnulib:
21828         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21829         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21830         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21831
21832 2011-03-22  Bruno Haible  <bruno@clisp.org>
21833
21834         unictype/bidi*: Rename functions.
21835         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21836         uc_bidi_class, uc_is_bidi_class): New declarations.
21837         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21838         uc_bidi_category_byname.
21839         (uc_bidi_category_byname): New function.
21840         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21841         u_bidi_category_name.
21842         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21843         (uc_bidi_category_name): New function.
21844         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21845         uc_bidi_category.
21846         (uc_bidi_category): New function.
21847         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21848         uc_is_bidi_category. Invoke uc_bidi_class.
21849         (uc_is_bidi_category): New function.
21850         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21851         instead of uc_bidi_category_byname.
21852         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21853         instead of uc_bidi_category_name.
21854         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21855         uc_bidi_category.
21856         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21857         instead of uc_is_bidi_category.
21858
21859 2011-03-21  Bruno Haible  <bruno@clisp.org>
21860
21861         New module 'unictype/joininggroup-all'.
21862         * modules/unictype/joininggroup-all: New file.
21863
21864         Tests for module 'unictype/joininggroup-of'.
21865         * modules/unictype/joininggroup-of-tests: New file.
21866         * tests/unictype/test-joininggroup_of.c: New file.
21867         * tests/unictype/test-joininggroup_of.h: New file, automatically
21868         generated by gen-uni-tables.
21869
21870         New module 'unictype/joininggroup-of'.
21871         * modules/unictype/joininggroup-of: New file.
21872         * lib/unictype/joininggroup_of.c: New file.
21873         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21874         gen-uni-tables.
21875
21876         Tests for module 'unictype/joininggroup-byname'.
21877         * modules/unictype/joininggroup-byname-tests: New file.
21878         * tests/unictype/test-joininggroup_byname.c: New file.
21879
21880         New module 'unictype/joininggroup-byname'.
21881         * modules/unictype/joininggroup-byname: New file.
21882         * lib/unictype/joininggroup_byname.c: New file.
21883         * lib/unictype/joininggroup_byname.gperf: New file.
21884
21885         Tests for module 'unictype/joininggroup-name'.
21886         * modules/unictype/joininggroup-name-tests: New file.
21887         * tests/unictype/test-joininggroup_name.c: New file.
21888
21889         New module 'unictype/joininggroup-name'.
21890         * modules/unictype/joininggroup-name: New file.
21891         * lib/unictype/joininggroup_name.c: New file.
21892         * lib/unictype/joininggroup_name.h: New file.
21893
21894         New module 'unictype/joiningtype-all'.
21895         * modules/unictype/joiningtype-all: New file.
21896
21897         Tests for module 'unictype/joiningtype-of'.
21898         * modules/unictype/joiningtype-of-tests: New file.
21899         * tests/unictype/test-joiningtype_of.c: New file.
21900         * tests/unictype/test-joiningtype_of.h: New file, automatically
21901         generated by gen-uni-tables.
21902
21903         New module 'unictype/joiningtype-of'.
21904         * modules/unictype/joiningtype-of: New file.
21905         * lib/unictype/joiningtype_of.c: New file.
21906         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21907         gen-uni-tables.
21908
21909         Tests for module 'unictype/joiningtype-byname'.
21910         * modules/unictype/joiningtype-byname-tests: New file.
21911         * tests/unictype/test-joiningtype_byname.c: New file.
21912
21913         New module 'unictype/joiningtype-byname'.
21914         * modules/unictype/joiningtype-byname: New file.
21915         * lib/unictype/joiningtype_byname.c: New file.
21916
21917         Tests for module 'unictype/joiningtype-name'.
21918         * modules/unictype/joiningtype-name-tests: New file.
21919         * tests/unictype/test-joiningtype_name.c: New file.
21920
21921         New module 'unictype/joiningtype-name'.
21922         * modules/unictype/joiningtype-name: New file.
21923         * lib/unictype/joiningtype_name.c: New file.
21924
21925         unictype: Add support for Arabic shaping properties.
21926         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21927         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21928         declarations.
21929         (UC_JOINING_GROUP_*): New enumeration values.
21930         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21931         declarations.
21932         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21933         (unicode_joining_type): New variable.
21934         (UC_JOINING_GROUP_*): New enumeration values.
21935         (unicode_joining_group): New variable.
21936         (fill_arabicshaping, joining_type_as_c_identifier,
21937         output_joining_type_test, output_joining_type,
21938         joining_group_as_c_identifier, output_joining_group_test,
21939         output_joining_group): New functions.
21940         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21941         fill_arabicshaping and output_joining_type_test, output_joining_type,
21942         output_joining_group_test, output_joining_group.
21943         Reported by Simon Josefsson.
21944
21945 2011-03-21  Jim Meyering  <meyering@redhat.com>
21946
21947         strftime: fix a bug in yesterday's change
21948         * lib/strftime.c (add): Accommodate width's initial value of -1.
21949         Otherwise, nstrftime would copy uninitialized data into
21950         the result buffer.
21951
21952 2011-03-21  Jim Meyering  <meyering@redhat.com>
21953
21954         tests: add strftime-tests module
21955         * tests/test-strftime.c: New file.
21956         * modules/strftime-tests: New module.
21957
21958 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21959
21960         strftime: don't assume a byte count fits in 'int'
21961         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21962         found this problem by static analysis, using gcc -Wstrict-overflow
21963         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21964         on an integer overflow having undefined behavior, but it turns out
21965         that the argument is a size, which might not fit in 'int' anyway,
21966
21967 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21968
21969         stdio: don't require ignore_value around fwrite
21970
21971         This patch works around libc bug 11959
21972         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21973         Without this patch, applications must often write
21974         ignore_value (fwrite (...)) even though the ignore_value is
21975         not helpful here.  It's common to write many objects, using
21976         fwrite/printf/etc., and then use ferror to detect output error.
21977
21978         I considered making this patch optional, but decided against it,
21979         because libc is obviously being inconsistent here: there is no
21980         reason libc should insist that user code must inspect fwrite
21981         return's value without also insisting that it inspect printf's,
21982         putchar's, etc.  If user code wants to have a strict style where
21983         all these functions' values are checked (so that ferror need not
21984         be checked), we could add support for that style in a new gnulib
21985         module, but in the meantime it's better to be consistent and to
21986         support common usage.
21987
21988         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21989         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21990         that we are compiling in checking mode, and if not C++, and
21991         if not already wrapping fwrite for some other reason.
21992         (fwrite): #define to rpl_fwrite if the latter is defined.
21993
21994 2011-03-20  Bruno Haible  <bruno@clisp.org>
21995
21996         verror: Fix compilation error introduced on 2011-02-13.
21997         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21998         instead of __attribute__.
21999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22000
22001 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22002             Bruno Haible  <bruno@clisp.org>
22003
22004         socklen: do not depend on sys_socket
22005         While trying to modify Emacs to use gnulib's socklen module,
22006         I discovered a circular dependency: socklen depends on sys_socket
22007         and vice versa.  Emacs can use socklen, but it does not need
22008         sys_socket because it has its own substitute for sys/socket.h.
22009         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22010         gl_TYPE_SOCKLEN_T.
22011         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22012         gl_PREREQ_SYS_H_SOCKET.
22013         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22014         gl_PREREQ_SYS_H_SOCKET.
22015         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22016         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22017         * modules/socklen (Depends-on): Do not depend on sys_socket.
22018         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22019
22020 2011-03-20  Jim Meyering  <meyering@redhat.com>
22021
22022         maint.mk: sort file names *after* new transformation
22023         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22024         prefix would have led to an unwarranted failure in GNU parted.
22025         Sort after that transformation.
22026
22027 2011-03-19  Jim Meyering  <meyering@redhat.com>
22028
22029         maint.mk: fix po-file syntax-check rule
22030         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22031         Patch by Bruno Haible.
22032
22033 2011-03-19  Bruno Haible  <bruno@clisp.org>
22034
22035         socklen: Update comment.
22036         * m4/socklen.m4: Update comment about platforms.
22037
22038 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22039             Bruno Haible  <bruno@clisp.org>
22040
22041         inet_ntop, inet_pton: Simplify.
22042         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22043         documented to provide socklen_t and we already depend on sys_socket.
22044         * modules/inet_pton (Depends-on): Likewise.
22045         * lib/arpa_inet.in.h: Adjust comment.
22046
22047 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22048             Bruno Haible  <bruno@clisp.org>
22049
22050         netdb: Simplify.
22051         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22052         documented to provide socklen_t and we already depend on sys_socket.
22053         * lib/netdb.in.h: Adjust comment.
22054
22055 2011-03-19  Bruno Haible  <bruno@clisp.org>
22056
22057         sys_socket, netdb: Document problem with socklen_t.
22058         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22059         platforms.
22060         * doc/posix-headers/netdb.texi: Likewise.
22061
22062 2011-03-18  Eric Blake  <eblake@redhat.com>
22063
22064         maint.mk: let po check work in VPATH build
22065         * top/maint.mk (po_file): Allow cfg.mk override.
22066         (sc_po_check): Allow VPATH use.
22067         Reported by Jiri Denemark.
22068
22069 2011-03-16  Jim Meyering  <meyering@redhat.com>
22070
22071         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22072         Before, you would have had to create one .x-sc_ file per rule in order
22073         to exempt offending files.  Now, you may instead use a Make variable --
22074         usually defined in cfg.mk -- whose name identifies the affected rule.
22075         * top/maint.mk (_sc_excl): Define.
22076         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22077         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22078
22079 2011-03-13  Bruno Haible  <bruno@clisp.org>
22080
22081         ignore-value tests: Avoid warnings.
22082         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22083         empty for gcc < 3.4.
22084
22085 2011-03-13  Bruno Haible  <bruno@clisp.org>
22086
22087         passfd: Fix link error on Solaris.
22088         * modules/passfd (Description): Correct.
22089         (Depends-on): Add socketlib.
22090         (Link): New section.
22091         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22092
22093 2011-03-13  Bruno Haible  <bruno@clisp.org>
22094
22095         passfd: Fix link error on AIX 5.2.
22096         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22097
22098 2011-03-13  Bruno Haible  <bruno@clisp.org>
22099
22100         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22101         * lib/sys_socket.in.h: Include <stddef.h>.
22102         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22103         CMSG_FIRSTHDR. Remove unused variable.
22104
22105 2011-03-13  Bruno Haible  <bruno@clisp.org>
22106
22107         passfd: Fix compilation error on OpenBSD.
22108         * lib/passfd.c: Include <sys/uio.h>.
22109
22110 2011-03-13  Bruno Haible  <bruno@clisp.org>
22111
22112         passfd test: Fix warnings.
22113         * tests/test-passfd.c: Include <sys/wait.h>.
22114         (main): Fix typo.
22115
22116 2011-03-13  Bruno Haible  <bruno@clisp.org>
22117
22118         passfd module, part 4, tweaks.
22119         * tests/test-passfd.c: Reorder includes.
22120         (main): Fix perror and printf calls.
22121
22122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22123
22124         passfd module, part 4.
22125         * modules/passfd-tests: New file.
22126         * tests/test-passfd.c: New file.
22127
22128 2011-03-13  Jim Meyering  <meyering@redhat.com>
22129
22130         Makefile: rely on GNU make; derive syntax-check rule names
22131         Rather than requiring that each sc_ rule be listed as a dependent
22132         of "check", use features of GNU make to derive the list.
22133         * Makefile (syntax-check-rules): Define.
22134         (check): Depend on the new variable, not the hard-coded list.
22135
22136 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22137             Bruno Haible  <bruno@clisp.org>
22138
22139         passfd module, part 3.
22140         * lib/passfd.h (recvfd): Add a flags argument.
22141         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22142         (recvfd): Add a flags argument.
22143         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22144         exists.
22145         * modules/passfd (Depends-on): Add cloexec.
22146         Suggested by Eric Blake.
22147
22148 2011-03-13  Bruno Haible  <bruno@clisp.org>
22149
22150         passfd module, part 2, tweaks.
22151         * modules/passfd (Files): Reorder.
22152         (Depends-on): Remove errno.
22153         (Include): Remove <sys/socket.h>, <sys/un.h>.
22154         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22155         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22156         specification header. Include <sys/socket.h> always. Don't include
22157         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22158         (sendfd): Clarify that it sets errno when it fails.
22159         (recvfd): Fix specification.
22160
22161 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22162
22163         passfd module, part 2.
22164         * modules/passfd: New file.
22165         * lib/passfd.h: New file.
22166         * lib/passfd.c: New file.
22167
22168 2011-03-12  Bruno Haible  <bruno@clisp.org>
22169
22170         wcswidth, mbswidth: Avoid integer overflow.
22171         * lib/wcswidth.c: Include <limits.h>.
22172         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22173         * lib/mbswidth.c: Include <limits.h>.
22174         (mbsnwidth): Avoid 'int' overflow.
22175         Reported by Jim Meyering.
22176
22177 2011-03-12  Bruno Haible  <bruno@clisp.org>
22178
22179         futimens, utimensat: Avoid endless recursion on Solaris 10.
22180         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22181         Solaris.
22182         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22183         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22184
22185 2011-03-11  Jim Meyering  <meyering@redhat.com>
22186
22187         maint.mk: relax a regexp to accommodate other formatting styles
22188         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22189         between "ngettext" and the following "(".
22190
22191 2011-03-11  Pádraig Brady <P@draigBrady.com>
22192
22193         maint.mk: suppress a false positive warning
22194         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22195         diagnostics are marked with ngettext.
22196
22197 2011-03-10  Eric Blake  <eblake@redhat.com>
22198
22199         wchar: add explicit dependencies, for Tru64
22200         * modules/mbmemcasecoll (Depends-on): Add wchar.
22201         * modules/mbtowc (Depends-on): Likewise.
22202         * modules/vasnprintf (Depends-on): Likewise.
22203         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22204         * modules/wctomb (Depends-on): Likewise.
22205         Reported by Peter O'Gorman.
22206
22207 2011-03-08  Bruno Haible  <bruno@clisp.org>
22208
22209         passfd module, part 1, tweaks.
22210         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22211         Improve indentation. Improve AC_MSG_CHECKING messages.
22212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22213         gl_SOCKET_FAMILIES.
22214
22215 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22216
22217         passfd module, part 1.
22218         * m4/afunix.m4: New file.
22219         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22220         sockets.
22221
22222 2011-03-08  Bruno Haible  <bruno@clisp.org>
22223
22224         regex-quote: New API.
22225         * lib/regex-quote.h: Include <stdbool.h>.
22226         (struct regex_quote_spec): New type.
22227         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22228         New declarations.
22229         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22230         'const struct regex_quote_spec *' argument.
22231         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22232         (pcre_special): New constant.
22233         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22234         New functions.
22235         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22236         'const struct regex_quote_spec *' argument.
22237         * modules/regex-quote (Depends-on): Add stdbool.
22238         * tests/test-regex-quote.c (check): Update for new API. Add test for
22239         anchored results.
22240         * NEWS: Mention the API change.
22241         Reported by Reuben Thomas and Eric Blake.
22242
22243 2011-03-06  Bruno Haible  <bruno@clisp.org>
22244
22245         regex-quote: Fix creation of POSIX extended regular expressions.
22246         * lib/regex-quote.c (ere_special): Add grouping and alternation
22247         operators.
22248
22249 2011-03-05  Bruno Haible  <bruno@clisp.org>
22250
22251         doc: Improve doc regarding autopoint vs. gnulib.
22252         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22253         disable autopoint while running autoreconf.
22254         Suggested by Ralf Wildenhues.
22255
22256 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22257
22258         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22259         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22260
22261 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22262
22263         parse-duration: remove xalloc.h dependency
22264         * lib/parse-duration.c (parse_period): handle NULL return from
22265         strdup instead of calling xstrdup().
22266         * modules/parse-duration: remove "xalloc" dependency
22267
22268 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22269
22270         bootstrap: honor m4_base when running aclocal
22271         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22272
22273 2011-03-02  Jim Meyering  <meyering@redhat.com>
22274
22275         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22276         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22277         on request from Matt Booth.
22278
22279 2011-03-01  Eric Blake  <eblake@redhat.com>
22280
22281         test-link: work on Hurd
22282         * tests/test-link.h (test_link): Hurd rejects linking directories
22283         with EISDIR instead of the POSIX-mandated EPERM.
22284
22285 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22286
22287         stdio: simplify by moving files to printf-posix, sigpipe
22288         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22289         since this symbol is needed only if printf is replaced.
22290         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22291         Require gl_ASM_SYMBOL_PREFIX.
22292         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22293         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22294         (Depends-on): Add 'raise'.
22295         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22296         * modules/stdio (Files): Remove lib/stdio-write.c,
22297         m4/asm-underscore.m4.
22298         (Depends-on): Remove 'raise'.
22299
22300         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22301         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22302         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22303         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22304
22305 2011-02-28  Bruno Haible  <bruno@clisp.org>
22306
22307         localcharset: Assume ANSI C behaviour of free().
22308         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22309         calling free().
22310         Suggested by Simon Josefsson <simon@josefsson.org>.
22311
22312 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22313             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22314             Bruno Haible  <bruno@clisp.org>  (tiny change)
22315
22316         On Cygwin, use /proc file system instead of win32 API.
22317         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22318         Win32 file names.
22319         (DllMain): Simplify by removing Cygwin specific code.
22320         (find_shared_library_fullname): Use Linux specific implementation also
22321         for Cygwin.
22322         (get_shared_library_fullname): Update accordingly.
22323         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22324         Win32 file names.
22325         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22326         Cygwin specific code.
22327
22328 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22329             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22330
22331         Fix OpenMP flag detection for various Fortran compilers.
22332         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22333         OpenMP-conditional compilation construct, to force compile
22334         failure with missing OpenMP flag.
22335         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22336
22337 2011-02-25  Eric Blake  <eblake@redhat.com>
22338
22339         strstr: expand test coverage
22340         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22341         compilation.
22342         * tests/test-memmem.c (main): Duplicate tests.
22343         * tests/test-strcasestr.c (main): Likewise.
22344         * tests/test-c-strcasestr.c (main): Likewise.
22345
22346 2011-02-25  Jim Meyering  <meyering@redhat.com>
22347
22348         maint.mk: detect missing-NL-at-EOF, too
22349         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22350         it also detects when a file lacks a newline at EOF.
22351         (require_exactly_one_NL_at_EOF_): Renamed from
22352         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22353         since people may well have .x-sc_... file names tied to the
22354         existing name.  Suggested by Eric Blake.
22355
22356 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22357
22358         dirname: move m4/dos.m4 functionality into lib/dosname.h
22359
22360         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22361         extracts symbols from it, puts them into config.h; but it's much
22362         easier to use the symbols directly.  filename.h already does this,
22363         but it disagrees with dos.m4 in some respects.  This patch
22364         introduces a different include file dosname.h that packages up
22365         dos.m4, and then later we can work on merging filename.h and
22366         dosname.h.  Applications that need only the easy-to-configure
22367         symbols should consider including dosname.h rather than dirname.h.
22368         * NEWS: Mention incompatible changes.
22369         * m4/dos.m4: Remove.
22370         * lib/dosname.h, modules/dosname: New files.
22371         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22372         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22373         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22374         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22375         Include dosname.h, not dirname.h.
22376         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22377         Include dosname.h, for definitions of symbols like ISSLASH
22378         that used to be in config.h.
22379         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22380         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22381         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22382         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22383         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22384         * modules/rmdir (Files): Likewise.
22385         * modules/stat (Files): Likewise.
22386         * modules/unlink (Files): Likewise.
22387         * modules/dirname-lgpl (Depends-on): Add dosname.
22388         * modules/lstat (Depends-on): Likewise.
22389         * modules/openat (Depends-on): Likewise.
22390         * modules/rmdir (Depends-on): Likewise.
22391         * modules/savewd (Depends-on): Likewise.
22392         * modules/stat (Depends-on): Likewise.
22393         * modules/unlink (Depends-on): Likewise.
22394         * modules/openat (Depends-on): Remove dirname-lgpl.
22395         * modules/savewd (Depends-on): Likewise.
22396         * tests/test-dirname.c: Do not use removed symbols like
22397         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22398         the remaining symbols, e.g., ISSLASH ('\\').
22399
22400 2011-02-25  Eric Blake  <eblake@redhat.com>
22401
22402         strstr: revert patches that introduced bug and pessimization
22403         * lib/str-two-way.h: Add another reference.
22404         (two_way_short_needle, two_way_long_needle): Revert changes from
22405         2011-02-24; they pessimize search speed.
22406         (critical_factorization): Partially revert changes from
22407         2010-06-22; they violate the requirement that the left half of the
22408         needle be smaller than the period of the needle.
22409
22410 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22411
22412         filenamecat: remove unnecessary dependency on dirname-lgpl
22413         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22414         is no direct dependency, just an indirect one via filenamecat-lgpl.
22415
22416         remove: remove unnecessary use of m4/dos.m4
22417         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22418         * modules/remove (FILES): Remove m4/dos.m4.
22419
22420         * lib/openat-proc.c: Don't include dirname.h; not needed.
22421
22422         backupfile: remove unnecessary use of m4/dos.m4
22423         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22424         of its symbols are used by the backupfile code.  backupfile.c does
22425         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22426         for the rare case of programs that want all their backup file
22427         names to live within 8+3 limits, and dos.m4 doesn't address that.
22428         * modules/backupfile (Files): Remove m4/dos.m4.
22429
22430 2011-02-24  Jim Meyering  <meyering@redhat.com>
22431
22432         strstr: fix a bug whereby strstr would mistakenly return NULL
22433         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22434         in period calculation.
22435         (two_way_long_needle): Likewise.
22436         The original problem was reported by Mike Stump in
22437         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22438         Ralf Wildenhues provided the short needle and haystack.
22439         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22440         Add a more involved test to trigger the bug in two_way_long_needle.
22441
22442 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22443
22444         gnulib-tool: remove use of bold display in help screen
22445         * gnulib-tool (func_usage): Do not use bold display anymore in the
22446         help screen.  That was just meant to be a temporary emphasis for a
22447         backward-incompatible change.
22448
22449 2011-02-23  Bruno Haible  <bruno@clisp.org>
22450
22451         Fix misindentation of preprocessor directives.
22452         * lib/argp-namefrob.h: Reindent preprocessor directives.
22453         * lib/getopt_int.h (struct _getopt_data): Likewise.
22454         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22455         * lib/vasnprintf.c (decode_long_double): Likewise.
22456         * tests/test-argmatch.c: Insert blank lines, for clarity.
22457         * tests/test-exclude.c: Likewise.
22458
22459 2011-02-22  Bruno Haible  <bruno@clisp.org>
22460
22461         ioctl: Fix for MacOS X in 64-bit mode.
22462         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22463         value.
22464         Suggested by Eric Blake.
22465         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22466
22467 2011-02-22  Jim Meyering  <meyering@redhat.com>
22468
22469         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22470         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22471         in lib/.
22472
22473 2011-02-22  Eric Blake  <eblake@redhat.com>
22474
22475         maint: avoid any CDPATH issue
22476         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22477
22478         maint: adjust cpp indentation for my modules, as well
22479         * Makefile (sc_cpp_indent_check): Add my name.
22480         * lib/fbufmode.c: Filter through cppi.
22481         * lib/fpurge.c: Likewise.
22482         * lib/freadable.c: Likewise.
22483         * lib/freading.c: Likewise.
22484         * lib/fwritable.c: Likewise.
22485         * lib/fwriting.c: Likewise.
22486         * lib/sigaction.c: Likewise.
22487
22488 2011-02-22  Jim Meyering  <meyering@redhat.com>
22489
22490         maint: adjust cpp indentation to reflect nesting depth
22491         I.e., in a block of code that begins with an unnested "#if",
22492         put one space between the "#" in column 1 and following token.
22493         For example,
22494         -#include <sys/vfs.h>
22495         +# include <sys/vfs.h>
22496         Do this only in .c files that are part of a module I maintain.
22497         * lib/linkat.c: Filter through cppi.
22498         * lib/nanosleep.c: Likewise.
22499         * lib/openat.c: Likewise.
22500         * lib/openat-die.c: Likewise.
22501         * lib/dup3.c: Likewise.
22502         * lib/fchownat.c: Likewise.
22503         * lib/flock.c: Likewise.
22504         * lib/fsync.c: Likewise.
22505         * lib/fts.c: Likewise.
22506         * lib/getpass.c: Likewise.
22507         * lib/gettimeofday.c: Likewise.
22508         * lib/userspec.c: Likewise.
22509         * Makefile (sc_cpp_indent_check): New rule, to check this.
22510
22511 2011-02-22  Bruno Haible  <bruno@clisp.org>
22512
22513         New module 'wctomb'.
22514         * lib/stdlib.in.h (wctomb): New declaration.
22515         * lib/wctomb.c: New file.
22516         * lib/wctomb-impl.h: New file.
22517         * m4/wctomb.m4: New file.
22518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22519         REPLACE_WCTOMB.
22520         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22521         REPLACE_WCTOMB.
22522         * modules/wctomb: New file.
22523         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22524         * doc/posix-functions/wctomb.texi: Mention the new module.
22525         * modules/wctob (Depends-on): Add wctomb.
22526
22527 2011-02-22  Bruno Haible  <bruno@clisp.org>
22528
22529         New module 'mbtowc'.
22530         * lib/stdlib.in.h (mbtowc): New declaration.
22531         * lib/mbtowc.c: New file.
22532         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22533         * m4/mbtowc.m4: New file.
22534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22535         REPLACE_MBTOWC.
22536         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22537         REPLACE_MBTOWC.
22538         * modules/mbtowc: New file.
22539         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22540         * doc/posix-functions/mbtowc.texi: Mention the new module.
22541         * modules/btowc (Depends-on): Add mbtowc.
22542
22543 2011-02-22  Bruno Haible  <bruno@clisp.org>
22544
22545         wcrtomb: Add more tests for native Windows platforms.
22546         * tests/test-wcrtomb-w32-1.sh: New file.
22547         * tests/test-wcrtomb-w32-2.sh: New file.
22548         * tests/test-wcrtomb-w32-3.sh: New file.
22549         * tests/test-wcrtomb-w32-4.sh: New file.
22550         * tests/test-wcrtomb-w32-5.sh: New file.
22551         * tests/test-wcrtomb-w32.c: New file.
22552         * modules/wcrtomb-tests (Files): Add them.
22553         (Makefile.am): Arrange to run these tests.
22554         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22555         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22556
22557 2011-02-20  Bruno Haible  <bruno@clisp.org>
22558
22559         wcrtomb: Enhance test.
22560         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22561
22562 2011-02-20  Bruno Haible  <bruno@clisp.org>
22563
22564         mbrtowc: Tiny optimization.
22565         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22566
22567 2011-02-20  Jim Meyering  <meyering@redhat.com>
22568
22569         test-exclude.c: remove unmatched #endif
22570         * tests/test-exclude.c: Remove stray #endif, left over from
22571         the change of a week ago.
22572
22573 2011-02-19  Jim Meyering  <meyering@redhat.com>
22574
22575         git-version-gen: skip "-dirty" check when appropriate
22576         * build-aux/git-version-gen: Don't run any git commands when the
22577         version string comes from .tarball-version.  Prior to this, we
22578         would run git update-index --refresh even from a just-unpacked
22579         tarball directory, and that could affect a .git/ directory in a
22580         parent of the build directory.  Reported by Mike Frysinger.
22581
22582 2011-02-19  Bruno Haible  <bruno@clisp.org>
22583
22584         unictype/property-byname: Reduce the size of the 'data' segment.
22585         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22586
22587 2011-02-19  Bruno Haible  <bruno@clisp.org>
22588
22589         unictype/scripts: Reduce the size of the 'data' segment.
22590         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22591         '%pic'.
22592         * lib/unictype/scripts_byname.gperf: Regenerated.
22593
22594 2011-02-19  Bruno Haible  <bruno@clisp.org>
22595
22596         stdint: Update documentation.
22597         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22598
22599 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22600
22601         stdint: omit redundant check for wchar.h
22602         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22603         always tests whether wchar.h exists, so remove the now-redundant test.
22604
22605 2011-02-18  Bruno Haible  <bruno@clisp.org>
22606
22607         stdint: Cut dependency to module 'wchar'.
22608         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22609         include the necessary prerequisites.
22610         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22611         * modules/stdint (Depends-on): Remove wchar.
22612         (Makefile.am): Substitute HAVE_WCHAR_H.
22613         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22614
22615 2011-02-18  Eric Blake  <eblake@redhat.com>
22616
22617         longlong: skip, rather than fail, on cross-compilation
22618         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22619         when cross-compiling; regression from 2011-02-16.
22620
22621 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         * NEWS: Mention 2011-02-08 change to stdlib.
22624
22625 2011-02-17  Bruno Haible  <bruno@clisp.org>
22626
22627         getloadavg: Add comments about platforms.
22628         * m4/getloadavg.m4: Add comment.
22629         * lib/getloadavg.c: Likewise.
22630
22631 2011-02-17  Bruno Haible  <bruno@clisp.org>
22632
22633         getloadavg: Fix link error on Solaris 2.6.
22634         * modules/getloadavg (Link): New section.
22635         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22636         linking test-getloadavg.
22637         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22638         getloadavg.
22639
22640 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22641
22642         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22643         It was 'int', but this doesn't match the IRIX 6.5 manual.
22644         Suggested by Bruno Haible in
22645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22646
22647 2011-02-17  Bruno Haible  <bruno@clisp.org>
22648
22649         havelib: Fix comments.
22650         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22651         change.
22652
22653 2011-02-17  Bruno Haible  <bruno@clisp.org>
22654
22655         havelib: Update config.rpath.
22656         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22657
22658 2011-02-17  Bruno Haible  <bruno@clisp.org>
22659
22660         getloadavg test: Add some plausibility checks.
22661         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22662         is improbable.
22663
22664 2011-02-16  Eric Blake  <eblake@redhat.com>
22665
22666         maintainer-makefile: make syntax-check a no-op from tarballs
22667         * top/maint.mk (no-vc-detected): New rule.
22668         (local-checks-available): Use it to avoid hanging if someone tries
22669         'make syntax-check' from a tarball.  Also append to any non-syntax
22670         checks already defined in cfg.mk.
22671
22672 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22673
22674         longlong: tune, particularly for common case of c99
22675
22676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22677         or running anything if c99, or if unsigned long long int does not
22678         work.  In either case, we know the answer without further tests.
22679         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22680         it at most once, and use its results for both long long int and
22681         unsigned long long int.  This is more likely to be efficient in
22682         the common case where the program wants to check for both long
22683         long int and unsigned long long int.
22684         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22685         since the answer is already known.
22686
22687 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         getloadavg: set errno
22690         * lib/getloadavg.c: Set errno when returning -1.  If no other
22691         error number looks appropriate, set it to ENOSYS if the getloadavg
22692         looks like it can't possibly ever work, ENOTSUP otherwise.
22693         Suggested by Bruno Haible in
22694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22695
22696         getloadavg: trim unused parts and speed up 'configure'
22697         * NEWS: Document this.
22698         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22699         always compiled if getloadavg is absent.
22700         Move test code to ...
22701         * tests/test-getloadavg.c: New file, containing previous
22702         contents of test from lib/getloadavg.c.  It also contains
22703         suggestions by Bruno Haible in
22704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22705         * modules/getloadavg-tests: New file.
22706         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22707         Do tests in the same order as they're needed for getloadavg.c.
22708         Omit setgid-related tests that generate symbols KMEM_GROUP,
22709         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22710         Do only the tests that are needed to see whether the system has
22711         getloadavg, moving the other tests into ...
22712         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22713         NLIST_NAME_UNION; nobody should be using it.  Do not define
22714         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22715         relevant, as the user of this module shouldn't care how getloadavg
22716         is implemented.
22717
22718         getloadavg: omit unused var
22719         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22720
22721 2011-02-15  Jim Meyering  <meyering@redhat.com>
22722
22723         doc: update users.txt
22724         * users.txt: Update iwhd's URL.
22725
22726 2011-02-13  Bruno Haible  <bruno@clisp.org>
22727
22728         Consistent macro naming for macros that use GCC __attribute__.
22729         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22730         _ATTRIBUTE_NONNULL_.
22731         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22732         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22733         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22734         ATTRIBUTE_DEPRECATED.
22735         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22736         ATTRIBUTE_NORETURN.
22737         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22738         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22739         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22740         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22741         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22742         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22743         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22744         ATTRIBUTE_SENTINEL.
22745         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22746         ATTRIBUTE_RETURN_CHECK.
22747         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22748         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22749         ATTRIBUTE_NORETURN.
22750         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22751         Reported by Paul Eggert.
22752
22753 2011-02-13  Bruno Haible  <bruno@clisp.org>
22754
22755         Don't interfere with a program's definition of __attribute__.
22756         * lib/argp.h (__attribute__): Remove definition.
22757         (_GL_ATTRIBUTE_FORMAT): New macro.
22758         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22759         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22760         (_GL_ATTRIBUTE_FORMAT): New macro.
22761         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22762         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22763         GCC 3 or newer.
22764         * lib/error.h (__attribute__): Remove definition.
22765         (_GL_ATTRIBUTE_FORMAT): New macro.
22766         (error, error_at_line): Use it.
22767         * lib/hash.h (__attribute__): Remove definition.
22768         (ATTRIBUTE_WUR): Update definition. Define always.
22769         * lib/openat.h (__attribute__): Remove definition.
22770         (ATTRIBUTE_NORETURN): Update definition. Define always.
22771         * lib/sigpipe-die.h (__attribute__): Remove definition.
22772         (ATTRIBUTE_NORETURN): Update definition. Define always.
22773         * lib/vasnprintf.h (__attribute__): Remove definition.
22774         (_GL_ATTRIBUTE_FORMAT): New macro.
22775         (asnprintf, vasnprintf): Use it.
22776         * lib/xalloc.h (__attribute__): Remove definition.
22777         (ATTRIBUTE_NORETURN): Update definition. Define always.
22778         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22779         * lib/xmemdup0.h (__attribute__): Remove definition.
22780         (ATTRIBUTE_NORETURN): Update definition. Define always.
22781         * lib/xprintf.h (__attribute__): Remove definition.
22782         (_GL_ATTRIBUTE_FORMAT): New macro.
22783         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22784         * lib/xstrtol.h (__attribute__): Remove definition.
22785         (ATTRIBUTE_NORETURN): Update definition. Define always.
22786         * lib/xvasprintf.h (__attribute__): Remove definition.
22787         (_GL_ATTRIBUTE_FORMAT): New macro.
22788         (xasprintf, xvasprintf): Use it.
22789         * tests/test-argmatch.c (__attribute__): Remove definition.
22790         (ATTRIBUTE_NORETURN): Update definition. Define always.
22791         * tests/test-exclude.c (__attribute__): Remove definition.
22792         (ATTRIBUTE_NORETURN): Update definition. Define always.
22793         Reported by Paul Eggert.
22794
22795 2011-02-13  Bruno Haible  <bruno@clisp.org>
22796
22797         mbrtowc: Add more tests for native Windows platforms.
22798         * tests/test-mbrtowc-w32-1.sh: New file.
22799         * tests/test-mbrtowc-w32-2.sh: New file.
22800         * tests/test-mbrtowc-w32-3.sh: New file.
22801         * tests/test-mbrtowc-w32-4.sh: New file.
22802         * tests/test-mbrtowc-w32-5.sh: New file.
22803         * tests/test-mbrtowc-w32.c: New file.
22804         * modules/mbrtowc-tests (Files): Add them.
22805         (Makefile.am): Arrange to run these tests.
22806         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22807         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22808
22809 2011-02-13  Bruno Haible  <bruno@clisp.org>
22810
22811         mbrtowc: Work around native Windows bug.
22812         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22813         guess when no suitable locale for testing was found.
22814         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22815
22816 2011-02-13  Bruno Haible  <bruno@clisp.org>
22817
22818         mbsinit: Work around mingw bug.
22819         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22820         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22821         Windows.
22822         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22823
22824 2011-02-13  Bruno Haible  <bruno@clisp.org>
22825
22826         mbsinit: Don't crash for a NULL argument.
22827         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22828         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22829
22830 2011-02-13  Bruno Haible  <bruno@clisp.org>
22831
22832         Don't interfere with a program's definition of __attribute__.
22833         * lib/stdio.in.h (__attribute__): Remove definition.
22834         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22835         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22836         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22837         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22838         * lib/string.in.h (__attribute__): Remove definition.
22839         Reported by Paul Eggert.
22840
22841 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22842
22843         stdlib: don't get in the way of non-GCC __attribute__
22844         See thread starting at
22845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22846         Revert previous stdlib change, installing the following instead:
22847         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22848         to get in the way of a non-GCC compiler that supports __attribute__.
22849         (_GL_ATTRIBUTE_RETURN): New macro.
22850         (_Exit): Use it instead of __attribute__.
22851
22852 2011-02-12  Bruno Haible  <bruno@clisp.org>
22853
22854         quotearg test: Avoid test failure on mingw.
22855         * tests/test-quotearg.sh: Convert the locale identifier from native
22856         Windows syntax to Unix syntax.
22857
22858 2011-02-12  Bruno Haible  <bruno@clisp.org>
22859
22860         setlocale: Prefer gnulib's override over libintl's override.
22861         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22862         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22863         GNULIB_defined_setlocale is set.
22864
22865 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22866
22867         stdlib: support non-GCC __attribute__
22868
22869         Fix a serious and tricky problem encountered when attempting to
22870         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22871         5.5, but it crashed due to memory corruption on Solaris 10 with
22872         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22873         bits that are otherwise zero.  This tagging is optional inside
22874         Emacs but is preferred and is used when __attribute__ ((__aligned
22875         (8))) works, as it does with both recent-enough GCC and with Sun C
22876         5.11.  However, Sun C 5.11 is not GCC and does not #define
22877         __GNUC__ and __GNUC_MINOR__.
22878
22879         When I added the getloadavg module to Emacs, it brought in
22880         stdlib.in.h, which contained this fragment:
22881
22882            #ifndef __attribute__
22883            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22884            #  define __attribute__(Spec)   /* empty */
22885            # endif
22886            #endif
22887
22888         When files that include <stdlib.h> were compiled with Sun C 5.11,
22889         the above code disabled __attribute__ ((__aligned (8))), which
22890         caused variables to not be properly aligned, which eventually led
22891         to the pointer corruption mentioned above.  (This was a bit hard
22892         to diagnose, unfortunately.)
22893
22894         Several "#define __attribute__(X) /* empty */" code snippets need
22895         to be eradicated from Gnulib to work with non-GCC compilers that
22896         support __attribute__.  The Autoconf way to do this is to test for
22897         each kind of attribute that we want support for, and selectively
22898         enable that in source code.
22899
22900         Fix this problem just for stdlib.h, by adding a test for the
22901         __noreturn__ attribute, and change stdlib.in.h to use that test
22902         when needed.  This technique can be easily generalized to the
22903         other *.in.h files and attributes, and a similar technique can be
22904         used for *.h and *.c files.  This patch is enough to solve the
22905         problem for Emacs + getloadavg, and I thought I'd publish it for
22906         feedback before undertaking further, similar fixes in other
22907         modules.
22908
22909         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22910         because it's not needed for stdlib.h.  It merely substitutes the
22911         value directly into stdlib.h.  We may well need to #define it, or
22912         similar symbols, for other modules, but it's nice to also have an
22913         option to not #define it for applications like Emacs that do not
22914         need it.
22915
22916         * lib/stdlib.in.h (__attribute__): Do not #define.
22917         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22918         be defined only if the _Exit module is also used.
22919         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22921         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22922         platforms.
22923         * modules/_Exit (Files): Add m4/attribute.m4.
22924         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22925         * m4/attribute.m4: New file.
22926
22927 2011-02-12  Bruno Haible  <bruno@clisp.org>
22928
22929         wcsrtombs: Work around bug on native Windows.
22930         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22931         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22932         instead of len.
22933         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22934
22935 2011-02-12  Bruno Haible  <bruno@clisp.org>
22936
22937         mbsrtowcs: Work around bug on native Windows.
22938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22939         against mingw bug.
22940         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22941
22942 2011-02-12  Bruno Haible  <bruno@clisp.org>
22943
22944         Avoid setlocale bugs in tests.
22945         * modules/btowc (Dependencies): Add setlocale.
22946         * modules/c-strcase (Dependencies): Likewise.
22947         * modules/mbmemcasecmp (Dependencies): Likewise.
22948         * modules/mbmemcasecoll (Dependencies): Likewise.
22949         * modules/mbrtowc (Dependencies): Likewise.
22950         * modules/mbscasecmp (Dependencies): Likewise.
22951         * modules/mbscasestr (Dependencies): Likewise.
22952         * modules/mbschr (Dependencies): Likewise.
22953         * modules/mbscspn (Dependencies): Likewise.
22954         * modules/mbsinit (Dependencies): Likewise.
22955         * modules/mbsncasecmp (Dependencies): Likewise.
22956         * modules/mbsnrtowcs (Dependencies): Likewise.
22957         * modules/mbspbrk (Dependencies): Likewise.
22958         * modules/mbspcasecmp (Dependencies): Likewise.
22959         * modules/mbsrchr (Dependencies): Likewise.
22960         * modules/mbsrtowcs (Dependencies): Likewise.
22961         * modules/mbsspn (Dependencies): Likewise.
22962         * modules/mbsstr (Dependencies): Likewise.
22963         * modules/nl_langinfo (Dependencies): Likewise.
22964         * modules/quotearg (Dependencies): Likewise.
22965         * modules/unicase/locale-language (Dependencies): Likewise.
22966         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22967         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22968         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22969         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22970         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22971         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22972         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22973         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22974         * modules/vasnprintf-posix (Dependencies): Likewise.
22975         * modules/wcrtomb (Dependencies): Likewise.
22976         * modules/wcsnrtombs (Dependencies): Likewise.
22977         * modules/wcsrtombs (Dependencies): Likewise.
22978
22979 2011-02-12  Bruno Haible  <bruno@clisp.org>
22980
22981         setlocale: Workaround native Windows bug.
22982         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22983         succeeds but sets LC_CTYPE to "C", report a failure.
22984         * tests/test-setlocale2.sh: New file.
22985         * tests/test-setlocale2.c: New file.
22986         * modules/setlocale-tests (Files): Add the new files.
22987         (Makefile.am): Enable test-setlocale2.sh test.
22988         * doc/posix-functions/setlocale.texi: Mention workaround.
22989
22990 2011-02-11  Bruno Haible  <bruno@clisp.org>
22991
22992         Tests for module 'setlocale'.
22993         * modules/setlocale-tests: New file.
22994         * tests/test-setlocale1.sh: New file.
22995         * tests/test-setlocale1.c: New file.
22996
22997         New module 'setlocale'.
22998         * lib/locale.in.h (setlocale): New declaration.
22999         * lib/setlocale.c: New file, based on
23000         gettext/gettext-runtime/intl/setlocale.c.
23001         * m4/setlocale.m4: New file.
23002         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23003         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23004         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23005         REPLACE_SETLOCALE.
23006         * modules/setlocale: New file.
23007         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23008         * doc/posix-functions/setlocale.texi: Mention the new module.
23009
23010 2011-02-11  Bruno Haible  <bruno@clisp.org>
23011
23012         Prepare for locale dependent tests on mingw.
23013         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23014         because it has the wrong locale encoding.
23015         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23016         French_France.1252 instead of "fr".
23017         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23018         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23019         because it has the wrong locale encoding.
23020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23021         native Windows, try Turkish_Turkey.65001.
23022         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23023         Chinese_China.54936.
23024
23025         Prepare for locale dependent tests on mingw.
23026         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23027         differently.
23028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23029         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23030         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23031         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23032
23033 2011-02-11  Eric Blake  <eblake@redhat.com>
23034
23035         strptime: avoid compiler warnings
23036         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23037         compiler warnings about dead code.
23038         Reported by Daniel P. Berrange.
23039
23040 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23041
23042         doc: update users.txt
23043         * users.txt: Add rcs.
23044
23045 2011-02-10  John W. Eaton  <jwe@gnu.org>
23046
23047         doc: update users.txt
23048         * users.txt: Add octave.
23049
23050 2011-02-10  Jim Meyering  <meyering@redhat.com>
23051
23052         doc: update users.txt
23053         * users.txt: Add iwhd.
23054
23055 2011-02-09  Bruno Haible  <bruno@clisp.org>
23056
23057         gnulib-tool: Make copyright notice adjustment more robust.
23058         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23059         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23060         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23061         License".
23062         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23063
23064 2011-02-06  Bruno Haible  <bruno@clisp.org>
23065
23066         New module 'towctrans'.
23067         * modules/towctrans: New file.
23068         * lib/wctype.in.h (towctrans): New declaration.
23069         * lib/towctrans.c: New file.
23070         * lib/towctrans-impl.h: New file.
23071         * m4/towctrans.m4: New file.
23072         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23073         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23074         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23075         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23076         * doc/posix-functions/towctrans.texi: Mention the new module.
23077
23078 2011-02-06  Bruno Haible  <bruno@clisp.org>
23079
23080         New module 'wctrans'.
23081         * modules/wctrans: New file.
23082         * lib/wctype.in.h (wctrans): New declaration.
23083         * lib/wctrans.c: New file.
23084         * lib/wctrans-impl.h: New file.
23085         * m4/wctrans.m4: New file.
23086         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23087         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23088         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23089         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23090         * doc/posix-functions/wctrans.texi: Mention the new module.
23091
23092 2011-02-06  Bruno Haible  <bruno@clisp.org>
23093
23094         New module 'iswctype'.
23095         * modules/iswctype: New file.
23096         * lib/wctype.in.h (iswctype): New declaration.
23097         * lib/iswctype.c: New file.
23098         * lib/iswctype-impl.h: New file.
23099         * m4/iswctype.m4: New file.
23100         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23101         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23102         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23103         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23104         * doc/posix-functions/iswctype.texi: Mention the new module and the
23105         HP-UX 11.00 problem.
23106
23107 2011-02-06  Bruno Haible  <bruno@clisp.org>
23108
23109         New module 'wctype'.
23110         * modules/wctype: Change to represent the wctype() substitute.
23111         * lib/wctype.in.h (wctype): New declaration.
23112         * lib/wctype.c: New file.
23113         * lib/wctype-impl.h: New file.
23114         * m4/wctype.m4: New file.
23115         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23116         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23117         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23118         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23119         * doc/posix-functions/wctype.texi: Mention the new module and the
23120         HP-UX 11.00 problem.
23121
23122 2011-02-06  Bruno Haible  <bruno@clisp.org>
23123
23124         wctype-h: Ensure wctype_t and wctrans_t are defined.
23125         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23126         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23127         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23128         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23129         HAVE_WCTRANS_T.
23130         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23131
23132 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23133
23134         flock: fix license typo
23135
23136         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23137         omitted.
23138
23139 2011-02-08  Bruno Haible  <bruno@clisp.org>
23140
23141         Split large sed scripts, for HP-UX sed.
23142         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23143         to avoid HP-UX limit of 99 commands, in the near future.
23144         * modules/stdlib (Makefile.am): Likewise.
23145         * modules/unistd (Makefile.am): Likewise.
23146         * modules/wchar (Makefile.am): Likewise.
23147         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23148         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23150
23151 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23152             Bruno Haible  <bruno@clisp.org>
23153
23154         stdlib: improve random_r modularization
23155         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23156         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23157         you also need the random_r module to get this material right.
23158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23159         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23160         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23161
23162 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23163
23164         stdlib: don't depend on stdint
23165         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23166         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23167         be independent of whether stdint.h is needed.
23168         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23169         here, instead of ...
23170         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23171         struct random_data should be using the random_r module, not just
23172         the stdlib module (which wouldn't make sense: what package needs
23173         just struct random_data without also needing random_r?).
23174         * modules/stdlib (Depends-on): Remove stdint.
23175
23176         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23177         See the thread rooted at
23178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23179         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23180         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23181         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23182         __VMS)); previously it was always included (via fcntl--.h).
23183         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23184         hand; this is good enough for load averages.  Also, do not use
23185         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23186         flags directly if available and don't bother otherwise.  (Packages
23187         that need the extra reliability should use the modules that define
23188         these flags on older platforms that lack them.)
23189         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23190         fcntl-safer.
23191
23192 2011-02-08  Jim Meyering  <meyering@redhat.com>
23193
23194         di-set.h, ino-map.h: add multiple-inclusion guard
23195         Technically, the guard is required only for ino-map.h, due to its
23196         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23197         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23198         * lib/ino-map.h: Likewise.
23199
23200 2011-02-06  Bruno Haible  <bruno@clisp.org>
23201
23202         iswblank: Ensure declaration on glibc systems.
23203         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23204         * modules/iswblank (Dependencies): Add 'extensions'.
23205         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23206
23207 2011-02-06  Bruno Haible  <bruno@clisp.org>
23208
23209         New module 'iswblank'.
23210         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23211         * modules/iswblank: New file.
23212         * modules/wctype-h (Files): Remove lib/iswblank.c.
23213         (Makefile.am): Substitute GNULIB_ISWBLANK.
23214         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23215         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23216         (gl_WCTYPE_H_DEFAULTS): New macro.
23217         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23218         * modules/iswblank-tests: New file.
23219         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23220         * tests/test-wctype-h.c (main): Remove iswblank tests.
23221         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23222         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23223         of 'wctype-h'.
23224         * NEWS: Mention the change.
23225         * modules/mbchar (Depends-on): Add iswblank.
23226
23227 2011-02-08  Bruno Haible  <bruno@clisp.org>
23228
23229         di-set tests: Refactor.
23230         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23231         unnecessary includes.
23232         (ASSERT): Remove macro.
23233         (main): Make C90 compliant by avoiding variable declaration after
23234         statement.
23235         * modules/di-set-tests (Files): Add tests/macros.h.
23236
23237 2011-02-08  Bruno Haible  <bruno@clisp.org>
23238
23239         ino-map tests: Refactor.
23240         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23241         unnecessary includes.
23242         (ASSERT): Remove macro.
23243         (main): Make C90 compliant by avoiding variable declaration after
23244         statement.
23245         * modules/ino-map-tests (Files): Add tests/macros.h.
23246
23247 2011-02-08  Jim Meyering  <meyering@redhat.com>
23248
23249         di-set: add "const" to a cast
23250         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23251         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23252
23253 2011-02-06  Bruno Haible  <bruno@clisp.org>
23254
23255         Rename module 'wctype' to 'wctype-h'.
23256         * modules/wctype-h: Renamed from modules/wctype.
23257         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23258         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23259         (Files, Depends-on, Makefile.am): Update.
23260         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23261         (Files, Makefile.am): Update.
23262         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23263         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23264         * doc/posix-headers/wctype.texi: Update.
23265         * doc/posix-functions/iswalnum.texi: Update.
23266         * doc/posix-functions/iswalpha.texi: Update.
23267         * doc/posix-functions/iswblank.texi: Update.
23268         * doc/posix-functions/iswcntrl.texi: Update.
23269         * doc/posix-functions/iswdigit.texi: Update.
23270         * doc/posix-functions/iswgraph.texi: Update.
23271         * doc/posix-functions/iswlower.texi: Update.
23272         * doc/posix-functions/iswprint.texi: Update.
23273         * doc/posix-functions/iswpunct.texi: Update.
23274         * doc/posix-functions/iswspace.texi: Update.
23275         * doc/posix-functions/iswupper.texi: Update.
23276         * doc/posix-functions/iswxdigit.texi: Update.
23277         * doc/posix-functions/towlower.texi: Update.
23278         * doc/posix-functions/towupper.texi: Update.
23279         * NEWS: Mention the change.
23280         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23281         * modules/mbchar (Dependencies): Likewise.
23282         * modules/mbswidth (Dependencies): Likewise.
23283         * modules/quotearg (Dependencies): Likewise.
23284         * modules/regex (Dependencies): Likewise.
23285         * modules/wcscasecmp (Dependencies): Likewise.
23286         * modules/wcsncasecmp (Dependencies): Likewise.
23287         * modules/wcwidth (Dependencies): Likewise.
23288
23289 2011-02-06  Bruno Haible  <bruno@clisp.org>
23290
23291         New module 'wcswidth'.
23292         * modules/wcswidth: New file.
23293         * lib/wchar.in.h (wcswidth): New declaration.
23294         * lib/wcswidth.c: New file.
23295         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23296         * m4/wcswidth.m4: New file.
23297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23299         REPLACE_WCSWIDTH.
23300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23301         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23302         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23303         * doc/posix-functions/wcswidth.texi: Mention the new module.
23304
23305 2011-02-06  Bruno Haible  <bruno@clisp.org>
23306
23307         New module 'wcstok'.
23308         * modules/wcstok: New file.
23309         * lib/wchar.in.h (wcstok): New declaration.
23310         * lib/wcstok.c: New file.
23311         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23312         * m4/wcstok.m4: New file.
23313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23316         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23317         * doc/posix-functions/wcstok.texi: Mention the new module.
23318
23319 2011-02-06  Bruno Haible  <bruno@clisp.org>
23320
23321         New module 'wcsstr'.
23322         * modules/wcsstr: New file.
23323         * lib/wchar.in.h (wcsstr): New declaration.
23324         * lib/wcsstr.c: New file.
23325         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23326         * m4/wcsstr.m4: New file.
23327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23330         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23331         * doc/posix-functions/wcsstr.texi: Mention the new module.
23332
23333 2011-02-06  Bruno Haible  <bruno@clisp.org>
23334
23335         New module 'wcspbrk'.
23336         * modules/wcspbrk: New file.
23337         * lib/wchar.in.h (wcspbrk): New declaration.
23338         * lib/wcspbrk.c: New file.
23339         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23340         * m4/wcspbrk.m4: New file.
23341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23344         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23345         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23346
23347 2011-02-06  Bruno Haible  <bruno@clisp.org>
23348
23349         New module 'wcsspn'.
23350         * modules/wcsspn: New file.
23351         * lib/wchar.in.h (wcsspn): New declaration.
23352         * lib/wcsspn.c: New file.
23353         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23354         * m4/wcsspn.m4: New file.
23355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23358         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23359         * doc/posix-functions/wcsspn.texi: Mention the new module.
23360
23361 2011-02-06  Bruno Haible  <bruno@clisp.org>
23362
23363         New module 'wcscspn'.
23364         * modules/wcscspn: New file.
23365         * lib/wchar.in.h (wcscspn): New declaration.
23366         * lib/wcscspn.c: New file.
23367         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23368         * m4/wcscspn.m4: New file.
23369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23372         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23373         * doc/posix-functions/wcscspn.texi: Mention the new module.
23374
23375 2011-02-06  Bruno Haible  <bruno@clisp.org>
23376
23377         New module 'wcsrchr'.
23378         * modules/wcsrchr: New file.
23379         * lib/wchar.in.h (wcsrchr): New declaration.
23380         * lib/wcsrchr.c: New file.
23381         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23382         * m4/wcsrchr.m4: New file.
23383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23386         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23387         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23388
23389 2011-02-06  Bruno Haible  <bruno@clisp.org>
23390
23391         New module 'wcschr'.
23392         * modules/wcschr: New file.
23393         * lib/wchar.in.h (wcschr): New declaration.
23394         * lib/wcschr.c: New file.
23395         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23396         * m4/wcschr.m4: New file.
23397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23400         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23401         * doc/posix-functions/wcschr.texi: Mention the new module.
23402
23403 2011-02-06  Bruno Haible  <bruno@clisp.org>
23404
23405         New module 'wcsdup'.
23406         * modules/wcsdup: New file.
23407         * lib/wchar.in.h (wcsdup): New declaration.
23408         * lib/wcsdup.c: New file.
23409         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23410         * m4/wcsdup.m4: New file.
23411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23414         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23415         * doc/posix-functions/wcsdup.texi: Mention the new module.
23416
23417 2011-02-06  Bruno Haible  <bruno@clisp.org>
23418
23419         New module 'wcsxfrm'.
23420         * modules/wcsxfrm: New file.
23421         * lib/wchar.in.h (wcsxfrm): New declaration.
23422         * lib/wcsxfrm.c: New file.
23423         * lib/wcsxfrm-impl.h: New file.
23424         * m4/wcsxfrm.m4: New file.
23425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23428         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23429         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23430
23431 2011-02-06  Bruno Haible  <bruno@clisp.org>
23432
23433         New module 'wcscoll'.
23434         * modules/wcscoll: New file.
23435         * lib/wchar.in.h (wcscoll): New declaration.
23436         * lib/wcscoll.c: New file.
23437         * lib/wcscoll-impl.h: New file.
23438         * m4/wcscoll.m4: New file.
23439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23442         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23443         * doc/posix-functions/wcscoll.texi: Mention the new module.
23444
23445 2011-02-06  Bruno Haible  <bruno@clisp.org>
23446
23447         New module 'wcsncasecmp'.
23448         * modules/wcsncasecmp: New file.
23449         * lib/wchar.in.h (wcsncasecmp): New declaration.
23450         * lib/wcsncasecmp.c: New file.
23451         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23452         * m4/wcsncasecmp.m4: New file.
23453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23456         HAVE_WCSNCASECMP.
23457         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23458         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23459
23460 2011-02-06  Bruno Haible  <bruno@clisp.org>
23461
23462         New module 'wcscasecmp'.
23463         * modules/wcscasecmp: New file.
23464         * lib/wchar.in.h (wcscasecmp): New declaration.
23465         * lib/wcscasecmp.c: New file.
23466         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23467         * m4/wcscasecmp.m4: New file.
23468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23471         HAVE_WCSCASECMP.
23472         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23473         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23474
23475 2011-02-05  Bruno Haible  <bruno@clisp.org>
23476
23477         New module 'wcsncmp'.
23478         * modules/wcsncmp: New file.
23479         * lib/wchar.in.h (wcsncmp): New declaration.
23480         * lib/wcsncmp.c: New file.
23481         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23482         * m4/wcsncmp.m4: New file.
23483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23486         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23487         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23488
23489 2011-02-05  Bruno Haible  <bruno@clisp.org>
23490
23491         New module 'wcscmp'.
23492         * modules/wcscmp: New file.
23493         * lib/wchar.in.h (wcscmp): New declaration.
23494         * lib/wcscmp.c: New file.
23495         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23496         * m4/wcscmp.m4: New file.
23497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23500         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23501         * doc/posix-functions/wcscmp.texi: Mention the new module.
23502
23503 2011-02-05  Bruno Haible  <bruno@clisp.org>
23504
23505         New module 'wcsncat'.
23506         * modules/wcsncat: New file.
23507         * lib/wchar.in.h (wcsncat): New declaration.
23508         * lib/wcsncat.c: New file.
23509         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23510         * m4/wcsncat.m4: New file.
23511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23514         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23515         * doc/posix-functions/wcsncat.texi: Mention the new module.
23516
23517 2011-02-05  Bruno Haible  <bruno@clisp.org>
23518
23519         New module 'wcscat'.
23520         * modules/wcscat: New file.
23521         * lib/wchar.in.h (wcscat): New declaration.
23522         * lib/wcscat.c: New file.
23523         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23524         * m4/wcscat.m4: New file.
23525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23528         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23529         * doc/posix-functions/wcscat.texi: Mention the new module.
23530
23531 2011-02-05  Bruno Haible  <bruno@clisp.org>
23532
23533         New module 'wcpncpy'.
23534         * modules/wcpncpy: New file.
23535         * lib/wchar.in.h (wcpncpy): New declaration.
23536         * lib/wcpncpy.c: New file.
23537         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23538         * m4/wcpncpy.m4: New file.
23539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23541         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23542         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23543         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23544
23545 2011-02-05  Bruno Haible  <bruno@clisp.org>
23546
23547         New module 'wcsncpy'.
23548         * modules/wcsncpy: New file.
23549         * lib/wchar.in.h (wcsncpy): New declaration.
23550         * lib/wcsncpy.c: New file.
23551         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23552         * m4/wcsncpy.m4: New file.
23553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23556         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23557         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23558
23559 2011-02-05  Bruno Haible  <bruno@clisp.org>
23560
23561         New module 'wcpcpy'.
23562         * modules/wcpcpy: New file.
23563         * lib/wchar.in.h (wcpcpy): New declaration.
23564         * lib/wcpcpy.c: New file.
23565         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23566         * m4/wcpcpy.m4: New file.
23567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23569         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23570         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23571         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23572
23573 2011-02-05  Bruno Haible  <bruno@clisp.org>
23574
23575         New module 'wcscpy'.
23576         * modules/wcscpy: New file.
23577         * lib/wchar.in.h (wcscpy): New declaration.
23578         * lib/wcscpy.c: New file.
23579         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23580         * m4/wcscpy.m4: New file.
23581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23584         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23585         * doc/posix-functions/wcscpy.texi: Mention the new module.
23586
23587 2011-02-05  Bruno Haible  <bruno@clisp.org>
23588
23589         New module 'wcsnlen'.
23590         * modules/wcsnlen: New file.
23591         * lib/wchar.in.h (wcsnlen): New declaration.
23592         * lib/wcsnlen.c: New file.
23593         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23594         * m4/wcsnlen.m4: New file.
23595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23598         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23599         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23600
23601 2011-02-05  Bruno Haible  <bruno@clisp.org>
23602
23603         New module 'wcslen'.
23604         * modules/wcslen: New file.
23605         * lib/wchar.in.h (wcslen): New declaration.
23606         * lib/wcslen.c: New file.
23607         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23608         * m4/wcslen.m4: New file.
23609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23612         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23613         * doc/posix-functions/wcslen.texi: Mention the new module.
23614
23615 2011-02-05  Bruno Haible  <bruno@clisp.org>
23616
23617         New module 'wmemset'.
23618         * modules/wmemset: New file.
23619         * lib/wchar.in.h (wmemset): New declaration.
23620         * lib/wmemset.c: New file.
23621         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23622         * m4/wmemset.m4: New file.
23623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23625         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23626         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23627         * doc/posix-functions/wmemset.texi: Mention the new module.
23628
23629 2011-02-05  Bruno Haible  <bruno@clisp.org>
23630
23631         New module 'wmemmove'.
23632         * modules/wmemmove: New file.
23633         * lib/wchar.in.h (wmemmove): New declaration.
23634         * lib/wmemmove.c: New file.
23635         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23636         * m4/wmemmove.m4: New file.
23637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23639         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23640         HAVE_WMEMMOVE.
23641         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23642         * doc/posix-functions/wmemmove.texi: Mention the new module.
23643
23644 2011-02-05  Bruno Haible  <bruno@clisp.org>
23645
23646         New module 'wmemcpy'.
23647         * modules/wmemcpy: New file.
23648         * lib/wchar.in.h (wmemcpy): New declaration.
23649         * lib/wmemcpy.c: New file.
23650         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23651         * m4/wmemcpy.m4: New file.
23652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23654         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23655         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23656         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23657
23658 2011-02-05  Bruno Haible  <bruno@clisp.org>
23659
23660         New module 'wmemcmp'.
23661         * modules/wmemcmp: New file.
23662         * lib/wchar.in.h (wmemcmp): New declaration.
23663         * lib/wmemcmp.c: New file.
23664         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23665         * m4/wmemcmp.m4: New file.
23666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23668         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23669         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23670         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23671
23672 2011-02-07  Jim Meyering  <meyering@redhat.com>
23673
23674         di-set, ino-map: new modules, from coreutils
23675         * lib/di-set.c: New file.
23676         * lib/di-set.h: Likewise.
23677         * lib/ino-map.c: Likewise.
23678         * lib/ino-map.h: Likewise.
23679         * modules/di-set: Likewise.
23680         * modules/di-set-tests: Likewise.
23681         * modules/ino-map: Likewise.
23682         * modules/ino-map-tests: Likewise.
23683         * tests/test-di-set.c: Likewise.
23684         * tests/test-ino-map.c: Likewise.
23685
23686 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23687
23688         getloadavg: merge minor changes from Emacs
23689
23690         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23691         (getloadavg): Use memset, not bzero.
23692
23693         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23694         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23695         clash (bug#86).
23696
23697 2010-11-14  Bruno Haible  <bruno@clisp.org>
23698
23699         Allow multiple gnulib generated replacements to coexist.
23700         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23701         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23702         * lib/langinfo.in.h (nl_item): Likewise.
23703         * lib/math.in.h (_NaN, NAN): Likewise.
23704         * lib/netdb.in.h (struct addrinfo): Likewise.
23705         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23706         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23707         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23708         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23709         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23710         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23711         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23712         pthread_mutexattr_init, pthread_mutexattr_settype,
23713         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23714         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23715         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23716         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23717         * lib/sched.in.h (struct sched_param): Likewise.
23718         * lib/se-selinux.in.h (security_class_t, security_context_t,
23719         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23720         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23721         lsetfilecon, fsetfilecon, security_check_context,
23722         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23723         Likewise.
23724         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23725         Likewise.
23726         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23727         _gl_function_taking_int_returning_void_t, union sigval,
23728         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23729         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23730         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23731         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23732         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23733         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23734         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23735         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23736         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23737         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23738         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23739         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23740         socklen_t, rpl_fd_isset): Likewise.
23741         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23742         * lib/sys_time.in.h (struct timeval): Likewise.
23743         * lib/sys_times.in.h (struct tms): Likewise.
23744         * lib/sys_utsname.in.h (struct utsname):
23745         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23746         * lib/unistd.in.h (getpagesize): Likewise.
23747         * lib/wchar.in.h (mbstate_t): Likewise.
23748         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23749         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23750         towlower, towupper): Likewise.
23751         Reported by Sam Steingold <sds@gnu.org>.
23752
23753 2011-02-05  Eric Blake  <eblake@redhat.com>
23754
23755         unsetenv: work around Haiku issues
23756         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23757         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23758
23759 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23760
23761         libposix: avoid calling error() within libposix
23762         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23763         is defined.
23764
23765 2011-02-05  Eric Blake  <eblake@redhat.com>
23766
23767         strerror_r-posix: port to cygwin
23768         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23769         implementation.
23770         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23771         * tests/test-strerror_r.c (main): Fix test.
23772         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23773         issue.
23774
23775 2011-02-05  Bruno Haible  <bruno@clisp.org>
23776
23777         New module 'wmemchr'.
23778         * modules/wmemchr: New file.
23779         * lib/wchar.in.h (wmemchr): New declaration.
23780         * lib/wmemchr.c: New file.
23781         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23782         * m4/wmemchr.m4: New file.
23783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23786         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23787         * doc/posix-functions/wmemchr.texi: Mention the new module.
23788
23789 2011-02-04  Eric Blake  <eblake@redhat.com>
23790
23791         fdopendir: detect FreeBSD bug
23792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23793         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23794
23795 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23796
23797         stdbool: do not define HAVE_STDBOOL_H
23798         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23799         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23800         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23801         imported from the latest Autoconf git.  It was motivated by Emacs,
23802         which uses gnulib but does not need HAVE_STDBOOL_H.
23803
23804 2011-02-04  Bruno Haible  <bruno@clisp.org>
23805
23806         wcsnrtombs: Prepare for new module wwcsnrtombs.
23807         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23808         * lib/wcsnrtombs.c: Include it.
23809         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23810
23811         wcsrtombs: Prepare for new module wwcsrtombs.
23812         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23813         * lib/wcsrtombs.c: Include it.
23814         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23815
23816         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23817         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23818         * lib/mbsnrtowcs.c: Include it.
23819         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23820
23821         mbsrtowcs: Prepare for new module mbsrtowwcs.
23822         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23823         * lib/mbsrtowcs.c: Include it.
23824         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23825
23826 2011-02-04  Bruno Haible  <bruno@clisp.org>
23827
23828         vasnprintf: Reduce use of malloc for small format strings.
23829         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23830         (arguments): Add room for the first 7 arguments.
23831         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23832         (char_directives, u8_directives, u16_directives, u32_directives): Add
23833         room for the first 7 directives.
23834         * lib/printf-parse.c: Include <string.h>.
23835         (PRINTF_PARSE): Change memory handling code so that it uses the first
23836         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23837         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23838         Reported by Pádraig Brady <P@draigbrady.com>.
23839
23840 2011-01-31  Eric Blake  <eblake@redhat.com>
23841
23842         dup2: work around Haiku bug
23843         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23844         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23845         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23846         * tests/test-dup2.c (main): Enhance test.
23847
23848 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23849
23850         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23851         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23852         declared by eglibc 2.11.2.
23853         * lib/stdio.in.h: Likewise.
23854
23855 2011-01-31  Eric Blake  <eblake@redhat.com>
23856
23857         ignore-value: add missing test dependency
23858         * tests/test-ignore-value.c: Revert previous change; stdio.h
23859         provides off_t.
23860         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23861
23862 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23863
23864         mktime: clarify long_int width checking
23865         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23866         the top level, to make it clearer that the assumption about
23867         long_int width is being checked.  See
23868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23869
23870 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23871
23872         ignore-value: Fix self-test.
23873         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23874
23875 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         TYPE_MAXIMUM: avoid theoretically undefined behavior
23878         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23879         negative number, which the C Standard says has undefined behavior.
23880         In practice this is not a problem, but might as well do it by the book.
23881         Reported by Rich Felker and Eric Blake; see
23882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23883         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23884         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23886         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23887         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23888         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23889
23890         mktime: #undef mktime before #defining it
23891         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23892
23893         mktime: systematically normalize tm_isdst comparisons
23894         * lib/mktime.c (isdst_differ): New function.
23895         (__mktime_internal): Use it systematically for all isdst comparisons.
23896         This completes the fix for libc BZ #6723, and removes the need for
23897         normalizing tm_isdst.  See
23898         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23899         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23900
23901         mktime: fix some integer overflow issues and sidestep the rest
23902
23903         This was prompted by a bug report by Benjamin Lindner for MinGW
23904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23905         His bug is due to signed integer overflow (0 - INT_MIN), and I
23906         I scanned through mktime.c looking for other integer overflow
23907         problems, fixing all the bugs I found.
23908
23909         Although the C Standard says the resulting code is still not safe
23910         in the presence of integer overflow, in practice it should be good
23911         enough for all real-world two's-complement implementations, except
23912         for debugging environments that deliberately trap on integer
23913         overflow (e.g., gcc -ftrapv).
23914
23915         * lib/mktime.c (WRAPV): New macro.
23916         (SHR): Also check that long_int and time_t shift right in the
23917         usual way, before using the fast-but-unportable method.
23918         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23919         used.  The code already assumed two's complement, so there's
23920         no need to test for alternatives.  All uses removed.
23921         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23922         the C standard.  Problem reported by Rich Felker in
23923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23924         (twos_complement_arithmetic): Also check long_int and time_t.
23925         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23926         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23927         (__mktime_internal): Avoid integer overflow with unary subtraction
23928         in two instances where -1 - X is an adequate replacement for -X,
23929         since the calculations are approximate.
23930
23931 2011-01-29  Eric Blake  <eblake@redhat.com>
23932
23933         mktime: avoid infinite loop
23934         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23935         type; behavior is still undefined but portable to all known targets.
23936         Reported by Rich Felker.
23937
23938 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23939
23940         rename, unlink, same-inode: Relicense.
23941         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23942         * modules/unlink (License): Likewise.
23943         * modules/same-inode (License): Likewise.
23944
23945 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23946
23947         mktime: avoid problems on NetBSD 5 / i386
23948         * lib/mktime.c (long_int): New type.  This works around a problem
23949         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23950         but time_t is 64 bits, and where I expect the existing code is
23951         wrong in some cases.
23952         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23953         (ydhms_diff): Bring back the compile-time check for wide-enough
23954         year and yday.
23955
23956         mktime: fix misspelling in comment
23957         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23958         This merges all recent glibc changes of importance.
23959
23960 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23961
23962         move-if-change: cope with concurrent mv of identical file.
23963         * build-aux/move-if-change (CMPPROG): Accept environment
23964         variable as an override for `cmp'.
23965         (usage): Document CMPPROG.
23966         Adjust comparison to drop stdout.  Cope with failure of mv if
23967         the target file exists and is identical to the source, for
23968         parallel builds.
23969         Report from H.J. Lu against binutils in PR binutils/12283.
23970
23971 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23972
23973         * users.txt: Mention sharutils.
23974
23975 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23976
23977         * users.txt: Mention OATH Toolkit.
23978
23979 2011-01-27  Bruno Haible  <bruno@clisp.org>
23980
23981         Prepare for supporting FreeBSD 10.
23982         * build-aux/config.libpath: Remove handling of freebsd1*.
23983
23984 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23985
23986         Prepare for supporting FreeBSD 10.
23987         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23988         match FreeBSD 10.0.
23989
23990 2011-01-27  Bruno Haible  <bruno@clisp.org>
23991
23992         vma-iter, get-rusage-as: Add OpenBSD support.
23993         * modules/vma-iter (configure.ac): Test for mquery.
23994         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23995         * lib/vma-iter.c: Include <sys/mman.h>.
23996         (vma_iterate): Add an implementation based on mquery().
23997         * lib/resource-ext.h (get_rusage_as): Update comments.
23998         * lib/get-rusage-as.c: Likewise.
23999         * lib/get-rusage-data.c: Likewise.
24000
24001 2011-01-26  Karl Berry  <karl@gnu.org>
24002
24003         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24004         variables to make it easier to override the makeinfo program used.
24005
24006 2011-01-26  Eric Blake  <eblake@redhat.com>
24007
24008         fcntl: work around Haiku F_DUPFD bugs
24009         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24010         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24011         cloexec bit on duplication.
24012         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24013
24014 2011-01-26  Bruno Haible  <bruno@clisp.org>
24015
24016         Enable memory leak tests on AIX.
24017         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24018         * tests/test-fprintf-posix3.c (main): Likewise.
24019
24020 2011-01-26  Bruno Haible  <bruno@clisp.org>
24021
24022         Tests for module 'get-rusage-data'.
24023         * modules/get-rusage-data-tests: New file.
24024         * tests/test-get-rusage-data.c: New file.
24025
24026         New module 'get-rusage-data'.
24027         * lib/resource-ext.h (get_rusage_data): New declaration.
24028         * lib/get-rusage-data.c: New file.
24029         * modules/get-rusage-data: New file.
24030
24031 2011-01-25  Bruno Haible  <bruno@clisp.org>
24032
24033         get-rusage-as: Allow for easier testing.
24034         * lib/resource-ext.h (get_rusage_as): Add comment.
24035         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24036         (main): New function for interactive testing.
24037
24038 2011-01-25  Bruno Haible  <bruno@clisp.org>
24039
24040         vma-iter: Treat Haiku like BeOS.
24041         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24042         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24043
24044 2011-01-25  Eric Blake  <eblake@redhat.com>
24045
24046         c-stack: fix regression on cygwin when libsigsegv is present
24047         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24048
24049 2011-01-24  Bruno Haible  <bruno@clisp.org>
24050
24051         vma-iter: Avoid empty intervals.
24052         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24053         on an empty interval.
24054
24055 2011-01-24  Jim Meyering  <meyering@redhat.com>
24056
24057         u64: remove unnecessary #include
24058         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24059
24060 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24061
24062         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24063         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24064
24065 2011-01-23  Bruno Haible  <bruno@clisp.org>
24066
24067         New module 'vma-iter'.
24068         * lib/vma-iter.h: New file.
24069         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24070         * modules/vma-iter: New file.
24071         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24072         for get_rusage_as_via_iterator.
24073         (vma_iterate_callback): New function.
24074         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24075         * modules/get-rusage-as (Depends-on): Add vma-iter.
24076
24077 2011-01-23  Bruno Haible  <bruno@clisp.org>
24078
24079         uninorm: Tweak includes.
24080         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24081         Reported by Jim Meyering.
24082
24083 2011-01-23  Bruno Haible  <bruno@clisp.org>
24084
24085         get-rusage-as: Improve on NetBSD.
24086         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24087         /proc, like on FreeBSD.
24088
24089 2011-01-23  Jim Meyering  <meyering@redhat.com>
24090
24091         xreadlink.h: remove unnecessary #include
24092         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24093
24094         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24095         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24096
24097 2011-01-23  Bruno Haible  <bruno@clisp.org>
24098
24099         get-rusage-as: Fix bug.
24100         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24101         original limit when aborting the first loop.
24102
24103 2011-01-23  Bruno Haible  <bruno@clisp.org>
24104
24105         wctype: Ensure valid C syntax.
24106         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24107         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24108
24109 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24110
24111         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24113         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24114         as they are needed only for configure's test case.
24115         This removes two unnecessary symbols from config.h.
24116
24117         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24118         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24120         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24121         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24122         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24123         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24124         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24125         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24126         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24129         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24130         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24131         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24133         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24134         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24135
24136 2011-01-21  Eric Blake  <eblake@redhat.com>
24137
24138         maintainer-makefile: work with older git for submodule check
24139         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24140         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24141         Reported by Matthias Bolte.
24142
24143         bootstrap: minor portability fixes
24144         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24145         (usage): Omit leading capital and trailing . on help phrases, per
24146         GNU Coding Standards.
24147         (check_versions, top level): Prefix messages with script name.
24148
24149 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24150
24151         bootstrap: support --no-git option
24152         * build-aux/bootstrap: Add --no-git option, to be used when
24153         --gnulib-srcdir points to the exact desired checkout.
24154
24155 2011-01-21  Eric Blake  <eblake@redhat.com>
24156
24157         strerror_r-posix: work with glibc 2.13
24158         * lib/strerror_r.c (strerror_r): Fix return type.
24159
24160 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24161             Bruno Haible  <bruno@clisp.org>
24162
24163         uN_strstr: New unit tests.
24164         * modules/unistr/u8-strstr-tests: New file.
24165         * modules/unistr/u16-strstr-tests: New file.
24166         * modules/unistr/u32-strstr-tests: New file.
24167         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24168         * tests/unistr/test-u8-strstr.c: New file.
24169         * tests/unistr/test-u16-strstr.c: New file.
24170         * tests/unistr/test-u32-strstr.c: New file.
24171
24172 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24173             Bruno Haible  <bruno@clisp.org>
24174
24175         Make uN_strstr functions O(n) worst-case.
24176         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24177         16-bit and 32-bit unit cases, use the unibyte algorithm from
24178         lib/mbsstr.c.
24179         * lib/unistr/u8-strstr.c: Include <string.h>.
24180         (UNIT_IS_UINT8_T): New macro.
24181         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24182         (U_STRLEN, U_STRNLEN): New macros.
24183         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24184         (U_STRLEN, U_STRNLEN): New macros.
24185         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24186         (configure.ac): Update required libunistring version.
24187         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24188         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24189         malloca.
24190         (configure.ac): Update required libunistring version.
24191         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24192         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24193         malloca.
24194         (configure.ac): Update required libunistring version.
24195
24196 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24197             Bruno Haible  <bruno@clisp.org>
24198
24199         Prepare for faster uN_strstr functions.
24200         * lib/str-kmp.h: Support definable UNITs.
24201         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24202         needle_len argument.
24203         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24204         * lib/mbscasestr.c (mbscasestr): Likewise.
24205
24206 2011-01-21  Pádraig Brady <P@draigBrady.com>
24207
24208         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24209         * tests/test-malloca.c (main): Unset the environment variable
24210         to greatly speed up the test.
24211         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24212         * modules/malloca-tests: Depend on unsetenv.
24213
24214 2011-01-21  Pádraig Brady <P@draigBrady.com>
24215
24216         ignore-value: remove stdint dependency
24217         * lib/ignore-value.h: Remove <stdint.h>
24218         * modules/ignore-value: Remove stdint dependency.
24219
24220 2011-01-21  Jim Meyering  <meyering@redhat.com>
24221
24222         maint.mk: adjust variable name to be consistent with other gl_ vars
24223         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24224         to be lower case.
24225
24226 2011-01-20  Jim Meyering  <meyering@redhat.com>
24227
24228         maint.mk: make "check" depend on public-submodule-commit by default
24229         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24230
24231 2011-01-20  Bruno Haible  <bruno@clisp.org>
24232
24233         mbfile, mbiter: Complete change from 2008-12-21.
24234         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24235         * m4/mbiter.m4 (gl_MBITER): Likewise.
24236
24237 2011-01-20  Jim Meyering  <meyering@redhat.com>
24238
24239         init.sh: insert space between each function name and "()"
24240         * tests/init.sh: Make it a little easier to see that a function's
24241         name is "warn_", and not "warn" when looking at the first part of
24242         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24243
24244 2011-01-20  Jim Meyering  <meyering@redhat.com>
24245
24246         mountlist: clean up code formatting
24247         * lib/mountlist.c (read_file_system_list): Split a long line,
24248         correct bracing style, use NULL in place of "(struct statfs *)0",
24249         don't parenthesize return value, add spaces around "=" and after
24250         ";-in-for-stmt".
24251
24252 2011-01-14  Markus Duft <mduft@gentoo.org>
24253
24254         mountlist: add support for Interix
24255         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24256         Apply statvfs to all entries of /dev/fs.
24257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24258         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24259
24260 2011-01-20  Jim Meyering  <meyering@redhat.com>
24261
24262         maint.mk: improve the public-submodule-commit rule
24263         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24264         to suppress printing of its commands... unless V=1.
24265         Add git submodule's --quiet option to suppress printing of e.g.,
24266         "Entering gnulib" output.
24267         "cd" into $(srcdir) before running git submodule.
24268
24269 2011-01-20  Bruno Haible  <bruno@clisp.org>
24270
24271         include_next: Fix bug introduced on 2011-01-18.
24272         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24273         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24274         ac_cv_header_... variable if the second argument is not 'check'.
24275         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24276         gl_NEXT_HEADERS_INTERNAL.
24277
24278 2011-01-20  Bruno Haible  <bruno@clisp.org>
24279
24280         Allow the user to avoid the GNULIB_TEST_* macros.
24281         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24282         Suggested by Paul Eggert.
24283
24284 2011-01-14  Jim Meyering  <meyering@redhat.com>
24285
24286         bootstrap: avoid failure when there is no .gitmodules file
24287         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24288         has been assigned to, even when its value is the empty string.
24289         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24290         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24291         Reported by John W. Eaton <jwe@gnu.org>.
24292
24293 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         assume <ctype.h>, ..., <time.h> exist
24296         For years gnulib has been assuming the existence of the headers
24297         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24298         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24299         them, since they don't appear to be needed.
24300         * README (Portability guidelines): Document this.
24301         * lib/flock.c: Assume <fcntl.h> exists.
24302         * lib/regex_internal.h: Assume <locale.h> exists.
24303         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24305         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24306         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24307         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24308         * m4/regex.m4 (gl_REGEX): Likewise.
24309         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24310         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24311         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24312         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24313         * tests/test-argp.c: Likewise.
24314         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24315
24316         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24317         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24318         AA_APPLE_UNIVERSAL_BUILD.  See
24319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24320         * NEWS: Document this.
24321
24322 2011-01-19  Eric Blake  <eblake@redhat.com>
24323
24324         c-stack: assume stack overflow if SA_SIGINFO unsupported
24325         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24326         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24327         sigaction will work.
24328         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24329         behavior match Linux.
24330         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24331
24332         stdbool-tests: accommodate Haiku
24333         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24334
24335         binary-io: fix O_TEXT on Haiku
24336         * modules/binary-io (Depends-on): Add fcntl-h.
24337         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24338         than blindly undefining O_TEXT.
24339         Reported by Scott McCreary.
24340
24341 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         include_next: do not check for standard headers like stddef.h
24344
24345         I found this problem when modifying Emacs to use gnulib.
24346         I noticed that it added HAVE_STDDEF_H to config.h, even though
24347         gnulib always assumes <stddef.h> exists as per README and this
24348         symbol is unnecessary.
24349         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24350         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24351         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24352         faster for headers like stddef.h that are known to exist.
24353         (gl_CHECK_NEXT_HEADERS): Use it.
24354         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24355         rather than gl_CHECK_NEXT_HEADERS.
24356         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24357         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24358
24359 2011-01-18  Eric Blake  <eblake@redhat.com>
24360
24361         ansi-c++-opt: skip C++ dependency style if C++ is unused
24362         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24363         tests when we know C++ compilation is not desired.
24364         Reported by Scott McCreary.
24365
24366 2011-01-18  Bruno Haible  <bruno@clisp.org>
24367
24368         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24369         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24370         (main): Perform test also when getrlimit and setrlimit don't exist or
24371         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24372         limiting the address space size using setrlimit, compare the address
24373         space size before and after the the test.
24374         * tests/test-dprintf-posix2.c: Likewise.
24375         * tests/test-fprintf-posix3.sh: Update skip messages.
24376         * tests/test-dprintf-posix2.sh: Likewise.
24377         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24378         * modules/dprintf-posix-tests (Depends-on): Likewise.
24379         Reported by Bruce Korb <bkorb@gnu.org> and
24380         Gary V. Vaughan <gary@gnu.org>.
24381
24382 2011-01-18  Bruno Haible  <bruno@clisp.org>
24383
24384         get-rusage-as: Improvement for Cygwin.
24385         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24386         areas that are merely reserved.
24387
24388 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         strftime: remove dependencies on multibyte modules
24391
24392         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24393         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24394         only if __osf__ is defined, and I suspect OSF doesn't need these
24395         other modules.  If my guess is wrong, we'll need to come up with a
24396         variant of strftime that doesn't need the multibyte modules.
24397
24398         I discovered this problem when attempting modify Emacs to use the
24399         strftime module.  With the previous gnulib, this caused Emacs to
24400         need 31 new files, ranging from lib/config.charset to
24401         m4/wint_t.m4.  This was overkill and I expect would be offputting
24402         to the Emacs maintainers.  After this change, only 6 new files are
24403         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24404         stdbool.m4, and tm_gmtoff.m4.
24405
24406         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24407         Suggested by Bruno Haible in
24408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24410         and do not check for wchar.h.
24411         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24412         (Depends-on): Remove mbrlen, mbsinit, wchar.
24413
24414 2011-01-18  Bruno Haible  <bruno@clisp.org>
24415
24416         Tests for module 'get-rusage-as'.
24417         * modules/get-rusage-as-tests: New file.
24418         * tests/test-get-rusage-as.c: New file.
24419
24420         New module 'get-rusage-as'.
24421         * modules/get-rusage-as: New file.
24422         * lib/resource-ext.h: New file.
24423         * lib/get-rusage-as.c: New file.
24424
24425 2011-01-17  Eric Blake  <eblake@redhat.com>
24426
24427         sigaction: relax license from LGPLv3+ to LGPLv2+
24428         * modules/sigaction (License): Relax to LGPLv2+.
24429
24430 2011-01-14  Bruno Haible  <bruno@clisp.org>
24431
24432         filemode: Make function declarations usable in C++ mode.
24433         * lib/filemode.h: Enclose function declarations in extern "C" block.
24434         Reported by John W. Eaton <jwe@gnu.org>.
24435
24436 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24437
24438         save-cwd: no longer include "xgetcwd.h"
24439         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24440         This avoids a compilation failure in projects that use save-cwd
24441         without also using the xgetcwd module.
24442
24443 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24446         This is so that a program like Emacs, which needs only dtoastr,
24447         does not have to bother with distributing and compiling ftoastr
24448         and ldtoastr.
24449         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24450         * modules/dtoastr, modules/ldtoastr: New files.
24451         * modules/ftoastr: Now works just for 'float'.
24452         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24453         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24454         dtoastr.c, ldtoastr.c.
24455
24456 2011-01-11  Jim Meyering  <meyering@redhat.com>
24457
24458         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24459         There is no need to work around the lack of the fchdir function,
24460         since gnulib can now provide a replacement when required.
24461         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24462         * modules/save-cwd (Depends-on): Add fchdir.
24463
24464 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24465
24466         openat, save-cwd: avoid xmalloc
24467
24468         This removes a direct (but undocumented) dependency of openat on
24469         xalloc, along with an indirect dependency via save-cwd.  It also
24470         removes a dependency of save-cwd on xgetcwd, and thereby
24471         indirectly on xalloc.  This change causes the openat substitute
24472         to fall back on save_cwd when memory is tight, and for save_cwd to
24473         fail instead of dying when memory is tight, but that's good enough.
24474         Problem and initial idea for fix reported by Bastien Roucaries in
24475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24476
24477         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24478         xalloc.h (for xmalloc).
24479         (openat_proc_name): Use malloc, not xmalloc.
24480         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24481         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24482
24483         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24484         This avoids heap allocation for file names whose lengths are in
24485         the range 512..1023, with the upper bound increasing to at most
24486         4031 depending on the platform's PATH_MAX.  (We do not want
24487         pathmax.h here as it might supply a non-constant PATH_MAX.)
24488         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24489         Perhaps they should be moved to malloca.h?
24490         (OPENAT_BUFFER_SIZE): Use them.
24491
24492 2011-01-10  Bruno Haible  <bruno@clisp.org>
24493
24494         doc: Update users.txt.
24495         * users.txt: Add recutils.
24496
24497 2011-01-09  Karl Berry  <karl@gnu.org>
24498
24499         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24500
24501         * doc/configmake.texi: New file.
24502         * doc/gnulib.texi: Include it.
24503         * modules/configmake: Move documentation from here.
24504
24505 2011-01-09  Bruno Haible  <bruno@clisp.org>
24506
24507         Update to Unicode 6.0.0.
24508         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24509         (get_lbp): Update for Unicode 6.0.0.
24510         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24511         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24512         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24513         U+11001, U+11038..U+11046. Remove U+06DE.
24514         (uc_width): Fix bounds of planes.
24515         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24516         lib/uniwidth/width.c.
24517         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24518         trailing whitespace removed.
24519         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24520         without comments, but with the original copyright notice.
24521         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24522         * lib/unicase/ignorable.h: Likewise.
24523         * lib/unicase/tocasefold.h: Likewise.
24524         * lib/unicase/tolower.h: Likewise.
24525         * lib/unicase/totitle.h: Likewise.
24526         * lib/unicase/toupper.h: Likewise.
24527         * lib/unictype/bidi_of.h: Likewise.
24528         * lib/unictype/blocks.h: Likewise.
24529         * lib/unictype/categ_C.h: Likewise.
24530         * lib/unictype/categ_Cn.h: Likewise.
24531         * lib/unictype/categ_L.h: Likewise.
24532         * lib/unictype/categ_Ll.h: Likewise.
24533         * lib/unictype/categ_Lm.h: Likewise.
24534         * lib/unictype/categ_Lo.h: Likewise.
24535         * lib/unictype/categ_Lu.h: Likewise.
24536         * lib/unictype/categ_M.h: Likewise.
24537         * lib/unictype/categ_Mc.h: Likewise.
24538         * lib/unictype/categ_Me.h: Likewise.
24539         * lib/unictype/categ_Mn.h: Likewise.
24540         * lib/unictype/categ_N.h: Likewise.
24541         * lib/unictype/categ_Nd.h: Likewise.
24542         * lib/unictype/categ_No.h: Likewise.
24543         * lib/unictype/categ_P.h: Likewise.
24544         * lib/unictype/categ_Po.h: Likewise.
24545         * lib/unictype/categ_S.h: Likewise.
24546         * lib/unictype/categ_Sc.h: Likewise.
24547         * lib/unictype/categ_Sk.h: Likewise.
24548         * lib/unictype/categ_Sm.h: Likewise.
24549         * lib/unictype/categ_So.h: Likewise.
24550         * lib/unictype/categ_of.h: Likewise.
24551         * lib/unictype/combining.h: Likewise.
24552         * lib/unictype/ctype_alnum.h: Likewise.
24553         * lib/unictype/ctype_alpha.h: Likewise.
24554         * lib/unictype/ctype_graph.h: Likewise.
24555         * lib/unictype/ctype_lower.h: Likewise.
24556         * lib/unictype/ctype_print.h: Likewise.
24557         * lib/unictype/ctype_punct.h: Likewise.
24558         * lib/unictype/ctype_upper.h: Likewise.
24559         * lib/unictype/decdigit.h: Likewise.
24560         * lib/unictype/digit.h: Likewise.
24561         * lib/unictype/numeric.h: Likewise.
24562         * lib/unictype/pr_alphabetic.h: Likewise.
24563         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24564         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24565         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24566         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24567         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24568         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24569         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24570         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24571         * lib/unictype/pr_case_ignorable.h: Likewise.
24572         * lib/unictype/pr_cased.h: Likewise.
24573         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24574         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24575         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24576         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24577         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24578         * lib/unictype/pr_combining.h: Likewise.
24579         * lib/unictype/pr_composite.h: Likewise.
24580         * lib/unictype/pr_currency_symbol.h: Likewise.
24581         * lib/unictype/pr_decimal_digit.h: Likewise.
24582         * lib/unictype/pr_deprecated.h: Likewise.
24583         * lib/unictype/pr_format_control.h: Likewise.
24584         * lib/unictype/pr_grapheme_base.h: Likewise.
24585         * lib/unictype/pr_grapheme_extend.h: Likewise.
24586         * lib/unictype/pr_grapheme_link.h: Likewise.
24587         * lib/unictype/pr_id_continue.h: Likewise.
24588         * lib/unictype/pr_id_start.h: Likewise.
24589         * lib/unictype/pr_ideographic.h: Likewise.
24590         * lib/unictype/pr_lowercase.h: Likewise.
24591         * lib/unictype/pr_math.h: Likewise.
24592         * lib/unictype/pr_numeric.h: Likewise.
24593         * lib/unictype/pr_other_alphabetic.h: Likewise.
24594         * lib/unictype/pr_other_id_continue.h: Likewise.
24595         * lib/unictype/pr_other_math.h: Likewise.
24596         * lib/unictype/pr_punctuation.h: Likewise.
24597         * lib/unictype/pr_sentence_terminal.h: Likewise.
24598         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24599         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24600         * lib/unictype/pr_unified_ideograph.h: Likewise.
24601         * lib/unictype/pr_uppercase.h: Likewise.
24602         * lib/unictype/pr_xid_continue.h: Likewise.
24603         * lib/unictype/pr_xid_start.h: Likewise.
24604         * lib/unictype/scripts.h: Likewise.
24605         * lib/unictype/scripts_byname.gperf: Likewise.
24606         * lib/unictype/sy_java_ident.h: Likewise.
24607         * lib/unigbrk/gbrkprop.h: Likewise.
24608         * lib/unilbrk/lbrkprop1.h: Likewise.
24609         * lib/unilbrk/lbrkprop2.h: Likewise.
24610         * lib/uninorm/decomposition-table2.h: Likewise.
24611         * lib/uniwbrk/wbrkprop.h: Likewise.
24612         * tests/unicase/test-cased.c: Likewise.
24613         * tests/unicase/test-ignorable.c: Likewise.
24614         * tests/unicase/test-uc_tolower.c: Likewise.
24615         * tests/unicase/test-uc_totitle.c: Likewise.
24616         * tests/unicase/test-uc_toupper.c: Likewise.
24617         * tests/unictype/test-categ_C.c: Likewise.
24618         * tests/unictype/test-categ_Cn.c: Likewise.
24619         * tests/unictype/test-categ_L.c: Likewise.
24620         * tests/unictype/test-categ_Ll.c: Likewise.
24621         * tests/unictype/test-categ_Lm.c: Likewise.
24622         * tests/unictype/test-categ_Lo.c: Likewise.
24623         * tests/unictype/test-categ_Lu.c: Likewise.
24624         * tests/unictype/test-categ_M.c: Likewise.
24625         * tests/unictype/test-categ_Mc.c: Likewise.
24626         * tests/unictype/test-categ_Me.c: Likewise.
24627         * tests/unictype/test-categ_Mn.c: Likewise.
24628         * tests/unictype/test-categ_N.c: Likewise.
24629         * tests/unictype/test-categ_Nd.c: Likewise.
24630         * tests/unictype/test-categ_No.c: Likewise.
24631         * tests/unictype/test-categ_P.c: Likewise.
24632         * tests/unictype/test-categ_Po.c: Likewise.
24633         * tests/unictype/test-categ_S.c: Likewise.
24634         * tests/unictype/test-categ_Sc.c: Likewise.
24635         * tests/unictype/test-categ_Sk.c: Likewise.
24636         * tests/unictype/test-categ_Sm.c: Likewise.
24637         * tests/unictype/test-categ_So.c: Likewise.
24638         * tests/unictype/test-ctype_alnum.c: Likewise.
24639         * tests/unictype/test-ctype_alpha.c: Likewise.
24640         * tests/unictype/test-ctype_graph.c: Likewise.
24641         * tests/unictype/test-ctype_lower.c: Likewise.
24642         * tests/unictype/test-ctype_print.c: Likewise.
24643         * tests/unictype/test-ctype_punct.c: Likewise.
24644         * tests/unictype/test-ctype_upper.c: Likewise.
24645         * tests/unictype/test-decdigit.h: Likewise.
24646         * tests/unictype/test-digit.h: Likewise.
24647         * tests/unictype/test-numeric.h: Likewise.
24648         * tests/unictype/test-pr_alphabetic.c: Likewise.
24649         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24650         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24651         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24652         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24653         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24654         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24655         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24656         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24657         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24658         * tests/unictype/test-pr_cased.c: Likewise.
24659         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24660         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24661         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24662         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24663         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24664         * tests/unictype/test-pr_combining.c: Likewise.
24665         * tests/unictype/test-pr_composite.c: Likewise.
24666         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24667         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24668         * tests/unictype/test-pr_deprecated.c: Likewise.
24669         * tests/unictype/test-pr_format_control.c: Likewise.
24670         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24671         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24672         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24673         * tests/unictype/test-pr_id_continue.c: Likewise.
24674         * tests/unictype/test-pr_id_start.c: Likewise.
24675         * tests/unictype/test-pr_ideographic.c: Likewise.
24676         * tests/unictype/test-pr_lowercase.c: Likewise.
24677         * tests/unictype/test-pr_math.c: Likewise.
24678         * tests/unictype/test-pr_numeric.c: Likewise.
24679         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24680         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24681         * tests/unictype/test-pr_other_math.c: Likewise.
24682         * tests/unictype/test-pr_punctuation.c: Likewise.
24683         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24684         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24685         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24686         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24687         * tests/unictype/test-pr_uppercase.c: Likewise.
24688         * tests/unictype/test-pr_xid_continue.c: Likewise.
24689         * tests/unictype/test-pr_xid_start.c: Likewise.
24690         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24691         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24692         changes.
24693         * lib/unictype/categ_Cc.h: Likewise.
24694         * lib/unictype/categ_Cf.h: Likewise.
24695         * lib/unictype/categ_Co.h: Likewise.
24696         * lib/unictype/categ_Cs.h: Likewise.
24697         * lib/unictype/categ_Lt.h: Likewise.
24698         * lib/unictype/categ_Nl.h: Likewise.
24699         * lib/unictype/categ_Pc.h: Likewise.
24700         * lib/unictype/categ_Pd.h: Likewise.
24701         * lib/unictype/categ_Pe.h: Likewise.
24702         * lib/unictype/categ_Pf.h: Likewise.
24703         * lib/unictype/categ_Pi.h: Likewise.
24704         * lib/unictype/categ_Ps.h: Likewise.
24705         * lib/unictype/categ_Z.h: Likewise.
24706         * lib/unictype/categ_Zl.h: Likewise.
24707         * lib/unictype/categ_Zp.h: Likewise.
24708         * lib/unictype/categ_Zs.h: Likewise.
24709         * lib/unictype/ctype_blank.h: Likewise.
24710         * lib/unictype/ctype_cntrl.h: Likewise.
24711         * lib/unictype/ctype_digit.h: Likewise.
24712         * lib/unictype/ctype_space.h: Likewise.
24713         * lib/unictype/ctype_xdigit.h: Likewise.
24714         * lib/unictype/mirror.h: Likewise.
24715         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24716         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24717         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24718         * lib/unictype/pr_bidi_control.h: Likewise.
24719         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24720         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24721         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24722         * lib/unictype/pr_bidi_pdf.h: Likewise.
24723         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24724         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24725         * lib/unictype/pr_dash.h: Likewise.
24726         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24727         * lib/unictype/pr_diacritic.h: Likewise.
24728         * lib/unictype/pr_extender.h: Likewise.
24729         * lib/unictype/pr_hex_digit.h: Likewise.
24730         * lib/unictype/pr_hyphen.h: Likewise.
24731         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24732         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24733         * lib/unictype/pr_ignorable_control.h: Likewise.
24734         * lib/unictype/pr_iso_control.h: Likewise.
24735         * lib/unictype/pr_join_control.h: Likewise.
24736         * lib/unictype/pr_left_of_pair.h: Likewise.
24737         * lib/unictype/pr_line_separator.h: Likewise.
24738         * lib/unictype/pr_logical_order_exception.h: Likewise.
24739         * lib/unictype/pr_non_break.h: Likewise.
24740         * lib/unictype/pr_not_a_character.h: Likewise.
24741         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24742         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24743         * lib/unictype/pr_other_id_start.h: Likewise.
24744         * lib/unictype/pr_other_lowercase.h: Likewise.
24745         * lib/unictype/pr_other_uppercase.h: Likewise.
24746         * lib/unictype/pr_paired_punctuation.h: Likewise.
24747         * lib/unictype/pr_paragraph_separator.h: Likewise.
24748         * lib/unictype/pr_pattern_syntax.h: Likewise.
24749         * lib/unictype/pr_pattern_white_space.h: Likewise.
24750         * lib/unictype/pr_private_use.h: Likewise.
24751         * lib/unictype/pr_quotation_mark.h: Likewise.
24752         * lib/unictype/pr_radical.h: Likewise.
24753         * lib/unictype/pr_soft_dotted.h: Likewise.
24754         * lib/unictype/pr_space.h: Likewise.
24755         * lib/unictype/pr_titlecase.h: Likewise.
24756         * lib/unictype/pr_variation_selector.h: Likewise.
24757         * lib/unictype/pr_white_space.h: Likewise.
24758         * lib/unictype/pr_zero_width.h: Likewise.
24759         * lib/unictype/sy_c_ident.h: Likewise.
24760         * lib/unictype/sy_c_whitespace.h: Likewise.
24761         * lib/unictype/sy_java_whitespace.h: Likewise.
24762         * lib/uninorm/composition-table.gperf: Likewise.
24763         * lib/uninorm/decomposition-table1.h: Likewise.
24764         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24765         LB8.
24766         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24767         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24768         * modules/unictype/*: Bump version number of expected libunistring
24769         version.
24770
24771 2011-01-09  Bruno Haible  <bruno@clisp.org>
24772
24773         Update to Unicode 5.2.0.
24774         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24775         trailing whitespace removed.
24776
24777 2011-01-09  Bruno Haible  <bruno@clisp.org>
24778
24779         New Unicode character properties, from Unicode 5.2.0.
24780         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24781         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24782         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24783         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24784         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24785         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24786         uc_is_property_cased, uc_is_property_case_ignorable,
24787         uc_is_property_changes_when_lowercased,
24788         uc_is_property_changes_when_uppercased,
24789         uc_is_property_changes_when_titlecased,
24790         uc_is_property_changes_when_casefolded,
24791         uc_is_property_changes_when_casemapped): New declarations.
24792         * lib/unictype/pr_byname.gperf: Add the new properties.
24793         * modules/unictype/property-byname (Depends-on): Depend on the new
24794         properties modules.
24795         * modules/unictype/property-all (Depends-on): Likewise.
24796         * MODULES.html.sh (Unicode string functions): Add
24797         unictype/property-case-ignorable, unictype/property-cased,
24798         unictype/property-changes-when-casefolded,
24799         unictype/property-changes-when-casemapped,
24800         unictype/property-changes-when-lowercased,
24801         unictype/property-changes-when-titlecased,
24802         unictype/property-changes-when-uppercased.
24803
24804         New module 'unictype/property-changes-when-casemapped'.
24805         * modules/unictype/property-changes-when-casemapped: New file.
24806         * lib/unictype/pr_changes_when_casemapped.c: New file.
24807         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24808         generated by gen-uni-tables.
24809         * modules/unictype/property-changes-when-casemapped-tests: New file.
24810         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24811         automatically generated by gen-uni-tables.
24812
24813         New module 'unictype/property-changes-when-casefolded'.
24814         * modules/unictype/property-changes-when-casefolded: New file.
24815         * lib/unictype/pr_changes_when_casefolded.c: New file.
24816         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24817         generated by gen-uni-tables.
24818         * modules/unictype/property-changes-when-casefolded-tests: New file.
24819         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24820         automatically generated by gen-uni-tables.
24821
24822         New module 'unictype/property-changes-when-titlecased'.
24823         * modules/unictype/property-changes-when-titlecased: New file.
24824         * lib/unictype/pr_changes_when_titlecased.c: New file.
24825         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24826         generated by gen-uni-tables.
24827         * modules/unictype/property-changes-when-titlecased-tests: New file.
24828         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24829         automatically generated by gen-uni-tables.
24830
24831         New module 'unictype/property-changes-when-uppercased'.
24832         * modules/unictype/property-changes-when-uppercased: New file.
24833         * lib/unictype/pr_changes_when_uppercased.c: New file.
24834         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24835         generated by gen-uni-tables.
24836         * modules/unictype/property-changes-when-uppercased-tests: New file.
24837         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24838         automatically generated by gen-uni-tables.
24839
24840         New module 'unictype/property-changes-when-lowercased'.
24841         * modules/unictype/property-changes-when-lowercased: New file.
24842         * lib/unictype/pr_changes_when_lowercased.c: New file.
24843         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24844         generated by gen-uni-tables.
24845         * modules/unictype/property-changes-when-lowercased-tests: New file.
24846         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24847         automatically generated by gen-uni-tables.
24848
24849         New module 'unictype/property-case-ignorable'.
24850         * modules/unictype/property-case-ignorable: New file.
24851         * lib/unictype/pr_case_ignorable.c: New file.
24852         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24853         by gen-uni-tables.
24854         * modules/unictype/property-case-ignorable-tests: New file.
24855         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24856         generated by gen-uni-tables.
24857
24858         New module 'unictype/property-cased'.
24859         * modules/unictype/property-cased: New file.
24860         * lib/unictype/pr_cased.c: New file.
24861         * lib/unictype/pr_cased.h: New file, automatically generated by
24862         gen-uni-tables.
24863         * modules/unictype/property-cased-tests: New file.
24864         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24865         gen-uni-tables.
24866
24867 2011-01-09  Bruno Haible  <bruno@clisp.org>
24868
24869         Update to Unicode 5.2.0.
24870         * lib/gen-uni-tables.c (output_predicate, output_category,
24871         output_combclass, output_bidi_category, output_decimal_digit_test,
24872         output_decimal_digit, output_digit_test, output_digit,
24873         output_numeric_test, output_numeric, output_mirror, output_scripts,
24874         output_scripts_byname, output_blocks, output_ident_category): Fix
24875         comment header.
24876         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24877         get_wbp.
24878         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24879         items.
24880         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24881         Changes_When_Lowercased, Changes_When_Uppercased,
24882         Changes_When_Titlecased, Changes_When_Casefolded,
24883         Changes_When_Casemapped.
24884         (is_property_alphabetic, is_property_default_ignorable_code_point):
24885         Update for Unicode 5.2.0.
24886         (is_property_cased, is_property_case_ignorable,
24887         is_property_changes_when_lowercased,
24888         is_property_changes_when_uppercased,
24889         is_property_changes_when_titlecased,
24890         is_property_changes_when_casefolded,
24891         is_property_changes_when_casemapped): New functions.
24892         (output_properties): Output also the properties cased, case_ignorable,
24893         changes_when_lowercased, changes_when_uppercased,
24894         changes_when_titlecased, changes_when_casefolded,
24895         changes_when_casemapped.
24896         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24897         Unicode TR#11 revision 17 -> 19.
24898         (LBP_CP): New enumeration value.
24899         (LBP_*): Adjust values accordingly.
24900         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24901         TR#14 revision 22 -> 24.
24902         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24903         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24904         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24905         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24906         is_WBP_MIDLETTER.
24907         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24908         the code1 and code2 of each composition rule.
24909         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24910         * lib/unicase/ignorable.h: Likewise.
24911         * lib/unicase/tocasefold.h: Likewise.
24912         * lib/unicase/tolower.h: Likewise.
24913         * lib/unicase/totitle.h: Likewise.
24914         * lib/unicase/toupper.h: Likewise.
24915         * lib/unictype/bidi_of.h: Likewise.
24916         * lib/unictype/blocks.h: Likewise.
24917         * lib/unictype/categ_C.h: Likewise.
24918         * lib/unictype/categ_Cf.h: Likewise.
24919         * lib/unictype/categ_Cn.h: Likewise.
24920         * lib/unictype/categ_L.h: Likewise.
24921         * lib/unictype/categ_Ll.h: Likewise.
24922         * lib/unictype/categ_Lm.h: Likewise.
24923         * lib/unictype/categ_Lo.h: Likewise.
24924         * lib/unictype/categ_Lu.h: Likewise.
24925         * lib/unictype/categ_M.h: Likewise.
24926         * lib/unictype/categ_Mc.h: Likewise.
24927         * lib/unictype/categ_Mn.h: Likewise.
24928         * lib/unictype/categ_N.h: Likewise.
24929         * lib/unictype/categ_Nd.h: Likewise.
24930         * lib/unictype/categ_Nl.h: Likewise.
24931         * lib/unictype/categ_No.h: Likewise.
24932         * lib/unictype/categ_P.h: Likewise.
24933         * lib/unictype/categ_Pd.h: Likewise.
24934         * lib/unictype/categ_Po.h: Likewise.
24935         * lib/unictype/categ_S.h: Likewise.
24936         * lib/unictype/categ_Sc.h: Likewise.
24937         * lib/unictype/categ_So.h: Likewise.
24938         * lib/unictype/categ_of.h: Likewise.
24939         * lib/unictype/combining.h: Likewise.
24940         * lib/unictype/ctype_alnum.h: Likewise.
24941         * lib/unictype/ctype_alpha.h: Likewise.
24942         * lib/unictype/ctype_graph.h: Likewise.
24943         * lib/unictype/ctype_lower.h: Likewise.
24944         * lib/unictype/ctype_print.h: Likewise.
24945         * lib/unictype/ctype_punct.h: Likewise.
24946         * lib/unictype/ctype_upper.h: Likewise.
24947         * lib/unictype/decdigit.h: Likewise.
24948         * lib/unictype/digit.h: Likewise.
24949         * lib/unictype/numeric.h: Likewise.
24950         * lib/unictype/pr_alphabetic.h: Likewise.
24951         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24952         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24953         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24954         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24955         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24956         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24957         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24958         * lib/unictype/pr_combining.h: Likewise.
24959         * lib/unictype/pr_composite.h: Likewise.
24960         * lib/unictype/pr_currency_symbol.h: Likewise.
24961         * lib/unictype/pr_dash.h: Likewise.
24962         * lib/unictype/pr_decimal_digit.h: Likewise.
24963         * lib/unictype/pr_deprecated.h: Likewise.
24964         * lib/unictype/pr_diacritic.h: Likewise.
24965         * lib/unictype/pr_extender.h: Likewise.
24966         * lib/unictype/pr_grapheme_base.h: Likewise.
24967         * lib/unictype/pr_grapheme_extend.h: Likewise.
24968         * lib/unictype/pr_grapheme_link.h: Likewise.
24969         * lib/unictype/pr_id_continue.h: Likewise.
24970         * lib/unictype/pr_id_start.h: Likewise.
24971         * lib/unictype/pr_ideographic.h: Likewise.
24972         * lib/unictype/pr_ignorable_control.h: Likewise.
24973         * lib/unictype/pr_logical_order_exception.h: Likewise.
24974         * lib/unictype/pr_lowercase.h: Likewise.
24975         * lib/unictype/pr_numeric.h: Likewise.
24976         * lib/unictype/pr_other_alphabetic.h: Likewise.
24977         * lib/unictype/pr_punctuation.h: Likewise.
24978         * lib/unictype/pr_sentence_terminal.h: Likewise.
24979         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24980         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24981         * lib/unictype/pr_unified_ideograph.h: Likewise.
24982         * lib/unictype/pr_uppercase.h: Likewise.
24983         * lib/unictype/pr_xid_continue.h: Likewise.
24984         * lib/unictype/pr_xid_start.h: Likewise.
24985         * lib/unictype/pr_zero_width.h: Likewise.
24986         * lib/unictype/scripts.h: Likewise.
24987         * lib/unictype/scripts_byname.gperf: Likewise.
24988         * lib/unictype/sy_java_ident.h: Likewise.
24989         * lib/unigbrk/gbrkprop.h: Likewise.
24990         * lib/unilbrk/lbrkprop1.h: Likewise.
24991         * lib/unilbrk/lbrkprop2.h: Likewise.
24992         * lib/unilbrk/lbrktables.h: Likewise.
24993         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24994         LBP_CP. Implement rule LB30.
24995         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24996         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24997         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24998         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24999         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25000         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25001         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25002         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25003         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25004         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25005         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25006         bits instead of 16 bits in the code1 and code2 of each composition
25007         rule.
25008         (uc_composition): Update for Unicode 5.2.0.
25009         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25010         * lib/uninorm/decomposition-table2.h: Likewise.
25011         * lib/uniwbrk/wbrkprop.h: Likewise.
25012         * tests/unicase/test-cased.c: Likewise.
25013         * tests/unicase/test-ignorable.c: Likewise.
25014         * tests/unicase/test-uc_tolower.c: Likewise.
25015         * tests/unicase/test-uc_totitle.c: Likewise.
25016         * tests/unicase/test-uc_toupper.c: Likewise.
25017         * tests/unictype/test-categ_C.c: Likewise.
25018         * tests/unictype/test-categ_Cf.c: Likewise.
25019         * tests/unictype/test-categ_Cn.c: Likewise.
25020         * tests/unictype/test-categ_L.c: Likewise.
25021         * tests/unictype/test-categ_Ll.c: Likewise.
25022         * tests/unictype/test-categ_Lm.c: Likewise.
25023         * tests/unictype/test-categ_Lo.c: Likewise.
25024         * tests/unictype/test-categ_Lu.c: Likewise.
25025         * tests/unictype/test-categ_M.c: Likewise.
25026         * tests/unictype/test-categ_Mc.c: Likewise.
25027         * tests/unictype/test-categ_Mn.c: Likewise.
25028         * tests/unictype/test-categ_N.c: Likewise.
25029         * tests/unictype/test-categ_Nd.c: Likewise.
25030         * tests/unictype/test-categ_Nl.c: Likewise.
25031         * tests/unictype/test-categ_No.c: Likewise.
25032         * tests/unictype/test-categ_P.c: Likewise.
25033         * tests/unictype/test-categ_Pd.c: Likewise.
25034         * tests/unictype/test-categ_Po.c: Likewise.
25035         * tests/unictype/test-categ_S.c: Likewise.
25036         * tests/unictype/test-categ_Sc.c: Likewise.
25037         * tests/unictype/test-categ_So.c: Likewise.
25038         * tests/unictype/test-ctype_alnum.c: Likewise.
25039         * tests/unictype/test-ctype_alpha.c: Likewise.
25040         * tests/unictype/test-ctype_graph.c: Likewise.
25041         * tests/unictype/test-ctype_lower.c: Likewise.
25042         * tests/unictype/test-ctype_print.c: Likewise.
25043         * tests/unictype/test-ctype_punct.c: Likewise.
25044         * tests/unictype/test-ctype_upper.c: Likewise.
25045         * tests/unictype/test-decdigit.h: Likewise.
25046         * tests/unictype/test-digit.h: Likewise.
25047         * tests/unictype/test-numeric.h: Likewise.
25048         * tests/unictype/test-pr_alphabetic.c: Likewise.
25049         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25050         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25051         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25056         * tests/unictype/test-pr_combining.c: Likewise.
25057         * tests/unictype/test-pr_composite.c: Likewise.
25058         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25059         * tests/unictype/test-pr_dash.c: Likewise.
25060         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25061         * tests/unictype/test-pr_deprecated.c: Likewise.
25062         * tests/unictype/test-pr_diacritic.c: Likewise.
25063         * tests/unictype/test-pr_extender.c: Likewise.
25064         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25065         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25066         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25067         * tests/unictype/test-pr_id_continue.c: Likewise.
25068         * tests/unictype/test-pr_id_start.c: Likewise.
25069         * tests/unictype/test-pr_ideographic.c: Likewise.
25070         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25071         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25072         * tests/unictype/test-pr_lowercase.c: Likewise.
25073         * tests/unictype/test-pr_numeric.c: Likewise.
25074         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25075         * tests/unictype/test-pr_punctuation.c: Likewise.
25076         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25077         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25078         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25079         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25080         * tests/unictype/test-pr_uppercase.c: Likewise.
25081         * tests/unictype/test-pr_xid_continue.c: Likewise.
25082         * tests/unictype/test-pr_xid_start.c: Likewise.
25083         * tests/unictype/test-pr_zero_width.c: Likewise.
25084         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25085         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25086         changed behaviour: line breaking is now disallowed between a letter
25087         or '=' and '('.
25088         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25089         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25090         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25091         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25092         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25093         lib/uniwidth/width.c.
25094         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25095         without comments, but with the original copyright notice.
25096         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25097         changes.
25098         * lib/unictype/categ_Cc.h: Likewise.
25099         * lib/unictype/categ_Co.h: Likewise.
25100         * lib/unictype/categ_Cs.h: Likewise.
25101         * lib/unictype/categ_Lt.h: Likewise.
25102         * lib/unictype/categ_Me.h: Likewise.
25103         * lib/unictype/categ_Pc.h: Likewise.
25104         * lib/unictype/categ_Pe.h: Likewise.
25105         * lib/unictype/categ_Pf.h: Likewise.
25106         * lib/unictype/categ_Pi.h: Likewise.
25107         * lib/unictype/categ_Ps.h: Likewise.
25108         * lib/unictype/categ_Sk.h: Likewise.
25109         * lib/unictype/categ_Sm.h: Likewise.
25110         * lib/unictype/categ_Z.h: Likewise.
25111         * lib/unictype/categ_Zl.h: Likewise.
25112         * lib/unictype/categ_Zp.h: Likewise.
25113         * lib/unictype/categ_Zs.h: Likewise.
25114         * lib/unictype/ctype_blank.h: Likewise.
25115         * lib/unictype/ctype_cntrl.h: Likewise.
25116         * lib/unictype/ctype_digit.h: Likewise.
25117         * lib/unictype/ctype_space.h: Likewise.
25118         * lib/unictype/ctype_xdigit.h: Likewise.
25119         * lib/unictype/mirror.h: Likewise.
25120         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25121         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25122         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25123         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25124         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25125         * lib/unictype/pr_bidi_control.h: Likewise.
25126         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25127         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25128         * lib/unictype/pr_bidi_pdf.h: Likewise.
25129         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25130         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25131         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25132         * lib/unictype/pr_format_control.h: Likewise.
25133         * lib/unictype/pr_hex_digit.h: Likewise.
25134         * lib/unictype/pr_hyphen.h: Likewise.
25135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25137         * lib/unictype/pr_iso_control.h: Likewise.
25138         * lib/unictype/pr_join_control.h: Likewise.
25139         * lib/unictype/pr_left_of_pair.h: Likewise.
25140         * lib/unictype/pr_line_separator.h: Likewise.
25141         * lib/unictype/pr_math.h: Likewise.
25142         * lib/unictype/pr_non_break.h: Likewise.
25143         * lib/unictype/pr_not_a_character.h: Likewise.
25144         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25145         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25146         * lib/unictype/pr_other_id_continue.h: Likewise.
25147         * lib/unictype/pr_other_id_start.h: Likewise.
25148         * lib/unictype/pr_other_lowercase.h: Likewise.
25149         * lib/unictype/pr_other_math.h: Likewise.
25150         * lib/unictype/pr_other_uppercase.h: Likewise.
25151         * lib/unictype/pr_paired_punctuation.h: Likewise.
25152         * lib/unictype/pr_paragraph_separator.h: Likewise.
25153         * lib/unictype/pr_pattern_syntax.h: Likewise.
25154         * lib/unictype/pr_pattern_white_space.h: Likewise.
25155         * lib/unictype/pr_private_use.h: Likewise.
25156         * lib/unictype/pr_quotation_mark.h: Likewise.
25157         * lib/unictype/pr_radical.h: Likewise.
25158         * lib/unictype/pr_soft_dotted.h: Likewise.
25159         * lib/unictype/pr_space.h: Likewise.
25160         * lib/unictype/pr_titlecase.h: Likewise.
25161         * lib/unictype/pr_variation_selector.h: Likewise.
25162         * lib/unictype/pr_white_space.h: Likewise.
25163         * lib/unictype/sy_c_ident.h: Likewise.
25164         * lib/unictype/sy_c_whitespace.h: Likewise.
25165         * lib/unictype/sy_java_whitespace.h: Likewise.
25166         * modules/uni*/*: Bump version number of expected libunistring version.
25167         Reported by Simon Josefsson.
25168
25169 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25170
25171         useless-if-before-free: fix typo in --help and make the internal,
25172         automatic version date update process work once again.
25173         --help output contained a NUL character instead of the
25174         backslash-zero that was intended.  Also, the "must lie within
25175         the first 8 lines" line is on line 9, and hence not getting
25176         automatically updated.
25177         * build-aux/useless-if-before-free: Fix the former by adding a
25178         backslash, and the latter by condensing the three lines of what-it-does
25179         to a single line, leaving one line of slack for the future.
25180
25181 2011-01-09  Bruno Haible  <bruno@clisp.org>
25182
25183         uniwidth/width: Fix width of U+1D173..U+1D17A.
25184         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25185         symbolic_width, output_width_property_test): New functions.
25186         (main): Invoke output_nonspacing_property, output_width_property_test.
25187         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25188         U+1D173..U+1D17A.
25189         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25190         1.
25191         * modules/uniwidth/*: Bump version number of expected libunistring
25192         version.
25193         * modules/unilbrk/*: Likewise.
25194
25195 2011-01-08  Bruno Haible  <bruno@clisp.org>
25196
25197         uninorm tests: Preserve copyright of Unicode data file.
25198         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25199         Mention modifications.
25200
25201 2011-01-08  Bruno Haible  <bruno@clisp.org>
25202
25203         gen-uni-tables: Prepare for Unicode 5.2.0.
25204         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25205         (debug_output_lbp, output_lbp): Update.
25206
25207 2011-01-08  Bruno Haible  <bruno@clisp.org>
25208
25209         unilbrk: Clarify gen-uni-tables.c code.
25210         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25211         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25212         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25213
25214 2011-01-07  Bruno Haible  <bruno@clisp.org>
25215
25216         strtod: Restore errno when successfully parsing Infinity or NaN.
25217         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25218         restore the original errno.
25219
25220 2011-01-07  Bruno Haible  <bruno@clisp.org>
25221
25222         remove test: Avoid failure on HP-UX 11.
25223         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25224
25225 2011-01-07  Bruno Haible  <bruno@clisp.org>
25226
25227         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25228         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25229         error code.
25230
25231 2011-01-07  Pádraig Brady <P@draigBrady.com>
25232
25233         ignore-value: fixup comments, and add Eric Blake
25234         as an author since he rewrote the macros.
25235         * lib/ignore-value.h (ignore_value):  State that
25236         we now support aggregates.  Also specify exactly
25237         when the GCC warn_unused_result feature was added.
25238
25239 2011-01-06  Eric Blake  <eblake@redhat.com>
25240
25241         ignore-value: support aggregate types
25242         * lib/ignore-value.h (ignore_value): Provide separate gcc
25243         definition.
25244         * modules/ignore-value-tests: New test module.
25245         * tests/test-ignore-value.c: New test.
25246
25247         maint.mk: improve sc_prohibit_strcmp regex
25248         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25249         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25250         definition of STRNEQ.
25251
25252         signal: work around Haiku issue with SIGBUS
25253         * lib/siglist.h: Add comment.
25254         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25255         strsignal's favoring of SIGSEGV.
25256         * tests/test-signal.c (main): Avoid test failure.
25257         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25258         Reported by Scott McCreary.
25259
25260         maint.mk: add pre-release check to ensure submodule commits are public
25261         * top/maint.mk (public-submodule-commit): New rule.
25262         (submodule-checks): New variable.
25263         (alpha beta stable): Depend on the variable.
25264
25265 2011-01-05  Pádraig Brady <P@draigBrady.com>
25266         and Jim Meyering  <meyering@redhat.com>
25267
25268         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25269         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25270         (ATTRIBUTE_DEPRECATED): Define.
25271         (_ignore_case): New function.
25272         (ignore_value): New macro, to replace the old function.
25273         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25274         * modules/ignore-value (Depends-on): Add stdint.
25275
25276 2011-01-04  Eric Blake  <eblake@redhat.com>
25277
25278         doc: regenerate INSTALL
25279         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25280         @firstparagraphindent support, now that autoconf dropped it.
25281         (INSTALL_PRELUDE): Reinstate old macro.
25282         * doc/install.texi: Resync from autoconf.
25283         * doc/INSTALL: Reflect recent autoconf update.
25284         * doc/INSTALL.ISO: Likewise.
25285         * doc/INSTALL.UTF-8: Likewise.
25286         Reported by Karl Berry.
25287
25288 2011-01-04  Bruce Korb  <address@hidden>
25289
25290         git-version-gen: avoid a sub-shell
25291         * build-aux/git-version-gen: Redirect stderr in `...` via
25292         "exec 2>...", rather than via an added sub-shell.
25293
25294 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25295
25296         git-version-gen: use (...) rather than sh -c '...'
25297         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25298         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25299
25300 2011-01-03  Jim Meyering  <meyering@redhat.com>
25301
25302         git-version-gen: convert leading TABs to spaces
25303         * build-aux/git-version-gen: Expand leading TABs.
25304
25305         git-version-gen: handle failed "git rev-list"
25306         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25307         from git and proceeding as if it had succeeded but printed no SHA1
25308         checksums, suppress the diagnostic and handle the failure.
25309         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25310
25311         git-version-gen: include command name in one more diagnostic
25312         * build-aux/git-version-gen: When the required .tarball-version file
25313         was missing or unreadable, you might see the diagnostic from "cat",
25314         but no trace of the name of the invoking script.  Now, you still see
25315         the diagnostic from cat, but also get one from "git-version-gen: ".
25316         Inspired by a patch from Bruce Korb.
25317
25318         update-copyright: adjust test to match changed code
25319         * tests/test-update-copyright.sh: Change test's expected output
25320         to match new actual output.
25321
25322 2011-01-02  Bruno Haible  <bruno@clisp.org>
25323
25324         getlogin_r: Avoid test failure on HP-UX 11.
25325         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25326         ERANGE when the second argument is zero.
25327         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25328         portability problem.
25329
25330 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25331
25332         * build-aux/update-copyright: doc Simon's changes
25333
25334 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25335
25336         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25337         environment variable.
25338
25339 2011-01-02  Bruno Haible  <bruno@clisp.org>
25340
25341         unigbrk: Avoid gcc warnings.
25342         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25343         unused variable.
25344         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25345         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25346         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25347         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25348         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25349         Change type of first argument to 'const char *'.
25350         (main): Remove unused variable.
25351         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25352         type of first argument to 'const char *'.
25353         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25354         Likewise.
25355         (main): Change type of variable 's'.
25356         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25357         to 'int'.
25358
25359 2011-01-02  Bruno Haible  <bruno@clisp.org>
25360
25361         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25362         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25363         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25364         bug.
25365         * lib/pwrite.c: Undo 2010-12-31 patch.
25366         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25367
25368 2011-01-02  Bruno Haible  <bruno@clisp.org>
25369
25370         pread: Fix test whether it works.
25371         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25372
25373 2011-01-02  Bruno Haible  <bruno@clisp.org>
25374
25375         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25376         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25377         ends in "6". Don't require a specific month name. Try also the locale
25378         names found on HP-UX 11 and Solaris 7.
25379
25380 2011-01-02  Bruno Haible  <bruno@clisp.org>
25381
25382         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25383         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25384         C linkage.
25385         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25386
25387 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25388
25389         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25390         for consistency, since the "cluster" term is not used elsewhere.
25391         * lib/unigbrk.in.h: Update name.
25392         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25393         * lib/unigbrk/u16-grapheme-next.c: Update name.
25394         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25395         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25396         * lib/unigbrk/u32-grapheme-next.c: Update name.
25397         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25398         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25399         * lib/unigbrk/u8-grapheme-next.c: Update name.
25400         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25401         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25402         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25403         Suggested by Bruno Haible.
25404
25405 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25406
25407         Remove module 'u8-grapheme-len' as too redundant with
25408         'u8-grapheme-next'.
25409         * modules/unigbrk/u8-grapheme-len: Delete file.
25410         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25411         * lib/unigbrk.in.h: Remove prototype for deleted function.
25412         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25413         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25414
25415         Remove module 'u16-grapheme-len' as too redundant with
25416         'u16-grapheme-next'.
25417         * modules/unigbrk/u16-grapheme-len: Delete file.
25418         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25419         * lib/unigbrk.in.h: Remove prototype for deleted function.
25420         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25421         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25422
25423         Remove module 'u32-grapheme-len' as too redundant with
25424         'u32-grapheme-next'.
25425         * modules/unigbrk/u32-grapheme-len: Delete file.
25426         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25427         * lib/unigbrk.in.h: Remove prototype for deleted function.
25428         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25429         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25430
25431         Suggested by Bruno Haible.
25432
25433 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25434
25435         * unigbrk.in.h: Fix typo: "ben" => "been".
25436         Reported by Bruno Haible.
25437
25438 2011-01-01  Jim Meyering  <meyering@redhat.com>
25439
25440         maint: update almost all copyright ranges to include 2011
25441         Run the new "make update-copyright" rule.
25442
25443 2011-01-01  Jim Meyering  <meyering@redhat.com>
25444
25445         maint: update-copyright: exempt doc/INSTALL*
25446         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25447         since they are generated.  Suggested by Bruno Haible.
25448
25449 2011-01-01  Jim Meyering  <meyering@redhat.com>
25450
25451         maint: refine the update-copyright rule
25452         * Makefile (update-copyright): Also exclude any file that includes
25453         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25454         code that merely generates the comment.
25455
25456 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25457
25458         New module 'u8-grapheme-len'.
25459         * modules/unigbrk/u8-grapheme-len: New file.
25460         * modules/unigbrk/u8-grapheme-len-tests: New file.
25461         * lib/unigbrk.in.h: Add prototype for new function.
25462         * lib/unigbrk/u8-grapheme-len.c: New file.
25463         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25464
25465         New module 'u16-grapheme-len'.
25466         * modules/unigbrk/u16-grapheme-len: New file.
25467         * modules/unigbrk/u16-grapheme-len-tests: New file.
25468         * lib/unigbrk.in.h: Add prototype for new function.
25469         * lib/unigbrk/u16-grapheme-len.c: New file.
25470         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25471
25472         New module 'u32-grapheme-len'.
25473         * modules/unigbrk/u32-grapheme-len: New file.
25474         * modules/unigbrk/u32-grapheme-len-tests: New file.
25475         * lib/unigbrk.in.h: Add prototype for new function.
25476         * lib/unigbrk/u32-grapheme-len.c: New file.
25477         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25478
25479         New module 'u8-grapheme-next'.
25480         * modules/unigbrk/u8-grapheme-next: New file.
25481         * modules/unigbrk/u8-grapheme-next-tests: New file.
25482         * lib/unigbrk.in.h: Add prototype for new function.
25483         * lib/unigbrk/u8-grapheme-next.c: New file.
25484         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25485
25486         New module 'u16-grapheme-next'.
25487         * modules/unigbrk/u16-grapheme-next: New file.
25488         * modules/unigbrk/u16-grapheme-next-tests: New file.
25489         * lib/unigbrk.in.h: Add prototype for new function.
25490         * lib/unigbrk/u16-grapheme-next.c: New file.
25491         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25492
25493         New module 'u32-grapheme-next'.
25494         * modules/unigbrk/u32-grapheme-next: New file.
25495         * modules/unigbrk/u32-grapheme-next-tests: New file.
25496         * lib/unigbrk.in.h: Add prototype for new function.
25497         * lib/unigbrk/u32-grapheme-next.c: New file.
25498         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25499
25500         New module 'u8-grapheme-prev'.
25501         * modules/unigbrk/u8-grapheme-prev: New file.
25502         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25503         * lib/unigbrk.in.h: Add prototype for new function.
25504         * lib/unigbrk/u8-grapheme-prev.c: New file.
25505         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25506
25507         New module 'u16-grapheme-prev'.
25508         * modules/unigbrk/u16-grapheme-prev: New file.
25509         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25510         * lib/unigbrk.in.h: Add prototype for new function.
25511         * lib/unigbrk/u16-grapheme-prev.c: New file.
25512         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25513
25514         New module 'u32-grapheme-prev'.
25515         * modules/unigbrk/u32-grapheme-prev: New file.
25516         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25517         * lib/unigbrk.in.h: Add prototype for new function.
25518         * lib/unigbrk/u32-grapheme-prev.c: New file.
25519         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25520
25521         New module 'u8-grapheme-breaks'.
25522         * modules/unigbrk/u8-grapheme-breaks: New file.
25523         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25524         * lib/unigbrk.in.h: Add prototype for new function.
25525         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25526         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25527
25528         New module 'u16-grapheme-breaks'.
25529         * modules/unigbrk/u16-grapheme-breaks: New file.
25530         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25531         * lib/unigbrk.in.h: Add prototype for new function.
25532         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25533         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25534
25535         New module 'u32-grapheme-breaks'.
25536         * modules/unigbrk/u32-grapheme-breaks: New file.
25537         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25538         * lib/unigbrk.in.h: Add prototype for new function.
25539         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25540         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25541
25542         New module 'ulc-grapheme-breaks'.
25543         * modules/unigbrk/ulc-grapheme-breaks: New file.
25544         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25545         * m4/locale-ar.m4: New file.
25546         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25547         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25548         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25549
25550 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25551
25552         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25553         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25554         modified how this file was generated before I initially submitted
25555         the module, but failed to regenerate it.  This meant that several
25556         of the level2 entries were wrong.
25557         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25558         Remove the division-by-2 that is folded into the table now that
25559         gbrkprop.h has been regenerated properly.  Now -1 entries are
25560         handled correctly.
25561
25562         New module 'unigbrk/uc-gbrk-prop-tests'.
25563         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25564         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25565         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25566         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25567
25568 2011-01-01  Bruno Haible  <bruno@clisp.org>
25569
25570         Avoid use of hexadecimal escapes.
25571         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25572         instead of hexadecimal escapes.
25573
25574 2011-01-01  Jim Meyering  <meyering@redhat.com>
25575
25576         maint: new rule to update copyright year ranges
25577         * Makefile (update-copyright): New rule.
25578
25579         maint: indent with TABs in Makefile
25580         * Makefile: Expand leading sequences of spaces to TABs
25581
25582         version-etc: update the copyright year it reports
25583         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25584
25585 2010-12-31  Bruno Haible  <bruno@clisp.org>
25586
25587         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25588         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25589         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25590         zero.
25591
25592 2010-12-31  Bruno Haible  <bruno@clisp.org>
25593
25594         pwrite: Work around HP-UX 11.11 bug.
25595         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25596         works and set REPLACE_PWRITE if not.
25597         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25598         function.
25599         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25600
25601 2010-12-31  Bruno Haible  <bruno@clisp.org>
25602
25603         pread: Work around HP-UX 11 bugs.
25604         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25605         and set REPLACE_PREAD if not.
25606         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25607
25608 2010-12-31  Eric Blake  <eblake@redhat.com>
25609
25610         nl_langinfo: fix YESEXPR on Irix 6.5
25611         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25612         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25613         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25614         it.
25615
25616 2010-12-31  Bruno Haible  <bruno@clisp.org>
25617
25618         iconv: Document HP-UX 11 bug.
25619         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25620
25621 2010-12-31  Bruno Haible  <bruno@clisp.org>
25622
25623         ldexpl: Fix link error on HP-UX 11.
25624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25625         LDEXPL_LIBM, using $ISNANL_LIBM.
25626
25627 2010-12-31  Eric Blake  <eblake@redhat.com>
25628
25629         ftello: avoid compilation failure with SunStudio c89
25630         * lib/ftello.c (ftello): Use lseek, not llseek.
25631
25632         tests: avoid failing coreutils tests on cygwin
25633         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25634         (create_exe_shims_): Return 0 when skipping.
25635
25636 2010-12-31  Bruno Haible  <bruno@clisp.org>
25637
25638         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25639         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25640
25641 2010-12-31  Bruno Haible  <bruno@clisp.org>
25642
25643         waitpid: Fix link error in C++ mode.
25644         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25645
25646 2010-12-31  Bruno Haible  <bruno@clisp.org>
25647
25648         isnan: Use GCC built-ins when possible.
25649         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25650         __builtin_isnan.
25651         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25652         (isnan): Define using GCC built-ins for GCC >= 4.0.
25653
25654 2010-12-31  Bruno Haible  <bruno@clisp.org>
25655
25656         isnand: Fix mistake.
25657         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25658         __builtin_isnand.
25659
25660 2010-12-31  Bruno Haible  <bruno@clisp.org>
25661
25662         open: Avoid C++ error on HP-UX 11.
25663         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25664
25665 2010-12-31  Bruno Haible  <bruno@clisp.org>
25666
25667         time_r: Add missing declarations on HP-UX 11.
25668         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25669         instead of HAVE_LOCALTIME_R.
25670         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25671         HAVE_LOCALTIME_R always.
25672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25673         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25674         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25675         HAVE_LOCALTIME_R.
25676         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25677         * doc/posix-functions/localtime_r.texi: Likewise.
25678
25679 2010-12-29  Eric Blake  <eblake@redhat.com>
25680
25681         mountlist: tweak previous commit
25682         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25683         Reported by Paul Eggert.
25684
25685         mountlist: fix local drive detection on cygwin
25686         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25687         that works for cygwin.
25688
25689 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         ftoastr, snprintf: ftoastr + snprintf module
25692         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25693         since the snprintf module now should be good enough here.
25694         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25695         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25696         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25697         GNULIB_SNPRINTF only for the test directory, and the latter
25698         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25699         seems to suffice by itself.
25700
25701 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25702
25703         alloca: one step towards thread-safety
25704         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25705         need for a static variable.  All callers changed.  This does not
25706         make the alloca replacement thread-safe, but it's one step.
25707
25708         tests: minor indenting change
25709         * tests/init.sh: Sync from coreutils housekeeping patch
25710         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25711         to keep lines within 80 columns.
25712
25713 2010-12-28  Jim Meyering  <meyering@redhat.com>
25714
25715         regex: don't infloop on persistent failing calloc
25716         * lib/regexec.c (build_trtable): Return failure indication upon
25717         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25718         In glibc, this was fixed for version 2.13:
25719         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25720
25721 2010-12-28  Bruno Haible  <bruno@clisp.org>
25722             Paul Eggert <eggert@cs.ucla.edu>
25723
25724         linkat: Make implementation robust against system behaviour variations.
25725         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25726         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25727         way, and to -2 if it needs a generic runtime test.
25728         * lib/linkat.c (solaris_optimized_link_immediate,
25729         solaris_optimized_link_follow): New functions.
25730         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25731         (check_same_link): Use it.
25732
25733 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25734
25735         New module 'unigbrk/base'.
25736         * modules/unigbrk/base: New file.
25737         * lib/unigbrk.in.h: New file.
25738
25739         New module 'unigbrk/uc-gbrk-prop'.
25740         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25741         * modules/unigbrk/uc-gbrk-prop: New file.
25742         * lib/unigbrk/gbrkprop.h: New file.
25743         * lib/unigbrk/uc-gbrk-prop.c: New file.
25744
25745         New module 'unigbrk/uc-is-grapheme-break'.
25746         * modules/unigbrk/uc-is-grapheme-break: New file.
25747         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25748         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25749         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25750         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25751         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25752
25753         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25754
25755 2010-12-27  Bruno Haible  <bruno@clisp.org>
25756
25757         linkat test: Avoid failure on Solaris 11 2010-11.
25758         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25759
25760 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         utimens: work around glibc rounding bug on more platforms
25763         * lib/utimens.c (fdutimens): Work around rounding bug even if
25764         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25765         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25766
25767 2010-12-27  Bruno Haible  <bruno@clisp.org>
25768
25769         select tests: Improve comments.
25770         * tests/test-select.c (do_select): Add comments.
25771
25772 2010-12-27  Bruno Haible  <bruno@clisp.org>
25773
25774         select tests: Safer way of handling timeout.
25775         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25776         at every invocation.
25777
25778 2010-12-27  Bruno Haible  <bruno@clisp.org>
25779
25780         select tests: Use 'bool' where appropriate.
25781         * tests/test-select.c (connect_to_socket): Change argument type to
25782         'bool'.
25783
25784 2010-12-27  Bruno Haible  <bruno@clisp.org>
25785
25786         select tests: Use existing modules.
25787         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25788         (configure.ac): Don't test for unistd.h.
25789         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25790         declared in <unistd.h>.
25791
25792 2010-12-27  Bruno Haible  <bruno@clisp.org>
25793
25794         mbrtowc: Work around a Solaris 7 bug.
25795         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25796         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25797         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25798         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25799         MBRTOWC_NULL_ARG1_BUG.
25800         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25801         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25802         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25803         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25804
25805 2010-12-27  Jim Meyering  <meyering@redhat.com>
25806
25807         read-file.c: tweak syntax
25808         * lib/read-file.c (fread_file): Remove space after "*" in function
25809         definitions.
25810
25811 2010-12-27  Bruno Haible  <bruno@clisp.org>
25812
25813         times test: Avoid gcc warnings on OSF/1.
25814         * tests/test-times.c (main): Cast printf arguments from clock_t to
25815         'long int'.
25816
25817 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25818
25819         utimens: work around glibc rounding bug on older Linux kernels
25820         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25821         on Linux with a glibc whose utimes might not work, then work
25822         around a longstanding glibc bug involving rounding rather than
25823         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25825
25826 2010-12-26  Bruno Haible  <bruno@clisp.org>
25827
25828         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25829         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25830         _GL_CXXALIAS_SYS.
25831         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25832
25833 2010-12-26  Bruno Haible  <bruno@clisp.org>
25834
25835         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25836         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25837         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25838         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25839         looking for the declaration.
25840         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25841         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25842         problem.
25843         * doc/posix-functions/inet_pton.texi: Likewise.
25844
25845 2010-12-26  Bruno Haible  <bruno@clisp.org>
25846
25847         arpa_inet: Use the common idioms with C++ support.
25848         * lib/arpa_inet.in.h: Include c++defs.h.
25849         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25850         support.
25851         * modules/arpa_inet (Depends-on): Add c++defs.
25852         (Makefile.am): Substitute the contents of c++defs.h.
25853         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25854         * modules/arpa_inet-c++-tests: New file.
25855         * tests/test-arpa_inet-c++.cc: New file.
25856
25857 2010-12-25  Bruno Haible  <bruno@clisp.org>
25858
25859         Fix more C++ link errors on Solaris 8.
25860         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25861         $(LIB_EACCESS).
25862         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25863         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25864         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25865         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25866         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25867
25868 2010-12-25  Bruno Haible  <bruno@clisp.org>
25869
25870         printf-posix: Fix link error when a non-GCC compiler is used.
25871         * lib/stdio.in.h (printf): When not using GCC, override printf
25872         correctly.
25873         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25874
25875 2010-12-25  Bruno Haible  <bruno@clisp.org>
25876
25877         strerror_r-posix: Update doc.
25878         * doc/posix-functions/strerror_r.texi: Update doc about the return
25879         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25880
25881 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25882
25883         utimens: simplify the logic of the previous change
25884         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25885         This should not affect whether the test succeeds or fails.
25886
25887         utimens: configure better on hosts with NFS clock skew
25888         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25889         uses the clock of the local host.  It might use the clock of the
25890         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25892
25893 2010-12-25  Bruno Haible  <bruno@clisp.org>
25894
25895         ptsname test: Avoid failure on Solaris.
25896         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25897         open a pseudo-terminal; don't use BSD-style ptys.
25898         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25899
25900 2010-12-25  Bruno Haible  <bruno@clisp.org>
25901
25902         ptsname: Avoid ERANGE failure on some systems.
25903         * lib/ptsname.c (buffer): Increase size.
25904
25905 2010-12-25  Bruno Haible  <bruno@clisp.org>
25906
25907         rename, renameat: Avoid test failures at NFS mounted locations.
25908         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25909         so that subsequent mkdir calls succeed.
25910
25911 2010-12-25  Bruno Haible  <bruno@clisp.org>
25912
25913         iswblank: Fix C++ link error on Solaris 8.
25914         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25915         _GL_FUNCDECL_SYS.
25916
25917 2010-12-25  Bruno Haible  <bruno@clisp.org>
25918
25919         unistd: Fix C++ link error on Solaris 8.
25920         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25921
25922 2010-12-25  Bruno Haible  <bruno@clisp.org>
25923
25924         readlink doc: Mention an old glibc bug.
25925         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25926
25927 2010-12-25  Bruno Haible  <bruno@clisp.org>
25928
25929         fcntl-h: Fix for use of C++ on glibc systems.
25930         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25931         also on glibc systems in C++ mode.
25932         Reported by Gary V. Vaughan <gary@gnu.org>.
25933
25934 2010-12-25  Bruno Haible  <bruno@clisp.org>
25935
25936         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25937         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25938
25939 2010-12-25  Bruno Haible  <bruno@clisp.org>
25940
25941         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25942         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25943         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25944         test whether truncl works according to ISO C 99 with IEC 60559.
25945         * m4/truncl-ieee.m4: New file.
25946         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25947         m4/signbit.m4.
25948         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25949
25950 2010-12-25  Bruno Haible  <bruno@clisp.org>
25951
25952         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25953         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25954         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25955         test whether ceill works according to ISO C 99 with IEC 60559.
25956         * m4/ceill-ieee.m4: New file.
25957         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25958         m4/signbit.m4.
25959         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25960
25961 2010-12-25  Bruno Haible  <bruno@clisp.org>
25962
25963         Ensure all prerequisites of <wchar.h> are included.
25964         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25965         before <wchar.h>.
25966         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25967         gl_MBRLEN_NUL_RETVAL): Likewise.
25968         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25969         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25970         AC_FUNC_MBRTOWC): Likewise.
25971         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25972         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25975         Likewise.
25976         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25977         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25978         (gl_WCHAR_H): Improve comments.
25979         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25980
25981 2010-12-25  Bruno Haible  <bruno@clisp.org>
25982
25983         strtok_r: Fix C syntax error in autoconf macro.
25984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25985         characters in test program.
25986
25987 2010-12-24  Bruno Haible  <bruno@clisp.org>
25988
25989         ceil, trunc, round: Fix gcc warnings.
25990         * lib/ceil.c (MIN): Undefine before redefining.
25991         * lib/trunc.c (MIN): Likewise.
25992         * lib/round.c (MIN): Likewise.
25993         Include <math.h> first.
25994
25995 2010-12-24  Bruno Haible  <bruno@clisp.org>
25996
25997         select tests: Avoid failures on OSF/1 5.1.
25998         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25999         failure of closing the last socket; it may fail with ECONNRESET.
26000
26001 2010-12-24  Eric Blake  <eblake@redhat.com>
26002
26003         stdint: avoid HP-UX 10.20 preprocessor bug
26004         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26005         than #if.
26006         * tests/test-floor2.c (main): Likewise.
26007         Reported by Peter O'Gorman.
26008
26009         pipe: make obsoletion transition easier
26010         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26011         * modules/pipe (Files): Include revived file.
26012         (Include): Drop reference, to mirror getdate's behavior.
26013
26014 2010-12-24  Bruno Haible  <bruno@clisp.org>
26015
26016         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26017         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26018         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26019         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26020
26021 2010-12-24  Bruno Haible  <bruno@clisp.org>
26022
26023         gethostname: Ensure declaration on NonStop Kernel.
26024         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26025         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26026
26027 2010-12-24  Bruno Haible  <bruno@clisp.org>
26028
26029         sys_select: Ensure all necessary types on NonStop Kernel.
26030         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26031         include <sys/time.h>.
26032         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26033         NonStop Kernel.
26034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26035
26036 2010-12-24  Bruno Haible  <bruno@clisp.org>
26037
26038         sys_select: Remove unneeded include.
26039         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26040         have <sys/select.h>.
26041
26042 2010-12-24  Bruno Haible  <bruno@clisp.org>
26043
26044         gethostname: Provide a fallback for HOST_NAME_MAX.
26045         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26046         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26047         instead.
26048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26049
26050 2010-12-24  Bruno Haible  <bruno@clisp.org>
26051
26052         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26053         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26054         (SA_RESTART): Likewise.
26055         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26056
26057 2010-12-24  Bruno Haible  <bruno@clisp.org>
26058
26059         signal: Define NSIG.
26060         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26061         * tests/test-signal.c (nsig): New variable.
26062         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26063
26064 2010-12-24  Bruno Haible  <bruno@clisp.org>
26065
26066         rename, renameat: Avoid test failures on OSF/1 5.1.
26067         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26068         alternative error codes.
26069         * tests/test-renameat.c (main): Likewise.
26070
26071 2010-12-24  Bruno Haible  <bruno@clisp.org>
26072
26073         *printf: Detect large precisions bug on Solaris 10/SPARC.
26074         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26075         by Paul Eggert.
26076         * tests/test-snprintf-posix.h (test_function): Add this test code here
26077         too.
26078         * tests/test-sprintf-posix.h (test_function): Likewise.
26079         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26080         * tests/test-vasprintf-posix.c (test_function): Likewise.
26081         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26082         around by gnulib.
26083         * doc/posix-functions/printf.texi: Likewise.
26084         * doc/posix-functions/snprintf.texi: Likewise.
26085         * doc/posix-functions/sprintf.texi: Likewise.
26086         * doc/posix-functions/vfprintf.texi: Likewise.
26087         * doc/posix-functions/vprintf.texi: Likewise.
26088         * doc/posix-functions/vsnprintf.texi: Likewise.
26089         * doc/posix-functions/vsprintf.texi: Likewise.
26090         * doc/posix-functions/dprintf.texi: Undo last commit.
26091         * doc/posix-functions/vdprintf.texi: Likewise.
26092
26093 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         tests: port test-fdutimensat.c to Solaris 8
26096         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26097         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26098         On Solaris 8, it fails with errno == ENOSYS, because there is no
26099         futimens (so it can't use the fd), and there is no lutimens (so it
26100         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26101
26102         vsnprintf: make more consistent with snprintf; doc fixes
26103
26104         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26105         the byte count return problem was promoted from the snprintf-posix
26106         to the snprintf module.
26107         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26108         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26109         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26110         * tests/test-snprintf.c (main): Check the byte count returned.
26111         * tests/test-vsnprintf.c (main): Likewise.
26112
26113 2010-12-23  Eric Blake  <eblake@redhat.com>
26114
26115         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26116         * modules/sigpipe (License): Relax license.
26117
26118 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26119
26120         doc: document Solaris printf bug with large float precisions
26121         * doc/posix-functions/dprintf.texi (dprintf):
26122         * doc/posix-functions/fprintf.texi (fprintf):
26123         * doc/posix-functions/printf.texi (printf):
26124         * doc/posix-functions/snprintf.texi (snprintf):
26125         * doc/posix-functions/sprintf.texi (sprintf):
26126         * doc/posix-functions/vdprintf.texi (vdprintf):
26127         * doc/posix-functions/vfprintf.texi (vfprintf):
26128         * doc/posix-functions/vprintf.texi (vprintf):
26129         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26130         * doc/posix-functions/vsprintf.texi (vsprintf):
26131         Mention that these functions mishandle large floating point
26132         precisions on Solaris 10.  The same bug is also present in Solaris
26133         8, and I assume earlier.  This causes "cd gnulib-tests; make
26134         check" to fail on Solaris 8 (and I assume, later) when building
26135         the latest coreutils, in test-vasprintf-posix's call to
26136         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26137         the wide flavors (e.g., wprintf) so this patch just updates the
26138         documentation for the narrow ones.
26139
26140         test-posixtm.c: add two tests
26141         * tests/test-posixtm.c: Add two tests, to highlight the
26142         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26143         around this bug; this is merely to document it.
26144
26145 2010-12-22  Bruno Haible  <bruno@clisp.org>
26146
26147         getlogin_r: Work around portability problem on OSF/1.
26148         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26149         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26150         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26151         test for a truncated result.
26152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26153         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26154         * modules/getlogin_r (Depends-on): Add memchr.
26155         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26156
26157 2010-12-22  Bruno Haible  <bruno@clisp.org>
26158
26159         ptsname: Avoid test failure on OSF/1 5.1.
26160         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26161         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26162         (same_slave): New function.
26163         (main): Use it to compare ptsname's result with the expected file name.
26164
26165 2010-12-22  Bruno Haible  <bruno@clisp.org>
26166
26167         Port extended stdio modules to HP NonStop Kernel.
26168         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26169         macros.
26170         * lib/fbufmode.c: Update comments.
26171         * lib/fflush.c: Likewise.
26172         * lib/fpurge.c: Likewise.
26173         * lib/freadable.c: Likewise.
26174         * lib/freadahead.c: Likewise.
26175         * lib/freading.c: Likewise.
26176         * lib/freadptr.c: Likewise.
26177         * lib/freadseek.c: Likewise.
26178         * lib/fseeko.c: Likewise.
26179         * lib/fseterr.c: Likewise.
26180         * lib/fwritable.c: Likewise.
26181         * lib/fwriting.c: Likewise.
26182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26183
26184 2010-12-22  Bruno Haible  <bruno@clisp.org>
26185
26186         ttyname_r: Work around bug on OSF/1 5.1.
26187         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26189         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26190         present.
26191         * lib/ttyname_r.c (ttyname_r): Update comments.
26192
26193 2010-12-22  Bruno Haible  <bruno@clisp.org>
26194
26195         round: Implement result sign according to IEEE 754.
26196         * lib/round.c (MIN, MINUS_ZERO): New macros.
26197         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26198         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26199         * tests/test-round-ieee.c (main): Likewise.
26200         * tests/test-roundl-ieee.c (main): Likewise.
26201
26202         trunc: Implement result sign according to IEEE 754.
26203         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26204         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26205         * tests/test-trunc2.c: Include minus-zero.h.
26206         (MINUS_ZERO): New macro.
26207         (trunc_reference): Keep in sync with lib/trunc.c.
26208         * tests/test-truncf2.c: Include minus-zero.h.
26209         (MINUS_ZERO): New macro.
26210         (truncf_reference): Keep in sync with lib/trunc.c.
26211         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26212         * tests/test-trunc-ieee.c (main): Likewise.
26213         * tests/test-truncl-ieee.c (main): Likewise.
26214
26215         ceil: Implement result sign according to IEEE 754.
26216         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26217         (FUNC): Return -0.0 for -1 < x < 0.
26218         * tests/test-ceil2.c: Include minus-zero.h.
26219         (MINUS_ZERO): New macro.
26220         (ceil_reference): Keep in sync with lib/ceil.c.
26221         * tests/test-ceilf2.c: Include minus-zero.h.
26222         (MINUS_ZERO): New macro.
26223         (ceilf_reference): Keep in sync with lib/ceil.c.
26224         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26225         * tests/test-ceil-ieee.c (main): Likewise.
26226         * tests/test-ceill-ieee.c (main): Likewise.
26227
26228         floor: Implement result sign according to IEEE 754.
26229         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26230         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26231         * tests/test-floorf2.c (floorf_reference): Likewise.
26232         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26233         * tests/test-floor-ieee.c (main): Likewise.
26234         * tests/test-floorl-ieee.c (main): Likewise.
26235
26236 2010-12-22  Bruno Haible  <bruno@clisp.org>
26237
26238         getaddrinfo: Update doc.
26239         * doc/posix-functions/gai_strerror.texi: Return type is also different
26240         on AIX and HP-UX.
26241
26242 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26243
26244         getaddrinfo, inet_ntop: Update doc for Solaris.
26245         * doc/posix-functions/gai_strerror.texi: Return type is also an
26246         issue on Solaris 9 and earlier.
26247         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26248         on Solaris 10 and earlier.
26249
26250 2010-12-21  Bruno Haible  <bruno@clisp.org>
26251
26252         New module 'roundl-ieee'.
26253         * modules/roundl-ieee: New file.
26254         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26255         test whether roundl works according to ISO C 99 with IEC 60559.
26256         * m4/roundl-ieee.m4: New file.
26257         * modules/roundl-ieee-tests: New file.
26258         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26259         * tests/test-roundl.c (main): Remove signbit tests.
26260         * modules/roundl-tests (Depends-on): Remove signbit.
26261         * doc/posix-functions/roundl.texi: Mention the new module.
26262
26263 2010-12-21  Bruno Haible  <bruno@clisp.org>
26264
26265         New module 'truncl-ieee'.
26266         * modules/truncl-ieee: New file.
26267         * modules/truncl-ieee-tests: New file.
26268         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26269         * tests/test-truncl.c (main): Remove signbit tests.
26270         * modules/truncl-tests (Depends-on): Remove signbit.
26271         * doc/posix-functions/truncl.texi: Mention the new module.
26272
26273 2010-12-21  Bruno Haible  <bruno@clisp.org>
26274
26275         New module 'ceill-ieee'.
26276         * modules/ceill-ieee: New file.
26277         * modules/ceill-ieee-tests: New file.
26278         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26279         * tests/test-ceill.c (main): Remove signbit tests.
26280         * modules/ceill-tests (Depends-on): Remove signbit.
26281         * doc/posix-functions/ceill.texi: Mention the new module.
26282
26283 2010-12-21  Bruno Haible  <bruno@clisp.org>
26284
26285         New module 'floorl-ieee'.
26286         * modules/floorl-ieee: New file.
26287         * modules/floorl-ieee-tests: New file.
26288         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26289         * tests/test-floorl.c (main): Remove signbit tests.
26290         * modules/floorl-tests (Depends-on): Remove signbit.
26291         * doc/posix-functions/floorl.texi: Mention the new module.
26292
26293 2010-12-21  Bruno Haible  <bruno@clisp.org>
26294
26295         New module 'round-ieee'.
26296         * modules/round-ieee: New file.
26297         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26298         whether round works according to ISO C 99 with IEC 60559.
26299         * m4/round-ieee.m4: New file.
26300         * modules/round-ieee-tests: New file.
26301         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26302         * tests/test-round1.c (main): Remove signbit tests.
26303         * modules/round-tests (Depends-on): Remove 'signbit'.
26304         * doc/posix-functions/round.texi: Mention the new module.
26305
26306 2010-12-21  Bruno Haible  <bruno@clisp.org>
26307
26308         New module 'trunc-ieee'.
26309         * modules/trunc-ieee: New file.
26310         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26311         whether trunc works according to ISO C 99 with IEC 60559.
26312         * m4/trunc-ieee.m4: New file.
26313         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26315         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26316         * modules/trunc-ieee-tests: New file.
26317         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26318         * tests/test-trunc1.c (main): Remove signbit tests.
26319         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26320         * doc/posix-functions/trunc.texi: Mention the new module.
26321
26322 2010-12-21  Bruno Haible  <bruno@clisp.org>
26323
26324         New module 'ceil-ieee'.
26325         * modules/ceil-ieee: New file.
26326         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26327         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26328         ISO C 99 with IEC 60559.
26329         * m4/ceil-ieee.m4: New file.
26330         * modules/ceil (Files): Add lib/ceil.c.
26331         (Depends-on): Add 'float'.
26332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26333         * lib/math.in.h (ceil): New declaration.
26334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26335         REPLACE_CEIL.
26336         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26337         * modules/ceil-ieee-tests: New file.
26338         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26339         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26340         * doc/posix-functions/ceil.texi: Mention the new module.
26341
26342 2010-12-21  Bruno Haible  <bruno@clisp.org>
26343
26344         New module 'floor-ieee'.
26345         * modules/floor-ieee: New file.
26346         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26347         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26348         ISO C 99 with IEC 60559.
26349         * m4/floor-ieee.m4: New file.
26350         * modules/floor (Files): Add lib/floor.c.
26351         (Depends-on): Add 'float'.
26352         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26353         * lib/math.in.h (floor): New declaration.
26354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26355         REPLACE_FLOOR.
26356         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26357         * modules/floor-ieee-tests: New file.
26358         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26359         * tests/test-math-c++.cc: Check the signature of 'floor'.
26360         * doc/posix-functions/floor.texi: Mention the new module.
26361
26362 2010-12-21  Bruno Haible  <bruno@clisp.org>
26363
26364         New module 'roundf-ieee'.
26365         * modules/roundf-ieee: New file.
26366         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26367         test whether roundf works according to ISO C 99 with IEC 60559.
26368         * m4/roundf-ieee.m4: New file.
26369         * modules/roundf-ieee-tests: New file.
26370         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26371         * tests/test-roundf1.c (main): Remove signbit tests.
26372         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26373         * doc/posix-functions/roundf.texi: Mention the new module.
26374
26375 2010-12-21  Bruno Haible  <bruno@clisp.org>
26376
26377         New module 'truncf-ieee'.
26378         * modules/truncf-ieee: New file.
26379         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26380         test whether truncf works according to ISO C 99 with IEC 60559.
26381         * m4/truncf-ieee.m4: New file.
26382         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26384         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26385         * modules/truncf-ieee-tests: New file.
26386         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26387         * tests/test-truncf1.c (main): Remove signbit tests.
26388         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26389         * doc/posix-functions/truncf.texi: Mention the new module.
26390
26391 2010-12-21  Bruno Haible  <bruno@clisp.org>
26392
26393         New module 'ceilf-ieee'.
26394         * modules/ceilf-ieee: New file.
26395         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26396         test whether ceilf works according to ISO C 99 with IEC 60559.
26397         * m4/ceilf-ieee.m4: New file.
26398         * modules/ceilf-ieee-tests: New file.
26399         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26400         * tests/test-ceilf1.c (main): Remove signbit tests.
26401         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26402         * doc/posix-functions/ceilf.texi: Mention the new module.
26403
26404 2010-12-21  Bruno Haible  <bruno@clisp.org>
26405
26406         New module 'floorf-ieee'.
26407         * modules/floorf-ieee: New file.
26408         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26409         test whether floorf works according to ISO C 99 with IEC 60559.
26410         * m4/floorf-ieee.m4: New file.
26411         * modules/floorf-ieee-tests: New file.
26412         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26413         * tests/test-floorf1.c (main): Remove signbit tests.
26414         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26415         * doc/posix-functions/floorf.texi: Mention the new module.
26416
26417 2010-12-21  Bruno Haible  <bruno@clisp.org>
26418
26419         Support for minus zero in autoconf macros.
26420         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26421         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26422         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26423         * tests/minus-zero.h: Update comments.
26424
26425 2010-12-21  Bruno Haible  <bruno@clisp.org>
26426
26427         Tests for module 'ceil'.
26428         * modules/ceil-tests: New file.
26429         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26430         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26431
26432 2010-12-21  Bruno Haible  <bruno@clisp.org>
26433
26434         Tests for module 'floor'.
26435         * modules/floor-tests: New file.
26436         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26437         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26438
26439 2010-12-21  Bruno Haible  <bruno@clisp.org>
26440
26441         math: Fix indentation.
26442         * lib/math.in.h (floorf): Fix indentation.
26443
26444 2010-12-21  Bruno Haible  <bruno@clisp.org>
26445
26446         Fix cross-compilation guesses on Solaris.
26447         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26448         not match "solaris2.10".
26449         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26450         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26451         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26452
26453 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26454
26455         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26456         This fixes a problem observed with the latest coreutils snapshot
26457         that caused a test to fail on Solaris 8.  src/csplit.c's call
26458         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26459         earlier, instead of returning the number of bytes that would have
26460         been generated; this causes csplit to incorrectly report memory
26461         exhaustion.
26462         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26463         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26464         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26465         comments to match.
26466         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26467         Fix typo in matching older versions of Solaris: "solaris2.10"
26468         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26469         only for guessing while cross-compiling.
26470         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26471
26472 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26473
26474         ftoastr: fix comment again
26475         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26477         Also, simplify example a bit by using flags = 0.
26478
26479 2010-12-20  Bruno Haible  <bruno@clisp.org>
26480
26481         round*, trunc*: Update documentation regarding glibc.
26482         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26483         * doc/posix-functions/round.texi: Likewise.
26484         * doc/posix-functions/roundl.texi: Likewise.
26485         * doc/posix-functions/truncf.texi: Likewise.
26486         * doc/posix-functions/trunc.texi: Likewise.
26487         * doc/posix-functions/truncl.texi: Likewise.
26488
26489 2010-12-20  Bruno Haible  <bruno@clisp.org>
26490
26491         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26492         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26493         * doc/posix-functions/round.texi: Likewise.
26494         * doc/posix-functions/roundl.texi: Likewise.
26495
26496 2010-12-20  Bruno Haible  <bruno@clisp.org>
26497
26498         ttyname_r: Add missing declaration on HP-UX 11.
26499         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26500         HAVE_TTYNAME_R.
26501         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26502         declared. Set HAVE_TTYNAME_R always.
26503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26504         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26505         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26506         HAVE_TTYNAME_R.
26507         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26508
26509 2010-12-20  Bruno Haible  <bruno@clisp.org>
26510
26511         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26512         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26513         * doc/posix-functions/getlogin_r.texi: Likewise.
26514         * tests/test-getlogin.c: Include <errno.h>.
26515         (main): Avoid test failure on HP-UX 11.11.
26516         * tests/test-getlogin_r.c (main): Likewise.
26517
26518 2010-12-20  Bruno Haible  <bruno@clisp.org>
26519
26520         getlogin_r: Add missing declaration on HP-UX 11.
26521         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26522         declared also when it exists as a function.
26523         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26524
26525 2010-12-20  Bruno Haible  <bruno@clisp.org>
26526
26527         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26528         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26529         through wcrtomb.
26530
26531 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26532
26533         ftoastr: fix comment
26534         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26536
26537 2010-12-19  Bruno Haible  <bruno@clisp.org>
26538
26539         isnan: Ensure it is a macro.
26540         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26541         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26542         Solaris.
26543
26544 2010-12-19  Bruno Haible  <bruno@clisp.org>
26545
26546         ldexpl test: Fix link error on OSF/1 5.1.
26547         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26548
26549 2010-12-19  Bruno Haible  <bruno@clisp.org>
26550
26551         wctype: Make it work in C++ mode on OSF/1 5.1.
26552         * lib/wctype.in.h (iswblank): Declare but not define here.
26553         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26554         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26555         * modules/wctype (Files): Add lib/iswblank.c.
26556
26557 2010-12-19  Bruno Haible  <bruno@clisp.org>
26558
26559         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26560         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26561         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26562
26563 2010-12-19  Bruno Haible  <bruno@clisp.org>
26564
26565         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26567         _POSIX_PII_SOCKET.
26568         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26569         * doc/posix-functions/recvfrom.texi: Likewise.
26570         * doc/posix-functions/send.texi: Likewise.
26571         * doc/posix-functions/sendto.texi: Likewise.
26572
26573 2010-12-19  Bruno Haible  <bruno@clisp.org>
26574
26575         tcgetsid: Add missing declaration on OSF/1 5.1.
26576         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26577         HAVE_TCGETSID.
26578         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26579         Don't set HAVE_TCGETSID.
26580         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26581         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26582         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26583         HAVE_TCGETSID.
26584         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26585
26586 2010-12-19  Bruno Haible  <bruno@clisp.org>
26587
26588         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26589         * lib/stdio.in.h: During the include_next statement, let recursive
26590         includes of this file include only the system header file.
26591
26592 2010-12-19  Bruno Haible  <bruno@clisp.org>
26593
26594         iconv_open: Fix regression from 2010-12-04.
26595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26596         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26597
26598 2010-12-19  Bruno Haible  <bruno@clisp.org>
26599
26600         stdbool test: Avoid a gcc warning.
26601         * tests/test-stdbool.c (main): Fail if e1 is false.
26602         Reported by Jim Meyering.
26603
26604 2010-12-19  Jim Meyering  <meyering@redhat.com>
26605
26606         setenv: restore to working order
26607         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26608         mistakenly removed.
26609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26610         HAVE_SETENV.
26611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26612         HAVE_SETENV.
26613
26614 2010-12-19  Bruno Haible  <bruno@clisp.org>
26615
26616         Document some different function declarations on OSF/1 5.1.
26617         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26618         * doc/posix-functions/inet_ntop.texi: Likewise.
26619         * doc/posix-functions/gethostname.texi: Likewise.
26620         * lib/unistd.in.h (gethostname): Update comment.
26621
26622 2010-12-19  Bruno Haible  <bruno@clisp.org>
26623
26624         doc: Mention vasprintf-posix module.
26625         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26626         the 'vasprintf-posix' module.
26627         * doc/glibc-functions/vasprintf.texi: Likewise.
26628
26629 2010-12-19  Bruno Haible  <bruno@clisp.org>
26630
26631         unsetenv: Add missing declaration on OSF/1 5.1.
26632         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26633         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26634         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26636         not HAVE_UNSETENV.
26637         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26638         HAVE_UNSETENV.
26639         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26640
26641 2010-12-19  Bruno Haible  <bruno@clisp.org>
26642
26643         setenv: Add missing declaration on OSF/1 5.1.
26644         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26646         declared. Don't set HAVE_SETENV.
26647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26648         not HAVE_SETENV.
26649         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26650         HAVE_SETENV.
26651         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26652
26653 2010-12-19  Bruno Haible  <bruno@clisp.org>
26654
26655         nl_langinfo tests: Avoid gcc warning.
26656         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26657
26658 2010-12-19  Bruno Haible  <bruno@clisp.org>
26659
26660         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26661         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26662         _GL_CXXALIAS_SYS.
26663
26664 2010-12-19  Bruno Haible  <bruno@clisp.org>
26665
26666         stdbool: Relax test.
26667         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26668         address to 'bool' work in static initializer, for compilers other than
26669         GCC.
26670
26671 2010-12-19  Bruno Haible  <bruno@clisp.org>
26672
26673         ftello: Add missing declaration on OSF/1 5.1.
26674         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26675         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26677         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26678         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26679
26680 2010-12-19  Bruno Haible  <bruno@clisp.org>
26681
26682         fseeko: Add missing declaration on OSF/1 5.1.
26683         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26686         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26687         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26688
26689 2010-12-19  Bruno Haible  <bruno@clisp.org>
26690
26691         fchdir: Add missing declaration on OSF/1 5.1.
26692         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26695         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26696         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26697
26698 2010-12-19  Bruno Haible  <bruno@clisp.org>
26699
26700         relocatable-prog-wrapper: Separate from relocatable-prog.
26701         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26702         uninstall-relocwrapper rule here.
26703         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26704         Reported by Ian Beckwith <ianb@erislabs.net>.
26705
26706 2010-12-19  Bruno Haible  <bruno@clisp.org>
26707
26708         unistr/u8-mbsnlen: Add missing dependency.
26709         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26710         Reported by Ian Beckwith <ianb@erislabs.net>.
26711
26712 2010-12-19  Bruno Haible  <bruno@clisp.org>
26713
26714         iconv: Make it possible again to use this module without 'iconv-h'.
26715         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26716         if it is not defined.
26717         Reported by Ian Beckwith <ianb@erislabs.net>.
26718
26719 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26720
26721         acl: port to Solaris 8 when copying from tmpfs to ufs
26722         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26723         error number.  Problem observed on Solaris 8 with latest
26724         coreutils, with "mv A B", where A is on a tmpfs file system and B
26725         is on a ufs file system.  This caused coreutils' mv/part-symlink
26726         test to fail.
26727
26728         tests: set fail=0 at start
26729         * tests/init.sh (setup_): Move fail=0 initialization here ...
26730         (mktempd_): ... from here, so that tests can rely on fail being
26731         set to 0 initially.  This fixes a problem in coreutils; see:
26732         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26733
26734 2010-12-18  Bruno Haible  <bruno@clisp.org>
26735
26736         memmem-simple: Stylistic changes.
26737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26738         Fix preprocessor directive indentation.
26739
26740 2010-12-15  Pádraig Brady <P@draigBrady.com>
26741
26742         memmem, memmem-simple: reorganize and expand empty needle check
26743         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26744         functional checks to memmem-simple so that one has a fully functional
26745         memmem by using just this module.
26746         Restrict the performance only check to the memmem module.
26747         Also expand the empty needle check to ensure the correct
26748         pointer is returned, not just a non NULL pointer.
26749         * doc/glibc-functions/memmem.texi: Rearrange the portability
26750         documentation to correlate with the rearranged checks.
26751         Clarify exactly how the memmem and memmem-simple modules
26752         relate to each other.
26753
26754 2010-12-15  Pádraig Brady <P@draigBrady.com>
26755             Bruno Haible  <bruno@clisp.org>
26756
26757         Improve cross-compilation guesses for uClibc.
26758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26759         that uClibc does not have the glibc bug.
26760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26761         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26762
26763 2010-12-14  Eric Blake  <eblake@redhat.com>
26764
26765         configmake: provide fallbacks for oldest supported autotools
26766         * m4/configmake.m4: New file.
26767         * modules/configmake (Files): Ship it.
26768         (configure.ac): Use it to guarantee fallbacks.
26769
26770 2010-12-13  Pádraig Brady <P@draigBrady.com>
26771
26772         read-file: Improve handling of large files
26773         * lib/read-file.c (fread_file): Minimize realloc()s
26774         for regular files, and better manage sizes around SIZE_MAX.
26775
26776 2010-12-13  Eric Blake  <eblake@redhat.com>
26777
26778         cloexec, fcntl: relax license
26779         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26780         consent from all contributors.
26781         * modules/fcntl (License): Likewise.
26782
26783 2010-12-10  Bruno Haible  <bruno@clisp.org>
26784
26785         Tests for module 'pipe-posix'.
26786         * modules/pipe-posix-tests: New file.
26787         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26788
26789 2010-12-10  Bruno Haible  <bruno@clisp.org>
26790
26791         pipe-posix: Make it work in C++ mode.
26792         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26793         (pipe): Use common idiom, not a macro definition.
26794         * lib/pipe.c: New file.
26795         * m4/pipe.m4: New file.
26796         * modules/pipe-posix (Description): Enhance.
26797         (Files): Add lib/pipe.c, m4/pipe.m4.
26798         (configure.ac): Invoke gl_FUNC_PIPE.
26799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26800         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26801         * tests/test-unistd-c++.cc: Check the signature of pipe.
26802
26803 2010-12-10  Bruno Haible  <bruno@clisp.org>
26804
26805         Rename module 'pipe' to 'spawn-pipe'.
26806         * modules/spawn-pipe: New file, renamed from modules/pipe.
26807         (Files, configure.ac, Makefile.am): Update.
26808         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26809         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26810         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26811         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26812         "spawn-pipe.h" instead of "pipe.h".
26813         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26814         to gl_SPAWN_PIPE.
26815         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26816         (Files, Makefile.am): Update.
26817         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26818         Update.
26819         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26820         Include "spawn-pipe.h" instead of "pipe.h".
26821         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26822         * lib/javacomp.c: Likewise.
26823         * lib/javaversion.c: Likewise.
26824         * lib/pipe-filter-gi.c: Likewise.
26825         * lib/pipe-filter-ii.c: Likewise.
26826         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26827         * modules/javacomp (Depends-on): Likewise.
26828         * modules/javaversion (Depends-on): Likewise.
26829         * modules/pipe-filter-gi (Depends-on): Likewise.
26830         * modules/pipe-filter-ii (Depends-on): Likewise.
26831         * MODULES.html.sh (Executing programs): Update.
26832         * NEWS: Mention the change.
26833
26834 2010-12-10  Eric Blake  <eblake@redhat.com>
26835
26836         pipe-posix: new module
26837         * modules/pipe-posix: New file.
26838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26839         (gl_UNISTD_H): Check for declaration.
26840         * modules/unistd (Makefile.am): Substitute it.
26841         * lib/unistd.in.h (pipe): Provide it for mingw.
26842         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26843         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26844
26845 2010-12-07  Bruno Haible  <bruno@clisp.org>
26846
26847         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26848         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26849         u8_strcmp_gnu.
26850         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26851
26852 2010-12-06  Bruno Haible  <bruno@clisp.org>
26853
26854         Update internal documentation.
26855         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26856
26857 2010-12-04  Bruno Haible  <bruno@clisp.org>
26858
26859         Put more information about failed tests into the test return codes.
26860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26861         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26865         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26866         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26867         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26868         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26871         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26872         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26873         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26874         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26875         returns a bit mask.
26876         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26877         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26878         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26879         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26880         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26884         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26887         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26888         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26890         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26891         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26892         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26893         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26894         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26895         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26897         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26899         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26900         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26901         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26902         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26903         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26904         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26905         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26906         gl_PRINTF_PRECISION): Likewise.
26907         * m4/regex.m4 (gl_REGEX): Likewise.
26908         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26910         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26915         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26916         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26917         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26918         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26919         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26920         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26921         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26922         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26923         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26924         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26927         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26928         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26929         enumerated value.
26930         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26931
26932 2010-12-04  Bruno Haible  <bruno@clisp.org>
26933
26934         Update for Solaris 11 2010-11.
26935         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26936         Express, released in November 2010.
26937
26938 2010-12-04  Bruno Haible  <bruno@clisp.org>
26939
26940         nproc: Relax license.
26941         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26942         and Paul Eggert.
26943         Requested by Ludovic Courtès <ludo@gnu.org>.
26944
26945 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26946
26947         utimecmp: fine-grained src to nearby coarse-grained dest
26948
26949         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26950         and the source is on a file system with higher-resolution time
26951         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26952         not work, and the time stamps are close together, the algorithm to
26953         determine the exact resolution from the read-back mtime was buggy:
26954         it had a "!=" where it should have had an "==".  This bug has been
26955         in the code ever since it was introduced to gnulib.
26956         Problem reported by Dan Jacobson in
26957         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26958
26959 2010-11-30  Bruno Haible  <bruno@clisp.org>
26960
26961         strerror_r-posix: Fix autoconf test.
26962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26963
26964 2010-11-28  Bruno Haible  <bruno@clisp.org>
26965             Paul Eggert  <eggert@cs.ucla.edu>
26966
26967         Tests for module 'getdomainname'.
26968         * modules/getdomainname-tests: New file.
26969         * tests/test-getdomainname.c: New file, based on
26970         tests/test-gethostname.c.
26971
26972 2010-11-28  Bruno Haible  <bruno@clisp.org>
26973             Paul Eggert  <eggert@cs.ucla.edu>
26974
26975         getdomainname: Use the system function when possible.
26976         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26977         (getdomainname): Replace if needed. Provide the declaration if it is
26978         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26979         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26980         (getdomainname): When the system has getdomainname, call the system
26981         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26982         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26983         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26984         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26985         the function if its second argument is of type 'int' or if it is found
26986         in libnsl.
26987         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26988         <sys/systeminfo.h> and sysinfo().
26989         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26991         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26992         HAVE_GETDOMAINNAME.
26993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26994         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26995         * doc/glibc-functions/getdomainname.texi: Document the problems with
26996         the getdomainname declaration.
26997
26998 2010-11-28  Bruno Haible  <bruno@clisp.org>
26999
27000         sys_socket: Ensure ss_family field on AIX.
27001         * lib/sys_socket.in.h (ss_family): New macro definition.
27002         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27003         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27004         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27005         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27006         * modules/sys_socket (Makefile.am): Substitute
27007         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27008         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27009
27010 2010-11-27  Bruno Haible  <bruno@clisp.org>
27011
27012         readline: Improve configure output.
27013         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27014         "checking for readline..." result understandable.
27015
27016 2010-11-27  Bruno Haible  <bruno@clisp.org>
27017
27018         *printf-posix: Detect a bug on Solaris 10/x86.
27019         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27020         for floating-point output.
27021         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27022         directive.
27023         * tests/test-snprintf-posix.h (test_function): Likewise.
27024         * tests/test-sprintf-posix.h (test_function): Likewise.
27025         * tests/test-vasprintf-posix.c (test_function): Likewise.
27026         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27027         * doc/posix-functions/printf.texi: Likewise.
27028         * doc/posix-functions/snprintf.texi: Likewise.
27029         * doc/posix-functions/sprintf.texi: Likewise.
27030         * doc/posix-functions/vfprintf.texi: Likewise.
27031         * doc/posix-functions/vprintf.texi: Likewise.
27032         * doc/posix-functions/vsnprintf.texi: Likewise.
27033         * doc/posix-functions/vsprintf.texi: Likewise.
27034         * doc/glibc-functions/obstack_printf.texi: Likewise.
27035         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27036
27037 2010-11-27  Bruno Haible  <bruno@clisp.org>
27038
27039         Fix link error when module libunistring-optional is in use.
27040         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27041         * modules/striconveha-tests (Makefile.am): Likewise.
27042
27043 2010-11-27  Bruno Haible  <bruno@clisp.org>
27044
27045         regex: Mention link dependencies.
27046         * modules/regex (Link): New section.
27047         * modules/rpmatch (Link): Likewise.
27048         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27049
27050 2010-11-27  Bruno Haible  <bruno@clisp.org>
27051
27052         ftoastr: Fix compilation error on Solaris.
27053         * lib/ftoastr.c: Include <config.h>.
27054
27055 2010-11-27  Bruno Haible  <bruno@clisp.org>
27056
27057         getloadavg: Update documentation.
27058         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27059
27060 2010-11-27  Bruno Haible  <bruno@clisp.org>
27061
27062         sys_socket: Fix test whether the functions are declared.
27063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27064         not <sys/select.h>.
27065
27066 2010-11-27  Bruno Haible  <bruno@clisp.org>
27067
27068         getpass: Make sure to get system declaration on some platforms.
27069         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27070         gl_USE_SYSTEM_EXTENSIONS.
27071         * modules/getpass (Depends-on): Add extensions.
27072
27073 2010-11-26  Bruno Haible  <bruno@clisp.org>
27074
27075         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27076         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27077         'iconv' module is present.
27078         (ICONV_CONST): New macro.
27079         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27080         ICONV_CONST.
27081         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27082         set ICONV_CONST.
27083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27084         here.
27085         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27086         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27087         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27088         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27089         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27090         present.
27091
27092 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27093
27094         ftoastr: comment fix
27095         * lib/ftoastr.c: "little" -> "little or no" in comment
27096
27097 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27098
27099         stdint: port to GCC 4.3 + OSX + Octave
27100         On this platform, stdint.h is buggy and defines int64_t to long
27101         long int.  The replacement defined it to long int, causing
27102         problems with C++ style name mangling.  Instead, trust the system
27103         definition if INT64_MAX is defined, and likewise for the unsigned
27104         variant.   Problem reported by Jarno Rajahalme in
27105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27106         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27107         and don't mess with int64_t and INT64_MAX in this case.
27108         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27109
27110 2010-11-24  Bruno Haible  <bruno@clisp.org>
27111
27112         doc: Corrections regarding MacOS X 10.4 and 10.5.
27113         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27114         MacOS X.
27115         Reported by Simon Josefsson.
27116
27117 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27118
27119         Uninstall ".bin" files installed by relocwrapper.
27120         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27121         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27122         unless it is already there.
27123
27124 2010-11-21  Bruno Haible  <bruno@clisp.org>
27125
27126         Update for NetBSD 5.0.
27127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27128         NetBSD; the test fails on NetBSD 5.0.
27129         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27130         about NetBSD.
27131
27132 2010-11-21  Bruno Haible  <bruno@clisp.org>
27133
27134         Update for HP-UX 11.23 and HP-UX 11.31.
27135         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27136         HP-UX.
27137
27138 2010-11-21  Bruno Haible  <bruno@clisp.org>
27139
27140         Update for MacOS X 10.5.
27141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27142         MacOS X; the test fails on MacOS X 10.5.8.
27143         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27144         about MacOS X.
27145
27146 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27147
27148         bootstrap: add bootstrap_sync option.
27149         See discussion at
27150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27152         * build-aux/bootstrap: Accept --bootstrap-sync to update
27153         bootstrap if it is not identical to the local gnulib's
27154         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27155         enable this by default.  Accept --no-bootstrap-sync to disable
27156         it.
27157
27158 2010-11-20  Bruno Haible  <bruno@clisp.org>
27159
27160         Ensure that <features.h> is included before __GLIBC__ is tested.
27161         * lib/printf-parse.h: Include <features.h>.
27162         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27163         Reported by Mike Frysinger <vapier@gentoo.org>.
27164
27165         Ensure that <features.h> is included before __GLIBC__ is tested.
27166         * lib/wchar.in.h: Include <features.h>.
27167         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27168         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27169         Reported by Mike Frysinger <vapier@gentoo.org>.
27170
27171         Ensure that <features.h> is included before __GLIBC__ is tested.
27172         * lib/arpa_inet.in.h: Include <features.h>.
27173         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27174         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27175         Reported by Mike Frysinger <vapier@gentoo.org>.
27176
27177         Ensure that <features.h> is included before __GLIBC__ is tested.
27178         * build-aux/link-warning.h: Include <features.h>.
27179         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27180         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27181         Reported by Mike Frysinger <vapier@gentoo.org>.
27182
27183         Ensure that <features.h> is included before __GLIBC__ is tested.
27184         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27185         Reported by Mike Frysinger <vapier@gentoo.org>.
27186
27187 2010-11-20  Bruno Haible  <bruno@clisp.org>
27188
27189         memmem: Fix autoconf test.
27190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27191
27192 2010-11-20  Bruno Haible  <bruno@clisp.org>
27193
27194         Port to uClibc.
27195         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27196         * lib/fcntl.in.h: Likewise.
27197         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27198         * lib/mbrtowc.c (mbrtowc): Likewise.
27199         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27200         * lib/strerror_r.c: Likewise.
27201         * lib/unistr/u8-strnlen.c: Likewise.
27202         * lib/vasnprintf.c (decimal_point_char): Likewise.
27203         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27204         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27206         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27207         * tests/test-sigaction.c (handler, main): Likewise.
27208         * lib/freading.h: Treat uClibc like a non-glibc platform.
27209         * lib/freading.c: Likewise.
27210         * lib/gettext.h: Likewise.
27211         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27212         Likewise.
27213         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27214         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27215         * lib/propername.c (proper_name_utf8): Likewise.
27216         * lib/spawn.in.h: Likewise.
27217         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27218         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27219         mem_cd_iconveh_internal): Likewise.
27220         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27221         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27222         strstr, strcasestr): Likewise.
27223         * lib/unicodeio.c (unicode_to_mb): Likewise.
27224         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27225         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27226         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27227         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27228         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27229         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27230         * lib/unistr/u8-stpncpy.c: Likewise.
27231         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27232         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27234         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27235         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27236         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27237         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27240         Likewise.
27241         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27242         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27248         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27249         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27250         * tests/test-striconveha.c (main): Likewise.
27251         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27252         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27253         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27254         * doc/posix-functions/getline.texi: Likewise.
27255         Reported by Mike Frysinger <vapier@gentoo.org>.
27256
27257 2010-11-20  Bruno Haible  <bruno@clisp.org>
27258
27259         nproc: Fix condition.
27260         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27261         HAVE_PTHREAD_AFFINITY_NP.
27262
27263 2010-11-20  Bruno Haible  <bruno@clisp.org>
27264
27265         Fix a comment.
27266         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27267
27268 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27269
27270         ftoastr: don't assume snprintf
27271         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27272         Implement a subset of snprintf here, by using sprintf safely.
27273         * modules/ftoastr (Depends-on): Remove snprintf.
27274
27275 2010-11-19  Jim Meyering  <meyering@redhat.com>
27276
27277         test-rename.h: fix compilation failure
27278         * tests/test-rename.h (test_rename): Add omitted "}".
27279
27280 2010-11-17  Jim Meyering  <meyering@redhat.com>
27281
27282         maint.mk: add a URL discussing the no-@acronym policy
27283         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27284
27285 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27286
27287         ftoastr: depend on snprintf, improve comments
27288         * lib/ftoastr.c: Also mention Loitsch's draft.
27289         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27290         needed in the current implementation, but it might simplify
27291         speeding up the code later.
27292         * modules/ftoastr: Depend on snprintf; this improves portability.
27293         Suggested by Bruno Haible in the same email.
27294
27295         ftoastr: port to hosts lacking strtof and strtold
27296         Problem reported by Bruno Haible in
27297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27298         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27299         environment and strtold (and presumably strtof) are not available.
27300         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27301         (configure.ac): Require gl_C99_STRTOLD.
27302
27303 2010-11-18  Bruno Haible  <bruno@clisp.org>
27304
27305         c-strtold: Avoid link error on AIX 7.
27306         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27307         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27308         (gl_C_STRTOLD): Test whether strtold_l exists.
27309         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27310
27311 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27312
27313         intprops: new macro INT_BITS_STRLEN_BOUND
27314         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27315         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27316         not exposed.  Also, it uses a slightly tighter bound than before;
27317         though this makes no practical difference, we might as well be as
27318         tight as we easily can.
27319
27320         ftoastr: new module, for lossless conversion of floats to short strings
27321         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27322         * modules/ftoastr: New files.
27323
27324 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         bootstrap: port to Solaris sed
27327         * build-aux/bootstrap (get_version): Port to Solaris sed.
27328         See Ralf Wildenhues's note in
27329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27330
27331 2010-11-14  Jim Meyering  <meyering@redhat.com>
27332
27333         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27334         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27335         and move definition closer to sole use.
27336
27337 2010-11-13  Jim Meyering  <meyering@redhat.com>
27338
27339         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27340         Now we require at least autoconf-2.59, which means the work-around
27341         is no longer needed.
27342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27343         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27344         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27346         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27347
27348 2010-11-13  Bruno Haible  <bruno@clisp.org>
27349
27350         rename, renameat: Avoid test failures at NFS mounted locations.
27351         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27352         functions.
27353         (test_rename): Use assert_nonexistent.
27354         * tests/test-rename.c: Include <dirent.h>.
27355         * tests/test-renameat.c: Likewise.
27356         Reported by Gary V. Vaughan <gary@gnu.org>.
27357
27358         rename, renameat: Document Linux bug with NFS
27359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27360         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27361         * doc/posix-functions/renameat.texi: Likewise.
27362         Suggested by Eric Blake.
27363
27364 2010-11-13  Bruno Haible  <bruno@clisp.org>
27365
27366         rename test: Add comments.
27367         * tests/test-rename.h (test_rename): Add structure and comments.
27368
27369 2010-11-13  Eric Blake  <eblake@redhat.com>
27370
27371         maintainer-makefile: cover a few more files
27372         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27373         scripts generated within C files, for libvirt.
27374
27375 2010-11-13  Bruno Haible  <bruno@clisp.org>
27376
27377         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27378         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27379         character, return the number of bytes that belong together, not always
27380         1.
27381         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27382         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27383         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27384         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27385         number of bytes of an invalid character.
27386         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27387         (main): Invoke it.
27388         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27389         results.
27390         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27391         malformed byte sequences.
27392         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27393         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27394         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27395         Reported by Ben Pfaff and Paolo Bonzini.
27396
27397 2010-11-13  Bruno Haible  <bruno@clisp.org>
27398
27399         openat: Work around glibc bug with fchownat() and empty file names.
27400         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27401         (gl_FUNC_FCHOWNAT): Invoke it.
27402         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27403         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27404         Reported by Gary V. Vaughan <gary@gnu.org>.
27405
27406 2010-11-13  Bruno Haible  <bruno@clisp.org>
27407
27408         openat: Ensure autoconf macro ordering.
27409         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27410         gl_USE_SYSTEM_EXTENSIONS.
27411         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27412
27413 2010-11-13  Bruno Haible  <bruno@clisp.org>
27414
27415         Update comments.
27416         * lib/unistr/u8-check.c: Update file name in comments.
27417         * lib/unistr/u8-mblen.c: Likewise.
27418         * lib/unistr/u8-prev.c: Likewise.
27419         * lib/unistr/u8-strmblen.c: Likewise.
27420         * lib/unistr/u8-strmbtouc.c: Likewise.
27421
27422 2010-11-13  Jim Meyering  <meyering@redhat.com>
27423
27424         tests: avoid test failure on Solaris 10 due to lack of PATH export
27425         * tests/test-update-copyright.sh: Don't forget to export PATH.
27426
27427         init.sh: ensure that IFS is defined, just in case...
27428         * tests/init.sh (setup_): Ensure that IFS is defined,
27429         so that saving and restoring it works as expected.  This
27430         appears to be useful at least for an old version of dash
27431         from a long time ago (RH 6).  See here for details:
27432         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27433
27434         maint.mk: tighten "test a == b" check
27435         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27436         test to files that contain something like #!/bin/sh.
27437         Without this, coreutils would get two false positives in
27438         the comments of C source files.
27439
27440 2010-11-12  Eric Blake  <eblake@redhat.com>
27441
27442         bootstrap: fix typo in previous attempt
27443         * build-aux/bootstrap (buildreq): Correct the grouping.
27444         Reported by Paul Eggert.
27445
27446         maintainer-makefile: prohibit test x == x
27447         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27448         Based on a report by Matthias Bolte.
27449
27450         bootstrap: allow FreeBSD gzip
27451         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27452         which has no '.' and goes to stderr.
27453         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27454         Reported by Matthias Bolte.
27455
27456         maintainer-makefile: check for i18n setup
27457         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27458         will likely work.
27459
27460 2010-11-12  Bruno Haible  <bruno@clisp.org>
27461
27462         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27463         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27464         * lib/nanosleep.c (nanosleep): Likewise.
27465
27466 2010-11-11  Bruno Haible  <bruno@clisp.org>
27467
27468         fcntl-h: Fix for use of C++ on glibc systems.
27469         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27470         also on glibc systems in C++ mode.
27471         Reported by Gary V. Vaughan <gary@gnu.org>.
27472
27473 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27474
27475         mknod: avoid false failure with dash
27476         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27477
27478 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27479
27480         unlink: Fix "is it should" typo in diagnostic.
27481         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27483
27484 2010-11-11  Bruno Haible  <bruno@clisp.org>
27485
27486         Tests for module 'strerror_r-posix'.
27487         * modules/strerror_r-posix-tests: New file.
27488         * tests/test-strerror_r.c: New file.
27489         * tests/test-string-c++.cc: Check the signature of strerror_r.
27490
27491         New module 'strerror_r-posix'.
27492         * lib/string.in.h (strerror_r): New declaration.
27493         * lib/strerror_r.c: New file.
27494         * m4/strerror_r.m4: New file.
27495         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27496         of strerror_r.
27497         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27498         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27499         * modules/strerror_r-posix: New file.
27500         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27501         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27502         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27503         portability problems.
27504
27505 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27506
27507         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27508         line is also considered for output. Quoted function name in shell
27509         command, so temporary files for functions like MyClass::operator()
27510         are removed correctly without errors.
27511
27512 2010-11-09  Bruno Haible  <bruno@clisp.org>
27513
27514         * doc/posix-functions/strerror.texi: List more failing platforms.
27515
27516         * doc/posix-functions/strerror.texi: Add a comment.
27517
27518 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27519
27520         fdopendir: fix bug on MacOS X when low on file descriptors
27521
27522         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27523         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27524         All callers changed.
27525         (fdopendir): Invoke save_cwd at the top level, not after using
27526         multiple dup() calls to use up file descriptors.  Then retry
27527         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27528         less than the maximum number of open file descriptors, because
27529         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27530         on Mac OS X 10.6.4 for tar 1.24
27531         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27532         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27533         and for tar 1.25
27534         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27535
27536 2010-11-07  Bruno Haible  <bruno@clisp.org>
27537
27538         vasnprintf: Support I flag on glibc systems.
27539         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27540         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27541         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27542         snprintf function.
27543         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27544         glibc systems.
27545         * tests/test-vasnprintf-posix3.c: New file.
27546         * modules/vasnprintf-posix-tests (Files): Add it.
27547         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27548
27549 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27550
27551         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27552         * MODULES.html.sh: For compiler warnings, use name
27553         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27554
27555 2010-11-05  Eric Blake  <eblake@redhat.com>
27556
27557         ceil, floor: avoid spurious failure with icc
27558         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27559         [denormals-as-zero] when optimizing without -mieee-fp option.
27560         * tests/test-floorf2.c (floorf_reference): Likewise.
27561         * tests/test-ceilf1.c (dummy): New function.
27562         (main): Use it to outsmart icc's optimization.
27563         * tests/test-floorf1.c (dummy, main): Likewise.
27564
27565         tests: require working signbit
27566         * modules/ceilf-tests (Depends-on): Add signbit.
27567         * modules/ceill-tests (Depends-on): Likewise.
27568         * modules/floorf-tests (Depends-on): Likewise.
27569         * modules/floorl-tests (Depends-on): Likewise.
27570         * modules/round-tests (Depends-on): Likewise.
27571         * modules/roundf-tests (Depends-on): Likewise.
27572         * modules/roundl-tests (Depends-on): Likewise.
27573         * modules/trunc-tests (Depends-on): Likewise.
27574         * modules/truncf-tests (Depends-on): Likewise.
27575         * modules/truncl-tests (Depends-on): Likewise.
27576
27577         strtod: work around icc bug
27578         * lib/strtod.c (minus_zero): Define to working value.
27579         (strtod): Use it to avoid icc bug.
27580
27581         copysign: enhance tests
27582         * modules/copysign-tests (Files): Add minus-zero.h.
27583         * tests/test-copysign.c (main): Also test zeros.
27584
27585 2010-11-04  Eric Blake  <eblake@redhat.com>
27586
27587         ceil, floor, round, trunc: enhance tests of -0
27588         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27589         * tests/test-ceill.c (main): Likewise.
27590         * tests/test-floorf1.c (main): Likewise.
27591         * tests/test-floorl.c (main): Likewise.
27592         * tests/test-round1.c (main): Likewise.
27593         * tests/test-roundf1.c (main): Likewise.
27594         * tests/test-roundl.c (main): Likewise.
27595         * tests/test-trunc1.c (main): Likewise.
27596         * tests/test-truncf1.c (main): Likewise.
27597         * tests/test-truncl.c (main): Likewise.
27598
27599 2010-11-04  Eric Blake  <eblake@redhat.com>
27600
27601         frexp, tests: work around ICC bug with -zero
27602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27603         works with more compilers.
27604         * tests/minus-zero.h: New file.
27605         * modules/ceilf-tests (Files): Include it.
27606         * modules/ceill-tests (Files): Likewise.
27607         * modules/floorf-tests (Files): Likewise.
27608         * modules/floorl-tests (Files): Likewise.
27609         * modules/frexp-nolibm-tests (Files): Likewise.
27610         * modules/frexp-tests (Files): Likewise.
27611         * modules/frexpl-nolibm-tests (Files): Likewise.
27612         * modules/frexpl-tests (Files): Likewise.
27613         * modules/isnan-tests (Files): Likewise.
27614         * modules/isnand-nolibm-tests (Files): Likewise.
27615         * modules/isnand-tests (Files): Likewise.
27616         * modules/isnanf-nolibm-tests (Files): Likewise.
27617         * modules/isnanf-tests (Files): Likewise.
27618         * modules/isnanl-nolibm-tests (Files): Likewise.
27619         * modules/isnanl-tests (Files): Likewise.
27620         * modules/round-tests (Files): Likewise.
27621         * modules/roundf-tests (Files): Likewise.
27622         * modules/roundl-tests (Files): Likewise.
27623         * modules/ldexpl-tests (Files): Likewise.
27624         * modules/signbit-tests (Files): Likewise.
27625         * modules/snprintf-posix-tests (Files): Likewise.
27626         * modules/sprintf-posix-tests (Files): Likewise.
27627         * modules/strtod-tests (Files): Likewise.
27628         * modules/trunc-tests (Files): Likewise.
27629         * modules/truncf-tests (Files): Likewise.
27630         * modules/truncl-tests (Files): Likewise.
27631         * modules/vsnprintf-posix-tests (Files): Likewise.
27632         * modules/vsprintf-posix-tests (Files): Likewise.
27633         * modules/vasnprintf-posix-tests (Files): Likewise.
27634         * modules/vasprintf-posix-tests (Files): Likewise.
27635         * tests/test-ceilf1.c (main): Use it.
27636         * tests/test-ceill.c (main): Likewise.
27637         * tests/test-floorf1.c (main): Likewise.
27638         * tests/test-floorl.c (main): Likewise.
27639         * tests/test-frexp.c (main): Likewise.
27640         * tests/test-frexpl.c (main): Likewise.
27641         * tests/test-isnan.c (main): Likewise.
27642         * tests/test-isnand.h (main): Likewise.
27643         * tests/test-isnanf.h (main): Likewise.
27644         * tests/test-isnanl.h (main): Likewise.
27645         * tests/test-ldexpl.c (main): Likewise.
27646         * tests/test-round.c (main): Likewise.
27647         * tests/test-roundf.c (main): Likewise.
27648         * tests/test-roundl.c (main): Likewise.
27649         * tests/test-signbit.c (test_signbitf, test_signbitd)
27650         (test_signbitl): Likewise.
27651         * tests/test-snprintf-posix.h (test_function): Likewise.
27652         * tests/test-sprintf-posix.h (test_function): Likewise.
27653         * tests/test-strtod.c (main): Likewise.
27654         * tests/test-trunc1.c (main): Likewise.
27655         * tests/test-truncf1.c (main): Likewise.
27656         * tests/test-truncl.c (main): Likewise.
27657
27658         isnanl: work around icc bug
27659         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27660
27661 2010-11-03  Eric Blake  <eblake@redhat.com>
27662
27663         tests: fix compiler warnings
27664         * tests/test-getopt.h (test_getopt): Fix condition.
27665         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27666         * tests/test-pipe2.c (main): Likewise.
27667         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27668
27669         utimens: fix broken m4 test
27670         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27671
27672 2010-10-28  Bruno Haible  <bruno@clisp.org>
27673
27674         posix_spawn*, getdtablesize: Relax license.
27675         * modules/posix_spawn (License): Change to LGPLv2+.
27676         * modules/posix_spawnp (License): Likewise.
27677         * modules/posix_spawn-internal (License): Likewise.
27678         * modules/posix_spawnattr_init (License): Likewise.
27679         * modules/posix_spawnattr_getflags (License): Likewise.
27680         * modules/posix_spawnattr_setflags (License): Likewise.
27681         * modules/posix_spawnattr_getpgroup (License): Likewise.
27682         * modules/posix_spawnattr_setpgroup (License): Likewise.
27683         * modules/posix_spawnattr_getschedparam (License): Likewise.
27684         * modules/posix_spawnattr_setschedparam (License): Likewise.
27685         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27686         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27687         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27688         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27689         * modules/posix_spawnattr_getsigmask (License): Likewise.
27690         * modules/posix_spawnattr_setsigmask (License): Likewise.
27691         * modules/posix_spawnattr_destroy (License): Likewise.
27692         * modules/posix_spawn_file_actions_init (License): Likewise.
27693         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27694         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27695         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27696         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27697         * modules/getdtablesize (License): Likewise.
27698         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27699
27700 2010-10-26  Bruno Haible  <bruno@clisp.org>
27701
27702         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27703         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27704         Cygwin and mingw.
27705         Suggested by Eric Blake.
27706
27707 2010-10-26  Bruno Haible  <bruno@clisp.org>
27708
27709         stdio: Work around compilation error due to renameat() on Solaris 10.
27710         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27711         * lib/renameat.c: Don't include <unistd.h> here.
27712         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27713         Reported by Paul Eggert and Eric Blake.
27714
27715 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27716
27717         renameat: port to Solaris 10, which declares renameat in unistd.h
27718
27719         * lib/renameat.c: Include unistd.h before stdio.h, because
27720         Solaris 10 declares renameat in unistd.h.  Problem encountered
27721         when building GNU tar 1.24 on Solaris 10.
27722
27723 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27724
27725         fdopendir: fix C89 compilation
27726         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27727         compilers.
27728
27729 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27730
27731         inttostr: simplify by removing unnecessary redundancy
27732         * lib/anytostr.c: Don't include verify.h.
27733         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27734         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27735         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27736         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27737         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27738         Likewise.
27739         * modules/inttostr (Depends-on): Remove 'verify'.
27740
27741 2010-10-23  Bruno Haible  <bruno@clisp.org>
27742
27743         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27744         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27745         Reported by Eric Blake.
27746
27747 2010-10-23  Bruno Haible  <bruno@clisp.org>
27748
27749         Tests: Fix LOCALE_JA on MirBSD 10.
27750         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27751         to an UTF-8 locale.
27752         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27753         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27754         Reported by Eric Blake.
27755
27756 2010-10-21  Bruno Haible  <bruno@clisp.org>
27757
27758         nl_langinfo test: Avoid test failure on NetBSD 5.
27759         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27760         Reported by Eric Blake.
27761
27762 2010-10-21  Eric Blake  <eblake@redhat.com>
27763
27764         c-stack: work around libsigsegv 2.8 bug
27765         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27766         overflow on at least PowerPC64.
27767
27768 2010-10-17  Bruno Haible  <bruno@clisp.org>
27769
27770         userspec: Drop redundant file.
27771         * modules/userspec (Files): Remove lib/inttostr.h.
27772
27773 2010-10-17  Bruno Haible  <bruno@clisp.org>
27774
27775         nl_langinfo tests: Silence some warnings.
27776         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27777         Reported by Jim Meyering.
27778
27779 2010-10-17  Bruno Haible  <bruno@clisp.org>
27780
27781         Make use of GCC's attribute __alloc_size__.
27782         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27783         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27784         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27785         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27786         __alloc_size__.
27787         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27788         Suggested by Jim Meyering.
27789
27790 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27791
27792         bootstrap: anchor .gitignore entries.
27793         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27794         with...
27795         (insert_vc_ignore): ... this new function, which prepends `/' to
27796         all .gitignore entries before passing them to
27797         insert_sorted_if_absent.
27798
27799 2010-10-16  Bruno Haible  <bruno@clisp.org>
27800
27801         nextafter: Fix configure check.
27802         * modules/nextafter (configure.ac): Correct expected prototype.
27803
27804 2010-10-16  Bruno Haible  <bruno@clisp.org>
27805
27806         termios: Update documentation.
27807         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27808
27809 2010-10-16  Bruno Haible  <bruno@clisp.org>
27810
27811         tests: Make them compile with TinyCC.
27812         * tests/test-strstr.c (main): Remove parentheses around array
27813         initializer.
27814
27815 2010-10-15  Eric Blake  <eblake@redhat.com>
27816
27817         ignore-value: make header idempotent
27818         * lib/ignore-value.h: Add double-inclusion guards.
27819         Reported by Stefan Berger.
27820
27821 2010-10-15  Jim Meyering  <meyering@redhat.com>
27822
27823         GNUmakefile: handle "stable" target, not "major"
27824         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27825         lists in maint.mk and announce-gen.  Without this, "make stable"
27826         would fail to ensure that $(VERSION) is up to date.
27827
27828 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27829
27830         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27831         & co.
27832
27833 2010-10-14  Bruno Haible  <bruno@clisp.org>
27834
27835         vasnprintf: Don't set errno to 0.
27836         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27837         block that sets it to 0.
27838         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27839
27840 2010-10-14  Bruno Haible  <bruno@clisp.org>
27841
27842         socketlib: Fix.
27843         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27844         gl_PREREQ_SYS_H_WINSOCK2.
27845         Reported by Ian Beckwith <ianb@erislabs.net>.
27846
27847 2010-10-13  Jim Meyering  <meyering@redhat.com>
27848
27849         test-select-stdin.c: avoid warn_unused_result warnings
27850         * tests/test-select-stdin.c: Include "macros.h".
27851         ASSERT that read and fflush succeed.
27852
27853 2010-10-13  Jim Meyering  <meyering@redhat.com>
27854
27855         git-version-gen: do require git-VC'd files in cwd
27856         * build-aux/git-version-gen: Reject a git version string
27857         if there are no commits associated with the current directory.
27858         This avoids an unlikely false-positive (unrelated dir whose parent
27859         repository also contains a tag matching v*), as pointed out
27860         by Giuseppe Scrivano in
27861         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27862
27863 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27864
27865         argv-iter: omit nonconforming declaration
27866         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27867         enum arg_iter_err declaration, which doesn't conform to C99.
27868         Solaris 10 cc warns about this.
27869
27870 2010-10-13  Eric Blake  <eblake@redhat.com>
27871
27872         termios: fix compilation on mingw
27873         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27874         (gl_TERMIOS_H): Adjust it on mingw.
27875         * modules/termios (Makefile.am): Substitute new key.
27876         * lib/termios.in.h (includes): Make include_next conditional.
27877         * doc/posix-headers/termios.texi (termios.h): Update
27878         documentation.
27879         Reported by Daniel P. Berrange.
27880
27881 2010-10-13  Jim Meyering  <meyering@redhat.com>
27882
27883         git-version-gen: don't require that .git/ be in the current dir
27884         * build-aux/git-version-gen: Adjust this script so that it works
27885         when run from any working directory beneath the top-level .git/-
27886         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27888
27889         test-select: avoid warn_unused_result warnings
27890         * tests/test-select.c: Include "macros.h".
27891         ASSERT that each call to read, write, and pipe succeeds.
27892         While not technically required, also check each "close".
27893         * modules/select-tests (Files): Add tests/macros.h.
27894
27895         test-symlinkat: remove declaration of unused local
27896         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27897
27898         test-inttostr: avoid shadowing warnings
27899         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27900         and use malloc rather than the stack for the same reason as
27901         mentioned in the comment justifying the other allocation.
27902
27903 2010-10-11  Bruno Haible  <bruno@clisp.org>
27904
27905         stdlib: Allow multiple gnulib generated replacements to coexist.
27906         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27907         Reported by Sam Steingold <sds@gnu.org>.
27908
27909 2010-10-11  Jim Meyering  <meyering@redhat.com>
27910
27911         fix a documentation typo
27912         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27913
27914 2010-10-11  Eric Blake  <eblake@redhat.com>
27915
27916         futimens: work around Solaris 11 bug
27917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27918         * tests/test-futimens.h (test_futimens): Enhance, rather than
27919         weaken test.
27920         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27921
27922 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27923
27924         Indentation.
27925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27926         higher-level operators more to the left.
27927
27928 2010-10-11  Jim Meyering  <meyering@redhat.com>
27929
27930         test-futimens: avoid unwarranted test failure on Solaris 5.11
27931         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27932         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27933         because it tries to dereference the NULL name argument.
27934
27935 2010-10-11  Bruno Haible  <bruno@clisp.org>
27936
27937         Indentation.
27938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27939         indentation.
27940
27941 2010-10-11  Jim Meyering  <meyering@redhat.com>
27942
27943         spawn.in.h: make indentation consistent with parentheses
27944         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27945         Make indentation consistent with parentheses.
27946
27947 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27948
27949         Fix mismatched parens in previous commit
27950         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27951         parens.
27952
27953 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27956
27957         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27958         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27959         * lib/malloca.c: Include "verify.h".
27960         (verify1): Remove, replacing with a verify call.
27961         * lib/relocwrapper.c (verify1): Likewise.
27962         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27963         Likewise.
27964         * modules/malloca (Depends-on): Add 'verify'.
27965         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27966         * modules/vasnprintf (Depends-on): Add 'verify'.
27967         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27968         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27969         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27970         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27971         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27972         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27973         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27974
27975         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27976
27977         Formerly the style was sometimes 2*X - 1, because the C standard
27978         was wrongly thought to disallow ?: in integral constant expressions.
27979         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27980         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27981         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27982         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27983         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27984         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27985         verify that time_t cannot be floating.
27986
27987 2010-10-08  Eric Blake  <eblake@redhat.com>
27988
27989         time: enforce recent POSIX ruling that time_t is integral
27990         * lib/time.in.h (__time_t_must_be_integral): Detect any
27991         problematic systems, allowing the rest of gnulib to assume POSIX.
27992
27993 2010-10-08  Jim Meyering  <meyering@redhat.com>
27994
27995         fdopendir: fix a bug on systems lacking openat and /proc support
27996         OpenBSD 4.7 is one such system.  The most noticeable effect was
27997         failure of any application making nontrivial use of fts: rm, du,
27998         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27999           ./rm: traversal failed: `a': Bad file descriptor
28000         Debugging that, you see that even though FD 6 was closed just
28001         prior to the opendir call in fd_clone_opendir, its resulting
28002         dir->dd_fd was 8, rather than the expected value of 6:
28003
28004         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28005         93                close (fd);
28006         (gdb) n
28007         94                dir = fd_clone_opendir (dupfd);
28008         (gdb) n
28009         95                saved_errno = errno;
28010         (gdb) p dir->dd_fd
28011         $11 = 8
28012
28013         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28014         The problem is that on OpenBSD, fd_clone_opendir has to resort
28015         to using the old-style save/restore CWD mechanism, due to its
28016         lack of openat/proc support, and *that* would steal the FD (6)
28017         that opendir was supposed to use.
28018
28019         The fix is to squirrel away the desired FD so that save_cwd uses a
28020         different one, and then free the dest FD right before calling opendir.
28021         That guarantees opendir will use the required file descriptor.
28022
28023         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28024
28025 2010-10-08  Bruno Haible  <bruno@clisp.org>
28026
28027         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28028         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28029
28030 2010-10-08  Bruno Haible  <bruno@clisp.org>
28031
28032         nanosleep: Make replacement POSIX compliant.
28033         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28034         is out of range.
28035         Reported by Jim Meyering.
28036
28037 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28038
28039         bootstrap: add hook for altering gnulib.mk, for Bison
28040         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28041         the Bison bootstrapping process can rewrite file names and variables
28042         in this file before later parts of 'bootstrap' use the file.
28043         Bison wants to include lib/gnulib.mk from the top-level makefile,
28044         so it needs the file names in this file to be relative to the top
28045         level, not relative to lib; plus it needs variable names to be
28046         rewritten.
28047         (slurp): Use the new function.
28048
28049         bootstrap: reformat for readability
28050         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28051
28052 2010-10-08  Eric Blake  <eblake@redhat.com>
28053
28054         docs: update cygwin progress
28055         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28056         1.7.7.
28057         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28058         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28059         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28060         * doc/posix-functions/carg.texi (carg): Likewise.
28061         * doc/posix-functions/cargf.texi (cargf): Likewise.
28062         * doc/posix-functions/casin.texi (casin): Likewise.
28063         * doc/posix-functions/casinf.texi (casinf): Likewise.
28064         * doc/posix-functions/casinh.texi (casinh): Likewise.
28065         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28066         * doc/posix-functions/catan.texi (catan): Likewise.
28067         * doc/posix-functions/catanf.texi (catanf): Likewise.
28068         * doc/posix-functions/catanh.texi (catanh): Likewise.
28069         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28070         * doc/posix-functions/ccos.texi (ccos): Likewise.
28071         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28072         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28073         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28074         * doc/posix-functions/cexp.texi (cexp): Likewise.
28075         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28076         * doc/posix-functions/cimag.texi (cimag): Likewise.
28077         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28078         * doc/posix-functions/clog.texi (clog): Likewise.
28079         * doc/posix-functions/clogf.texi (clogf): Likewise.
28080         * doc/posix-functions/conj.texi (conj): Likewise.
28081         * doc/posix-functions/conjf.texi (conjf): Likewise.
28082         * doc/posix-functions/cpow.texi (cpow): Likewise.
28083         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28084         * doc/posix-functions/cproj.texi (cproj): Likewise.
28085         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28086         * doc/posix-functions/creal.texi (creal): Likewise.
28087         * doc/posix-functions/crealf.texi (crealf): Likewise.
28088         * doc/posix-functions/csin.texi (csin): Likewise.
28089         * doc/posix-functions/csinf.texi (csinf): Likewise.
28090         * doc/posix-functions/csinh.texi (csinh): Likewise.
28091         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28092         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28093         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28094         * doc/posix-functions/ctan.texi (ctan): Likewise.
28095         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28096         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28097         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28098         * doc/posix-headers/complex.texi (complex.h): Likewise.
28099
28100 2010-10-07  Jim Meyering  <meyering@redhat.com>
28101
28102         parse-datetime: avoid compilation failure on OpenBSD 4.7
28103         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28104         This works around a compilation failure on OpenBSD 4.7:
28105         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28106
28107 2010-10-07  Eric Blake  <eblake@redhat.com>
28108
28109         docs: update cygwin progress
28110         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28111         1.7.6.
28112         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28113         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28114         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28115         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28116         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28117         Likewise.
28118         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28119         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28120         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28121         Likewise.
28122         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28123         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28124         Likewise.
28125         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28126         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28127         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28128         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28129         Likewise.
28130         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28131         Likewise.
28132         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28133
28134         docs: update parse-datetime history
28135         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28136         documentation of this function's history and alternatives.
28137
28138         cygwin: use more robust version check
28139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28140         exclude an eventual cygwin 1.9.1.
28141         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28143         (gl_FUNC_STRCASESTR): Likewise.
28144         Reported by Bruno Haible.
28145
28146 2010-10-06  Bruno Haible  <bruno@clisp.org>
28147
28148         string, sys_select: Avoid #including large headers unless necessary.
28149         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28150         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28151         OSF/1, BeOS, Haiku.
28152         Reported by Jim Meyering.
28153
28154 2010-10-05  Eric Blake  <eblake@redhat.com>
28155
28156         memmem, strstr, strcasestr: fix bug with long periodic needle
28157         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28158         periodic needle having false positive.
28159         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28160         and cygwin 1.7.7.
28161         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28163         (gl_FUNC_STRCASESTR): Likewise.
28164         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28165         * tests/test-memmem.c (main): Expose the bug.
28166         * tests/test-strcasestr.c (main): Likewise.
28167         * tests/test-strstr.c (main): Likewise.
28168         * tests/test-c-strcasestr.c (main): Likewise.
28169         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28170         * doc/posix-functions/strstr.texi (strstr): Likewise.
28171         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28172         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28173
28174 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28175
28176         parse-datetime: do some more renaming
28177         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28178         parse_datetime, not get_date.  Mention the renaming.
28179         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28180         in comments.
28181         * m4/bison.m4: Likewise.
28182
28183 2010-10-05  Eric Blake  <eblake@redhat.com>
28184
28185         parse-datetime: better name than get_date
28186         * NEWS: Reword the deprecation notice.
28187         * modules/get_date: Rename to modules/parse-datetime.
28188         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28189         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28190         * lib/get_date.y: Rename to lib/parse-datetime.y.
28191         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28192         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28193         * doc/getdate.texi: Provide fallback wrapper.
28194         * lib/getdate.h: Move guts, and wrap...
28195         * lib/parse-datetime.h: ...new file.
28196         * lib/parse-datetime.y (get_date): Rename...
28197         (parse_datetime): ...to this.
28198         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28199         (gl_PARSE_DATETIME): ...to this.
28200         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28201         documentation.
28202         * modules/getdate (Files): Provide fallback docs and header.
28203         (Notice, Depends-on): Update references.
28204         * tests/test-parse-datetime.c: Likewise.
28205         * DEPENDENCIES: Likewise.
28206         * MODULES.html.sh (Date and time <time.h>): Likewise.
28207         * doc/parse-datetime.texi (Date input formats)
28208         (Authors of parse_datetime): Likewise.
28209         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28210         (Include): Likewise.
28211         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28212         * gnulib-tool: Likewise.
28213         * m4/bison.m4 (gl_BISON): Likewise.
28214         Suggested by Bruno Haible.
28215
28216 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28217
28218         more ports to Solaris tr, which needs [] around ranges
28219         * gnulib-tool: Solaris tr needs [] around ranges.
28220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28221         * tests/test-pipe-filter-gi1.c (main): Likewise.
28222         * tests/test-pipe-filter-ii1.c (main): Likewise.
28223
28224 2010-10-05  Eric Blake  <eblake@redhat.com>
28225
28226         bootstrap: fix Solaris regression
28227         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28228         around ranges.
28229         Reported by Pádraig Brady.
28230
28231         bootstrap: work with pkg-config
28232         * build-aux/bootstrap (check_versions): Also transliterate - in
28233         prerequisite name.
28234         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28235         prerequisites that were already found, to avoid confusion.
28236         Reported by Justin Clift.
28237
28238         faccessat: remove unused wrappers
28239         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28240         presence of these wrappers dragged in -lgen on Solaris.
28241         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28242
28243 2010-10-05  Jim Meyering  <meyering@redhat.com>
28244
28245         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28246         * Makefile (sc_pragma_columns): New syntax-check rule.
28247
28248 2010-10-04  Bruno Haible  <bruno@clisp.org>
28249
28250         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28251         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28252         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28253         Reported by Bruce Korb and Eric Blake.
28254
28255 2010-10-04  Bruno Haible  <bruno@clisp.org>
28256
28257         threadlib: Make option --with-libpth-prefix work.
28258         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28259         use $LIBPTH, not just -lpth.
28260
28261 2010-10-04  Bruno Haible  <bruno@clisp.org>
28262
28263         Avoid line length limitation from HP NonStop system header files.
28264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28265         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28266         * lib/ctype.in.h: Likewise.
28267         * lib/dirent.in.h: Likewise.
28268         * lib/errno.in.h: Likewise.
28269         * lib/fcntl.in.h: Likewise.
28270         * lib/float.in.h: Likewise.
28271         * lib/getopt.in.h: Likewise.
28272         * lib/iconv.in.h: Likewise.
28273         * lib/inttypes.in.h: Likewise.
28274         * lib/langinfo.in.h: Likewise.
28275         * lib/locale.in.h: Likewise.
28276         * lib/math.in.h: Likewise.
28277         * lib/netdb.in.h: Likewise.
28278         * lib/netinet_in.in.h: Likewise.
28279         * lib/poll.in.h: Likewise.
28280         * lib/pthread.in.h: Likewise.
28281         * lib/pty.in.h: Likewise.
28282         * lib/sched.in.h: Likewise.
28283         * lib/se-selinux.in.h: Likewise.
28284         * lib/search.in.h: Likewise.
28285         * lib/signal.in.h: Likewise.
28286         * lib/spawn.in.h: Likewise.
28287         * lib/stdarg.in.h: Likewise.
28288         * lib/stddef.in.h: Likewise.
28289         * lib/stdint.in.h: Likewise.
28290         * lib/stdio.in.h: Likewise.
28291         * lib/stdlib.in.h: Likewise.
28292         * lib/string.in.h: Likewise.
28293         * lib/strings.in.h: Likewise.
28294         * lib/sys_file.in.h: Likewise.
28295         * lib/sys_ioctl.in.h: Likewise.
28296         * lib/sys_select.in.h: Likewise.
28297         * lib/sys_socket.in.h: Likewise.
28298         * lib/sys_stat.in.h: Likewise.
28299         * lib/sys_time.in.h: Likewise.
28300         * lib/sys_times.in.h: Likewise.
28301         * lib/sys_utsname.in.h: Likewise.
28302         * lib/sys_wait.in.h: Likewise.
28303         * lib/sysexits.in.h: Likewise.
28304         * lib/termios.in.h: Likewise.
28305         * lib/time.in.h: Likewise.
28306         * lib/unistd.in.h: Likewise.
28307         * lib/wchar.in.h: Likewise.
28308         * lib/wctype.in.h: Likewise.
28309         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28310         * modules/ctype (Makefile.am): Likewise.
28311         * modules/dirent (Makefile.am): Likewise.
28312         * modules/errno (Makefile.am): Likewise.
28313         * modules/fcntl-h (Makefile.am): Likewise.
28314         * modules/float (Makefile.am): Likewise.
28315         * modules/getopt-posix (Makefile.am): Likewise.
28316         * modules/iconv-h (Makefile.am): Likewise.
28317         * modules/inttypes (Makefile.am): Likewise.
28318         * modules/langinfo (Makefile.am): Likewise.
28319         * modules/locale (Makefile.am): Likewise.
28320         * modules/math (Makefile.am): Likewise.
28321         * modules/netdb (Makefile.am): Likewise.
28322         * modules/netinet_in (Makefile.am): Likewise.
28323         * modules/poll-h (Makefile.am): Likewise.
28324         * modules/pthread (Makefile.am): Likewise.
28325         * modules/pty (Makefile.am): Likewise.
28326         * modules/sched (Makefile.am): Likewise.
28327         * modules/search (Makefile.am): Likewise.
28328         * modules/selinux-h (Makefile.am): Likewise.
28329         * modules/signal (Makefile.am): Likewise.
28330         * modules/spawn (Makefile.am): Likewise.
28331         * modules/stdarg (Makefile.am): Likewise.
28332         * modules/stddef (Makefile.am): Likewise.
28333         * modules/stdint (Makefile.am): Likewise.
28334         * modules/stdio (Makefile.am): Likewise.
28335         * modules/stdlib (Makefile.am): Likewise.
28336         * modules/string (Makefile.am): Likewise.
28337         * modules/strings (Makefile.am): Likewise.
28338         * modules/sys_file (Makefile.am): Likewise.
28339         * modules/sys_ioctl (Makefile.am): Likewise.
28340         * modules/sys_select (Makefile.am): Likewise.
28341         * modules/sys_socket (Makefile.am): Likewise.
28342         * modules/sys_stat (Makefile.am): Likewise.
28343         * modules/sys_time (Makefile.am): Likewise.
28344         * modules/sys_times (Makefile.am): Likewise.
28345         * modules/sys_utsname (Makefile.am): Likewise.
28346         * modules/sys_wait (Makefile.am): Likewise.
28347         * modules/sysexits (Makefile.am): Likewise.
28348         * modules/termios (Makefile.am): Likewise.
28349         * modules/time (Makefile.am): Likewise.
28350         * modules/unistd (Makefile.am): Likewise.
28351         * modules/wchar (Makefile.am): Likewise.
28352         * modules/wctype (Makefile.am): Likewise.
28353
28354 2010-10-04  Bruno Haible  <bruno@clisp.org>
28355
28356         read-file tests: Avoid a test failure on NonStop Kernel.
28357         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28358         a regular file.
28359         Reported by Joachim Schmitz <schmitz@hp.com>.
28360
28361 2010-10-03  Bruno Haible  <bruno@clisp.org>
28362
28363         gnulib-tool: Fixes for --create-testdir with --libtool.
28364         * gnulib-tool (func_get_automake_snippet): Don't augment
28365         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28366         an executable.
28367         (func_create_testdir): Handle module 'alloca' like func_import.
28368         Reported by Bruce Korb <bruce.korb@gmail.com>.
28369
28370 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28371
28372         Avoid some lines longer than 80 characters.
28373         * lib/stdint.in.h: Break long comment lines.
28374         * lib/math.in.h: Likewise.
28375         (_GL_NUM_UINT_WORDS): New macro, for readability.
28376         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28377         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28378         * lib/stdlib.in.h: Likewise.
28379         * lib/spawn.in.h: Likewise.
28380         * lib/sys_socket.in.h: Update an URL.
28381         * lib/sys_stat.in.h: Break long line.
28382
28383 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28384
28385         Improve pmccabe2html.
28386         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28387         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28388         when the sources change. Remove the line in the HTML about "Used
28389         ranges" (which implied that there might be other unused ranges),
28390         rename "Resume" to "Summary" (easier to understand for more users).
28391         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28392         styles, and some unnecessary blank lines.
28393
28394 2010-10-03  Bruno Haible  <bruno@clisp.org>
28395             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28396
28397         acl: Add support for ACLs on NonStop Kernel.
28398         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28399         Check whether the function aclsort() exists.
28400         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28401         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28402         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28403         (acl_nontrivial [HAVE_ACLSORT]: New function.
28404         (file_has_acl): Implement for NonStop Kernel.
28405         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28406         (qset_acl): Implement for NonStop Kernel.
28407         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28408         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28409         (main): Implement for NonStop Kernel.
28410         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28411         Kernel. Handle this flavor.
28412         * tests/test-set-mode-acl.sh: Likewise.
28413         * tests/test-copy-acl.sh: Likewise.
28414         * tests/test-copy-file.sh: Likewise.
28415
28416 2010-10-03  Bruno Haible  <bruno@clisp.org>
28417
28418         Info about ACLs on NonStop Kernel.
28419         * doc/acl-resources.txt: Add info about NonStop Kernel.
28420         References by Joachim Schmitz <schmitz@hp.com>.
28421
28422 2010-10-02  Bruno Haible  <bruno@clisp.org>
28423
28424         Define missing EDQUOT on NonStop Kernel.
28425         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28426         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28428         missing.
28429         * doc/posix-headers/errno.texi: Mention the NSK bug.
28430         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28431         Reported by Joachim Schmitz <schmitz@hp.com>.
28432
28433 2010-10-02  Bruno Haible  <bruno@clisp.org>
28434
28435         Update doc for POSIX:2008.
28436         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28437         Update URL of POSIX specification.
28438
28439 2010-10-02  Bruno Haible  <bruno@clisp.org>
28440
28441         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28442         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28443         from gnulib, not from Automake.
28444
28445 2010-10-02  Bruno Haible  <bruno@clisp.org>
28446
28447         New module 'system-posix'.
28448         * modules/system-posix: New file.
28449         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28450         module is present.
28451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28452         GNULIB_SYSTEM_POSIX.
28453         * modules/stdlib (Depends-on): Remove sys_wait.
28454         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28455         * doc/posix-functions/system.texi: Mention the new module.
28456         * doc/posix-headers/stdlib.texi: Likewise.
28457         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28458         define test_sys_wait_macros to a no-op.
28459         Reported by Sam Steingold <sds@gnu.org>.
28460
28461 2010-09-30  Bruno Haible  <bruno@clisp.org>
28462
28463         More renaming from 'getdate' to 'get_date'.
28464         * doc/get_date.texi: Renamed from doc/getdate.texi.
28465         * modules/get_date (Files): Update.
28466         * MODULES.html.sh (Date and time <time.h>): Update.
28467         * DEPENDENCIES: Update.
28468         * gnulib-tool: Update comment.
28469         * m4/bison.m4 (gl_BISON): Likewise.
28470         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28471
28472 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28473
28474         bootstrap: support ACLOCAL_FLAGS during aclocal
28475         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28476         can add additional -I dir for third-party .m4 files.
28477
28478 2010-09-30  Eric Blake  <eblake@redhat.com>
28479
28480         bootstrap: use glibtoolize on MacOS
28481         * build-aux/bootstrap (check_versions): Convert libtool into
28482         libtoolize.
28483         (tool search): Move libtool check earlier, and look for
28484         glibtoolize for MacOS.
28485         (gnulib_tool_options): Auto-add --libtool when appropriate.
28486         Reported by Justin Clift.
28487
28488         poll: fix typo that broke test on MacOS
28489         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28490         Reported by Justin Clift.
28491
28492         getdate: rename to get_date
28493         Note: getdate.h is not renamed, to minimize client impact.
28494         * modules/getdate: Mark obsolete.  Move old contents...
28495         * modules/get_date: ...to new module name.
28496         * modules/getdate-tests: Move...
28497         * modules/get_date-tests: ...here.
28498         * m4/getdate.m4: Move...
28499         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28500         * lib/getdate.y: Move...
28501         * lib/get_date.y: ...here.
28502         * tests/test-getdate.c: Move...
28503         * tests/test-get_date.c: ...here.
28504         * doc/posix-functions/getdate.texi (getdate): Update name.
28505         * NEWS: Mention the change.
28506
28507 2010-09-29  Bruno Haible  <bruno@clisp.org>
28508
28509         Separate the module 'waitpid' from the module 'sys_wait'.
28510         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28511         present.
28512         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28513         gl_MODULE_INDICATOR_FOR_TESTS.
28514         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28515         * modules/sys_wait (Depends-on): Remove waitpid.
28516         (Makefile.am): Substitute GNULIB_WAITPID.
28517         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28518         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28519         signature only if the 'waitpid' module is present.
28520         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28521         * NEWS: Mention the change.
28522         * modules/grantpt (Depends-on): Add waitpid.
28523         * modules/wait-process (Depends-on): Likewise.
28524
28525 2010-09-29  Bruno Haible  <bruno@clisp.org>
28526
28527         More tests for module 'sys_wait'.
28528         * modules/sys_wait-c++-tests: New file.
28529         * tests/test-sys_wait-c++.cc: New file.
28530         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28531         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28532
28533 2010-09-29  Bruno Haible  <bruno@clisp.org>
28534
28535         New module 'waitpid'.
28536         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28537         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28538         Don't include <process.h>.
28539         (waitpid): Declare only, using modern idiom.
28540         * m4/waitpid.m4: New file.
28541         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28542         * modules/waitpid: New file.
28543         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28544         (Makefile.am): Update.
28545         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28546
28547 2010-09-28  Bruno Haible  <bruno@clisp.org>
28548
28549         poll: Assume ANSI C.
28550         * lib/poll.c (poll): Use an ANSI C declaration.
28551
28552 2010-09-28  Bruno Haible  <bruno@clisp.org>
28553
28554         poll-h: Create poll.h on all platforms.
28555         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28556         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28557         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28558         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28559         (gl_REPLACE_POLL_H): Don't set POLL_H.
28560         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28561         * modules/poll-h (Depends-on): Add include_next.
28562         (Makefile.am): Create poll.h unconditionally. Substitute also
28563         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28564
28565 2010-09-28  Bruno Haible  <bruno@clisp.org>
28566
28567         Tests for module 'poll-h'.
28568         * modules/poll-h-c++-tests: New file.
28569         * tests/test-poll-h-c++.cc: New file.
28570
28571         Tests for module 'poll-h'.
28572         * modules/poll-h-tests: New file.
28573         * tests/test-poll-h.c: New file.
28574
28575 2010-09-28  Bruno Haible  <bruno@clisp.org>
28576
28577         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28578         * modules/poll-h (Depends-on): Add 'extensions'.
28579
28580 2010-09-28  Bruno Haible  <bruno@clisp.org>
28581
28582         New module 'poll-h'.
28583         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28584         (poll): Use modern idiom.
28585         * modules/poll-h: New file.
28586         * modules/poll (Files): Remove lib/poll.in.h.
28587         (Depends-on): Add poll-h.
28588         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28589         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28590         * m4/poll_h.m4: New file.
28591         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28592         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28593         and invoke gl_REPLACE_POLL_H.
28594         * lib/poll.c: Use common idiom.
28595         * tests/test-poll.c: Likewise.
28596         * doc/posix-headers/poll.texi: Mention the poll-h module.
28597         Suggested by Eric Blake.
28598
28599 2010-09-26  Bruno Haible  <bruno@clisp.org>
28600
28601         sys_wait: Implement WSTOPSIG.
28602         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28603         Reported by Simon Josefsson.
28604
28605 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28606
28607         stdlib, sys_wait: Avoid compilation error on mingw.
28608         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28609
28610 2010-09-26  Bruno Haible  <bruno@clisp.org>
28611
28612         stdlib tests: Avoid code duplication.
28613         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28614         * modules/sys_wait-tests (Files): Likewise.
28615         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28616         * tests/test-stdlib.c: Include test-sys_wait.h.
28617         (main): Invoke test_sys_wait_macros.
28618         * tests/test-sys_wait.c: Include test-sys_wait.h.
28619         (main): Invoke test_sys_wait_macros.
28620
28621 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28622
28623         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28624         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28625         sure Windows sockets are working before calling getaddrinfo.
28626         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28627         * doc/gnulib.texi (Windows sockets): Fix typo.
28628
28629 2010-09-25  Bruno Haible  <bruno@clisp.org>
28630
28631         Tests for module 'regex-quote'.
28632         * modules/regex-quote-tests: New file.
28633         * tests/test-regex-quote.c: New file.
28634
28635         New module 'regex-quote'.
28636         * lib/regex-quote.h: New file.
28637         * lib/regex-quote.c: New file.
28638         * modules/regex-quote: New file.
28639         Suggested by Reuben Thomas <rrt@sc3d.org>.
28640
28641 2010-09-24  Bruno Haible  <bruno@clisp.org>
28642
28643         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28644         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28645
28646 2010-09-23  Bruno Haible  <bruno@clisp.org>
28647
28648         setenv: Relax license.
28649         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28650         Blake.
28651         Requested by Eric Blake.
28652
28653 2010-09-22  Bruno Haible  <bruno@clisp.org>
28654
28655         termios: Relax license.
28656         * modules/termios (License): Change to LGPLv2+.
28657         Requested by Eric Blake.
28658
28659 2010-09-22  Bruno Haible  <bruno@clisp.org>
28660
28661         threadlib: Allow the package to change the default to 'no'.
28662         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28663         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28664         Reported by Paul Eggert.
28665
28666 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28667             Bruno Haible  <bruno@clisp.org>
28668
28669         Fix endless loop in mbmemcasecoll.
28670         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28671         byte.
28672         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28673
28674 2010-09-22  Bruno Haible  <bruno@clisp.org>
28675
28676         Tests for module 'memcoll'.
28677         * modules/memcoll-tests: New file.
28678         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28679
28680         memcoll, xmemcoll: Clarify size vs. length.
28681         * modules/memcoll.c (memcoll0): Clarify specification.
28682         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28683         passed to collate_error.
28684
28685 2010-09-22  Bruno Haible  <bruno@clisp.org>
28686
28687         Tests for module 'memcasecmp'.
28688         * modules/memcasecmp-tests: New file.
28689         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28690
28691 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28692
28693         * lib/pthread.in.h: Add split double-inclusion guard, and include
28694         system <pthread.h> if there is one.  Use @@-style as in other
28695         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28696         pthread.h doesn't.
28697         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28698         (pthread_mutexattr_settype, pthread_mutex_trylock):
28699         New static inline functions, if there's no system <pthread.h>.
28700         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28701         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28702         Approximate with mutexes if the system lacks spinlocks, as in
28703         MacOS.
28704         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28705         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28706         @@-style.  Check for spinlocks separately.
28707         (gl_PTHREAD_DEFAULTS): New macro.
28708         * modules/pthread: Redo to use a more typical style for in.h files.
28709
28710 2010-09-21  Eric Blake  <eblake@redhat.com>
28711
28712         net_if: enhance tests
28713         * tests/test-net_if.c (main): Move signature checks earlier.
28714         Print failures to stderr.
28715         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28716         Document the bug that we do not yet fix.
28717
28718 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28719
28720         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28721         about gnulib, not GSS.
28722
28723 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28724
28725         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28726         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28727         for Emacs.
28728         * build-aux/pmccabe2html: Make Makefile.am example code more
28729         cut-and-paste friendly.
28730
28731 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28732
28733         * tests/test-net_if.c: New file.
28734         * modules/net_if-tests: New file.
28735
28736 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28737
28738         pthread: add pthread_spin_destroy
28739         * lib/pthread.in.h (pthread_spin_destroy): New function.
28740
28741 2010-09-19  Bruno Haible  <bruno@clisp.org>
28742
28743         gnulib-tool: Fix --help output.
28744         * gnulib-tool (func_usage): Fix help message.
28745         Reported by Reuben Thomas <rrt@sc3d.org>.
28746
28747 2010-09-18  Jim Meyering  <meyering@redhat.com>
28748
28749         maint.mk: avoid unexpanded \n in two diagnostics
28750         * top/maint.mk (sc_prohibit_always_true_header_tests):
28751         Don't use a literal \n in a halt=... assignment.  It would not be
28752         expanded, and the two \n bytes would appear in the diagnostic output
28753         rather than the desired newline.  Use halt=$$(printf ... instead.
28754         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28755
28756 2010-09-18  Bruno Haible  <bruno@clisp.org>
28757
28758         netinet_in: Doc tweak.
28759         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28760         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28761
28762 2010-09-18  Jim Meyering  <meyering@redhat.com>
28763
28764         init.sh: correct an outdated comment
28765         * tests/init.sh (create_exe_shims_):  s/function/alias/
28766
28767         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28768         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28769         a file named "*.exe" is removed between the glob expansion and the
28770         processing of that oddly named file.
28771
28772 2010-09-17  Eric Blake  <eblake@redhat.com>
28773
28774         mirbsd: add some more support
28775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28776         in BSD family.
28777         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28778         devices as OpenBSD.
28779         * m4/host-os.m4 (mirbsd): Add MirBSD.
28780
28781         tests: fix unportable assumption on sys/wait.h
28782         * tests/test-sys_wait.c (main): Relax test.
28783         * tests/test-stdlib.c (main): Likewise.
28784
28785         init.sh: accommodate directory with no .exes
28786         * tests/init.sh: Accomodate directory containing only scripts.
28787
28788         tests: avoid compiler warning
28789         * tests/test-stdlib.c (main): Use the variable.
28790
28791         fdutimens, fdutimensat: update signature, again
28792         * lib/utimens.h (gl_futimens): Delete, and move signature...
28793         (fdutimens): ...here.
28794         (fdutimensat): Rearrange signature.
28795         (lutimensat): Rename variable for clarity.
28796         * lib/fdutimensat.c (fdutimensat): Update signature.
28797         * lib/utimens.c (fdutimens): Likewise.
28798         (gl_futimens): Delete.
28799         (utimens, lutimens): Update callers.
28800         * lib/futimens.c (futimens): Likewise.
28801         * tests/test-fdutimensat.c: Likewise.
28802         * tests/test-utimens.c: Likewise.
28803         * tests/test-futimens.h: Update comment.
28804         * NEWS: Mention this.
28805         Suggested by Paul Eggert.
28806
28807 2010-09-17  Bruno Haible  <bruno@clisp.org>
28808
28809         Take over the maintenance of some older macros from Autoconf.
28810         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28811         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28812         GNU Autoconf.
28813         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28814         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28815
28816 2010-09-17  Eric Blake  <eblake@redhat.com>
28817
28818         fdutimensat: drop atflag validation
28819         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28820         with valid fd, to close a race scenario where futimens is
28821         unsupported and FILE was replaced by a symlink.
28822         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28823         accordingly.
28824         Suggested by Paul Eggert.
28825
28826 2010-09-16  Bruno Haible  <bruno@clisp.org>
28827
28828         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28829         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28830
28831 2010-09-16  Bruno Haible  <bruno@clisp.org>
28832
28833         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28834         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28835         login_tty exists.
28836         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28837
28838 2010-09-16  Bruno Haible  <bruno@clisp.org>
28839
28840         login_tty: Make the replacement code work on BSD systems.
28841         * lib/login_tty.c: Include <sys/ioctl.h>.
28842         (login_tty): Use ioctl TIOCSCTTY when available.
28843         * modules/login_tty (Depends-on): Add sys_ioctl.
28844         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28845
28846 2010-09-16  Bruno Haible  <bruno@clisp.org>
28847
28848         login_tty: Stricter unit test.
28849         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28850         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28851         and tcgetsid() after login_tty.
28852         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28853
28854 2010-09-16  Bruno Haible  <bruno@clisp.org>
28855
28856         New module 'tcgetsid'.
28857         * lib/tcgetsid.c: New file.
28858         * m4/tcgetsid.m4: New file.
28859         * modules/tcgetsid: New file.
28860         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28861         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28862         GNULIB_TCGETSID, HAVE_TCGETSID.
28863         * lib/termios.in.h: Include <sys/types.h>.
28864         (tcgetsid): New declaration.
28865         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28866         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28867         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28868         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28869
28870 2010-09-16  Bruno Haible  <bruno@clisp.org>
28871
28872         Tests for module 'termios'.
28873         * modules/termios-c++-tests: New file.
28874         * modules/termios-tests: New file.
28875         * tests/test-termios-c++.cc: New file.
28876         * tests/test-termios.c: New file.
28877
28878         New module 'termios'.
28879         * modules/termios: New file.
28880         * lib/termios.in.h: New file.
28881         * m4/termios_h.m4: New file.
28882         * doc/posix-headers/termios.texi: Mention the new module.
28883
28884 2010-09-16  Eric Blake  <eblake@redhat.com>
28885
28886         fdutimensat: add an atflag parameter
28887         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28888         * lib/utimens.h (fdutimensat): Update prototype.
28889         * tests/test-fdutimensat.c: Adjust test to match.
28890         * NEWS: Document the change.
28891         Suggested by Paul Eggert.
28892
28893 2010-09-16  Bruno Haible  <bruno@clisp.org>
28894
28895         Fix typos in comments.
28896         * lib/striconveh.h: Fix typo in comment.
28897         * lib/login_tty.c (login_tty): Likewise.
28898
28899 2010-09-15  Bruno Haible  <bruno@clisp.org>
28900
28901         stdlib: clarify MirBSD WEXITSTATUS bug
28902         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28903         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28904
28905 2010-09-15  Eric Blake  <eblake@redhat.com>
28906
28907         stdlib: work around MirBSD WEXITSTATUS bug
28908         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28909         * modules/stdlib (Depends-on): Add sys_wait.
28910         * tests/test-sys_wait.c (main): Enhance test.
28911         * tests/test-stdlib.c (main): Likewise.
28912         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28913
28914         docs: mention MacOS issue with WEXITSTATUS(constant)
28915         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28916         issue.
28917         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28918
28919         strnlen: add tests
28920         * modules/strnlen-tests: New file.
28921         * tests/test-strnlen.c: Likewise.
28922
28923 2010-09-14  Bruno Haible  <bruno@clisp.org>
28924
28925         unistr/base: Avoid link errors when module 'libunistring' is also used.
28926         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28927         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28928         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28929         Declare also when HAVE_LIBUNISTRING is set.
28930         Reported by Pádraig Brady <P@draigbrady.com>.
28931
28932 2010-09-14  Eric Blake  <eblake@redhat.com>
28933
28934         test-rawmemchr: make more robust
28935         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28936         (Depends-on, configure.ac): Add needed prerequisites to use it.
28937         * modules/memchr-tests (Files, Depends-on, configure.ac):
28938         Likewise, to avoid implicit reliance on memchr module prereqs.
28939         * tests/test-memchr.c (main): Ensure proper masking.
28940         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28941         reads.
28942
28943         memchr: detect glibc Alpha bug
28944         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28945         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28946         Alpha.
28947         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28948         * tests/test-memchr.c (main): Enhance test.
28949         Reported by Nelson H. F. Beebe.
28950
28951 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28952
28953         fts, getcwd, glob: audit for dirfd returning -1
28954         * lib/fts.c (opendir): Remove #define; no longer used.
28955         (opendirat): New arg PDIR_FD.  All callers changed.
28956         (fts_build, _opendir2): Use new opendirat to avoid the need for
28957         dirfd, or for checking whether dirfd returns a negative value.
28958         Don't use opendir; always use openat followed by fdopendir.
28959         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28960         it.
28961         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28962         returns -1 here.
28963         * modules/fts (Depends-on): Remove dirfd.
28964         * modules/getcwd (Depends-on): Likewise.
28965
28966 2010-09-13  Eric Blake  <eblake@redhat.com>
28967
28968         float: fix broken MirBSD header
28969         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28970         * doc/posix-headers/float.texi (float.h): Document it.
28971
28972 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28973
28974         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28975         * lib/fts.c (opendirat): New arg extra_flags.
28976         (__opendir2): Use it to avoid following symlinks when opening
28977         a directory, if symlinks are not supposed to be followed.  See
28978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28979
28980         fdopendir: preserve argument fd before returning
28981         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28982         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28983         (fdopendir): Use them, arranging for FD to be open to the same
28984         directory that it was when it started.  (It might be temporarily
28985         closed while fdopendir is running, so this not thread- or
28986         signal-safe.)  Be careful to do the right thing even when file
28987         descriptors are scarce and dup fails with errno == EMFILE.  See
28988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28989
28990 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28991
28992         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28993         * NEWS: Document change.
28994         * m4/regex.m4: Disable test for regoff_t size.
28995
28996 2010-09-13  Jim Meyering  <meyering@redhat.com>
28997
28998         fts: don't operate on an invalid file descriptor after failed dup
28999         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29000         negative file descriptor.
29001
29002 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29003
29004         savedir: add streamsavedir, deprecate fdsavedir
29005         * NEWS: Mention deprecation of fdsavedir.
29006         * lib/savedir.c (streamsavedir): New extern function, whose name
29007         ends in "savedir" to be consistent with the others.  This differs
29008         from savedirstream in that it doesn't close its argument.  The
29009         next version of GNU tar will use this instead of fdsavedir, to
29010         avoid some race conditions and conserve file descriptors.
29011         (savedirstream): Reimplement as a wrapper around streamsavedir.
29012         (fdsavedir): Add a comment deprecating this function.  As far as
29013         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29014         * lib/savedir.h (streamsavedir): New decl.
29015         (fdsavedir): Add a comment deprecating this.
29016
29017 2010-09-10  Bruno Haible  <bruno@clisp.org>
29018
29019         langinfo: Fix last commit.
29020         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29021         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29023
29024 2010-09-10  Bruno Haible  <bruno@clisp.org>
29025
29026         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29027         * lib/progreloc.c (O_EXEC): Define fallback.
29028
29029 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29030
29031         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29032         * NEWS: Document recent changes to fcntl-h.
29033         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29034         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29035         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29036         Similarly for O_SEARCH; this last was already true, but not documented.
29037         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29038         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29039         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29040         Likewise.
29041         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29042         is zero, not whether it is defined.
29043         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29044         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29045         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29046
29047 2010-09-10  Bruno Haible  <bruno@clisp.org>
29048
29049         langinfo, nl_langinfo: Fix for IRIX 5.3.
29050         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29051         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29052         HAVE_LANGINFO_YESEXPR.
29053         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29054         HAVE_LANGINFO_YESEXPR.
29055         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29056         HAVE_LANGINFO_T_FMT_AMPM is 0.
29057         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29058         HAVE_LANGINFO_YESEXPR is 0.
29059         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29060         NOEXPR.
29061         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29062         * doc/posix-functions/nl_langinfo.texi: Likewise.
29063         Reported by Eric Blake.
29064
29065 2010-09-10  Bruno Haible  <bruno@clisp.org>
29066
29067         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29068         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29069         on FreeBSD 8.0 and OpenBSD 4.6.
29070         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29071         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29072         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29073         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29074         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29075         ac_includes_default.
29076         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29077
29078 2010-09-09  Eric Blake  <eblake@redhat.com>
29079
29080         strsignal: work around NetBSD bug
29081         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29082         * lib/string.in.h (includes): Likewise.
29083         * doc/posix-functions/strsignal.texi (strsignal): Document the
29084         bug.
29085         Reported by Nelson H. F. Beebe.
29086
29087         gnulib-tool: work with NetBSD /bin/sh
29088         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29089         (func_get_description, func_get_comment, func_get_status)
29090         (func_get_notice, func_get_applicability, func_get_filelist)
29091         (func_get_dependencies, func_get_autoconf_early_snippet)
29092         (func_get_autoconf_snippet, func_get_automake_snippet)
29093         (func_get_include_directive, func_get_link_directive)
29094         (func_get_license, func_get_maintainer, func_import): Avoid
29095         shell syntax errors from parsing syntax extensions.
29096
29097 2010-09-09  Bruno Haible  <bruno@clisp.org>
29098
29099         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29100         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29101         a reliable way to determine whether the 'alias' command works.
29102
29103 2010-09-08  Jim Meyering  <meyering@redhat.com>
29104
29105         init.sh: penalize a set-x-impaired shell; don't disqualify it
29106         * tests/init.sh: Too many shells corrupt application stderr when
29107         you set -x, so we can't afford to disqualify them, since at least
29108         on Irix-6.5, that would disqualify all bourne shells.
29109         Instead, use a two-pass approach.
29110         On the first pass, try to find a shell that meets the stricter
29111         condition that set -x does not corrupt stderr.
29112         If no shell meets the stricter condition, retest each candidate
29113         shell, but without that extra condition.  Finally, when
29114         VERBOSE=yes is requested and set -x might cause trouble, simply
29115         issue a warning and refrain from enabling debug output.
29116
29117 2010-09-08  Eric Blake  <eblake@redhat.com>
29118
29119         unsetenv: fix OpenBSD bug
29120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29121         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29122         documentation.
29123         Reported by Jim Meyering.
29124
29125         strtod: work around IRIX 6.5 bug
29126         * lib/strtod.c (strtod): Reparse number on shorter string if
29127         exponent parse was invalid.
29128         * tests/test-strtod.c (main): Add check for "0x1p 2".
29129         Reported by Tom G. Christensen.
29130
29131         getopt: optimize previous patch
29132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29133         empty variable.  Speed up awk script.
29134         Reported by Paolo Bonzini.
29135
29136 2010-09-08  Jim Meyering  <meyering@redhat.com>
29137
29138         test.sh: disqualify shells for which set -x corrupts stderr
29139         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29140         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29141         appear in stderr output.  For example, this command:
29142             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29143         prints "P=1" on those two systems:
29144
29145 2010-09-08  Bruno Haible  <bruno@clisp.org>
29146
29147         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29148         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29149         commands, because some shells ignore redirections when there is an
29150         error in the command lookup.
29151         Reported by Eric Blake.
29152
29153 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29154
29155         * lib/regex.h: Fix a mention of `regex_compile' (should be
29156         `re_compile_pattern').
29157         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29158         (re_set_registers): Correct name of parameter in comment.
29159
29160         * doc/regex.texi: Add documentation for missing syntax flags.
29161         Remove commented-out documentation of defunct syntax option
29162         RE_NO_EMPTY_ALTS.
29163         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29164         Add documentation of re_set_registers.
29165         Document trick to re-use a pattern buffer by setting fastmap manually.
29166         Update documentation of struct re_pattern_buffer per public members.
29167         Uncomment documentation of equivalence class operators and
29168         collating symbol operators, since they are now implemented,
29169         Explain leftmost-longest matching in relation to alternatives.
29170         Tidy documentation of substring matching.
29171         Remove POSIX documentation, which is done better in
29172         glibc, and refer the reader there. Keep BSD API documentation, as
29173         that is not readily available elsewhere.
29174
29175 2010-09-07  Eric Blake  <eblake@redhat.com>
29176
29177         getopt: handle POSIXLY_CORRECT set but not exported
29178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29179         export state of POSIXLY_CORRECT, due to bash set -o posix.
29180         Reported by Dustin J. Mitchell.
29181
29182 2010-09-05  Bruno Haible  <bruno@clisp.org>
29183
29184         gnulib-tool: Highlight the changed options.
29185         * gnulib-tool (func_usage): Display the --import, --add-import,
29186         --remove-import explanations in bold font.
29187
29188 2010-09-06  Karl Berry  <karl@gnu.org>
29189
29190         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29191
29192 2010-09-05  Bruno Haible  <bruno@clisp.org>
29193
29194         uniwidth/width: Update comment.
29195         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29196         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29197
29198 2010-09-05  Bruno Haible  <bruno@clisp.org>
29199
29200         isinf, isnan: Relax license.
29201         * modules/isinf (License): Change from GPL to LGPL, with consent from
29202         Ben Pfaff.
29203         * modules/isnan (License): Likewise.
29204         Requested by Ludovic Courtès.
29205
29206 2010-09-04  Bruno Haible  <bruno@clisp.org>
29207
29208         gnulib-tool: Help migration from --import to --add-import or --update.
29209         * gnulib-tool: Emit a verbose error message when --import is used
29210         without any module name.
29211
29212 2010-09-04  Bruno Haible  <bruno@clisp.org>
29213
29214         Update doc about gnulib-tool.
29215         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29216         'gnulib-tool --update' in more detail.
29217         Reported by Eric Blake.
29218
29219 2010-09-04  Bruno Haible  <bruno@clisp.org>
29220
29221         gnulib-tool: Change --import. New options --add/remove-import.
29222         * gnulib-tool: New options --add-import, --remove-import.
29223         (func_usage): Document them.
29224         (have_associative): Define always.
29225         (func_import): In import mode, don't merge the specified settings with
29226         the cached settings. Implement remove-import mode.
29227         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29228         Explain when to use them versus --import.
29229         (Simple update): Use --add-import instead of --import.
29230         * NEWS: Mention the change.
29231
29232 2010-09-04  Bruno Haible  <bruno@clisp.org>
29233
29234         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29235         separate gnulib.mk.
29236
29237 2010-09-04  Bruno Haible  <bruno@clisp.org>
29238
29239         gnulib-tool: Don't talk about CVS any more.
29240         * gnulib-tool (func_usage, func_import): Write "version control"
29241         instead of CVS.
29242
29243 2010-09-04  Jim Meyering  <meyering@redhat.com>
29244
29245         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29246         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29247         false positives (whose names may be ill-chosen) when searching
29248         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29249         would cause a false-positive.
29250
29251         avoid coreutils "make distcheck" failure
29252         Coreutils tests with an absolute build directory name that contains
29253         a space.  Not quoting this directory name caused a failure.
29254         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29255         * tests/test-vc-list-files-cvs.sh: Likewise.
29256
29257 2010-09-04  Bruno Haible  <bruno@clisp.org>
29258
29259         gnulib-tool: Avoid error when run in a package without Makefile.am.
29260         * gnulib-tool: When collecting the m4dirs in a package that does not
29261         have a Makefile.am, eliminate those directories that contain no
29262         gnulib-cache.m4. Fix expression that counts these directories.
29263
29264 2010-09-04  Bruno Haible  <bruno@clisp.org>
29265
29266         update-copyright test: Improve output when perl is missing or too old.
29267         * tests/test-update-copyright.sh: Move test of Perl version down after
29268         the test whether Perl exists. Provide an explanation relating Perl's
29269         error message to Automake's SKIP: message.
29270
29271 2010-09-04  Bruno Haible  <bruno@clisp.org>
29272
29273         Don't augment PATH in TESTS_ENVIRONMENT.
29274         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29275         set abs_aux_dir instead of augmenting PATH.
29276         * modules/vc-list-files-tests (Makefile.am): Likewise.
29277         * tests/test-update-copyright.sh: Augment PATH here.
29278         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29279         path_prepend_.
29280         * tests/test-vc-list-files-git.sh: Likewise.
29281
29282 2010-09-04  Jim Meyering  <meyering@redhat.com>
29283
29284         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29285         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29286
29287 2010-09-04  Bruno Haible  <bruno@clisp.org>
29288
29289         strdup: Fix compilation error in C++ mode.
29290         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29291         the macro.
29292
29293 2010-09-04  Bruno Haible  <bruno@clisp.org>
29294
29295         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29296         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29297         macro into a function.
29298         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29299
29300 2010-09-04  Bruno Haible  <bruno@clisp.org>
29301
29302         Set PATH_SEPARATOR the same way autoconf does.
29303         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29304         the value of PATH_SEPARATOR the same way autoconf-generated configure
29305         scripts do.
29306         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29307         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29308
29309 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29310
29311         Set PATH_SEPARATOR the same way autoconf does.
29312         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29313         the same way autoconf-generated configure scripts do.
29314         * posix-modules: Likewise.
29315
29316 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         hash: fix safe_hasher const typo
29319         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29320         const; otherwise, there is a type error later.
29321
29322 2010-09-02  Jim Meyering  <meyering@redhat.com>
29323
29324         test-update-copyright.sh: require perl 5.8.0
29325         * tests/test-update-copyright.sh: Require 5.8.0,
29326         which Tom G. Christensen has confirmed is adequate,
29327         while 5.6.1 is not.
29328
29329 2010-09-02  Eric Blake  <eblake@redhat.com>
29330
29331         tests: init.sh improvements for re-exec'ing with zsh
29332         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29333         -vx through shell re-exec.
29334         Reported by Tom G. Christensen.
29335
29336         wctype: fix typo in previous commit
29337         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29338         Reported by Ludovic Courtès.
29339
29340 2010-09-02  Jim Meyering  <meyering@redhat.com>
29341
29342         test-update-copyright.sh: skip test if Perl is too old
29343         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29344         Reported by Tom G. Christensen.
29345
29346 2010-09-02  Bruno Haible  <bruno@clisp.org>
29347
29348         wctype: Avoid compilation error on IRIX 6.5.30.
29349         * lib/wctype.in.h (iswblank): Declare with a replacement if
29350         REPLACE_ISWBLANK is set.
29351         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29352         declared. Set REPLACE_ISWBLANK.
29353         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29354         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29355         * doc/posix-headers/wctype.texi: Likewise.
29356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29357
29358 2010-09-01  Bruno Haible  <bruno@clisp.org>
29359
29360         New module 'socketlib'.
29361         * modules/socketlib: New file.
29362         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29363         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29364         * modules/sockets (Depends-on): Add socketlib.
29365         Suggested by Sam Steingold <sds@gnu.org>.
29366
29367 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29368
29369         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29370
29371         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29372         when one needs search access to a directory but not read access.
29373         On systems where it is available, it works in some cases where
29374         O_RDONLY does not, namely on directories that are searchable but
29375         not readable, and which need only to be searchable.  If O_SEARCH
29376         is not available, fall back to the traditional method of using
29377         O_RDONLY.
29378
29379         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29380         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29381         when opening a directory that needs only to be searchable.
29382         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29383         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29384         * lib/openat-proc.c (openat_proc_name): Likewise.
29385         * lib/openat.c (openat_needs_fchdir): Likewise.
29386         * lib/save-cwd.c (save_cwd): Likewise.
29387         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29388
29389 2010-08-28  Bruno Haible  <bruno@clisp.org>
29390
29391         New module 'host-cpu-c-abi'.
29392         * modules/host-cpu-c-abi: New file.
29393         * m4/host-cpu-c-abi.m4: New file, based on part of
29394         clisp/src/m4/general.m4.
29395         Requested by Sam Steingold <sds@gnu.org>.
29396
29397 2010-08-31  Eric Blake  <eblake@redhat.com>
29398         and Jim Meyering  <meyering@redhat.com>
29399
29400         hash: factor, and guard against misbehaving hasher function
29401         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29402         of table->hasher's return value.  Also protect against a hash value
29403         so large that adding it to table->bucket results in a NULL pointer.
29404         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29405         Use it in place of open-coded check-and-abort.
29406
29407 2010-08-30  Bruno Haible  <bruno@clisp.org>
29408
29409         hash: silence spurious clang warning
29410         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29411         Reported by Eric Blake.
29412
29413 2010-08-30  Eric Blake  <eblake@redhat.com>
29414
29415         strstr, memmem, strcasestr: avoid leaked shell message
29416         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29417         FreeBSD.
29418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29420
29421         tests: silence clang warning
29422         * tests/test-malloca.c (do_allocation): Avoid dead store.
29423
29424 2010-08-29  Bruno Haible  <bruno@clisp.org>
29425
29426         gettext: Fix recent mistake.
29427         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29428
29429 2010-08-29  Bruno Haible  <bruno@clisp.org>
29430
29431         selinux-h: Offer a --without-selinux option.
29432         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29433         --without-selinux was specified, skip all tests and define
29434         HAVE_SELINUX_SELINUX_H to 0.
29435         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29436         set LIB_SELINUX to empty.
29437         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29438         gl_LIBSELINUX. If --without-selinux was specified, replace
29439         selinux/context.h.
29440         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29441
29442 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29443             Bruno Haible  <bruno@clisp.org>
29444
29445         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29446         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29447         of HAVE_REALLOC.
29448         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29449         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29450         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29451         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29452
29453 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29454             Bruno Haible  <bruno@clisp.org>
29455
29456         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29457         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29458         HAVE_CALLOC.
29459         * lib/xmalloc.c: Update accordingly.
29460         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29461         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29462         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29463
29464 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29465             Bruno Haible  <bruno@clisp.org>
29466
29467         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29468         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29469         HAVE_MALLOC.
29470         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29471         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29472         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29473
29474 2010-08-29  Bruno Haible  <bruno@clisp.org>
29475
29476         Update modules list.
29477         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29478         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29479         (String handling <string.h>): Add astrxfrm.
29480         (File system functions): Add readlinkat.
29481
29482 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29483
29484         Tests for module 'realloc-gnu'.
29485         * modules/realloc-gnu-tests: New file.
29486         * tests/test-realloc-gnu.c: New file.
29487
29488         Tests for module 'calloc-gnu'.
29489         * modules/calloc-gnu-tests: New file.
29490         * tests/test-calloc-gnu.c: New file.
29491
29492         Tests for module 'malloc-gnu'.
29493         * modules/malloc-gnu-tests: New file.
29494         * tests/test-malloc-gnu.c: New file.
29495
29496 2010-08-28  Bruno Haible  <bruno@clisp.org>
29497
29498         Rename module 'realloc' -> 'realloc-gnu'.
29499         * modules/realloc-gnu: New file, copied from modules/realloc.
29500         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29501         obsolete.
29502         * modules/mgetgroups (Depends-on): Update.
29503         * doc/posix-functions/realloc.texi: Update.
29504         * NEWS: Mention the change.
29505
29506         Rename module 'calloc' -> 'calloc-gnu'.
29507         * modules/calloc-gnu: New file, copied from modules/calloc.
29508         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29509         obsolete.
29510         * doc/posix-functions/calloc.texi: Update.
29511         * NEWS: Mention the change.
29512
29513         Rename module 'malloc' -> 'malloc-gnu'.
29514         * modules/malloc-gnu: New file, copied from modules/malloc.
29515         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29516         obsolete.
29517         * modules/argp (Depends-on): Update.
29518         * modules/regex (Depends-on): Update.
29519         * doc/posix-functions/malloc.texi: Update.
29520         * NEWS: Mention the change.
29521
29522 2010-08-28  Eric Blake  <eblake@redhat.com>
29523
29524         pread, pwrite: add missing dependency
29525         * modules/pread (Depends-on): Add extensions.
29526         * modules/pwrite (Depends-on): Likewise.
29527
29528 2010-08-28  Bruno Haible  <bruno@clisp.org>
29529
29530         unistr/u*-strchr: Fix tests dependencies.
29531         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29532         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29533         Reported by Ian Beckwith <ianb@erislabs.net>.
29534
29535 2010-08-28  Bruno Haible  <bruno@clisp.org>
29536
29537         read-file: Don't occupy too much unused memory.
29538         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29539
29540 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29541             Eric Blake  <eblake@redhat.com>
29542             Bruno Haible  <bruno@clisp.org>
29543
29544         read-file: Avoid memory reallocations with regular files.
29545         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29546         (fread_file): With regular files, use the remaining length as the
29547         initial buffer size.  Check against overflow.
29548         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29549         sys_stat.
29550
29551 2010-08-28  Bruno Haible  <bruno@clisp.org>
29552
29553         ftello: Relax license.
29554         * modules/ftello (License): Relax to LGPLv2+.
29555         Reported by Eric Blake.
29556
29557 2010-08-28  Bruno Haible  <bruno@clisp.org>
29558
29559         Avoid relocwrapper link errors due to gnulib replacement functions.
29560         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29561         function.
29562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29563
29564 2010-08-28  Bruno Haible  <bruno@clisp.org>
29565
29566         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29567         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29568         defined.
29569         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29570         Suggested by Eric Blake.
29571
29572 2010-08-28  Bruno Haible  <bruno@clisp.org>
29573
29574         sys_socket, netdb: Ensure socklen_t gets defined.
29575         * modules/sys_socket (Depends-on): Add socklen.
29576         * modules/netdb (Depends-on): Likewise.
29577         * modules/getaddrinfo (Depends-on): Remove socklen.
29578         * modules/getsockopt (Depends-on): Likewise.
29579         * modules/setsockopt (Depends-on): Likewise.
29580         * tests/test-sys_socket.c: Check that socklen_t is defined.
29581         * tests/test-netdb.c: Likewise.
29582         * m4/socklen.m4: Update comments.
29583         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29584
29585 2010-08-27  Eric Blake  <eblake@redhat.com>
29586
29587         login_tty: add missing dependency
29588         * modules/login_tty (Depends-on): Add pty.
29589
29590 2010-08-26  Eric Blake  <eblake@redhat.com>
29591
29592         lib-symbol-versions: fix m4 quoting
29593         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29594         format for AC_LINK_IFELSE.
29595
29596         glob: fix compile test
29597         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29598
29599         btowc: fix missing file
29600         * modules/btowc (Files): Also ship locale-fr.m4.
29601
29602         lseek: fix link test
29603         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29604         AC_LINK_IFELSE.
29605
29606         include_next: silence autoconf 2.68 warning
29607         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29608         AC_COMPILE_IFELSE as special.
29609         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29610         autoconf < 2.68.
29611
29612         acl: fix compilation test
29613         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29614         AC_COMPILE_IFELSE.
29615
29616 2010-08-26  Bruno Haible  <bruno@clisp.org>
29617
29618         Modernize AC_TRY_RUN invocations.
29619         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29620         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29621         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29622         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29623         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29624         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29627         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29628         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29629         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29630         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29631         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29632         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29633         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29634         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29635         gl_MBRLEN_NUL_RETVAL): Likewise.
29636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29637         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29638         Likewise.
29639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29640         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29641         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29642         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29643         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29644         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29645         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29646         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29647         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29648         Likewise.
29649         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29650         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29652         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29654         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29656         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29657         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29659
29660 2010-08-26  Bruno Haible  <bruno@clisp.org>
29661
29662         Modernize AC_TRY_LINK invocations.
29663         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29664         AC_TRY_LINK.
29665         * m4/argp.m4 (gl_ARGP): Likewise.
29666         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29667         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29668         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29669         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29670         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29671         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29672         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29673         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29674         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29675         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29676         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29677         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29678         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29679         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29680         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29681         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29682         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29683         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29684         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29685         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29686         Likewise.
29687         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29688         Likewise.
29689         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29690         Likewise.
29691         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29693         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29694         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29695         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29696         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29697         * m4/servent.m4 (gl_SERVENT): Likewise.
29698         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29699         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29700         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29701         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29702         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29703         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29704         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29706         * modules/tsearch-tests (configure.ac): Likewise.
29707
29708 2010-08-26  Bruno Haible  <bruno@clisp.org>
29709
29710         Modernize AC_TRY_COMPILE invocations.
29711         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29712         AC_TRY_COMPILE.
29713         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29714         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29715         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29716         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29717         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29718         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29719         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29720         * m4/lock.m4 (gl_LOCK): Likewise.
29721         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29722         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29723         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29725         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29726         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29727         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29728         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29729         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29730         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29731         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29733         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29734         extraneous semicolon.
29735
29736 2010-08-26  Jim Meyering  <meyering@redhat.com>
29737
29738         stat-time: relax license LGPL
29739         * modules/stat-time (License): Change from GPL to LGPL,
29740         with consent from all contributors, for use in libguile.
29741         Requested by Ludovic Courtès.
29742
29743 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29744
29745         poll: return immediately on POLLHUP.
29746         * lib/poll.c (poll): Always set timeout before wait_timeout is
29747         computed.
29748
29749 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29750
29751         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29752         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29753         rmdir ("dir/.//"), unlinkat.
29754
29755 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29756
29757         stdbool: avoid spurious failure with modern xlc
29758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29759
29760 2010-08-24  Bruno Haible  <bruno@clisp.org>
29761
29762         getloadavg: simplify code
29763         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29764         gl_have_func. Update comments.
29765
29766 2010-08-24  Eric Blake  <eblake@redhat.com>
29767
29768         getloadavg: don't define SVR4 on cygwin
29769         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29770         only define SVR4 when -lkvm is required.
29771         Reported by Yaakov Selkowitz.
29772
29773 2010-08-24  Bruno Haible  <bruno@clisp.org>
29774
29775         priv-set: fix comment
29776         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29777
29778 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29779
29780         priv-set: fix comments
29781         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29782         to match code, as suggested by David Bartley in:
29783         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29784
29785 2010-08-23  Eric Blake  <eblake@redhat.com>
29786
29787         stdbool: avoid rejecting clang
29788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29789         * tests/test-stdbool.c: Enable more tests if using the system
29790         <stdbool.h> instead of the gnulib replacement.
29791         (main): Move xlc bug test to a runtime test for all compilers.
29792         Reported by Anders Kaseorg.
29793
29794         argz: fix shell quoting issue
29795         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29796         Reported by Charles Wilson.
29797
29798 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29799             Erik Faye-Lund <kusmabite@gmail.com>
29800
29801         poll, select: handle ERROR_BROKEN_PIPE.
29802         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29803         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29804         * lib/select.c (win32_compute_revents): Do not mark a pipe
29805         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29806
29807 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29808
29809         fts: allow compilation with C++
29810         * lib/fts_.h: Specify extern "C" linkage with C++.
29811
29812 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29813
29814         Fix gnulib-tool sed script de-commentation for AIX sed.
29815         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29816         sed.
29817
29818 2010-08-17  Eric Blake  <eblake@redhat.com>
29819
29820         test-stddef: test for (some) offsetof bugs
29821         * tests/test-stddef.c: Enhance test to ensure correct type of
29822         offsetof.
29823         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29824         that we are not fixing at this time.
29825
29826 2010-08-15  Bruno Haible  <bruno@clisp.org>
29827
29828         stpncpy: Allow stpncpy to be defined as a macro.
29829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29830         if it's already correctly declared.
29831         * lib/string.in.h (stpncpy): Undefine before redefining.
29832         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29833
29834 2010-08-14  Bruno Haible  <bruno@clisp.org>
29835
29836         Rename module 'memxfrm' to 'amemxfrm'.
29837         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29838         (amemxfrm): Renamed from memxfrm.
29839         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29840         (amemxfrm): Renamed from memxfrm.
29841         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29842         * NEWS: Mention the change.
29843         * MODULES.html.sh (String handling <string.h>): Update.
29844         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29845         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29846         * lib/unicase/u16-casexfrm.c: Likewise.
29847         * lib/unicase/u32-casexfrm.c: Likewise.
29848         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29849         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29850         * lib/uninorm/u16-normxfrm.c: Likewise.
29851         * lib/uninorm/u32-normxfrm.c: Likewise.
29852         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29853         memxfrm.
29854         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29855         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29856         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29857         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29858         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29859         Suggested by Paul Eggert.
29860
29861 2010-08-14  Bruno Haible  <bruno@clisp.org>
29862
29863         Tests for module 'astrxfrm'.
29864         * modules/astrxfrm-tests: New file.
29865         * tests/test-astrxfrm.c: New file.
29866
29867         New module 'astrxfrm'.
29868         * lib/astrxfrm.h: New file.
29869         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29870         * modules/astrxfrm: New file.
29871
29872 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29873
29874         regex: Tweak doc.
29875         * doc/regex.texi (Overview): Don't mention regex.c.
29876         (GNU Regular Expression Compiling): Likewise.
29877         (Match-end-of-line Operator): Mention 'not_eol'.
29878
29879 2010-08-14  Brian Gough  <bjg@gnu.org>
29880             Bruno Haible  <bruno@clisp.org>
29881
29882         git-merge-changelog: add doc relating to use with bzr and hg.
29883         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29884
29885 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29886
29887         pthread: fix pthread.h creation for srcdir != builddir
29888         * modules/pthread (Makefile.am): Fix the rule to work also in a
29889         non-srcdir build.
29890
29891 2010-08-13  Karl Berry  <karl@gnu.org>
29892
29893         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29894         * doc/posix-*/*: force line break before @url of POSIX
29895         specifications.
29896         Suggested by Werner Lemberg.
29897
29898 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29899
29900         strtod: fix const diagnostic
29901         * lib/strtod.c (strtod): Don't assign const char * to char *,
29902         as this elicits a warning from GCC when warnings are enabled.
29903
29904 2010-08-10  Pádraig Brady <P@draigbrady.com>
29905         and Eric Blake  <eblake@redhat.com>
29906
29907         copy-acl: ignore ENOTSUP on HP-UX
29908         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29909         so that it is available for HP-UX.
29910         * lib/copy-acl.c (qcopy_acl): Use it.
29911         Reported by Patrick M. Callahan.
29912
29913 2010-08-10  Eric Blake  <eblake@redhat.com>
29914
29915         open, chown: relax license
29916         * modules/open (License): Change to LGPLv2+, with consent by all
29917         authors, for use in augeas.
29918         * modules/chown (License): Likewise.
29919         * modules/lchown (Likewise): Likewise.
29920         Requested by Adam Stokes.
29921
29922 2010-08-09  Karl Berry  <karl@gnu.org>
29923
29924         * build-aux/ar-lib: new file, import from Automake.
29925         * config/srclist.txt: autocheck for updates.
29926
29927 2010-08-09  Eric Blake  <eblake@redhat.com>
29928
29929         readlinkat: adjust client modules
29930         * modules/areadlinkat (Depends-on): Use readlinkat, not
29931         symlinkat.
29932         * modules/areadlinkat-with-size (Depends-on): Likewise.
29933
29934         mknod: be more vocal about danger of running tests as root
29935         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29936         root, since that is just asking for problems.
29937         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29938
29939         readlinkat: split into its own module
29940         * modules/symlinkat: Split readlinkat...
29941         * modules/readlinkat: ...into separate module.
29942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29943         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29944         * lib/symlinkat.c (readlinkat): Move...
29945         * lib/readlinkat.c: ...into new file.
29946         * modules/symlinkat-tests: Split readlinkat test...
29947         * modules/readlinkat-tests: ...into separate module.
29948         * tests/test-symlinkat.c: Split...
29949         * tests/test-readlinkat.c: ...into new file.
29950         * NEWS: Document the split.
29951         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29952         * lib/unistd.in.h (readlinkat): Likewise.
29953         Suggested by Bruno Haible.
29954
29955 2010-08-08  Bruno Haible  <bruno@clisp.org>
29956
29957         memxfrm: Speed up.
29958         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29959         that usually only one call to strxfrm is necessary for each string
29960         part.
29961         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29962
29963 2010-08-07  Karl Berry  <karl@gnu.org>
29964
29965         * doc/posix-headers/limits.texi,
29966         * doc/posix-functions/malloc.texi,
29967         * doc/posix-functions/strsignal.texi: missing @item.
29968         * doc/ld-version-script.texi: spurious leading i.
29969         * doc/regex.texi (Interval Operators): no commas inside @var.
29970
29971 2010-08-01  Bruno Haible  <bruno@clisp.org>
29972
29973         Integrate the regex documentation.
29974         * doc/gnulib.texi: Define 'cn' index.
29975         (Regular expressions): New a chapter that includes regex.texi and
29976         regexprops-generic.texi.
29977         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29978         syntax.
29979
29980         Whitespace cleanup.
29981         * doc/regex.texi: Remove trailing spaces.
29982
29983         Add regex documentation.
29984         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29985         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29986         Written by Kathy A. Hargreaves and Karl Berry.
29987
29988 2010-08-01  Bruno Haible  <bruno@clisp.org>
29989
29990         link: Update documentation.
29991         * doc/posix-functions/link.texi: Update regarding Solaris.
29992
29993 2010-07-31  Bruno Haible  <bruno@clisp.org>
29994
29995         Update modules list.
29996         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29997         (String handling <string.h>): Add memcmp2, memxfrm.
29998         (Container data structures): Add xlist, xsublist, xoset.
29999         (Core language properties): Add alignof, unused-parameter.
30000         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30001         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30002         (Unibyte characters <ctype.h>): New section.
30003         (String handling <string.h>): New section.
30004         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30005         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30006         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30007         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30008         tan, tanh, tanl, y0, y1, yn.
30009         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30010         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30011         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30012         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30013         unlockpt, vdprintf, vdprintf-posix.
30014         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30015         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30016         xconcat-filename.
30017         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30018         getdtablesize, pipe2, pipe2-safer.
30019         (Security): New section.
30020         (Networking functions): Add accept4.
30021         (Signal handling): Add sigpipe.
30022         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30023         mbmemcasecoll.
30024         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30025         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30026         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30027         pipe-filter-ii.
30028         (Misc): Add argp-version-etc, login_tty, parse-duration.
30029
30030 2010-07-31  Bruno Haible  <bruno@clisp.org>
30031
30032         Improve doc in MODULES.html.
30033         * modules/linkat (Description): Add the word "function".
30034         * modules/mkfifo (Description): Likewise.
30035         * modules/mknod (Description): Likewise.
30036         * modules/remove (Description): Likewise.
30037         * modules/renameat (Description): Likewise.
30038         * modules/stat (Description): Likewise.
30039         * modules/symlink (Description): Likewise.
30040         * modules/unlink (Description): Likewise.
30041
30042 2010-07-31  Bruno Haible  <bruno@clisp.org>
30043
30044         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30045         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30046         option --enable/disable-c++ instead of --enable/disable-cxx.
30047         * NEWS: Mention the change.
30048
30049 2010-07-31  Bruno Haible  <bruno@clisp.org>
30050
30051         readlink, areadlink: Relax test a bit.
30052         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30053         alternative to ENOTDIR.
30054         * tests/test-areadlink.h (test_areadlink): Likewise.
30055         Reported by Rainer Tammer.
30056
30057 2010-07-31  Bruno Haible  <bruno@clisp.org>
30058
30059         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30060         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30061         character, perform the search using U_STRCHR.
30062         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30063         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30064         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30065         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30066         Suggested by Paolo Bonzini.
30067
30068 2010-07-31  Bruno Haible  <bruno@clisp.org>
30069
30070         unistr/u*-strstr: Fix dependencies.
30071         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30072         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30073         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30074
30075 2010-07-31  Bruno Haible  <bruno@clisp.org>
30076
30077         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30078         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30079         the beginning of the loop.
30080         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30081         cases in 'switch' statement.
30082
30083         unistr/u8-strchr: Fix several bugs.
30084         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30085         the string. When not found, return NULL, not a pointer near the end.
30086
30087         More tests for unistr/u8-strchr.
30088         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30089         that the function does not read past the first occurrence of the byte
30090         being searched.
30091         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30092         * tests/unistr/test-u16-strchr.c (main): New function.
30093         * tests/unistr/test-u32-strchr.c (main): New function.
30094
30095 2010-07-31  Bruno Haible  <bruno@clisp.org>
30096
30097         posix-modules: Ignore backup files of documentation files.
30098         * posix-modules: grep only through files named *.texi.
30099
30100 2010-07-31  Bruno Haible  <bruno@clisp.org>
30101
30102         symlinkat: Fix documentation.
30103         * doc/posix-functions/readlinkat.texi: Fix module name.
30104
30105 2010-07-31  Bruno Haible  <bruno@clisp.org>
30106
30107         fchownat: Replace also when chown has the trailing slash bug.
30108         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30109         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30110         introduced on 2010-04-10.
30111         Reported by Rainer Tammer.
30112
30113 2010-07-31  Bruno Haible  <bruno@clisp.org>
30114
30115         linkat: Work around AIX 7.1 bug.
30116         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30117         whether linkat handles trailing slash correctly. If not, replace linkat
30118         and define LINKAT_TRAILING_SLASH_BUG.
30119         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30120         check whether (fd1,file1) points to a directory if file1 or file2 ends
30121         in a slash. Code taken from lib/link.c.
30122         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30123         Reported by Rainer Tammer.
30124
30125 2010-07-31  Bruno Haible  <bruno@clisp.org>
30126
30127         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30128         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30129         This disables an xlc optimization that was causing wrong test results.
30130         Reported by Rainer Tammer.
30131
30132 2010-07-31  Bruno Haible  <bruno@clisp.org>
30133
30134         iconv: Work around AIX 6.1..7.1 bug.
30135         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30136         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30137         cross-compiling, guess no on all versions of AIX.
30138         Reported by Rainer Tammer.
30139
30140 2010-07-31  Bruno Haible  <bruno@clisp.org>
30141
30142         readlink: Relax test a bit.
30143         * tests/test-readlink.h (test_readlink): Allow different errno value
30144         when readlink is called with a file name that ends in / and refers to
30145         a file.
30146         Suggested by Eric Blake.
30147         Reported by Rainer Tammer.
30148
30149 2010-07-31  Bruno Haible  <bruno@clisp.org>
30150
30151         copysign: Does not require -lm on glibc systems.
30152         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30153         gl_COMMON_DOUBLE_MATHFUNC.
30154         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30155
30156 2010-07-31  Bruno Haible  <bruno@clisp.org>
30157
30158         duplocale: Work around AIX 7.1 bug.
30159         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30160         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30161         * lib/duplocale.c (rpl_duplocale): Update comment.
30162         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30163         Reported by Rainer Tammer.
30164
30165 2010-07-30  Bruno Haible  <bruno@clisp.org>
30166
30167         dirfd: Avoid link error on AIX 7.1.
30168         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30169         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30170         exist, set REPLACE_DIRFD.
30171         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30172         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30173         * doc/posix-functions/dirfd.texi: Update.
30174         Reported by Rainer Tammer.
30175
30176 2010-07-30  Eric Blake  <eblake@redhat.com>
30177
30178         strtod: next round of AIX fixes
30179         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30180         exponent.
30181         * tests/test-strtod.c (main): Enhance tests.
30182         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30183         Reported by Rainer Tammer.
30184
30185         futimens: fix configure check
30186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30187         Reported by Bruno Haible.
30188
30189 2010-07-30  Bruno Haible  <bruno@clisp.org>
30190
30191         getline: Update regarding AIX.
30192         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30193         Reported by Rainer Tammer.
30194
30195 2010-07-30  Bruno Haible  <bruno@clisp.org>
30196
30197         wcwidth: Drop replacement on AIX 7.
30198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30199         AIX 7.
30200         Reported by Rainer Tammer.
30201
30202 2010-07-30  Bruno Haible  <bruno@clisp.org>
30203
30204         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30206         a 'char *'.
30207         Reported by Rainer Tammer.
30208
30209 2010-07-30  Bruno Haible  <bruno@clisp.org>
30210
30211         unlink: Update regarding AIX.
30212         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30213         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30214         Reported by Rainer Tammer.
30215
30216 2010-07-30  Bruno Haible  <bruno@clisp.org>
30217
30218         symlink: Update regarding AIX.
30219         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30220         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30221         Reported by Rainer Tammer.
30222
30223 2010-07-30  Bruno Haible  <bruno@clisp.org>
30224
30225         strndup: Update regarding AIX.
30226         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30227         AIX 7.
30228         Reported by Rainer Tammer.
30229
30230 2010-07-30  Bruno Haible  <bruno@clisp.org>
30231
30232         stat: Update regarding AIX.
30233         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30234         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30235         Reported by Rainer Tammer.
30236
30237 2010-07-30  Bruno Haible  <bruno@clisp.org>
30238
30239         truncl: Fix autoconf test.
30240         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30241         whether truncl works.
30242         Reported by Rainer Tammer.
30243
30244 2010-07-30  Bruno Haible  <bruno@clisp.org>
30245
30246         round: Update regarding AIX.
30247         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30248         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30249         Reported by Rainer Tammer.
30250
30251 2010-07-30  Bruno Haible  <bruno@clisp.org>
30252
30253         rename: Update regarding AIX.
30254         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30255         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30256         Reported by Rainer Tammer.
30257
30258 2010-07-30  Bruno Haible  <bruno@clisp.org>
30259
30260         printf.m4: Update regarding AIX.
30261         * m4/printf.m4: Update comments regarding AIX.
30262         Reported by Rainer Tammer.
30263
30264 2010-07-30  Bruno Haible  <bruno@clisp.org>
30265
30266         iconv: Update regarding AIX.
30267         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30268         AIX 7.
30269         Reported by Rainer Tammer.
30270
30271 2010-07-30  Bruno Haible  <bruno@clisp.org>
30272
30273         getopt: Update regarding AIX.
30274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30275         no on AIX.
30276         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30277         Reported by Rainer Tammer.
30278
30279 2010-07-30  Bruno Haible  <bruno@clisp.org>
30280
30281         ldexpl; Update regarding AIX.
30282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30283         on AIX 7.
30284         Reported by Rainer Tammer.
30285
30286 2010-07-30  Bruno Haible  <bruno@clisp.org>
30287
30288         frexpl: Update regarding AIX.
30289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30290         on AIX 7.
30291         Reported by Rainer Tammer.
30292
30293 2010-07-30  Bruno Haible  <bruno@clisp.org>
30294
30295         open, fopen: Update regarding AIX.
30296         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30297         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30298         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30299         * doc/posix-functions/fopen.texi: Likewise.
30300         Reported by Rainer Tammer.
30301
30302 2010-07-30  Bruno Haible  <bruno@clisp.org>
30303
30304         chown: Update doc regarding AIX.
30305         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30306         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30307         Reported by Rainer Tammer.
30308
30309 2010-07-30  Eric Blake  <eblake@redhat.com>
30310
30311         strtod: fix bug in replacement function on AIX
30312         * lib/strtod.c (strtod): Special case broken "0x" parse in
30313         underlying strtod.
30314         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30315         * doc/posix-functions/strtod.texi (strtod): Likewise.
30316         Reported by Rainer Tammer.
30317
30318 2010-07-30  Bruno Haible  <bruno@clisp.org>
30319
30320         mbrlen: Fix cross-compilation guess for AIX.
30321         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30322         guess. Leftover from 2008-12-22.
30323
30324 2010-07-30  Bruno Haible  <bruno@clisp.org>
30325
30326         mbrtowc: Fix cross-compilation guess for AIX.
30327         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30328         guess. Leftover from 2008-12-21.
30329
30330 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30331
30332         init.sh: work around trap limitation of some shells
30333         * tests/init.sh (setup_): Move exit trap outside of shell function.
30334
30335 2010-07-29  Eric Blake  <eblake@redhat.com>
30336
30337         strtod: aid debugging
30338         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30339         understanding why strtod is rejected.
30340
30341 2010-07-28  Bruno Haible  <bruno@clisp.org>
30342
30343         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30344         * lib/unistr/u8-chr.c: Include <string.h>.
30345         * tests/unistr/test-u8-chr.c: Likewise.
30346         * tests/unistr/test-u16-chr.c: Likewise.
30347         * tests/unistr/test-u32-chr.c: Likewise.
30348         * tests/unistr/test-u8-strchr.c: Likewise.
30349         * tests/unistr/test-u16-strchr.c: Likewise.
30350         * tests/unistr/test-u32-strchr.c: Likewise.
30351         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30352         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30353         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30354         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30355
30356 2010-07-28  Bruno Haible  <bruno@clisp.org>
30357
30358         Use spaces for indentation, not tabs.
30359         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30360
30361 2010-07-27  Bruno Haible  <bruno@clisp.org>
30362
30363         mbspcasecmp: Fix function specification.
30364         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30365         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30366         Reported by Eric Blake <eblake@redhat.com>.
30367
30368 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30369
30370         timespec: use cast and not conditional, as truncation isn't possible
30371         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30372         instead of a conditional.  Comment about the situation in more detail.
30373         This undoes most of the 2009-10-29 patch.
30374
30375 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30376
30377         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30378         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30379         * lib/unistr/u8-strchr.c: Likewise.
30380         * modules/unistr/u8-chr: Depend on memchr.
30381
30382         unistr/u*-strchr: add tests
30383         * modules/unistr/u8-strchr-tests: New file.
30384         * modules/unistr/u16-strchr-tests: New file.
30385         * modules/unistr/u32-strchr-tests: New file.
30386         * tests/unistr/test-strchr.h: New file.
30387         * tests/unistr/test-u8-strchr.c: New file.
30388         * tests/unistr/test-u16-strchr.c: New file.
30389         * tests/unistr/test-u32-strchr.c: New file.
30390
30391         unistr/u*-chr: test multibyte sequences more
30392         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30393         test vector.
30394         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30395         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30396         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30397
30398         unistr/u*-chr: test multibyte sequences
30399         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30400
30401         unistr/u*-chr: prepare for multibyte tests
30402         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30403         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30404         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30405         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30406         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30407         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30408
30409 2010-07-18  Bruno Haible  <bruno@clisp.org>
30410
30411         unistr/u8-strchr: Optimize non-ASCII argument case.
30412         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30413         because the first byte often matches anyway.
30414         Reported by Pádraig Brady <P@draigbrady.com>.
30415
30416 2010-07-15  Karl Berry  <karl@gnu.org>
30417
30418         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30419
30420 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30421
30422         getcwd: on Solaris, work better if ancestors are inaccessible
30423         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30424         buffer and size, try again with a large buffer.  This works better
30425         on Solaris, since its getcwd succeeds even if the path to the root
30426         is inaccessible, and this is helpful in common cases such as .zfs
30427         hidden directories.  Problem reported by J Chapman Flack in
30428         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30429         Use system getcwd if it's declared, not merely if it's partly
30430         working; use the partly-working test only to avoid needless effort
30431         if the system getcwd fails.
30432         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30433         comment that was already obsolete and is now even more obsolete.
30434         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30435         now might call strdup.
30436
30437 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30438
30439         pthread: Add enough so that coreutils/src/sort.c compiles.
30440         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30441         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30442         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30443         Include <sys/types.h>, in case it defines pthread_t.
30444         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30445         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30446         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30447         (pthread_rwlockattr_t, pthread_spinlock_t):
30448         New typedefs, if HAVE_PTHREAD_T is not defined.
30449         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30450         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30451         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30452         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30453         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30454         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30455         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30456         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30457         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30458         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30459         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30460         New macros.
30461         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30462         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30463         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30464         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30465         (pthread_spin_unlock): New dummy functions.
30466         (pthread_create): Return EAGAIN; don't set errno.
30467         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30468         require AC_C_INLINE.
30469         * modules/pthread (Depends-on): Add sched, time.
30470         (pthread.h): Use AM_V_GEN.
30471
30472 2010-07-13  Bruno Haible  <bruno@clisp.org>
30473
30474         striconveh: Don't malloc memory if the result buffer is sufficient.
30475         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30476         buffer if its size is sufficient.
30477         Reported by Ludovic Courtès <ludo@gnu.org>.
30478
30479 2010-07-13  Bruno Haible  <bruno@clisp.org>
30480
30481         strtod: Add safety check.
30482         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30483
30484 2010-07-12  Bruno Haible  <bruno@clisp.org>
30485
30486         Unify tests that set gl_cv_func_ldexpl_no_libm.
30487         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30488         gl_FUNC_LDEXPL.
30489         (gl_FUNC_LDEXPL): Invoke it.
30490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30491
30492 2010-07-12  Bruno Haible  <bruno@clisp.org>
30493
30494         Unify tests that set gl_cv_func_ldexp_no_libm.
30495         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30496         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30497         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30498         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30499         * modules/strtod (Files): Add m4/ldexp.m4.
30500
30501 2010-07-12  Bruno Haible  <bruno@clisp.org>
30502
30503         Unify tests that set gl_cv_func_frexpl_no_libm.
30504         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30505         gl_FUNC_FREXPL_NO_LIBM.
30506         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30507         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30508
30509 2010-07-12  Bruno Haible  <bruno@clisp.org>
30510
30511         Unify tests that set gl_cv_func_frexp_no_libm.
30512         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30513         gl_FUNC_FREXP_NO_LIBM.
30514         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30515         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30516
30517 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30518
30519         memcoll: clarify sizes versus lengths, document better, and tweak perf
30520         * lib/memcoll.c (strcoll_loop, memcoll0):
30521         Improve quality of descriptive comments.  Name variables
30522         consistently as to whether they are lengths (which do not include
30523         terminating null) versus sizes (which do).
30524         * lib/xmemcoll.c (xmemcoll0): Likewise.
30525         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30526         returned when s1size == 0; this is easier to compile and saves
30527         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30528
30529 2010-07-12  Bruno Haible  <bruno@clisp.org>
30530
30531         Tests for module '_Exit'.
30532         * modules/_Exit-tests: New file.
30533         * tests/test-_Exit.sh: New file.
30534         * tests/test-_Exit.c: New file.
30535
30536         New module '_Exit'.
30537         * lib/stdlib.in.h (__attribute__): New macro.
30538         (_Exit): New declaration.
30539         * lib/_Exit.c: New file.
30540         * m4/_Exit.m4: New file.
30541         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30542         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30543         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30544         * modules/_Exit: New file.
30545         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30546         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30547
30548 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30549
30550         strtod: make it more-accurate typically, and don't require libm
30551         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30552         Include limits.h.  Don't include string.h.
30553         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30554         (locale_isspace): New function, so that no casts are needed to
30555         check whether *s is a space.
30556         (ldexp): Provide an unused dummy if not available.
30557         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30558         (strtod): Use them.  This implementation prefers to use the
30559         underlying strtod if available, falling back on our own code
30560         only to fix known bugs.  This is more likely to produce an
30561         accurate result.  Also, it avoids the use of libm functions.
30562         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30563         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30564         was absent, but it caused a test failure with coreutils.
30565         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30566         with libm.
30567         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30568         * modules/strtod-tests (Makefile.am): Likewise.
30569
30570 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30571             Bruno Haible  <bruno@clisp.org>
30572
30573         unistr/u8-strchr: Optimize ASCII argument case.
30574         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30575
30576 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30577
30578         (x)memcoll: minor tweaks
30579         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30580         is after the type that it qualifies.
30581         (memcoll0): Likewise.
30582         * lib/memcoll.h (memcoll0): Likewise.
30583         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30584         * lib/xmemcoll.h (xmemcoll0): Likewise.
30585         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30586         differs from memcoll in that the NUL byte is part of the argument.
30587         Omit the abort-checks, as performance is a real issue here.  Plus,
30588         the checks were wrong anyway (an off-by-one error).  Omit local
30589         variable 'diff', as it's a bit clearer that way.
30590         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30591         no longer needed.
30592
30593 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30594
30595         (x)memcoll: speedup when input is known to be NUL delimited
30596         * lib/memcoll.c: Include stdlib.
30597         (memcoll0): New function.
30598         (strcoll_loop): New function, refactored for use in both memcoll
30599         and memcoll0.
30600         * lib/memcoll.h (memcoll0): Add prototype.
30601         * lib/xmemcoll.c (xmemcoll0): New function.
30602         (collate_error): New function, refactored for use in both xmemcoll
30603         and xmemcoll0.
30604         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30605         * m4/memcoll.m4: add inline invocation.
30606
30607 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30608
30609         * build-aux/bootstrap: Remove any local translations
30610         from the translation project synchronization directory,
30611         so that local only translations are not distributed.
30612
30613 2010-07-04  Bruno Haible  <bruno@clisp.org>
30614
30615         fsusage: Clarify which code applies to which platforms.
30616         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30617         platform.
30618         * lib/fsusage.c (get_fs_usage): Likewise.
30619
30620 2010-07-04  Bruno Haible  <bruno@clisp.org>
30621
30622         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30623         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30624         Reported by Martin Lambers <marlam@marlam.de>.
30625
30626 2010-07-04  Jim Meyering  <meyering@redhat.com>
30627
30628         hash: once again explicitly disallow insertion of NULL
30629         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30630         inserting a NULL pointer cannot work with these functions.
30631         Add a comment with details.
30632         This reverts part of the 2010-07-01 commit, 5bef1a35
30633         "hash: extend module to deal with non-pointer keys".
30634
30635 2010-07-01  Bruno Haible  <bruno@clisp.org>
30636
30637         stdbool: Update doc.
30638         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30639         Info from Christian Weisgerber <naddy@mips.inka.de>.
30640
30641 2010-07-01  Jim Meyering  <meyering@redhat.com>
30642
30643         hash: extend module to deal with non-pointer keys
30644         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30645         but that allows insertion of non-pointer entries.
30646         Do not disallow an ENTRY value of NULL.
30647         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30648         * lib/hash.h (hash_insert0): Declare.
30649
30650 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30651
30652         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30653         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30654         not present (i.e. with autoconf 2.59 and when using gettextize, not
30655         gnulib), require AC_GNU_SOURCE instead.
30656
30657 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30658
30659         idpriv-drop: Fix tests.
30660         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30661         not to the test-idpriv-droptemp program.
30662
30663 2010-06-29  Bruno Haible  <bruno@clisp.org>
30664
30665         string: Fix syntax error with g++ 2.96.
30666         * lib/string.in.h (__pure__): Remove definition.
30667         (_GL_ATTRIBUTE_PURE): New macro.
30668         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30669         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30670         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30671
30672 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30673
30674         unitypes: Fix bug introduced on 2010-05-18.
30675         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30676
30677 2010-06-22  Eric Blake  <eblake@redhat.com>
30678
30679         memmem: slight optimization
30680         * lib/str-two-way.h (critical_factorization): Update comments.
30681         Reduce work during factorization phase.
30682         Reported by Carlos Bueno <carlos@bueno.org>.
30683
30684 2010-06-21  Bruno Haible  <bruno@clisp.org>
30685
30686         Fix HAVE_CALLOC_POSIX misnomer.
30687         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30688         !HAVE_CALLOC_POSIX.
30689         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30690         HAVE_CALLOC_POSIX.
30691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30692         instead of HAVE_CALLOC_POSIX.
30693         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30694         HAVE_CALLOC_POSIX.
30695
30696         Use modern idiom for calloc() replacement.
30697         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30698         AC_FUNC_CALLOC.
30699         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30700         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30701         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30702         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30703         (gl_REPLACE_CALLOC): New macro.
30704
30705 2010-06-21  Bruno Haible  <bruno@clisp.org>
30706
30707         Fix HAVE_REALLOC_POSIX misnomer.
30708         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30709         !HAVE_REALLOC_POSIX.
30710         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30711         HAVE_REALLOC_POSIX.
30712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30713         instead of HAVE_REALLOC_POSIX.
30714         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30715         HAVE_REALLOC_POSIX.
30716
30717         Use modern idiom for realloc() replacement.
30718         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30719         AC_FUNC_REALLOC.
30720         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30721         Autoconf's AC_FUNC_REALLOC.
30722         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30723         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30724         (gl_REPLACE_REALLOC): New macro.
30725         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30726
30727 2010-06-21  Bruno Haible  <bruno@clisp.org>
30728
30729         Fix HAVE_MALLOC_POSIX misnomer.
30730         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30731         !HAVE_MALLOC_POSIX.
30732         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30733         HAVE_MALLOC_POSIX.
30734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30735         instead of HAVE_MALLOC_POSIX.
30736         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30737         HAVE_MALLOC_POSIX.
30738
30739         Use modern idiom for malloc() replacement.
30740         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30741         AC_FUNC_MALLOC.
30742         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30743         Autoconf's AC_FUNC_MALLOC.
30744         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30745         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30746         (gl_REPLACE_MALLOC): New macro.
30747         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30748
30749 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30750
30751         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30752         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30753         This macro takes 3 arguments, not 4.
30754
30755 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30756
30757         ipv6: fix detection under mingw
30758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30759         in6_addr.
30760
30761 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30762
30763         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30764         that strtod() works when cross-compiling to a glibc version known
30765         to work.
30766
30767 2010-06-15  Bruno Haible  <bruno@clisp.org>
30768
30769         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30770
30771 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30772
30773         select: Correct timeout.
30774         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30775
30776 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30777
30778         git-version-gen: init shell var to avoid env var influence
30779         * build-aux/git-version-gen (v): Init shell var to empty.
30780
30781 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30782
30783         priv-set: Don't assume that priv.h exists merely because getppriv does.
30784         See Jan Andersen's bug report about AIX 5L in
30785         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30786         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30787         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30788         * lib/priv-set.h: Likewise.
30789         * tests/test-priv-set.c: Likewise.
30790
30791 2010-06-13  Bruno Haible  <bruno@clisp.org>
30792
30793         relocatable: Make it easier to test whether to install wrappers.
30794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30795         RELOCATABLE_VIA_WRAPPER.
30796
30797 2010-06-13  Bruno Haible  <bruno@clisp.org>
30798
30799         gnulib-tool: Display specified modules and dependencies differently.
30800         * gnulib-tool (func_show_module_list): New function.
30801         (func_import, func_create_testdir): Invoke it.
30802         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30803
30804 2010-06-13  Bruno Haible  <bruno@clisp.org>
30805
30806         gnulib-tool: Align code of func_import and func_create_testdir.
30807         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30808         specified_modules.
30809
30810 2010-06-12  Jim Meyering  <meyering@redhat.com>
30811
30812         test-inttostr: avoid spurious failure on Solaris 9
30813         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30814         to accept "%ju".  Reported by Bruno Haible.
30815
30816 2010-06-11  Jim Meyering  <meyering@redhat.com>
30817
30818         test-sys_socket: mark variables as used more readably
30819         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30820         as "used" explicitly via (void) statement casts.  This is more
30821         readable than using them in an artificial return expression.
30822         Suggestion from Bruno Haible.
30823
30824 2010-06-11  Bruno Haible  <bruno@clisp.org>
30825
30826         Avoid some more warnings from "gcc -Wwrite-strings".
30827         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30828         to 'const char *'.
30829         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30830         * tests/test-c-strcasestr.c (main): Likewise.
30831         * tests/test-mbscasestr1.c (main): Likewise.
30832         * tests/test-mbscasestr2.c (main): Likewise.
30833         * tests/test-memmem.c (main): Likewise.
30834         * tests/test-strstr.c (main): Likewise.
30835         * tests/test-strcasestr.c (main): Likewise.
30836
30837 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30838
30839         init.sh: change framework_failure_ to fail with status 99, not 1
30840         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30841         automake's parallel-tests rule that this is an unexpected failure,
30842         even if the test is listed in XFAIL_TESTS.
30843
30844 2010-06-11  Jim Meyering  <meyering@redhat.com>
30845
30846         test-inttostr: avoid warnings about 4-6KB literal strings
30847         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30848         Include "macros.h", for its definition of ASSERT.
30849         (CK): s/assert/ASSERT/
30850         * modules/inttostr-tests (Files): Add macros.h.
30851
30852         init.sh: don't use $ME_ or skip_ before they are defined
30853         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30854         their first uses.  Also hoist their companions: warn_, fail_,
30855         framework_failure_, $stderr_fileno.  Prompted by a patch from
30856         Stefano Lattarini.
30857
30858         test-sys_socket: avoid set-but-not-used warnings from gcc
30859         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30860         avoid warning about set-but-not-used variables.
30861
30862         test-xvasprintf: avoid 'const' discard warnings
30863         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30864         "const" when assigning from literal strings.
30865         (test_xasprintf): Add "void" in function argument list to placate
30866         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30867
30868         tests: avoid compilation warnings in argmatch and exclude tests...
30869         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30870         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30871         Since it always exits, declare with the "noreturn" attribute.
30872         * tests/test-argmatch.c: Likewise.
30873
30874         tests: avoid 'const' discard warnings in mbsstr tests
30875         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30876         * tests/test-mbsstr2.c (main): Likewise.
30877
30878         test-verify: avoid warning from gcc's -Wmissing-declarations
30879         * tests/test-verify.c (function): Declare to be static.
30880
30881         test-inttostr.c: include <string.h> for use of strcmp
30882         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30883
30884         test-linkat: avoid failed assertion on "other" architectures
30885         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30886         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30887         sparc: https://bugs.launchpad.net/bugs/591968
30888
30889 2010-06-11  Jim Meyering  <meyering@redhat.com>
30890
30891         printf.m4: avoid autoconf's "Expanded Before Required" warning
30892         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30893         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30894         autoconf warning.
30895
30896 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30897
30898         Replacement header templates are now named with ".in", not "_".
30899         * doc/gnulib-intro.texi: Correct.
30900
30901 2010-06-10  Jim Meyering  <meyering@redhat.com>
30902
30903         inttostr-tests: depend on snprintf, not snprintf-posix
30904         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30905         snprintf-posix, to avoid this aclocal failure:
30906           missing file gnulib-tests/vasnprintf.c
30907           configure.ac:45: error: expected source file, required through \
30908           AC_LIBSOURCES, not found
30909
30910 2010-06-10  Jim Meyering  <meyering@redhat.com>
30911
30912         inttostr: add a new function, inttostr, and tests
30913         The namesake function was not available.  The existence of the
30914         template file, inttostr.c makes its addition nontrivial.
30915         * lib/anytostr.c: Rename from inttostr.c.
30916         (anytostr): Rename from inttostr.
30917         * lib/inttostr.c: New file.
30918         * modules/inttostr (Files): Add anytostr.c.
30919         (Makefile.am): Set lib_SOURCES instead of ...
30920         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30921         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30922         * lib/offtostr.c: Likewise.
30923         * lib/uinttostr.c: Likewise.
30924         * lib/umaxtostr.c: Likewise.
30925         * modules/inttostr-tests: New file.
30926         * tests/test-inttostr.c: New file.  Test these functions.
30927
30928 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30929             Bruno Haible  <bruno@clisp.org>
30930
30931         Add "Extending Gnulib" chapter to manual.
30932         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30933         chapter.
30934         (Extending Gnulib): New chapter.
30935         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30936         chapter.
30937
30938 2010-06-09  Bruno Haible  <bruno@clisp.org>
30939
30940         Avoid relocwrapper link errors due to gnulib replacement functions.
30941         * lib/areadlink.c: Use the system's malloc, realloc functions.
30942         (areadlink): Set errno to ENOMEM explicitly.
30943         * modules/areadlink (Depends-on): Remove malloc-posix.
30944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30945
30946 2010-06-09  Bruno Haible  <bruno@clisp.org>
30947
30948         Avoid relocwrapper link errors due to gnulib replacement functions.
30949         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30950         * lib/malloca.c: Likewise.
30951         * lib/relocatable.c: Likewise.
30952         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30953         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30954         * lib/setenv.c: Use the system's malloc, realloc functions.
30955         * lib/strerror.c: Use the system's sprintf function.
30956         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30957
30958 2010-06-04  Bruno Haible  <bruno@clisp.org>
30959
30960         Prefer documented low-level autoconf macro names.
30961         * m4/lib-link.m4: Use m4_translit instead of translit.
30962         * m4/environ.m4: Likewise.
30963         * m4/mathfunc.m4: Likewise.
30964         * m4/onceonly.m4: Likewise.
30965         * m4/stdint.m4: Likewise.
30966         Suggested by Eric Blake.
30967
30968 2010-06-04  Martin Lambers  <marlam@marlam.de>
30969             Bruno Haible  <bruno@clisp.org>
30970
30971         havelib: Allow library names with '+' characters.
30972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30973         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30974
30975 2010-06-09  Bruno Haible  <bruno@clisp.org>
30976
30977         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30978         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30979         realloc failed.
30980
30981 2010-06-08  Peter Simons  <simons@cryp.to>
30982
30983         maint.mk: make the news-check rule more configurable
30984         * top/maint.mk (news-check-lines-spec): New variable.
30985         (news-check): Use "sed -n 1,10p" in place of "head".
30986
30987 2010-06-07  Jim Meyering  <meyering@redhat.com>
30988
30989         do-release-commit-and-tag: fix typo in --help
30990         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30991
30992         regex: avoid new dead-code warning with gcc-4.6.0
30993         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30994         if-block containing a while-loop.  It's been unused for at least
30995         5 years.
30996
30997 2010-06-05  Bruno Haible  <bruno@clisp.org>
30998
30999         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31000         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31001
31002 2010-06-04  Bruno Haible  <bruno@clisp.org>
31003
31004         Update to GNU gettext 0.18.1.
31005         * modules/gettext (configure.ac): Require gettext infrastructure from
31006         version 0.18.1.
31007
31008 2010-06-03  Bruno Haible  <bruno@clisp.org>
31009
31010         Don't use AC_LIBOBJ with file names in subdirectories.
31011         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31012         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31013         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31014         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31015         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31016         gl_LIBUNISTRING_LIBSOURCE.
31017         (Makefile.am): Augment lib_SOURCES here, conditionally.
31018         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31019
31020 2010-06-03  Bruno Haible  <bruno@clisp.org>
31021
31022         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31023         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31024         expansion does not end with a newline.
31025         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31026         unnecessary newline.
31027
31028 2010-06-03  Bruno Haible  <bruno@clisp.org>
31029
31030         Reduce dependencies.
31031         * tests/test-quotearg.h: New file, extracted from
31032         tests/test-quotearg.c.
31033         * tests/test-quotearg-simple.c: New file, extracted from
31034         tests/test-quotearg.c.
31035         * tests/test-quotearg.c: Don't include <ctype.h>.
31036         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31037         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31038         use_quote_double_quotes, use_quotearg_colon): Moved to
31039         tests/test-quotearg.h.
31040         (results_g, flag_results, custom_quotes, custom_results): Moved
31041         to tests/test-quotearg-simple.c.
31042         (main): Moved the part that does not depend on gettext to
31043         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31044         performed.
31045         * modules/quotearg-simple: New file.
31046         * modules/quotearg-simple-tests: New file.
31047         * modules/quotearg (Depends-on): Add quotearg-simple.
31048         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31049         (Files): Add tests/test-quotearg.h.
31050         Reported by Paolo Bonzini.
31051
31052 2010-06-03  Bruno Haible  <bruno@clisp.org>
31053
31054         Reduce dependencies.
31055         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31056
31057 2010-06-03  Bruno Haible  <bruno@clisp.org>
31058
31059         time: Undefine more broken macros.
31060         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31061         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31062         Reported by Eric Blake.
31063
31064 2010-06-03  Bruno Haible  <bruno@clisp.org>
31065
31066         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31067         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31068         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31069         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31070         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31071         Reported by Ludovic Courtès <ludo@gnu.org>.
31072
31073 2010-06-02  Eric Blake  <eblake@redhat.com>
31074
31075         time: work with mingw + pthreads-win32 library
31076         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31077         if timespec is defined only in pthread.h.
31078         * modules/time (Makefile.am): Substitute it.
31079         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31080         <pthread.h>, when needed.
31081         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31082         from the library.
31083
31084 2010-05-31  Bruno Haible  <bruno@clisp.org>
31085
31086         Avoid expanding two macros in the wrong order.
31087         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31088         gl_LIBUNISTRING if it is defined.
31089         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31090         autoconf >= 2.64.
31091         Reported by Ludovic Courtès <ludo@gnu.org>.
31092
31093 2010-05-27  Jim Meyering  <meyering@redhat.com>
31094
31095         maint.mk: also prohibit "#undef" of always-defined symbols
31096         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31097         Allow more than one space before the symbol name.
31098         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31099         the regexp uses alternation.
31100
31101 2010-05-26  Eric Blake  <eblake@redhat.com>
31102
31103         maint.mk: avoid echo -e
31104         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31105         Convert all uses of echo -* to printf.
31106         Reported by Matthias Bolte.
31107
31108 2010-05-25  Bruno Haible  <bruno@clisp.org>
31109
31110         Update to GNU gettext 0.18, part 2.
31111         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31112         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31113
31114 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31115
31116         Add missing include in test-pwrite.c.
31117         * tests/test-pwrite.c: Include string.h, for strcmp.
31118
31119 2010-05-24  Bruno Haible  <bruno@clisp.org>
31120
31121         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31122
31123 2010-05-24  Bruno Haible  <bruno@clisp.org>
31124
31125         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31126         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31127         iconveh_error argument.
31128         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31129         U_STRCONV_TO_LOCALE.
31130         * lib/unistr/u16-strcoll.c: Likewise.
31131         * lib/unistr/u32-strcoll.c: Likewise.
31132         * modules/unistr/u8-strcoll (Depends-on): Add
31133         uniconv/u8-strconv-to-enc, localcharset. Remove
31134         uniconv/u8-strconv-to-locale.
31135         (configure.ac): Bump version number.
31136         * modules/unistr/u16-strcoll (Depends-on): Add
31137         uniconv/u16-strconv-to-enc, localcharset. Remove
31138         uniconv/u16-strconv-to-locale.
31139         (configure.ac): Bump version number.
31140         * modules/unistr/u32-strcoll (Depends-on): Add
31141         uniconv/u32-strconv-to-enc, localcharset. Remove
31142         uniconv/u32-strconv-to-locale.
31143         (configure.ac): Bump version number.
31144
31145 2010-05-24  Bruno Haible  <bruno@clisp.org>
31146
31147         Avoid a test failure on NetBSD 5.0.
31148         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31149         an iconv() bug.
31150
31151 2010-05-24  Bruno Haible  <bruno@clisp.org>
31152
31153         Adjust #include directive style.
31154         * modules/regex (Includes): Recommend to write <regex.h>.
31155
31156 2010-05-24  Bruno Haible  <bruno@clisp.org>
31157
31158         regex: Don't require alloca.
31159         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31160         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31161         only inside if (0).
31162
31163 2010-05-23  Jim Meyering  <meyering@redhat.com>
31164
31165         test-renameat.c: include <sys/stat.h>
31166         * tests/test-renameat.c: Include <sys/stat.h>; required for
31167         definition of S_IS* macros.
31168
31169 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31170
31171         Update maintainer documentation for 'relocatable-prog' module.
31172         * doc/relocatable-maint.texi: Update.
31173         Comments by Bruno Haible.
31174
31175 2010-05-23  Bruno Haible  <bruno@clisp.org>
31176
31177         git-merge-changelog: Enable --split-merged-entry by default.
31178         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31179         (usage): Don't mention this option any more.
31180         Reported by Ralf Wildenhues.
31181
31182 2010-05-23  Jim Meyering  <meyering@redhat.com>
31183
31184         test-pwrite: do not leave behind a test file named "out"
31185         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31186         The trivial-looking use of init.sh is really necessary.
31187         It ensures that the temporary file, "out", is created in
31188         a temporary directory, and removed upon termination.
31189         * tests/test-pwrite.sh: Re-add file.
31190         * modules/pwrite-tests: Reference it.
31191
31192 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31193
31194         Fix output redirection buglet in init.sh.
31195         * tests/init.sh: Fix redirection of stderr.
31196
31197 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31198
31199         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31200
31201 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31202
31203         * modules/valgrind-tests: New file.
31204         * m4/valgrind-tests.m4: New file.
31205         * doc/valgrind-tests.texi: New file.
31206         * doc/gnulib.texi (Running self-tests under valgrind): New
31207         section.
31208
31209 2010-05-19  Bruno Haible  <bruno@clisp.org>
31210
31211         Clean up dead code in recent commit.
31212         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31213         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31214         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31215         Suggested by Paolo Bonzini.
31216
31217 2010-05-19  Bruno Haible  <bruno@clisp.org>
31218
31219         Avoid valgrind error reports from libunistring.
31220         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31221         * modules/libunistring (Files): Add it.
31222         * modules/libunistring-optional (Files): Likewise.
31223
31224 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31225             Bruno Haible  <bruno@clisp.org>
31226
31227         New module 'libunistring-optional'.
31228         * modules/libunistring-optional: New file.
31229         * m4/libunistring-base.m4: New file.
31230         * m4/libunistring-optional.m4: New file.
31231         * lib/unicase.in.h: Renamed from lib/unicase.h.
31232         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31233         * lib/unictype.in.h: Renamed from lib/unictype.h.
31234         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31235         * lib/uniname.in.h: Renamed from lib/uniname.h.
31236         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31237         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31238         * lib/unistr.in.h: Renamed from lib/unistr.h.
31239         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31240         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31241         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31242         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31243         gl_LIBUNISTRING. If the library was found, determine the installed
31244         version and set LIBUNISTRING_VERSION.
31245         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31246         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31247         handle a configuration option --with-included-libunistring.
31248         * modules/libunistring (Files): Add m4/absolute-header.m4.
31249         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31250         Add m4/libunistring-base.m4.
31251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31252         (Makefile.am): Build unicase.h from unicase.in.h.
31253         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31254         Add m4/libunistring-base.m4.
31255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31256         (Makefile.am): Build uniconv.h from uniconv.in.h.
31257         * modules/unictype/base (Files): Use unictype.in.h instead of
31258         unictype.h. Add m4/libunistring-base.m4.
31259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31260         (Makefile.am): Build unictype.h from unictype.in.h.
31261         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31262         Add m4/libunistring-base.m4.
31263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31264         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31265         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31266         Add m4/libunistring-base.m4.
31267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31268         (Makefile.am): Build uniname.h from uniname.in.h.
31269         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31270         Add m4/libunistring-base.m4.
31271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31272         (Makefile.am): Build uninorm.h from uninorm.in.h.
31273         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31274         unistdio.h. Add m4/libunistring-base.m4.
31275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31276         (Makefile.am): Build unistdio.h from unistdio.in.h.
31277         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31278         Add m4/libunistring-base.m4.
31279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31280         (Makefile.am): Build unistr.h from unistr.in.h.
31281         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31282         Add m4/libunistring-base.m4.
31283         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31284         (Makefile.am): Build unitypes.h from unitypes.in.h.
31285         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31286         Add m4/libunistring-base.m4.
31287         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31288         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31289         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31290         uniwidth.h. Add m4/libunistring-base.m4.
31291         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31292         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31293         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31294         instead of augmenting lib_SOURCES.
31295         * modules/unicase/empty-suffix-context: Likewise.
31296         * modules/unicase/locale-language: Likewise.
31297         * modules/unicase/tolower: Likewise.
31298         * modules/unicase/totitle: Likewise.
31299         * modules/unicase/toupper: Likewise.
31300         * modules/unicase/u8-casecmp: Likewise.
31301         * modules/unicase/u8-casecoll: Likewise.
31302         * modules/unicase/u8-casefold: Likewise.
31303         * modules/unicase/u8-casexfrm: Likewise.
31304         * modules/unicase/u8-ct-casefold: Likewise.
31305         * modules/unicase/u8-ct-tolower: Likewise.
31306         * modules/unicase/u8-ct-totitle: Likewise.
31307         * modules/unicase/u8-ct-toupper: Likewise.
31308         * modules/unicase/u8-is-cased: Likewise.
31309         * modules/unicase/u8-is-casefolded: Likewise.
31310         * modules/unicase/u8-is-lowercase: Likewise.
31311         * modules/unicase/u8-is-titlecase: Likewise.
31312         * modules/unicase/u8-is-uppercase: Likewise.
31313         * modules/unicase/u8-prefix-context: Likewise.
31314         * modules/unicase/u8-suffix-context: Likewise.
31315         * modules/unicase/u8-tolower: Likewise.
31316         * modules/unicase/u8-totitle: Likewise.
31317         * modules/unicase/u8-toupper: Likewise.
31318         * modules/unicase/u16-casecmp: Likewise.
31319         * modules/unicase/u16-casecoll: Likewise.
31320         * modules/unicase/u16-casefold: Likewise.
31321         * modules/unicase/u16-casexfrm: Likewise.
31322         * modules/unicase/u16-ct-casefold: Likewise.
31323         * modules/unicase/u16-ct-tolower: Likewise.
31324         * modules/unicase/u16-ct-totitle: Likewise.
31325         * modules/unicase/u16-ct-toupper: Likewise.
31326         * modules/unicase/u16-is-cased: Likewise.
31327         * modules/unicase/u16-is-casefolded: Likewise.
31328         * modules/unicase/u16-is-lowercase: Likewise.
31329         * modules/unicase/u16-is-titlecase: Likewise.
31330         * modules/unicase/u16-is-uppercase: Likewise.
31331         * modules/unicase/u16-prefix-context: Likewise.
31332         * modules/unicase/u16-suffix-context: Likewise.
31333         * modules/unicase/u16-tolower: Likewise.
31334         * modules/unicase/u16-totitle: Likewise.
31335         * modules/unicase/u16-toupper: Likewise.
31336         * modules/unicase/u32-casecmp: Likewise.
31337         * modules/unicase/u32-casecoll: Likewise.
31338         * modules/unicase/u32-casefold: Likewise.
31339         * modules/unicase/u32-casexfrm: Likewise.
31340         * modules/unicase/u32-ct-casefold: Likewise.
31341         * modules/unicase/u32-ct-tolower: Likewise.
31342         * modules/unicase/u32-ct-totitle: Likewise.
31343         * modules/unicase/u32-ct-toupper: Likewise.
31344         * modules/unicase/u32-is-cased: Likewise.
31345         * modules/unicase/u32-is-casefolded: Likewise.
31346         * modules/unicase/u32-is-lowercase: Likewise.
31347         * modules/unicase/u32-is-titlecase: Likewise.
31348         * modules/unicase/u32-is-uppercase: Likewise.
31349         * modules/unicase/u32-prefix-context: Likewise.
31350         * modules/unicase/u32-suffix-context: Likewise.
31351         * modules/unicase/u32-tolower: Likewise.
31352         * modules/unicase/u32-totitle: Likewise.
31353         * modules/unicase/u32-toupper: Likewise.
31354         * modules/unicase/ulc-casecmp: Likewise.
31355         * modules/unicase/ulc-casecoll: Likewise.
31356         * modules/unicase/ulc-casexfrm: Likewise.
31357         * modules/uniconv/u8-conv-from-enc: Likewise.
31358         * modules/uniconv/u8-conv-to-enc: Likewise.
31359         * modules/uniconv/u8-strconv-from-enc: Likewise.
31360         * modules/uniconv/u8-strconv-from-locale: Likewise.
31361         * modules/uniconv/u8-strconv-to-enc: Likewise.
31362         * modules/uniconv/u8-strconv-to-locale: Likewise.
31363         * modules/uniconv/u16-conv-from-enc: Likewise.
31364         * modules/uniconv/u16-conv-to-enc: Likewise.
31365         * modules/uniconv/u16-strconv-from-enc: Likewise.
31366         * modules/uniconv/u16-strconv-from-locale: Likewise.
31367         * modules/uniconv/u16-strconv-to-enc: Likewise.
31368         * modules/uniconv/u16-strconv-to-locale: Likewise.
31369         * modules/uniconv/u32-conv-from-enc: Likewise.
31370         * modules/uniconv/u32-conv-to-enc: Likewise.
31371         * modules/uniconv/u32-strconv-from-enc: Likewise.
31372         * modules/uniconv/u32-strconv-from-locale: Likewise.
31373         * modules/uniconv/u32-strconv-to-enc: Likewise.
31374         * modules/uniconv/u32-strconv-to-locale: Likewise.
31375         * modules/unictype/bidicategory-byname: Likewise.
31376         * modules/unictype/bidicategory-name: Likewise.
31377         * modules/unictype/bidicategory-of: Likewise.
31378         * modules/unictype/bidicategory-test: Likewise.
31379         * modules/unictype/block-list: Likewise.
31380         * modules/unictype/block-test: Likewise.
31381         * modules/unictype/category-C: Likewise.
31382         * modules/unictype/category-Cc: Likewise.
31383         * modules/unictype/category-Cf: Likewise.
31384         * modules/unictype/category-Cn: Likewise.
31385         * modules/unictype/category-Co: Likewise.
31386         * modules/unictype/category-Cs: Likewise.
31387         * modules/unictype/category-L: Likewise.
31388         * modules/unictype/category-Ll: Likewise.
31389         * modules/unictype/category-Lm: Likewise.
31390         * modules/unictype/category-Lo: Likewise.
31391         * modules/unictype/category-Lt: Likewise.
31392         * modules/unictype/category-Lu: Likewise.
31393         * modules/unictype/category-M: Likewise.
31394         * modules/unictype/category-Mc: Likewise.
31395         * modules/unictype/category-Me: Likewise.
31396         * modules/unictype/category-Mn: Likewise.
31397         * modules/unictype/category-N: Likewise.
31398         * modules/unictype/category-Nd: Likewise.
31399         * modules/unictype/category-Nl: Likewise.
31400         * modules/unictype/category-No: Likewise.
31401         * modules/unictype/category-P: Likewise.
31402         * modules/unictype/category-Pc: Likewise.
31403         * modules/unictype/category-Pd: Likewise.
31404         * modules/unictype/category-Pe: Likewise.
31405         * modules/unictype/category-Pf: Likewise.
31406         * modules/unictype/category-Pi: Likewise.
31407         * modules/unictype/category-Po: Likewise.
31408         * modules/unictype/category-Ps: Likewise.
31409         * modules/unictype/category-S: Likewise.
31410         * modules/unictype/category-Sc: Likewise.
31411         * modules/unictype/category-Sk: Likewise.
31412         * modules/unictype/category-Sm: Likewise.
31413         * modules/unictype/category-So: Likewise.
31414         * modules/unictype/category-Z: Likewise.
31415         * modules/unictype/category-Zl: Likewise.
31416         * modules/unictype/category-Zp: Likewise.
31417         * modules/unictype/category-Zs: Likewise.
31418         * modules/unictype/category-and: Likewise.
31419         * modules/unictype/category-and-not: Likewise.
31420         * modules/unictype/category-byname: Likewise.
31421         * modules/unictype/category-name: Likewise.
31422         * modules/unictype/category-none: Likewise.
31423         * modules/unictype/category-of: Likewise.
31424         * modules/unictype/category-or: Likewise.
31425         * modules/unictype/category-test: Likewise.
31426         * modules/unictype/combining-class: Likewise.
31427         * modules/unictype/ctype-alnum: Likewise.
31428         * modules/unictype/ctype-alpha: Likewise.
31429         * modules/unictype/ctype-blank: Likewise.
31430         * modules/unictype/ctype-cntrl: Likewise.
31431         * modules/unictype/ctype-digit: Likewise.
31432         * modules/unictype/ctype-graph: Likewise.
31433         * modules/unictype/ctype-lower: Likewise.
31434         * modules/unictype/ctype-print: Likewise.
31435         * modules/unictype/ctype-punct: Likewise.
31436         * modules/unictype/ctype-space: Likewise.
31437         * modules/unictype/ctype-upper: Likewise.
31438         * modules/unictype/ctype-xdigit: Likewise.
31439         * modules/unictype/decimal-digit: Likewise.
31440         * modules/unictype/digit: Likewise.
31441         * modules/unictype/mirror: Likewise.
31442         * modules/unictype/numeric: Likewise.
31443         * modules/unictype/property-alphabetic: Likewise.
31444         * modules/unictype/property-ascii-hex-digit: Likewise.
31445         * modules/unictype/property-bidi-arabic-digit: Likewise.
31446         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31447         * modules/unictype/property-bidi-block-separator: Likewise.
31448         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31449         * modules/unictype/property-bidi-common-separator: Likewise.
31450         * modules/unictype/property-bidi-control: Likewise.
31451         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31452         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31453         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31454         * modules/unictype/property-bidi-european-digit: Likewise.
31455         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31456         * modules/unictype/property-bidi-left-to-right: Likewise.
31457         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31458         * modules/unictype/property-bidi-other-neutral: Likewise.
31459         * modules/unictype/property-bidi-pdf: Likewise.
31460         * modules/unictype/property-bidi-segment-separator: Likewise.
31461         * modules/unictype/property-bidi-whitespace: Likewise.
31462         * modules/unictype/property-byname: Likewise.
31463         * modules/unictype/property-combining: Likewise.
31464         * modules/unictype/property-composite: Likewise.
31465         * modules/unictype/property-currency-symbol: Likewise.
31466         * modules/unictype/property-dash: Likewise.
31467         * modules/unictype/property-decimal-digit: Likewise.
31468         * modules/unictype/property-default-ignorable-code-point: Likewise.
31469         * modules/unictype/property-deprecated: Likewise.
31470         * modules/unictype/property-diacritic: Likewise.
31471         * modules/unictype/property-extender: Likewise.
31472         * modules/unictype/property-format-control: Likewise.
31473         * modules/unictype/property-grapheme-base: Likewise.
31474         * modules/unictype/property-grapheme-extend: Likewise.
31475         * modules/unictype/property-grapheme-link: Likewise.
31476         * modules/unictype/property-hex-digit: Likewise.
31477         * modules/unictype/property-hyphen: Likewise.
31478         * modules/unictype/property-id-continue: Likewise.
31479         * modules/unictype/property-id-start: Likewise.
31480         * modules/unictype/property-ideographic: Likewise.
31481         * modules/unictype/property-ids-binary-operator: Likewise.
31482         * modules/unictype/property-ids-trinary-operator: Likewise.
31483         * modules/unictype/property-ignorable-control: Likewise.
31484         * modules/unictype/property-iso-control: Likewise.
31485         * modules/unictype/property-join-control: Likewise.
31486         * modules/unictype/property-left-of-pair: Likewise.
31487         * modules/unictype/property-line-separator: Likewise.
31488         * modules/unictype/property-logical-order-exception: Likewise.
31489         * modules/unictype/property-lowercase: Likewise.
31490         * modules/unictype/property-math: Likewise.
31491         * modules/unictype/property-non-break: Likewise.
31492         * modules/unictype/property-not-a-character: Likewise.
31493         * modules/unictype/property-numeric: Likewise.
31494         * modules/unictype/property-other-alphabetic: Likewise.
31495         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31496         * modules/unictype/property-other-grapheme-extend: Likewise.
31497         * modules/unictype/property-other-id-continue: Likewise.
31498         * modules/unictype/property-other-id-start: Likewise.
31499         * modules/unictype/property-other-lowercase: Likewise.
31500         * modules/unictype/property-other-math: Likewise.
31501         * modules/unictype/property-other-uppercase: Likewise.
31502         * modules/unictype/property-paired-punctuation: Likewise.
31503         * modules/unictype/property-paragraph-separator: Likewise.
31504         * modules/unictype/property-pattern-syntax: Likewise.
31505         * modules/unictype/property-pattern-white-space: Likewise.
31506         * modules/unictype/property-private-use: Likewise.
31507         * modules/unictype/property-punctuation: Likewise.
31508         * modules/unictype/property-quotation-mark: Likewise.
31509         * modules/unictype/property-radical: Likewise.
31510         * modules/unictype/property-sentence-terminal: Likewise.
31511         * modules/unictype/property-soft-dotted: Likewise.
31512         * modules/unictype/property-space: Likewise.
31513         * modules/unictype/property-terminal-punctuation: Likewise.
31514         * modules/unictype/property-test: Likewise.
31515         * modules/unictype/property-titlecase: Likewise.
31516         * modules/unictype/property-unassigned-code-value: Likewise.
31517         * modules/unictype/property-unified-ideograph: Likewise.
31518         * modules/unictype/property-uppercase: Likewise.
31519         * modules/unictype/property-variation-selector: Likewise.
31520         * modules/unictype/property-white-space: Likewise.
31521         * modules/unictype/property-xid-continue: Likewise.
31522         * modules/unictype/property-xid-start: Likewise.
31523         * modules/unictype/property-zero-width: Likewise.
31524         * modules/unictype/scripts: Likewise.
31525         * modules/unictype/syntax-c-ident: Likewise.
31526         * modules/unictype/syntax-c-whitespace: Likewise.
31527         * modules/unictype/syntax-java-ident: Likewise.
31528         * modules/unictype/syntax-java-whitespace: Likewise.
31529         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31530         * modules/unilbrk/u8-width-linebreaks: Likewise.
31531         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31532         * modules/unilbrk/u16-width-linebreaks: Likewise.
31533         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31534         * modules/unilbrk/u32-width-linebreaks: Likewise.
31535         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31536         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31537         * modules/uniname/uniname: Likewise.
31538         * modules/uninorm/canonical-decomposition: Likewise.
31539         * modules/uninorm/composition: Likewise.
31540         * modules/uninorm/decomposing-form: Likewise.
31541         * modules/uninorm/decomposition: Likewise.
31542         * modules/uninorm/filter: Likewise.
31543         * modules/uninorm/nfc: Likewise.
31544         * modules/uninorm/nfd: Likewise.
31545         * modules/uninorm/nfkc: Likewise.
31546         * modules/uninorm/nfkd: Likewise.
31547         * modules/uninorm/u8-normalize: Likewise.
31548         * modules/uninorm/u8-normcmp: Likewise.
31549         * modules/uninorm/u8-normcoll: Likewise.
31550         * modules/uninorm/u8-normxfrm: Likewise.
31551         * modules/uninorm/u16-normalize: Likewise.
31552         * modules/uninorm/u16-normcmp: Likewise.
31553         * modules/uninorm/u16-normcoll: Likewise.
31554         * modules/uninorm/u16-normxfrm: Likewise.
31555         * modules/uninorm/u32-normalize: Likewise.
31556         * modules/uninorm/u32-normcmp: Likewise.
31557         * modules/uninorm/u32-normcoll: Likewise.
31558         * modules/uninorm/u32-normxfrm: Likewise.
31559         * modules/unistdio/u8-asnprintf: Likewise.
31560         * modules/unistdio/u8-asprintf: Likewise.
31561         * modules/unistdio/u8-snprintf: Likewise.
31562         * modules/unistdio/u8-sprintf: Likewise.
31563         * modules/unistdio/u8-u8-asnprintf: Likewise.
31564         * modules/unistdio/u8-u8-asprintf: Likewise.
31565         * modules/unistdio/u8-u8-snprintf: Likewise.
31566         * modules/unistdio/u8-u8-sprintf: Likewise.
31567         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31568         * modules/unistdio/u8-u8-vasprintf: Likewise.
31569         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31570         * modules/unistdio/u8-u8-vsprintf: Likewise.
31571         * modules/unistdio/u8-vasnprintf: Likewise.
31572         * modules/unistdio/u8-vasprintf: Likewise.
31573         * modules/unistdio/u8-vsnprintf: Likewise.
31574         * modules/unistdio/u8-vsprintf: Likewise.
31575         * modules/unistdio/u16-asnprintf: Likewise.
31576         * modules/unistdio/u16-asprintf: Likewise.
31577         * modules/unistdio/u16-snprintf: Likewise.
31578         * modules/unistdio/u16-sprintf: Likewise.
31579         * modules/unistdio/u16-u16-asnprintf: Likewise.
31580         * modules/unistdio/u16-u16-asprintf: Likewise.
31581         * modules/unistdio/u16-u16-snprintf: Likewise.
31582         * modules/unistdio/u16-u16-sprintf: Likewise.
31583         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31584         * modules/unistdio/u16-u16-vasprintf: Likewise.
31585         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31586         * modules/unistdio/u16-u16-vsprintf: Likewise.
31587         * modules/unistdio/u16-vasnprintf: Likewise.
31588         * modules/unistdio/u16-vasprintf: Likewise.
31589         * modules/unistdio/u16-vsnprintf: Likewise.
31590         * modules/unistdio/u16-vsprintf: Likewise.
31591         * modules/unistdio/u32-asnprintf: Likewise.
31592         * modules/unistdio/u32-asprintf: Likewise.
31593         * modules/unistdio/u32-snprintf: Likewise.
31594         * modules/unistdio/u32-sprintf: Likewise.
31595         * modules/unistdio/u32-u32-asnprintf: Likewise.
31596         * modules/unistdio/u32-u32-asprintf: Likewise.
31597         * modules/unistdio/u32-u32-snprintf: Likewise.
31598         * modules/unistdio/u32-u32-sprintf: Likewise.
31599         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31600         * modules/unistdio/u32-u32-vasprintf: Likewise.
31601         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31602         * modules/unistdio/u32-u32-vsprintf: Likewise.
31603         * modules/unistdio/u32-vasnprintf: Likewise.
31604         * modules/unistdio/u32-vasprintf: Likewise.
31605         * modules/unistdio/u32-vsnprintf: Likewise.
31606         * modules/unistdio/u32-vsprintf: Likewise.
31607         * modules/unistdio/ulc-asnprintf: Likewise.
31608         * modules/unistdio/ulc-asprintf: Likewise.
31609         * modules/unistdio/ulc-fprintf: Likewise.
31610         * modules/unistdio/ulc-snprintf: Likewise.
31611         * modules/unistdio/ulc-sprintf: Likewise.
31612         * modules/unistdio/ulc-vasnprintf: Likewise.
31613         * modules/unistdio/ulc-vasprintf: Likewise.
31614         * modules/unistdio/ulc-vfprintf: Likewise.
31615         * modules/unistdio/ulc-vsnprintf: Likewise.
31616         * modules/unistdio/ulc-vsprintf: Likewise.
31617         * modules/unistr/u8-check: Likewise.
31618         * modules/unistr/u8-chr: Likewise.
31619         * modules/unistr/u8-cmp: Likewise.
31620         * modules/unistr/u8-cmp2: Likewise.
31621         * modules/unistr/u8-cpy: Likewise.
31622         * modules/unistr/u8-cpy-alloc: Likewise.
31623         * modules/unistr/u8-endswith: Likewise.
31624         * modules/unistr/u8-mblen: Likewise.
31625         * modules/unistr/u8-mbsnlen: Likewise.
31626         * modules/unistr/u8-mbtouc: Likewise.
31627         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31628         * modules/unistr/u8-mbtoucr: Likewise.
31629         * modules/unistr/u8-move: Likewise.
31630         * modules/unistr/u8-next: Likewise.
31631         * modules/unistr/u8-prev: Likewise.
31632         * modules/unistr/u8-set: Likewise.
31633         * modules/unistr/u8-startswith: Likewise.
31634         * modules/unistr/u8-stpcpy: Likewise.
31635         * modules/unistr/u8-stpncpy: Likewise.
31636         * modules/unistr/u8-strcat: Likewise.
31637         * modules/unistr/u8-strchr: Likewise.
31638         * modules/unistr/u8-strcmp: Likewise.
31639         * modules/unistr/u8-strcoll: Likewise.
31640         * modules/unistr/u8-strcpy: Likewise.
31641         * modules/unistr/u8-strcspn: Likewise.
31642         * modules/unistr/u8-strdup: Likewise.
31643         * modules/unistr/u8-strlen: Likewise.
31644         * modules/unistr/u8-strmblen: Likewise.
31645         * modules/unistr/u8-strmbtouc: Likewise.
31646         * modules/unistr/u8-strncat: Likewise.
31647         * modules/unistr/u8-strncmp: Likewise.
31648         * modules/unistr/u8-strncpy: Likewise.
31649         * modules/unistr/u8-strnlen: Likewise.
31650         * modules/unistr/u8-strpbrk: Likewise.
31651         * modules/unistr/u8-strrchr: Likewise.
31652         * modules/unistr/u8-strspn: Likewise.
31653         * modules/unistr/u8-strstr: Likewise.
31654         * modules/unistr/u8-strtok: Likewise.
31655         * modules/unistr/u8-to-u16: Likewise.
31656         * modules/unistr/u8-to-u32: Likewise.
31657         * modules/unistr/u8-uctomb: Likewise.
31658         * modules/unistr/u16-check: Likewise.
31659         * modules/unistr/u16-chr: Likewise.
31660         * modules/unistr/u16-cmp: Likewise.
31661         * modules/unistr/u16-cmp2: Likewise.
31662         * modules/unistr/u16-cpy: Likewise.
31663         * modules/unistr/u16-cpy-alloc: Likewise.
31664         * modules/unistr/u16-endswith: Likewise.
31665         * modules/unistr/u16-mblen: Likewise.
31666         * modules/unistr/u16-mbsnlen: Likewise.
31667         * modules/unistr/u16-mbtouc: Likewise.
31668         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31669         * modules/unistr/u16-mbtoucr: Likewise.
31670         * modules/unistr/u16-move: Likewise.
31671         * modules/unistr/u16-next: Likewise.
31672         * modules/unistr/u16-prev: Likewise.
31673         * modules/unistr/u16-set: Likewise.
31674         * modules/unistr/u16-startswith: Likewise.
31675         * modules/unistr/u16-stpcpy: Likewise.
31676         * modules/unistr/u16-stpncpy: Likewise.
31677         * modules/unistr/u16-strcat: Likewise.
31678         * modules/unistr/u16-strchr: Likewise.
31679         * modules/unistr/u16-strcmp: Likewise.
31680         * modules/unistr/u16-strcoll: Likewise.
31681         * modules/unistr/u16-strcpy: Likewise.
31682         * modules/unistr/u16-strcspn: Likewise.
31683         * modules/unistr/u16-strdup: Likewise.
31684         * modules/unistr/u16-strlen: Likewise.
31685         * modules/unistr/u16-strmblen: Likewise.
31686         * modules/unistr/u16-strmbtouc: Likewise.
31687         * modules/unistr/u16-strncat: Likewise.
31688         * modules/unistr/u16-strncmp: Likewise.
31689         * modules/unistr/u16-strncpy: Likewise.
31690         * modules/unistr/u16-strnlen: Likewise.
31691         * modules/unistr/u16-strpbrk: Likewise.
31692         * modules/unistr/u16-strrchr: Likewise.
31693         * modules/unistr/u16-strspn: Likewise.
31694         * modules/unistr/u16-strstr: Likewise.
31695         * modules/unistr/u16-strtok: Likewise.
31696         * modules/unistr/u16-to-u32: Likewise.
31697         * modules/unistr/u16-to-u8: Likewise.
31698         * modules/unistr/u16-uctomb: Likewise.
31699         * modules/unistr/u32-check: Likewise.
31700         * modules/unistr/u32-chr: Likewise.
31701         * modules/unistr/u32-cmp: Likewise.
31702         * modules/unistr/u32-cmp2: Likewise.
31703         * modules/unistr/u32-cpy: Likewise.
31704         * modules/unistr/u32-cpy-alloc: Likewise.
31705         * modules/unistr/u32-endswith: Likewise.
31706         * modules/unistr/u32-mblen: Likewise.
31707         * modules/unistr/u32-mbsnlen: Likewise.
31708         * modules/unistr/u32-mbtouc: Likewise.
31709         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31710         * modules/unistr/u32-mbtoucr: Likewise.
31711         * modules/unistr/u32-move: Likewise.
31712         * modules/unistr/u32-next: Likewise.
31713         * modules/unistr/u32-prev: Likewise.
31714         * modules/unistr/u32-set: Likewise.
31715         * modules/unistr/u32-startswith: Likewise.
31716         * modules/unistr/u32-stpcpy: Likewise.
31717         * modules/unistr/u32-stpncpy: Likewise.
31718         * modules/unistr/u32-strcat: Likewise.
31719         * modules/unistr/u32-strchr: Likewise.
31720         * modules/unistr/u32-strcmp: Likewise.
31721         * modules/unistr/u32-strcoll: Likewise.
31722         * modules/unistr/u32-strcpy: Likewise.
31723         * modules/unistr/u32-strcspn: Likewise.
31724         * modules/unistr/u32-strdup: Likewise.
31725         * modules/unistr/u32-strlen: Likewise.
31726         * modules/unistr/u32-strmblen: Likewise.
31727         * modules/unistr/u32-strmbtouc: Likewise.
31728         * modules/unistr/u32-strncat: Likewise.
31729         * modules/unistr/u32-strncmp: Likewise.
31730         * modules/unistr/u32-strncpy: Likewise.
31731         * modules/unistr/u32-strnlen: Likewise.
31732         * modules/unistr/u32-strpbrk: Likewise.
31733         * modules/unistr/u32-strrchr: Likewise.
31734         * modules/unistr/u32-strspn: Likewise.
31735         * modules/unistr/u32-strstr: Likewise.
31736         * modules/unistr/u32-strtok: Likewise.
31737         * modules/unistr/u32-to-u16: Likewise.
31738         * modules/unistr/u32-to-u8: Likewise.
31739         * modules/unistr/u32-uctomb: Likewise.
31740         * modules/uniwbrk/u8-wordbreaks: Likewise.
31741         * modules/uniwbrk/u16-wordbreaks: Likewise.
31742         * modules/uniwbrk/u32-wordbreaks: Likewise.
31743         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31744         * modules/uniwbrk/wordbreak-property: Likewise.
31745         * modules/uniwidth/u8-strwidth: Likewise.
31746         * modules/uniwidth/u8-width: Likewise.
31747         * modules/uniwidth/u16-strwidth: Likewise.
31748         * modules/uniwidth/u16-width: Likewise.
31749         * modules/uniwidth/u32-strwidth: Likewise.
31750         * modules/uniwidth/u32-width: Likewise.
31751         * modules/uniwidth/width: Likewise.
31752         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31753         with $(LIBUNISTRING).
31754         * modules/unicase/ignorable-tests: Likewise.
31755         * modules/unicase/locale-language-tests: Likewise.
31756         * modules/unicase/tolower-tests: Likewise.
31757         * modules/unicase/totitle-tests: Likewise.
31758         * modules/unicase/toupper-tests: Likewise.
31759         * modules/unicase/u8-casecmp-tests: Likewise.
31760         * modules/unicase/u8-casecoll-tests: Likewise.
31761         * modules/unicase/u8-casefold-tests: Likewise.
31762         * modules/unicase/u8-is-cased-tests: Likewise.
31763         * modules/unicase/u8-is-casefolded-tests: Likewise.
31764         * modules/unicase/u8-is-lowercase-tests: Likewise.
31765         * modules/unicase/u8-is-titlecase-tests: Likewise.
31766         * modules/unicase/u8-is-uppercase-tests: Likewise.
31767         * modules/unicase/u8-tolower-tests: Likewise.
31768         * modules/unicase/u8-totitle-tests: Likewise.
31769         * modules/unicase/u8-toupper-tests: Likewise.
31770         * modules/unicase/u16-casecmp-tests: Likewise.
31771         * modules/unicase/u16-casecoll-tests: Likewise.
31772         * modules/unicase/u16-casefold-tests: Likewise.
31773         * modules/unicase/u16-is-cased-tests: Likewise.
31774         * modules/unicase/u16-is-casefolded-tests: Likewise.
31775         * modules/unicase/u16-is-lowercase-tests: Likewise.
31776         * modules/unicase/u16-is-titlecase-tests: Likewise.
31777         * modules/unicase/u16-is-uppercase-tests: Likewise.
31778         * modules/unicase/u16-tolower-tests: Likewise.
31779         * modules/unicase/u16-totitle-tests: Likewise.
31780         * modules/unicase/u16-toupper-tests: Likewise.
31781         * modules/unicase/u32-casecmp-tests: Likewise.
31782         * modules/unicase/u32-casecoll-tests: Likewise.
31783         * modules/unicase/u32-casefold-tests: Likewise.
31784         * modules/unicase/u32-is-cased-tests: Likewise.
31785         * modules/unicase/u32-is-casefolded-tests: Likewise.
31786         * modules/unicase/u32-is-lowercase-tests: Likewise.
31787         * modules/unicase/u32-is-titlecase-tests: Likewise.
31788         * modules/unicase/u32-is-uppercase-tests: Likewise.
31789         * modules/unicase/u32-tolower-tests: Likewise.
31790         * modules/unicase/u32-totitle-tests: Likewise.
31791         * modules/unicase/u32-toupper-tests: Likewise.
31792         * modules/unicase/ulc-casecmp-tests: Likewise.
31793         * modules/unicase/ulc-casecoll-tests: Likewise.
31794         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31795         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31796         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31797         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31798         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31799         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31800         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31801         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31802         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31803         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31804         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31805         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31806         * modules/unictype/bidicategory-byname-tests: Likewise.
31807         * modules/unictype/bidicategory-name-tests: Likewise.
31808         * modules/unictype/bidicategory-of-tests: Likewise.
31809         * modules/unictype/bidicategory-test-tests: Likewise.
31810         * modules/unictype/block-list-tests: Likewise.
31811         * modules/unictype/block-of-tests: Likewise.
31812         * modules/unictype/block-test-tests: Likewise.
31813         * modules/unictype/category-C-tests: Likewise.
31814         * modules/unictype/category-Cc-tests: Likewise.
31815         * modules/unictype/category-Cf-tests: Likewise.
31816         * modules/unictype/category-Cn-tests: Likewise.
31817         * modules/unictype/category-Co-tests: Likewise.
31818         * modules/unictype/category-Cs-tests: Likewise.
31819         * modules/unictype/category-L-tests: Likewise.
31820         * modules/unictype/category-Ll-tests: Likewise.
31821         * modules/unictype/category-Lm-tests: Likewise.
31822         * modules/unictype/category-Lo-tests: Likewise.
31823         * modules/unictype/category-Lt-tests: Likewise.
31824         * modules/unictype/category-Lu-tests: Likewise.
31825         * modules/unictype/category-M-tests: Likewise.
31826         * modules/unictype/category-Mc-tests: Likewise.
31827         * modules/unictype/category-Me-tests: Likewise.
31828         * modules/unictype/category-Mn-tests: Likewise.
31829         * modules/unictype/category-N-tests: Likewise.
31830         * modules/unictype/category-Nd-tests: Likewise.
31831         * modules/unictype/category-Nl-tests: Likewise.
31832         * modules/unictype/category-No-tests: Likewise.
31833         * modules/unictype/category-P-tests: Likewise.
31834         * modules/unictype/category-Pc-tests: Likewise.
31835         * modules/unictype/category-Pd-tests: Likewise.
31836         * modules/unictype/category-Pe-tests: Likewise.
31837         * modules/unictype/category-Pf-tests: Likewise.
31838         * modules/unictype/category-Pi-tests: Likewise.
31839         * modules/unictype/category-Po-tests: Likewise.
31840         * modules/unictype/category-Ps-tests: Likewise.
31841         * modules/unictype/category-S-tests: Likewise.
31842         * modules/unictype/category-Sc-tests: Likewise.
31843         * modules/unictype/category-Sk-tests: Likewise.
31844         * modules/unictype/category-Sm-tests: Likewise.
31845         * modules/unictype/category-So-tests: Likewise.
31846         * modules/unictype/category-Z-tests: Likewise.
31847         * modules/unictype/category-Zl-tests: Likewise.
31848         * modules/unictype/category-Zp-tests: Likewise.
31849         * modules/unictype/category-Zs-tests: Likewise.
31850         * modules/unictype/category-and-not-tests: Likewise.
31851         * modules/unictype/category-and-tests: Likewise.
31852         * modules/unictype/category-byname-tests: Likewise.
31853         * modules/unictype/category-name-tests: Likewise.
31854         * modules/unictype/category-none-tests: Likewise.
31855         * modules/unictype/category-of-tests: Likewise.
31856         * modules/unictype/category-or-tests: Likewise.
31857         * modules/unictype/category-test-withtable-tests: Likewise.
31858         * modules/unictype/combining-class-tests: Likewise.
31859         * modules/unictype/ctype-alnum-tests: Likewise.
31860         * modules/unictype/ctype-alpha-tests: Likewise.
31861         * modules/unictype/ctype-blank-tests: Likewise.
31862         * modules/unictype/ctype-cntrl-tests: Likewise.
31863         * modules/unictype/ctype-digit-tests: Likewise.
31864         * modules/unictype/ctype-graph-tests: Likewise.
31865         * modules/unictype/ctype-lower-tests: Likewise.
31866         * modules/unictype/ctype-print-tests: Likewise.
31867         * modules/unictype/ctype-punct-tests: Likewise.
31868         * modules/unictype/ctype-space-tests: Likewise.
31869         * modules/unictype/ctype-upper-tests: Likewise.
31870         * modules/unictype/ctype-xdigit-tests: Likewise.
31871         * modules/unictype/decimal-digit-tests: Likewise.
31872         * modules/unictype/digit-tests: Likewise.
31873         * modules/unictype/mirror-tests: Likewise.
31874         * modules/unictype/numeric-tests: Likewise.
31875         * modules/unictype/property-alphabetic-tests: Likewise.
31876         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31877         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31878         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31879         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31880         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31881         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31882         * modules/unictype/property-bidi-control-tests: Likewise.
31883         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31884         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31885         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31886         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31887         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31888         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31889         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31890         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31891         * modules/unictype/property-bidi-pdf-tests: Likewise.
31892         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31893         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31894         * modules/unictype/property-byname-tests: Likewise.
31895         * modules/unictype/property-combining-tests: Likewise.
31896         * modules/unictype/property-composite-tests: Likewise.
31897         * modules/unictype/property-currency-symbol-tests: Likewise.
31898         * modules/unictype/property-dash-tests: Likewise.
31899         * modules/unictype/property-decimal-digit-tests: Likewise.
31900         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31901         * modules/unictype/property-deprecated-tests: Likewise.
31902         * modules/unictype/property-diacritic-tests: Likewise.
31903         * modules/unictype/property-extender-tests: Likewise.
31904         * modules/unictype/property-format-control-tests: Likewise.
31905         * modules/unictype/property-grapheme-base-tests: Likewise.
31906         * modules/unictype/property-grapheme-extend-tests: Likewise.
31907         * modules/unictype/property-grapheme-link-tests: Likewise.
31908         * modules/unictype/property-hex-digit-tests: Likewise.
31909         * modules/unictype/property-hyphen-tests: Likewise.
31910         * modules/unictype/property-id-continue-tests: Likewise.
31911         * modules/unictype/property-id-start-tests: Likewise.
31912         * modules/unictype/property-ideographic-tests: Likewise.
31913         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31914         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31915         * modules/unictype/property-ignorable-control-tests: Likewise.
31916         * modules/unictype/property-iso-control-tests: Likewise.
31917         * modules/unictype/property-join-control-tests: Likewise.
31918         * modules/unictype/property-left-of-pair-tests: Likewise.
31919         * modules/unictype/property-line-separator-tests: Likewise.
31920         * modules/unictype/property-logical-order-exception-tests: Likewise.
31921         * modules/unictype/property-lowercase-tests: Likewise.
31922         * modules/unictype/property-math-tests: Likewise.
31923         * modules/unictype/property-non-break-tests: Likewise.
31924         * modules/unictype/property-not-a-character-tests: Likewise.
31925         * modules/unictype/property-numeric-tests: Likewise.
31926         * modules/unictype/property-other-alphabetic-tests: Likewise.
31927         * modules/unictype/property-other-default-ignorable-code-point-tests:
31928         Likewise.
31929         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31930         * modules/unictype/property-other-id-continue-tests: Likewise.
31931         * modules/unictype/property-other-id-start-tests: Likewise.
31932         * modules/unictype/property-other-lowercase-tests: Likewise.
31933         * modules/unictype/property-other-math-tests: Likewise.
31934         * modules/unictype/property-other-uppercase-tests: Likewise.
31935         * modules/unictype/property-paired-punctuation-tests: Likewise.
31936         * modules/unictype/property-paragraph-separator-tests: Likewise.
31937         * modules/unictype/property-pattern-syntax-tests: Likewise.
31938         * modules/unictype/property-pattern-white-space-tests: Likewise.
31939         * modules/unictype/property-private-use-tests: Likewise.
31940         * modules/unictype/property-punctuation-tests: Likewise.
31941         * modules/unictype/property-quotation-mark-tests: Likewise.
31942         * modules/unictype/property-radical-tests: Likewise.
31943         * modules/unictype/property-sentence-terminal-tests: Likewise.
31944         * modules/unictype/property-soft-dotted-tests: Likewise.
31945         * modules/unictype/property-space-tests: Likewise.
31946         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31947         * modules/unictype/property-test-tests: Likewise.
31948         * modules/unictype/property-titlecase-tests: Likewise.
31949         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31950         * modules/unictype/property-unified-ideograph-tests: Likewise.
31951         * modules/unictype/property-uppercase-tests: Likewise.
31952         * modules/unictype/property-variation-selector-tests: Likewise.
31953         * modules/unictype/property-white-space-tests: Likewise.
31954         * modules/unictype/property-xid-continue-tests: Likewise.
31955         * modules/unictype/property-xid-start-tests: Likewise.
31956         * modules/unictype/property-zero-width-tests: Likewise.
31957         * modules/unictype/scripts-tests: Likewise.
31958         * modules/unictype/syntax-c-ident-tests: Likewise.
31959         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31960         * modules/unictype/syntax-java-ident-tests: Likewise.
31961         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31962         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31963         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31964         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31965         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31966         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31967         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31968         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31969         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31970         * modules/uniname/uniname-tests: Likewise.
31971         * modules/uninorm/canonical-decomposition-tests: Likewise.
31972         * modules/uninorm/compat-decomposition-tests: Likewise.
31973         * modules/uninorm/composition-tests: Likewise.
31974         * modules/uninorm/decomposing-form-tests: Likewise.
31975         * modules/uninorm/decomposition-tests: Likewise.
31976         * modules/uninorm/filter-tests: Likewise.
31977         * modules/uninorm/nfc-tests: Likewise.
31978         * modules/uninorm/nfd-tests: Likewise.
31979         * modules/uninorm/nfkc-tests: Likewise.
31980         * modules/uninorm/nfkd-tests: Likewise.
31981         * modules/uninorm/u8-normcmp-tests: Likewise.
31982         * modules/uninorm/u8-normcoll-tests: Likewise.
31983         * modules/uninorm/u16-normcmp-tests: Likewise.
31984         * modules/uninorm/u16-normcoll-tests: Likewise.
31985         * modules/uninorm/u32-normcmp-tests: Likewise.
31986         * modules/uninorm/u32-normcoll-tests: Likewise.
31987         * modules/unistdio/u8-asnprintf-tests: Likewise.
31988         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31989         * modules/unistdio/u8-vasprintf-tests: Likewise.
31990         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31991         * modules/unistdio/u8-vsprintf-tests: Likewise.
31992         * modules/unistdio/u16-asnprintf-tests: Likewise.
31993         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31994         * modules/unistdio/u16-vasprintf-tests: Likewise.
31995         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31996         * modules/unistdio/u16-vsprintf-tests: Likewise.
31997         * modules/unistdio/u32-asnprintf-tests: Likewise.
31998         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31999         * modules/unistdio/u32-vasprintf-tests: Likewise.
32000         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32001         * modules/unistdio/u32-vsprintf-tests: Likewise.
32002         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32003         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32004         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32005         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32006         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32007         * modules/unistr/u8-check-tests: Likewise.
32008         * modules/unistr/u8-chr-tests: Likewise.
32009         * modules/unistr/u8-cmp-tests: Likewise.
32010         * modules/unistr/u8-cmp2-tests: Likewise.
32011         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32012         * modules/unistr/u8-cpy-tests: Likewise.
32013         * modules/unistr/u8-mblen-tests: Likewise.
32014         * modules/unistr/u8-mbsnlen-tests: Likewise.
32015         * modules/unistr/u8-mbtouc-tests: Likewise.
32016         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32017         * modules/unistr/u8-mbtoucr-tests: Likewise.
32018         * modules/unistr/u8-move-tests: Likewise.
32019         * modules/unistr/u8-next-tests: Likewise.
32020         * modules/unistr/u8-prev-tests: Likewise.
32021         * modules/unistr/u8-set-tests: Likewise.
32022         * modules/unistr/u8-stpcpy-tests: Likewise.
32023         * modules/unistr/u8-stpncpy-tests: Likewise.
32024         * modules/unistr/u8-strcat-tests: Likewise.
32025         * modules/unistr/u8-strcmp-tests: Likewise.
32026         * modules/unistr/u8-strcoll-tests: Likewise.
32027         * modules/unistr/u8-strcpy-tests: Likewise.
32028         * modules/unistr/u8-strdup-tests: Likewise.
32029         * modules/unistr/u8-strlen-tests: Likewise.
32030         * modules/unistr/u8-strmblen-tests: Likewise.
32031         * modules/unistr/u8-strmbtouc-tests: Likewise.
32032         * modules/unistr/u8-strncat-tests: Likewise.
32033         * modules/unistr/u8-strncmp-tests: Likewise.
32034         * modules/unistr/u8-strncpy-tests: Likewise.
32035         * modules/unistr/u8-strnlen-tests: Likewise.
32036         * modules/unistr/u8-to-u16-tests: Likewise.
32037         * modules/unistr/u8-to-u32-tests: Likewise.
32038         * modules/unistr/u8-uctomb-tests: Likewise.
32039         * modules/unistr/u16-check-tests: Likewise.
32040         * modules/unistr/u16-chr-tests: Likewise.
32041         * modules/unistr/u16-cmp-tests: Likewise.
32042         * modules/unistr/u16-cmp2-tests: Likewise.
32043         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32044         * modules/unistr/u16-cpy-tests: Likewise.
32045         * modules/unistr/u16-mblen-tests: Likewise.
32046         * modules/unistr/u16-mbsnlen-tests: Likewise.
32047         * modules/unistr/u16-mbtouc-tests: Likewise.
32048         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32049         * modules/unistr/u16-mbtoucr-tests: Likewise.
32050         * modules/unistr/u16-move-tests: Likewise.
32051         * modules/unistr/u16-next-tests: Likewise.
32052         * modules/unistr/u16-prev-tests: Likewise.
32053         * modules/unistr/u16-set-tests: Likewise.
32054         * modules/unistr/u16-stpcpy-tests: Likewise.
32055         * modules/unistr/u16-stpncpy-tests: Likewise.
32056         * modules/unistr/u16-strcat-tests: Likewise.
32057         * modules/unistr/u16-strcmp-tests: Likewise.
32058         * modules/unistr/u16-strcoll-tests: Likewise.
32059         * modules/unistr/u16-strcpy-tests: Likewise.
32060         * modules/unistr/u16-strdup-tests: Likewise.
32061         * modules/unistr/u16-strlen-tests: Likewise.
32062         * modules/unistr/u16-strmblen-tests: Likewise.
32063         * modules/unistr/u16-strmbtouc-tests: Likewise.
32064         * modules/unistr/u16-strncat-tests: Likewise.
32065         * modules/unistr/u16-strncmp-tests: Likewise.
32066         * modules/unistr/u16-strncpy-tests: Likewise.
32067         * modules/unistr/u16-strnlen-tests: Likewise.
32068         * modules/unistr/u16-to-u32-tests: Likewise.
32069         * modules/unistr/u16-to-u8-tests: Likewise.
32070         * modules/unistr/u16-uctomb-tests: Likewise.
32071         * modules/unistr/u32-check-tests: Likewise.
32072         * modules/unistr/u32-chr-tests: Likewise.
32073         * modules/unistr/u32-cmp-tests: Likewise.
32074         * modules/unistr/u32-cmp2-tests: Likewise.
32075         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32076         * modules/unistr/u32-cpy-tests: Likewise.
32077         * modules/unistr/u32-mblen-tests: Likewise.
32078         * modules/unistr/u32-mbsnlen-tests: Likewise.
32079         * modules/unistr/u32-mbtouc-tests: Likewise.
32080         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32081         * modules/unistr/u32-mbtoucr-tests: Likewise.
32082         * modules/unistr/u32-move-tests: Likewise.
32083         * modules/unistr/u32-next-tests: Likewise.
32084         * modules/unistr/u32-prev-tests: Likewise.
32085         * modules/unistr/u32-set-tests: Likewise.
32086         * modules/unistr/u32-stpcpy-tests: Likewise.
32087         * modules/unistr/u32-stpncpy-tests: Likewise.
32088         * modules/unistr/u32-strcat-tests: Likewise.
32089         * modules/unistr/u32-strcmp-tests: Likewise.
32090         * modules/unistr/u32-strcoll-tests: Likewise.
32091         * modules/unistr/u32-strcpy-tests: Likewise.
32092         * modules/unistr/u32-strdup-tests: Likewise.
32093         * modules/unistr/u32-strlen-tests: Likewise.
32094         * modules/unistr/u32-strmblen-tests: Likewise.
32095         * modules/unistr/u32-strmbtouc-tests: Likewise.
32096         * modules/unistr/u32-strncat-tests: Likewise.
32097         * modules/unistr/u32-strncmp-tests: Likewise.
32098         * modules/unistr/u32-strncpy-tests: Likewise.
32099         * modules/unistr/u32-strnlen-tests: Likewise.
32100         * modules/unistr/u32-to-u16-tests: Likewise.
32101         * modules/unistr/u32-to-u8-tests: Likewise.
32102         * modules/unistr/u32-uctomb-tests: Likewise.
32103         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32104         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32105         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32106         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32107         * modules/uniwidth/u8-strwidth-tests: Likewise.
32108         * modules/uniwidth/u8-width-tests: Likewise.
32109         * modules/uniwidth/u16-strwidth-tests: Likewise.
32110         * modules/uniwidth/u16-width-tests: Likewise.
32111         * modules/uniwidth/u32-strwidth-tests: Likewise.
32112         * modules/uniwidth/u32-width-tests: Likewise.
32113         * modules/uniwidth/width-tests: Likewise.
32114
32115 2010-05-18  Richard Jones  <rjones@redhat.com>
32116
32117         doc: users.txt: list hivex
32118         * users.txt: Add hivex.
32119
32120 2010-05-18  Richard Jones  <rjones@redhat.com>
32121
32122         doc: users.txt: list febootstrap
32123         * users.txt: Add febootstrap.
32124
32125 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32126
32127         bootstrap: fix an error when gnulib is not used as a git submodule
32128         * build-aux/bootstrap (gnulib_path): If its length is zero then
32129         assign "gnulib" to it.
32130         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32131
32132 2010-05-16  Bruno Haible  <bruno@clisp.org>
32133
32134         Avoid autoconf warnings about AM_ICONV.
32135         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32136         2.64.
32137
32138 2010-05-16  Bruno Haible  <bruno@clisp.org>
32139
32140         absolute-header: Make the macro usable in more situations.
32141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32142         from gl_ABSOLUTE_HEADER.
32143         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32144
32145 2010-05-16  James Youngman  <jay@gnu.org>
32146
32147         doc: update users.txt
32148         * users.txt: Add CSSC.
32149
32150 2010-05-16  Jim Meyering  <meyering@redhat.com>
32151
32152         init.sh: fix an error in the previous change; add more comments
32153         * tests/init.sh: Compare exit code in loop against 9, not 2.
32154         Patch by Bruno Haible.
32155         Make the two tests more similar by adding an empty "then" clause.
32156         Add comments.
32157
32158         init.sh: avoid unnecessary shell re-exec
32159         * tests/init.sh: Improve the re-exec-required check to first test the
32160         current shell.  If it passes the test, do not search for a shell that
32161         does pass, and do not re-exec.  This test is particularly contorted to
32162         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32163         of $(...) evokes a syntax error and causes immediate shell exit with
32164         status 2.  Bruno Haible reported that the re-exec made it impossible
32165         to single-step through any init.sh-using script.
32166
32167 2010-05-16  Bruno Haible  <bruno@clisp.org>
32168
32169         Fix collision between gnulib's and libintl's printf replacements.
32170         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32171         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32172         (printf): When using GNU C, map the __printf__ function to rpl_printf
32173         via __asm__. When not using GNU C, define rpl_printf instead of
32174         __printf__.
32175         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32176         commit.
32177         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32178         commit.
32179         * m4/asm-underscore.m4: New file.
32180         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32181         * modules/stdio (Files): Add m4/asm-underscore.m4.
32182         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32183         Reported by Ben Pfaff.
32184
32185 2010-05-16  Bruno Haible  <bruno@clisp.org>
32186
32187         verify: Avoid skipping the test on openSUSE 11.0.
32188         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32189
32190 2010-05-13  Bruno Haible  <bruno@clisp.org>
32191
32192         Avoid useless warnings from G++.
32193         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32194         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32195         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32196
32197 2010-05-11  Jim Meyering  <meyering@redhat.com>
32198
32199         maint.mk: tweak preceding change
32200         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32201         regexps tighter by anchoring at EOL, and make the new group "shy"
32202         for slightly decreased overhead.
32203
32204 2010-05-11  Eric Blake  <eblake@redhat.com>
32205
32206         maint.mk: gnulib doesn't guarantee NSIG
32207         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32208
32209 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32210
32211         test-pwrite.c: Remove unused variable declaration.
32212         * tests/test-pwrite.c (main): Remove read_buf declaration.
32213
32214         Remove useless test-pwrite.sh file.
32215         * tests/test-pwrite.sh: Delete file.
32216         * modules/pwrite-tests: Remove references.
32217         Reported by Bruno Haible.
32218
32219 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32220
32221         init.sh: fix a typo
32222         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32223
32224 2010-05-10  Jim Meyering  <meyering@redhat.com>
32225
32226         maint.mk: avoid using a temporary file in the always-defined-macros check
32227         * top/maint.mk (.re-defmac): Remove rule.
32228         (gl_trap_): Remove definition.
32229         (sc_prohibit_always-defined_macros): Rewrite not to create and
32230         depend on a temporary file.  Instead, depend on GNU grep's ability
32231         to read a list of regular expressions from stdin when given "-f -".
32232
32233 2010-05-09  Bruno Haible  <bruno@clisp.org>
32234
32235         Update to GNU gettext 0.18, part 1.
32236         * m4/gettext.m4: Update to GNU gettext 0.18.
32237         * m4/intl.m4: Likewise.
32238         * m4/po.m4: Likewise.
32239         * modules/gettext (Files): Add m4/fcntl-o.m4.
32240         (configure.ac): Require gettext infrastructure from version 0.18.
32241
32242 2010-05-09  Jim Meyering  <meyering@redhat.com>
32243
32244         init.sh: enable MALLOC_PERTURB_
32245         * tests/init.sh: Enable glibc's malloc-perturbing option.
32246
32247         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32248         With my recent change in init.sh from the two-line form:
32249             -#   : ${srcdir=.}
32250             -#   . "$srcdir/init.sh"; path_prepend_ .
32251             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32252         I noticed that using the one-line form would cause this test
32253         to fail with a false-positive, or to stop working altogether,
32254         depending on whether help-version changed or all the tests did.
32255         * top/maint.mk (_hv_regex): Remove this definition.
32256         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32257         (_hv_regex_strong): Use a stronger regex to check for conformance.
32258         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32259         Give a separate diagnostic for lack of conforming use.
32260
32261         maint.mk: prohibit definition of symbols defined by gnulib
32262         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32263         definition of symbols defined by gnulib.
32264
32265 2010-05-09  Bruno Haible  <bruno@clisp.org>
32266
32267         acl: Avoid test failure on Cygwin-hosted mingw.
32268         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32269
32270 2010-05-09  Bruno Haible  <bruno@clisp.org>
32271
32272         error: Use system's fcntl function.
32273         * lib/error.c (fcntl): Undefine.
32274
32275 2010-05-09  Jim Meyering  <meyering@redhat.com>
32276
32277         verify: adjust formatting to be more consistent
32278         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32279         argument-list '('s, and after one comma.
32280
32281 2010-05-09  Bruno Haible  <bruno@clisp.org>
32282
32283         error: More reliable output on mingw.
32284         * lib/error.c: Include <windows.h>.
32285         (is_open): New function.
32286         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32287         defined.
32288
32289 2010-05-09  Bruno Haible  <bruno@clisp.org>
32290
32291         vasnprintf: Fix syntax errors in libintl build on mingw.
32292         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32293         pad_ourselves and prec_ourselves after use.
32294
32295 2010-05-08  Bruno Haible  <bruno@clisp.org>
32296
32297         * lib/config.charset: Update comments for Cygwin 1.7.
32298         * lib/localcharset.c: Likewise.
32299
32300 2010-05-07  Jim Meyering  <meyering@redhat.com>
32301
32302         init.sh: improve comments
32303         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32304         . "${srcdir=.}/init.sh"; path_prepend_ .
32305         Add a note about path_prepend_ and the alternative of using
32306         TESTS_ENVIRONMENT.
32307
32308 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32309
32310         exclude: Unescape hashed patterns in wildcard mode.
32311         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32312         to the hash list.
32313         * tests/test-exclude8.sh: New test case.
32314         * modules/exclude-tests: Add new test.
32315
32316 2010-05-05  Eric Blake  <eblake@redhat.com>
32317
32318         verify: automate tests
32319         * modules/verify-tests: New module.
32320         * tests/test-verify.sh: New file.
32321         * tests/test-verify.c: Guard each negative test with a unique id.
32322         Also avoid warning about unused left hand of comma expressions.
32323
32324 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32325
32326         Further improvements to verify.h, suggested by Eric Blake.
32327         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32328         the GL_* versions, to avoid collision with OpenGL.
32329         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32330         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32331         than testing merely whether it's defined.
32332
32333         Modify verify.h to pacify gcc -Wredundant_decls.
32334         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32335         These use the prefix "GL_" since they're likely to be useful elsewhere.
32336         We may need to break them out into a different .h file.
32337         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32338         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32339         of verify_function__.
32340
32341 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32342
32343         Tests for module pwrite.
32344         * modules/pwrite-tests: New file.
32345         * tests/test-pwrite.sh: New file.
32346         * tests/test-pwrite.c: New file.
32347
32348         New module pwrite.
32349         * lib/unistd.in.h (pwrite): New declaration.
32350         * lib/pwrite.c: New file, from glibc with modifications.
32351         * m4/pwrite.m4: New file.
32352         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32353         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32354         REPLACE_PWRITE.
32355         * modules/pwrite: New file.
32356         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32357         REPLACE_PWRITE.
32358         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32359         * doc/posix-functions/pwrite.texi: Mention the new module.
32360
32361 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32362
32363         pread: Update documentation.
32364         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32365
32366 2010-05-04  Eric Blake  <eblake@redhat.com>
32367
32368         docs: update cygwin progress
32369         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32370         this bug.
32371         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32372         Added in cygwin 1.7.2.
32373         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32374         Likewise.
32375         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32376         Likewise.
32377         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32378         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32379         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32380         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32381         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32382         Mention nproc module.
32383         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32384         bug in cygwin 1.7.5 addition.
32385         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32386         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32387         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32388         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32389         1.7.5.
32390         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32391         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32392         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32393         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32394         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32395         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32396         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32397         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32398         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32399         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32400         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32401         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32402         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32403         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32404         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32405         Likewise.
32406         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32407         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32408         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32409         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32410         Likewise.
32411         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32412         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32413         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32414         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32415         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32416         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32417         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32418         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32419         Likewise.
32420         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32421         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32422         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32423         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32424         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32425         Likewise.
32426         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32427         Likewise.
32428         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32429         Likewise.
32430         * doc/glibc-functions/xdrrec_endofrecord.texi
32431         (xdrrec_endofrecord): Likewise.
32432         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32433         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32434         Likewise.
32435         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32436         Likewise.
32437
32438 2010-05-04  Jim Meyering  <meyering@redhat.com>
32439
32440         gendocs.sh: make its "-s FILE" option more useful
32441         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32442         $PACKAGE to reflect the probably-different basename of "FILE".
32443
32444 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32445
32446         bootstrap: don't ignore download_po_files failure
32447         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32448         failure.
32449
32450 2010-05-03  Jim Meyering  <meyering@redhat.com>
32451
32452         maint.mk: allow to pass options to gendocs.sh
32453         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32454         (gendocs_options_): New overridable variable.
32455
32456         gnu-web-doc-update: don't ignore configure or build failure
32457         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32458
32459         announce-gen: backslash-escape '@'s in --help output
32460         * build-aux/announce-gen: Fix syntax errors.
32461
32462         maint.mk, announce-gen: allow project-specific announcement mail headers
32463         * top/maint.mk (translation_project_): Define default.
32464         (announcement_Cc_, announcement_mail_headers_): Likewise.
32465         (announcement): Invoke announce-gen with new --mail-headers option.
32466         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32467
32468         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32469         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32470         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32471         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32472         line in the "err2" output file when running "make check" in verbose
32473         mode (i.e., with set -x enabled).
32474
32475 2010-05-03  Bruno Haible  <bruno@clisp.org>
32476
32477         wctob: Fix for weird platforms.
32478         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32479         argument value.
32480
32481 2010-05-03  Jim Meyering  <meyering@redhat.com>
32482
32483         maint.mk: prohibit unwarranted use of <strings.h>
32484         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32485         strings.h in a file that does not also use strcasecmp, strncasecmp,
32486         ffs or ffsll.
32487
32488         maint.mk: remove obsolete comments
32489         * top/maint.mk: Remove stale, commented-out rules.
32490
32491 2010-05-02  Bruno Haible  <bruno@clisp.org>
32492
32493         wcwidth: Declare also when it's aliased.
32494         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32495         macro.
32496
32497 2010-05-02  Bruno Haible  <bruno@clisp.org>
32498
32499         Fix regression from 2010-04-25.
32500         * gnulib-tool (func_modules_transitive_closure): Check the status of
32501         all modules, not only of the tests that are of the form foo-tests where
32502         foo is a module.
32503
32504 2010-05-02  Bruno Haible  <bruno@clisp.org>
32505
32506         wctob: Work around nasty Cygwin 1.7.2 bug.
32507         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32508         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32509
32510 2010-05-01  Bruno Haible  <bruno@clisp.org>
32511
32512         fpurge: Sharper test.
32513         * tests/test-fpurge.c (main): Add one more ftell check.
32514         * modules/fpurge-tests (Depends-on): Add ftell.
32515         Suggested by Eric Blake.
32516
32517 2010-05-01  Bruno Haible  <bruno@clisp.org>
32518
32519         ftello: Another test.
32520         * tests/test-ftello3.c: New file.
32521         * modules/ftello-tests (Files): Add it.
32522         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32523         MOSTLYCLEANFILES.
32524
32525         ftell: Another test.
32526         * tests/test-ftell3.c: New file.
32527         * modules/ftell-tests (Files): Add it.
32528         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32529         MOSTLYCLEANFILES.
32530
32531 2010-05-01  Bruno Haible  <bruno@clisp.org>
32532
32533         ftell, ftello: Work around Solaris bug.
32534         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32535         * lib/ftello.c: Include stdio-impl.h.
32536         (ftello): On Solaris, when _IOWRT is set, compute the result without
32537         looking at _IOREAD.
32538         * modules/ftello (Files): Add lib/stdio-impl.h.
32539         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32540         * doc/posix-functions/ftello.texi: Likewise.
32541         Reported by Eric Blake.
32542
32543 2010-05-01  Bruno Haible  <bruno@clisp.org>
32544
32545         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32546         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32547         the _IOWRT flag is also set.
32548
32549 2010-05-01  Bruno Haible  <bruno@clisp.org>
32550
32551         Fix doc about a HP-UX stdio bug.
32552         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32553         * doc/posix-functions/ftello.texi: Likewise.
32554
32555 2010-05-01  Bruno Haible  <bruno@clisp.org>
32556
32557         lseek test: Fix failure on Solaris.
32558         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32559         output.
32560
32561 2010-04-30  Jim Meyering  <meyering@redhat.com>
32562
32563         bootstrap: don't ignore failure to generate po*/Makevars
32564         * build-aux/bootstrap (with_gettext): Don't ignore failure
32565         to create po/Makevars or runtime-po/Makevars.
32566
32567 2010-04-29  Eric Blake  <eblake@redhat.com>
32568
32569         headers: relax license to LGPLv2+
32570         * modules/fcntl-h (License): Relax license.
32571         * modules/getopt-posix (License): Likewise.
32572         * modules/locale (License): Likewise.
32573         * modules/math (License): Likewise.
32574         * modules/pty (License): Likewise.
32575         * modules/sched (License): Likewise.
32576         * modules/search (License): Likewise.
32577         * modules/spawn (License): Likewise.
32578         * modules/stdarg (License): Likewise.
32579         * modules/sysexits (License): Likewise.
32580
32581 2010-04-29  Jim Meyering  <meyering@redhat.com>
32582
32583         inttypes: relax license to LGPLv2+
32584         * modules/inttypes (License): Relax license.
32585
32586 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32587
32588         * top/maint.mk (indent): Run twice to produce idempotent results.
32589
32590 2010-04-28  Bruno Haible  <bruno@clisp.org>
32591
32592         getdate: Generate getdate.c in the source directory.
32593         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32594         MOSTLYCLEANFILES.
32595         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32596
32597 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32598
32599         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32600         is not declared as a const *; avoid warnings in that case.
32601
32602 2010-04-28  Eric Blake  <eblake@redhat.com>
32603
32604         canonicalize-lgpl: avoid compiler warning
32605         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32606         declaration' / 'extraneous semicolon' warning with some compilers.
32607         Reported by Andreas Gruenbacher.
32608
32609 2010-04-28  Jim Meyering  <meyering@redhat.com>
32610
32611         init.sh: ensure a more reliable exit status when exiting via trap
32612         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32613         Inspired by patches from Dmitry V. Levin.
32614         Also trap on signal 3 (SIGQUIT).
32615
32616 2010-04-27  Bruno Haible  <bruno@clisp.org>
32617
32618         Update doc about utimes().
32619         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32620         'utimens' module.
32621         Reported by Andreas Gruenbacher <agruen@suse.de>.
32622
32623 2010-04-27  Eric Blake  <eblake@redhat.com>
32624
32625         full-read, full-write: relax license
32626         * modules/full-read (License): Drop to LGPLv2+.
32627         * modules/full-write (License): Likewise.
32628         * modules/safe-read (License): Likewise.
32629         * modules/safe-write (License): Likewise.
32630
32631         pthread: mention library for linking
32632         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32633
32634 2010-04-27  Jim Meyering  <meyering@redhat.com>
32635
32636         maint.mk: fix a bug introduced in last change
32637         * top/maint.mk (gl_assured_headers_): Now that all names are on
32638         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32639         is not anchored to end of word, it should be adequate.
32640
32641         maint.mk: avoid side-effect in latest syntax-check
32642         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32643         to run commands via $(shell...), and hence to incur cost only when
32644         the new rule is actually run.
32645
32646         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32647         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32648         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32649         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32650         (gl_assured_headers_, az_, AZ_): Define.
32651         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32652
32653 2010-04-26  Jim Meyering  <jim@meyering.net>
32654             Bruno Haible  <bruno@clisp.org>
32655
32656         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32657         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32658         Prompted by an exchange with Gilles Espinasse.
32659
32660 2010-04-26  Jim Meyering  <meyering@redhat.com>
32661
32662         git-version-gen: aesthetic tweak
32663         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32664         so that the command remains on a single line.
32665
32666 2010-04-26  Eric Blake  <eblake@redhat.com>
32667
32668         git-version-gen: allow use on EBCDIC hosts
32669         * build-aux/git-version-gen (dirty): Use literal rather than tying
32670         ourselves to ascii.
32671         Reported by Steve Goetze.
32672
32673 2010-04-25  Bruno Haible  <bruno@clisp.org>
32674
32675         netdb: Add support for GNULIB_POSIXCHECK.
32676         * lib/netdb.in.h: Include warn-on-use.h.
32677         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32678         functions are used when GNULIB_POSIXCHECK is defined and the
32679         getaddrinfo module is not in use.
32680         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32681         freeaddrinfo, gai_strerror, getnameinfo are declared.
32682         * modules/netdb (Depends-on): Add warn-on-use.
32683         (Makefile.am): Include warn-on-use.h in netdb.h.
32684
32685 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32686
32687         build: avoid "make check" failure without .git/ directory
32688         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32689         there is no .git/ directory.
32690
32691 2010-04-25  Bruno Haible  <bruno@clisp.org>
32692
32693         ptsname: Fix misuse of ttyname_r.
32694         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32695         of errno.
32696
32697 2010-04-25  Bruno Haible  <bruno@clisp.org>
32698
32699         ttyname_r: Make it work on Solaris 10.
32700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32701         if the system function has the POSIX declaration. Test whether the
32702         function fails if the buffer is less than 128 bytes large.
32703         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32704         system's ttyname_r function. Provide a reasonably large buffer.
32705         * modules/ttyname_r (Depends-on): Add extensions.
32706         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32707
32708 2010-04-25  Bruno Haible  <bruno@clisp.org>
32709
32710         Use the 'extensions' module for some more functions on Solaris.
32711         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32712         module.
32713         * doc/posix-functions/ctime_r.texi: Likewise.
32714         * doc/posix-functions/getgrgid_r.texi: Likewise.
32715         * doc/posix-functions/getgrnam_r.texi: Likewise.
32716         * doc/posix-functions/getpwnam_r.texi: Likewise.
32717         * doc/posix-functions/getpwuid_r.texi: Likewise.
32718         * doc/posix-functions/readdir_r.texi: Likewise.
32719         * doc/posix-functions/sigwait.texi: Likewise.
32720         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32721         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32722
32723 2010-04-25  Bruno Haible  <bruno@clisp.org>
32724
32725         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32727         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32728         * lib/ttyname_r.c: Include <limits.h>.
32729         (ttyname_r): Define using the system's ttyname_r function, if it exists
32730         and not on Solaris.
32731         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32732         set.
32733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32734         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32735         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32736         Reported by Simon Josefsson.
32737
32738 2010-04-25  Bruno Haible  <bruno@clisp.org>
32739
32740         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32741         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32742         * doc/posix-functions/ctime_r.texi: Likewise.
32743         * doc/posix-functions/getgrgid_r.texi: Likewise.
32744         * doc/posix-functions/getgrnam_r.texi: Likewise.
32745         * doc/posix-functions/getlogin_r.texi: Likewise.
32746         * doc/posix-functions/getpwnam_r.texi: Likewise.
32747         * doc/posix-functions/getpwuid_r.texi: Likewise.
32748         * doc/posix-functions/readdir_r.texi: Likewise.
32749         * doc/posix-functions/sigwait.texi: Likewise.
32750         * doc/posix-functions/ttyname_r.texi: Likewise.
32751         Reported by Simon Josefsson.
32752
32753 2010-04-25  Bruno Haible  <bruno@clisp.org>
32754
32755         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32756         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32757         also to --create-testdir.
32758         (func_acceptable): Don't consider the status of *-tests modules here.
32759         (func_modules_transitive_closure): Consider it here, before including a
32760         test module.
32761         (func_import, func_create_testdir): Set inc_all_direct_tests,
32762         inc_all_indirect_tests.
32763         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32764         --create-testdir and --create-megatestdir.
32765
32766 2010-04-25  Bruno Haible  <bruno@clisp.org>
32767
32768         gnulib-tool: Add --without-*-tests options.
32769         * gnulib-tool (func_usage): Document the --without-*-tests options.
32770         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32771         excl_unportable_tests): New variables.
32772         Fail if they are specified with --import or --update.
32773         (func_acceptable): Respect the excl_*_tests variables.
32774         (func_import): Set the excl_*_tests variables to empty.
32775
32776 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32777             Bruno Haible  <bruno@clisp.org>
32778
32779         Work around a MacOS X 10.4 bug with openpty.
32780         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32781         * tests/test-openpty.c (main): Close the master side explicitly.
32782
32783 2010-04-25  Bruno Haible  <bruno@clisp.org>
32784
32785         strnlen: Fix a C++ test error on MacOS X and Solaris.
32786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32787         the function is not declared.
32788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32789         Simon Josefsson.
32790
32791 2010-04-24  Bruno Haible  <bruno@clisp.org>
32792
32793         Avoid a gcc warning.
32794         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32795         of correct type for %08lx directive.
32796         Reported by Eric Blake.
32797
32798 2010-04-24  Bruno Haible  <bruno@clisp.org>
32799
32800         vasnprintf: Correct errno value in case of out-of-memory.
32801         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32802         or sprintf. Use the errno value from SNPRINTF or sprintf.
32803         Reported by Ian Beckwith <ianb@erislabs.net>.
32804
32805 2010-04-24  Bruno Haible  <bruno@clisp.org>
32806
32807         ansi-c++-opt: Find correct compiler when cross-compiling.
32808         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32809         AC_CHECK_PROGS.
32810         Reported by Simon Josefsson.
32811
32812 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32813
32814         vc-list-files: Add support for subversion
32815         * build-aux/vc-list-files: Use "svn list" to generate the list of
32816         files controlled by subversion.
32817
32818 2010-04-23  Jim Meyering  <meyering@redhat.com>
32819
32820         vc-list-files tests: convert to use init.sh
32821         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32822         path_prepend_.
32823         Use Exit, not exit.
32824         Use skip_ rather than open coding it.
32825         Remove trap set-up and compare definitions.
32826         * tests/test-vc-list-files-git.sh: Likewise.
32827         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32828
32829 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32830
32831         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32832         backup files.
32833
32834 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32835
32836         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32837
32838 2010-04-20  Eric Blake  <eblake@redhat.com>
32839
32840         tests: be robust to ignored SIGPIPE
32841         * tests/test-select-in.sh: Consume all output.
32842         * tests/test-lseek.sh: Check correct exit status, while avoiding
32843         EPIPE.
32844
32845 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32846             Bruno Haible  <bruno@clisp.org>
32847
32848         visibility: Don't use -fvisibility if it leads to a warning.
32849         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32850         yes, don't pretend that visibility works if it leads to a warning.
32851         Reported by Mike Gran <spk121@yahoo.com>.
32852
32853 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32854
32855         * build-aux/bootstrap: Use "git -h" for testing for supported options
32856         instead of "git --help".  The short-form option only shows a summary,
32857         and doesn't layout the full man page.  Grep for the full option name
32858         in the summary, too.
32859
32860 2010-04-19  Bruno Haible  <bruno@clisp.org>
32861
32862         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32863         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32864         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32865         mention of RELOCATABLE_STRIP.
32866         Reported by Sylvain Beucler <beuc@beuc.net>.
32867
32868 2010-04-19  Bruno Haible  <bruno@clisp.org>
32869
32870         * lib/diffseq.h: Fix typo in comment.
32871         Reported by Eric Blake.
32872
32873 2010-04-19  Bruno Haible  <bruno@clisp.org>
32874
32875         ioctl: Move autoconf macro to a .m4 file.
32876         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32877         * modules/ioctl (Files): Add it.
32878         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32879         Reported by Ian Beckwith <ianb@erislabs.net>.
32880
32881 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32882             Bruno Haible  <bruno@clisp.org>
32883
32884         diffseq: Accommodate use-case with abstract arrays.
32885         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32886         is not defined.
32887         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32888         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32889
32890 2010-04-18  Bruno Haible  <bruno@clisp.org>
32891
32892         * doc/posix-headers/stdbool.texi: More precise wording.
32893
32894 2010-04-17  Jim Meyering  <meyering@redhat.com>
32895
32896         maint.mk: use gnu-style indentation in an embedded perl script
32897         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32898         Rename variable: s/two/last_two_bytes/
32899
32900 2010-04-16  Eric Blake  <eblake@redhat.com>
32901
32902         test-stdbool: skip test that fails with Solaris CC
32903         * tests/test-stdbool.c (f): Skip test that causes compilation
32904         error under buggy C++ compiler.
32905         * lib/stdbool.in.h: Document the limitation.
32906         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32907
32908         setenv: allow compilation with C++
32909         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32910         register keyword.
32911
32912         stdint: allow test to pass with C++
32913         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32914
32915         getopt: allow compilation with C++
32916         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32917         struct.
32918         * lib/getopt.c (_getopt_internal_r): Use correct type.
32919         Reported by Dagobert Michelson, via Joel E. Denny.
32920
32921 2010-04-16  Bruno Haible  <bruno@clisp.org>
32922
32923         Override netdb.h always.
32924         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32925         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32926         Reported by Ludovic Courtès <ludo@gnu.org>.
32927
32928 2010-04-15  Bruno Haible  <bruno@clisp.org>
32929
32930         openpty: Fix mistake from 2010-03-21.
32931         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32932         Reported by Simon Josefsson.
32933
32934 2010-04-15  Eric Blake  <eblake@redhat.com>
32935
32936         test-forkpty: fix expected signature
32937         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32938         Reported by Simon Josefsson.
32939
32940 2010-04-15  Jim Meyering  <meyering@redhat.com>
32941
32942         maint.mk: texinfo_suffix_re_: correct the default regexp
32943         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32944
32945         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32946         make it configurable via texinfo_suffix_re_.
32947
32948 2010-04-14  Eric Blake  <eblake@redhat.com>
32949
32950         strtok_r: relax license to LGPLv2+
32951         * modules/strtok_r (License): Relax license.
32952         Reported by Matthias Bolte.
32953
32954 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32955
32956         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32957         version 1.4.4 by default instead of requiring the libgcrypt
32958         version used during build.  This makes it possible to use the
32959         application with older but still binary compatible libgcrypt
32960         versions.
32961
32962 2010-04-13  Eric Blake  <eblake@redhat.com>
32963
32964         getopt-gnu: match recent glibc fixes and posix ruling
32965         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32966         '+' handling, when requesting extensions.
32967         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32968         'W;' handling.
32969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32970         * doc/posix-functions/getopt.texi (getopt): Document this.
32971         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32973         Likewise.
32974
32975         getopt: merge bug fixes from glibc
32976         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32977         diagnostics.  Honor '+:' correctly.  Reject ';'.
32978
32979         getopt-posix: detect MacOS bug
32980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32981         optind when missing a required argument.
32982         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32983         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32984         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32985         Likewise.
32986
32987         getopt-posix: avoid spurious failure on Solaris
32988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32989         an indicator that setting optind=1 is sufficient for reset.
32990
32991         getopt-posix: avoid spurious failure on FreeBSD
32992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32993         in POSIX mode, since the m4 test uses it.
32994
32995         gnulib-tool: silence warning on BSD sh
32996         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32997
32998 2010-04-13  Jim Meyering  <meyering@redhat.com>
32999
33000         doc: users.txt: GNU patch now uses gnulib
33001         * users.txt: Add patch.
33002
33003 2010-04-12  Jim Meyering  <meyering@redhat.com>
33004
33005         maint.mk: generate more concise timing data for syntax-check rules
33006         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33007         " done" from each line that reports a syntax-check test duration.
33008
33009 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33010
33011         git-version-gen: use "git update-index..." rather than "git status"
33012         * build-aux/git-version-gen: Use git update-index --refresh, not
33013         "git status".  With some versions of git, "git status" would fail
33014         to update the index and result in an unwarranted "-dirty" suffix.
33015
33016 2010-04-11  Jim Meyering  <meyering@redhat.com>
33017
33018         openat: correct formatting (no semantic change)
33019         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33020         Suggested by Bruno Haible.
33021
33022 2010-04-11  Bruno Haible  <bruno@clisp.org>
33023
33024         Stricter declaration checking in testdirs.
33025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33026         If for_tests is true, augment AM_CPPFLAGS to define
33027         GNULIB_STRICT_CHECKING.
33028         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33029         GNULIB_STRICT_CHECKING is defined, verify that the function is
33030         declared.
33031
33032 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33033             Bruno Haible  <bruno@clisp.org>
33034
33035         libunistring: Improve configure output.
33036         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33037         Don't say "consider installing GNU libunistring" when checking again
33038         with libiconv.
33039
33040 2010-04-11  Bruno Haible  <bruno@clisp.org>
33041
33042         libunistring: Correct value of $LTLIBUNISTRING.
33043         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33044         correct the value of $LTLIBUNISTRING.
33045
33046 2010-04-11  Bruno Haible  <bruno@clisp.org>
33047
33048         havelib: Add static libraries to LIBS in the right order.
33049         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33050         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33051
33052 2010-04-11  Bruno Haible  <bruno@clisp.org>
33053
33054         libunistring: Detect libunistring also when it depends on libiconv.
33055         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33056         the second AC_LIB_HAVE_LINKFLAGS invocation.
33057
33058 2010-04-11  James Youngman  <jay@gnu.org>
33059
33060         close-stream: declare local scalars to be "const"
33061         * lib/close-stream.c (close_stream): Make boolean variables const
33062         to document the fact that we set but do not change them.
33063
33064 2010-04-11  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33067
33068 2010-04-11  Jim Meyering  <meyering@redhat.com>
33069
33070         maint.mk: don't include dist-check.mk
33071         * top/maint.mk: Remove bogus include directive.
33072
33073         maint.mk: improve empty-line-at-EOF check
33074         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33075         solution, rather than tail+Perl-based one.  The latter would read
33076         a few kilobytes from the end of each file, and did not handle empty
33077         files properly.
33078
33079         maint.mk: print the elapsed time for each syntax-check rule
33080         * top/maint.mk (sc_m_rules_): Save start time in a file.
33081         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33082         (local-check): Interpose the .z rules
33083
33084 2010-04-11  Jim Meyering  <meyering@redhat.com>
33085
33086         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33087         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33088         empty file with one that ends in an empty line.
33089
33090 2010-04-10  Bruno Haible  <bruno@clisp.org>
33091
33092         mkdir: Make it work on mingw64.
33093         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33094         * lib/mkdir.c: Update comment.
33095         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33096
33097 2010-04-10  Bruno Haible  <bruno@clisp.org>
33098
33099         Don't override improved macro from newer autoconf.
33100         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33101         autoconf >= 2.62.
33102         Reported by Joel E. Denny <jdenny@clemson.edu>.
33103
33104 2010-04-10  Jim Meyering  <meyering@redhat.com>
33105
33106         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33107         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33108
33109         maint.mk: correct a diagnostic
33110         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33111         in diagnostic; now use $prohibit.
33112
33113 2010-04-10  Bruno Haible  <address@hidden>
33114
33115         fchownat: Fix a C++ test error on Solaris 8.
33116         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33117         the function does not exist.
33118
33119 2010-04-10  Bruno Haible  <bruno@clisp.org>
33120
33121         vasnprintf: Add more tests.
33122         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33123         (test_function): Test converting an invalid wide string.
33124
33125         vasnprintf: Correct handling of unconvertible wide string arguments.
33126         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33127         VASNPRINTF.
33128         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33129         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33130         smaller than the expected maximum need for the directive. Set errno to
33131         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33132         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33134         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33135         * modules/vasnprintf (Files): Add m4/printf.m4.
33136         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33137
33138 2010-04-10  Bruno Haible  <bruno@clisp.org>
33139
33140         vasnprintf: Fix crash in %ls directive.
33141         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33142         string is passed as argument to %ls, with no precision and no width.
33143         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33144
33145 2010-04-10  Bruno Haible  <bruno@clisp.org>
33146
33147         vasnprintf: Fix multiple test failures on mingw.
33148         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33149         _snprintf, or snwprintf, not _snwprintf.
33150
33151 2010-04-10  Bruno Haible  <bruno@clisp.org>
33152
33153         write: Fix a C++ test error on mingw.
33154         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33155
33156 2010-04-10  Bruno Haible  <bruno@clisp.org>
33157
33158         vasnprintf test: Reduce code duplication.
33159         * tests/test-vasnprintf.c (test_function): New function, extracted from
33160         test_vasnprintf.
33161         (test_vasnprintf, test_asnprintf): Invoke it.
33162
33163 2010-04-10  Bruno Haible  <bruno@clisp.org>
33164
33165         strnlen: Fix warning in C++ mode on MacOS X.
33166         * lib/string.in.h (strnlen): Use the modern idiom.
33167         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33168         defining strnlen as a macro already in <config.h>.
33169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33170         REPLACE_STRNLEN.
33171         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33172         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33173
33174 2010-04-08  James Youngman  <jay@gnu.org>
33175
33176         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33177         the example.
33178
33179 2010-04-09  Jim Meyering  <meyering@redhat.com>
33180
33181         maint.mk: print better diagnostic when there is no $(_hv_file)
33182         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33183         announce that when $(_hv_file) (aka help-version) does not exist.
33184
33185         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33186         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33187         not try to interpret its random input bytes.  Jarno Rajahalme reported
33188         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33189         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33190         (mktempd_): Likewise, just in case.
33191
33192         ftruncate: add two years to projected module removal date: 2012
33193         * m4/ftruncate.m4: Adjust comments.
33194
33195         ftruncate: mark module as obsolete; even MinGW provides it, now
33196         * modules/ftruncate (Status): Obsolete.
33197         (Notice): Say that.
33198         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33199         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33200
33201 2010-04-08  Bruno Haible  <bruno@clisp.org>
33202
33203         Fix side effects from tests-related modules.
33204         * modules/dprintf-posix (Comment): New section.
33205         * modules/fprintf-posix (Comment): Likewise.
33206         * modules/obstack-printf-posix (Comment): Likewise.
33207         * modules/printf-posix (Comment): Likewise.
33208         * modules/snprintf-posix (Comment): Likewise.
33209         * modules/sprintf-posix (Comment): Likewise.
33210         * modules/vasnprintf-posix (Comment): Likewise.
33211         * modules/vasprintf-posix (Comment): Likewise.
33212         * modules/vdprintf-posix (Comment): Likewise.
33213         * modules/vfprintf-posix (Comment): Likewise.
33214         * modules/vprintf-posix (Comment): Likewise.
33215         * modules/vsnprintf-posix (Comment): Likewise.
33216         * modules/vsprintf-posix (Comment): Likewise.
33217         * modules/xprintf-posix (Comment): Likewise.
33218         * modules/xvasprintf-posix (Comment): Likewise.
33219         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33220         * modules/floorf-tests (Depends-on): Likewise.
33221         * modules/round-tests (Depends-on): Likewise.
33222         * modules/roundf-tests (Depends-on): Likewise.
33223         * modules/trunc-tests (Depends-on): Likewise.
33224         * modules/truncf-tests (Depends-on): Likewise.
33225         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33226         'fprintf-posix' module is not present.
33227         * tests/test-floorf2.c (check): Likewise.
33228         * tests/test-trunc2.c (check): Likewise.
33229         * tests/test-truncf2.c (check): Likewise.
33230         * tests/test-round2.c (equal): Likewise.
33231         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33232
33233 2010-04-07  Karl Berry  <karl@gnu.org>
33234
33235         * config/srclist.txt,
33236         * config/srclistvars.sh,
33237         * config/srclist-update: doc fixes.
33238
33239 2010-04-07  Jim Meyering  <meyering@redhat.com>
33240
33241         maint.mk: add a PATH crosschecking syntax-check rule
33242         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33243         Useful if you use a test like the one in help-version (coreutils,
33244         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33245         printed by prog --version.
33246
33247 2010-04-06  Bruno Haible  <bruno@clisp.org>
33248
33249         Fix link error on mingw.
33250         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33251         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33252
33253 2010-04-06  Bruno Haible  <bruno@clisp.org>
33254
33255         Assume rmdir exists.
33256         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33257
33258 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33259
33260         doc: update users.txt
33261         * users.txt: Add gcal.
33262
33263 2010-04-06  Jim Meyering  <meyering@redhat.com>
33264
33265         init.sh: simply unset TMPDIR rather than risking env -i
33266         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33267         although it probably works fine on all Unix-based systems, some
33268         systems (Cygwin?) cannot tolerate a totally cleared environment.
33269         Suggestion from Eric Blake.
33270
33271 2010-04-06  Jim Meyering  <meyering@redhat.com>
33272
33273         init.sh: portability fix: use env's POSIX-specified -i option not -u
33274         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33275         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33276
33277 2010-04-05  Bruno Haible  <bruno@clisp.org>
33278
33279         btowc: Work around Cygwin 1.7.2 bug.
33280         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33281         does not map NUL to 0.
33282         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33283
33284 2010-04-05  Bruno Haible  <bruno@clisp.org>
33285
33286         Make the multithread modules work on Cygwin 1.7.2.
33287         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33288         imported symbols can be declared weak, so that it returns "no" on
33289         Cygwin 1.7.2.
33290
33291 2010-04-05  Bruno Haible  <bruno@clisp.org>
33292
33293         Use the module 'strncat'.
33294         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33295
33296         Tests for module 'strncat'.
33297         * modules/strncat-tests: New file.
33298         * tests/test-strncat.c: New file.
33299
33300         New module 'strncat'.
33301         * lib/string.in.h (strncat): New declaration.
33302         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33303         * m4/strncat.m4: New file, based on m4/memchr.m4.
33304         * modules/strncat: New file.
33305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33306         is declared.
33307         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33308         REPLACE_STRNCAT.
33309         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33310         REPLACE_STRNCAT.
33311         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33312         module.
33313         * tests/test-string-c++.cc: Check signature of strncat.
33314
33315 2010-04-05  Jim Meyering  <meyering@redhat.com>
33316
33317         xstrtoumax-tests: convert to use init.sh
33318         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33319         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33320         Use Exit, not exit.
33321         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33322
33323         xstrtoimax-tests: convert to use init.sh
33324         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33325         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33326         Use Exit, not exit.
33327         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33328
33329 2010-04-05  Bruno Haible  <bruno@clisp.org>
33330
33331         sys_socket: Avoid #define replacements in C++ mode.
33332         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33333         warning to the function if possible, rather than #defining the symbol
33334         to a dysfunctional alias.
33335
33336 2010-04-05  Bruno Haible  <bruno@clisp.org>
33337
33338         fseeko: Fix C++ test error on mingw.
33339         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33340         gl_FUNC_FSEEKO.
33341         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33342         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33343         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33344         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33345
33346 2010-04-05  Bruno Haible  <bruno@clisp.org>
33347
33348         duplocale: Improve test output.
33349         * tests/test-duplocale.c (main): Print reason for skipped test.
33350
33351 2010-04-05  Bruno Haible  <bruno@clisp.org>
33352
33353         Assume rmdir exists.
33354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33355         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33356
33357 2010-04-05  Bruno Haible  <bruno@clisp.org>
33358
33359         Fix link error on Solaris 8 with cc.
33360         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33361
33362 2010-04-05  Bruno Haible  <bruno@clisp.org>
33363
33364         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33365         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33366
33367 2010-04-05  Bruno Haible  <bruno@clisp.org>
33368
33369         vasprintf: Update documentation.
33370         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33371
33372 2010-04-05  Bruno Haible  <bruno@clisp.org>
33373
33374         ptsname: Improve test.
33375         * tests/test-ptsname.c (main): Also try the various master names of BSD
33376         systems.
33377
33378 2010-04-05  Bruno Haible  <bruno@clisp.org>
33379
33380         memchr: Avoid a possible C++ test error.
33381         * lib/string.in.h (memchr): Provide declaration if function is missing.
33382         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33383         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33385         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33386
33387 2010-04-05  Bruno Haible  <bruno@clisp.org>
33388
33389         strtok_r: Improve idiom.
33390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33391         AC_LIBOBJ is used.
33392
33393 2010-04-05  Bruno Haible  <bruno@clisp.org>
33394
33395         strdup: Improve idiom.
33396         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33397         AC_LIBOBJ is used.
33398         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33399         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33400         when AC_LIBOBJ is used.
33401
33402 2010-04-05  Bruno Haible  <bruno@clisp.org>
33403
33404         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33405         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33406         don't set REPLACE_MBSINIT to 1.
33407         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33408         don't set REPLACE_MBRTOWC to 1.
33409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33410         exist, don't set REPLACE_MBSRTOWCS to 1.
33411         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33412         exist, don't set REPLACE_MBSNRTOWCS to 1.
33413         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33414         don't set REPLACE_WCRTOMB to 1.
33415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33416         exist, don't set REPLACE_WCSRTOMBS to 1.
33417         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33418         exist, don't set REPLACE_WCSNRTOMBS to 1.
33419
33420 2010-04-05  Bruno Haible  <bruno@clisp.org>
33421
33422         ldexpl: Improve idiom.
33423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33424         make sure to set HAVE_DECL_LDEXPL to 0.
33425
33426 2010-04-05  Jim Meyering  <meyering@redhat.com>
33427
33428         xstrtol-tests: convert to use init.sh
33429         * modules/xstrtol-tests (Files): Add tests/init.sh.
33430         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33431         Use Exit, not exit.
33432         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33433
33434         atexit-tests: convert to use init.sh
33435         * modules/atexit-tests (Files): Add tests/init.sh.
33436         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33437         Use Exit, not exit.
33438         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33439
33440         init.sh: fix typo
33441         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33442
33443         init.sh: make it easier for a test script to write to the tty, ...
33444         when using automake's parallel-tests mode.
33445         * tests/init.sh (stderr_fileno_): Define overridable variable.
33446         (warn_): New function, to use it.
33447         (fail_, skip_, framework_failure_): Use warn_.
33448
33449 2010-04-04  Bruno Haible  <bruno@clisp.org>
33450
33451         btowc: Avoid warning.
33452         * lib/btowc.c: Include <stdlib.h>.
33453         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33454
33455 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33456             Bruno Haible  <bruno@clisp.org>
33457
33458         wchar: Port to NetBSD 1.5.
33459         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33460         * lib/wctype.in.h (WEOF): Likewise.
33461
33462 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33463             Bruno Haible  <bruno@clisp.org>
33464
33465         Port extended stdio to NetBSD 1.5.
33466         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33467         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33468         older.
33469
33470 2010-04-04  Bruno Haible  <bruno@clisp.org>
33471
33472         string: Remove unused substitution.
33473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33474         HAVE_DECL_STRERROR.
33475         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33476
33477 2010-04-04  Bruno Haible  <bruno@clisp.org>
33478
33479         strtod: Avoid a possible C++ test error.
33480         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33481         set REPLACE_STRTOD.
33482
33483 2010-04-04  Bruno Haible  <bruno@clisp.org>
33484
33485         strerror: Update documentation.
33486         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33487
33488 2010-04-04  Bruno Haible  <bruno@clisp.org>
33489
33490         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33491         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33492         _GL_CXXALIAS_SYS_CAST.
33493
33494 2010-04-04  Bruno Haible  <bruno@clisp.org>
33495
33496         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33497         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33498         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33499         REPLACE_FREXPL to 1.
33500         * doc/posix-functions/frexpl.texi: Update documentation.
33501
33502 2010-04-04  Bruno Haible  <bruno@clisp.org>
33503
33504         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33505         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33506
33507 2010-04-04  Bruno Haible  <bruno@clisp.org>
33508
33509         Implement nanosleep for native Windows.
33510         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33511
33512 2010-04-04  Bruno Haible  <bruno@clisp.org>
33513
33514         math: Fix some C++ test errors on Solaris 8.
33515         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33516
33517 2010-04-04  Bruno Haible  <bruno@clisp.org>
33518
33519         math: Fix some C++ test errors on Cygwin.
33520         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33521         truncl): Provide declaration if the system does not have it.
33522         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33523         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33524         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33525         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33526         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33527         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33528         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33529         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33530         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33531         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33532         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33533         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33534         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33535         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33536         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33537         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33539         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33540         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33541         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33542         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33543         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33544
33545 2010-04-04  Bruno Haible  <bruno@clisp.org>
33546
33547         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33548         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33549         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33550         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33551         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33552         * m4/isinf.m4 (gl_ISINF): Likewise.
33553         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33554
33555 2010-04-04  Bruno Haible  <bruno@clisp.org>
33556
33557         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33558         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33559
33560 2010-04-04  Bruno Haible  <bruno@clisp.org>
33561
33562         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33563         * modules/tmpfile (configure.ac): Update.
33564
33565         tmpfile: Fix C++ test error on mingw.
33566         * lib/stdio.in.h (tmpfile): New declaration.
33567         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33568         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33569         * modules/tmpfile (Depends-on): Add stdio.
33570         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33571         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33572         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33573         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33574         REPLACE_TMPFILE.
33575         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33576
33577 2010-04-04  Bruno Haible  <bruno@clisp.org>
33578
33579         ioctl: Fix C++ test error on mingw.
33580         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33581         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33582         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33583
33584 2010-04-03  Bruno Haible  <bruno@clisp.org>
33585
33586         wcwidth: Fix C++ test error on mingw.
33587         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33589         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33590
33591 2010-04-03  Bruno Haible  <bruno@clisp.org>
33592
33593         nanosleep: Fix C++ test error on mingw.
33594         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33595         * lib/time.in.h (nanosleep): Use modern idiom.
33596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33597         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33598         REPLACE_NANOSLEEP to 1.
33599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33600         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33601
33602 2010-04-03  Bruno Haible  <bruno@clisp.org>
33603
33604         strptime: Fix C++ test error on mingw.
33605         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33606         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33607         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33608         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33609         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33610         not REPLACE_STRPTIME.
33611         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33612         REPLACE_STRPTIME.
33613
33614 2010-04-03  Bruno Haible  <bruno@clisp.org>
33615
33616         timegm: Fix C++ test error on mingw.
33617         * lib/time.in.h (timegm): Use modern idiom.
33618         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33619         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33620         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33621         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33622
33623 2010-04-03  Bruno Haible  <bruno@clisp.org>
33624
33625         timegm: Assume declaration if function exists.
33626         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33627         if it exists. Don't clobber ac_cv_func_timegm.
33628
33629 2010-04-03  Bruno Haible  <bruno@clisp.org>
33630
33631         time_r: Fix C++ test error on mingw.
33632         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33633         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33634         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33635         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33636         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33637
33638 2010-04-03  Bruno Haible  <bruno@clisp.org>
33639
33640         time_r: Minor updates.
33641         * modules/time_r (Description): Mention the provided functions.
33642         * lib/time_r.c: Don't include <string.h>.
33643         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33644         * doc/posix-functions/localtime_r.texi: Likewise.
33645
33646 2010-04-03  Bruno Haible  <bruno@clisp.org>
33647
33648         time: Fix regression introduced on 2010-03-08.
33649         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33650         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33651
33652 2010-04-03  Jim Meyering  <meyering@redhat.com>
33653
33654         maint.mk: don't silently disable project-specific syntax-check rules
33655         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33656         that they need to convert their project-specific syntax-check rules
33657         to use the new _sc_search_regexp.
33658
33659 2010-04-03  Bruno Haible  <bruno@clisp.org>
33660
33661         fchdir: Fix regression introduced on 2010-03-08.
33662         * lib/unistd.in.h (fchdir): Fix declaration.
33663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33665         REPLACE_FCHDIR.
33666         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33667         REPLACE_FCHDIR.
33668
33669 2010-04-03  Bruno Haible  <bruno@clisp.org>
33670
33671         getpagesize: Fix C++ test error on mingw.
33672         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33673         system does not declare the function.
33674         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33675         declared.
33676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33677         HAVE_DECL_GETPAGESIZE.
33678         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33679
33680 2010-04-03  Bruno Haible  <bruno@clisp.org>
33681
33682         stdio: Make C++ tests work on mingw.
33683         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33684         does not declare the function.
33685
33686 2010-04-03  Bruno Haible  <bruno@clisp.org>
33687
33688         ftello: Fix C++ test error on mingw.
33689         * lib/stdio.in.h (ftello): Use modern idiom.
33690         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33691         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33692         is missing and that it needs to be replaced.
33693         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33695         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33696
33697 2010-04-03  Bruno Haible  <bruno@clisp.org>
33698
33699         fseeko: Fix C++ test error on mingw.
33700         * lib/stdio.in.h (fseeko): Use modern idiom.
33701         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33703         is missing and that it needs to be replaced.
33704         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33706         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33707
33708 2010-04-03  Bruno Haible  <bruno@clisp.org>
33709
33710         mkstemp: Fix C++ test error on mingw.
33711         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33713         function is missing and that it needs to be replaced.
33714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33715         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33716
33717 2010-04-03  Bruno Haible  <bruno@clisp.org>
33718
33719         stpncpy: Fix C++ test error on mingw.
33720         * lib/string.in.h (stpncpy): Use modern idiom.
33721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33722         function is missing and that it needs to be replaced.
33723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33724         REPLACE_STPNCPY.
33725         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33726
33727 2010-04-03  Bruno Haible  <bruno@clisp.org>
33728
33729         sys_stat: Fix C++ test error on mingw.
33730         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33731         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33732
33733 2010-04-03  Bruno Haible  <bruno@clisp.org>
33734
33735         pty: Update doc.
33736         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33737
33738 2010-04-03  Bruno Haible  <bruno@clisp.org>
33739
33740         unistd: Fix C++ test error on mingw.
33741         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33742
33743 2010-04-03  Bruno Haible  <bruno@clisp.org>
33744
33745         Update doc regarding mingw.
33746         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33747         * doc/glibc-functions/login_tty.texi: Likewise.
33748         * doc/glibc-functions/forkpty.texi: Likewise.
33749
33750 2010-04-03  Bruno Haible  <bruno@clisp.org>
33751
33752         stdlib: Avoid compilation failure of c-strtold on mingw.
33753         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33754
33755 2010-04-03  Bruno Haible  <bruno@clisp.org>
33756
33757         locale: Make C++ tests work on Cygwin and mingw.
33758         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33759         cannot provide the function.
33760         Reported by Simon Josefsson.
33761
33762 2010-04-03  Bruno Haible  <bruno@clisp.org>
33763
33764         localename: Port to MacOS X 10.6.
33765         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33766         memory layout of the locales in MacOS X 10.6 as well.
33767         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33768
33769 2010-04-02  Bruno Haible  <bruno@clisp.org>
33770
33771         gnulib-tool: Ensure that long-running tests are executed last.
33772         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33773         running tests after the one for the other tests.
33774
33775 2010-04-02  Bruno Haible  <bruno@clisp.org>
33776
33777         gnulib-tool: Ensure the tests in the main directory are executed first.
33778         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33779         start with the current directory.
33780
33781 2010-04-02  Bruno Haible  <bruno@clisp.org>
33782
33783         Tests for module 'havelib', moved here from GNU gettext.
33784         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33785         modifications.
33786         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33787         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33788         with modifications.
33789         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33790         modifications.
33791         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33792         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33793         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33794         with modifications.
33795         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33796         with modifications.
33797         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33798         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33799         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33800         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33801         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33802         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33803         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33804         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33805         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33806         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33807         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33808         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33809         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33810         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33811         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33812         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33813         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33814         with modifications.
33815         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33816         with modifications.
33817         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33818         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33819         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33820         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33821         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33822         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33823         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33824         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33825         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33826         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33827         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33828         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33829         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33830         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33831         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33832         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33833         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33834         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33835         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33836         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33837         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33838         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33839         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33840         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33841         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33842         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33843         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33844         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33845         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33846         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33847         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33848         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33849         * tests/havelib/rpathx/rpathx.c: New file, from
33850         gettext/autoconf-lib-link.
33851         * tests/havelib/rpathx/Makefile.am: New file, from
33852         gettext/autoconf-lib-link.
33853         * tests/havelib/rpathx/configure.ac: New file, from
33854         gettext/autoconf-lib-link with modifications.
33855         * tests/havelib/rpathy/rpathy.c: New file, from
33856         gettext/autoconf-lib-link.
33857         * tests/havelib/rpathy/Makefile.am: New file, from
33858         gettext/autoconf-lib-link.
33859         * tests/havelib/rpathy/configure.ac: New file, from
33860         gettext/autoconf-lib-link with modifications.
33861         * tests/havelib/rpathz/rpathz.c: New file, from
33862         gettext/autoconf-lib-link.
33863         * tests/havelib/rpathz/Makefile.am: New file, from
33864         gettext/autoconf-lib-link.
33865         * tests/havelib/rpathz/configure.ac: New file, from
33866         gettext/autoconf-lib-link with modifications.
33867         * tests/havelib/rpathlx/usex.c: New file, from
33868         gettext/autoconf-lib-link.
33869         * tests/havelib/rpathlx/Makefile.am: New file, from
33870         gettext/autoconf-lib-link.
33871         * tests/havelib/rpathlx/configure.ac: New file, from
33872         gettext/autoconf-lib-link with modifications.
33873         * tests/havelib/rpathly/usey.c: New file, from
33874         gettext/autoconf-lib-link.
33875         * tests/havelib/rpathly/Makefile.am: New file, from
33876         gettext/autoconf-lib-link.
33877         * tests/havelib/rpathly/configure.ac: New file, from
33878         gettext/autoconf-lib-link with modifications.
33879         * tests/havelib/rpathlz/usez.c: New file, from
33880         gettext/autoconf-lib-link.
33881         * tests/havelib/rpathlz/Makefile.am: New file, from
33882         gettext/autoconf-lib-link.
33883         * tests/havelib/rpathlz/configure.ac: New file, from
33884         gettext/autoconf-lib-link with modifications.
33885         * tests/havelib/rpathlyx/usey.c: New file, from
33886         gettext/autoconf-lib-link.
33887         * tests/havelib/rpathlyx/Makefile.am: New file, from
33888         gettext/autoconf-lib-link.
33889         * tests/havelib/rpathlyx/configure.ac: New file, from
33890         gettext/autoconf-lib-link with modifications.
33891         * tests/havelib/rpathlzyx/usez.c: New file, from
33892         gettext/autoconf-lib-link.
33893         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33894         gettext/autoconf-lib-link.
33895         * tests/havelib/rpathlzyx/configure.ac: New file, from
33896         gettext/autoconf-lib-link with modifications.
33897         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33898         with modifications.
33899
33900 2010-04-02  Bruno Haible  <bruno@clisp.org>
33901
33902         gnulib-tool: Create distributed built sources also for the tests.
33903         * gnulib-tool (func_create_testdir): Also generate distributed built
33904         sources in the tests directory.
33905
33906 2010-04-02  Bruno Haible  <bruno@clisp.org>
33907
33908         gnulib-tool: Obey user's environment variables.
33909         * gnulib-tool (func_create_testdir): When creating built sources,
33910         respect the environment variables for autoconf, automake, etc. given by
33911         the user.
33912
33913 2010-04-02  Bruno Haible  <bruno@clisp.org>
33914
33915         gnulib-tool: Provide the value of --m4-base to modules.
33916         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33917         of gl_m4_base.
33918
33919 2010-04-02  Eric Blake  <eblake@redhat.com>
33920
33921         maint.mk: fix some fallout
33922         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33923         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33924
33925 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33926
33927         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33928         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33929         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33930         (sc_cast_of_x_alloc_return_value): Likewise.
33931         (sc_cast_of_alloca_return_value): Likewise.
33932         (sc_space_tab): Likewise.
33933         (sc_prohibit_atoi_atof): Likewise.
33934         (sc_prohibit_magic_number_exit): Likewise.
33935         (sc_error_exit_success): Likewise.
33936         (sc_file_system): Likewise.
33937         (sc_prohibit_have_config_h): Likewise.
33938         (sc_require_config_h): Likewise.
33939         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33940         (sc_obsolete_symbols): Likewise.
33941         (sc_changelog): Likewise.
33942         (sc_program_name): Likewise.
33943         (sc_the_the): Likewise.
33944         (sc_trailing_blank): Likewise.
33945         (sc_two_space_separator_in_usage): Likewise.
33946         (sc_useless_cpp_parens): Likewise.
33947         (sc_GPL_version): Likewise.
33948         (sc_GFDL_version): Likewise.
33949         (sc_texinfo_acronym): Likewise.
33950         (sc_prohibit_cvs_keyword): Likewise.
33951         (sc_prohibit_stat_st_blocks): Likewise.
33952         (sc_prohibit_S_IS_definition): Likewise.
33953         (sc_redundant_const): Likewise.
33954         (sc_makefile_TAB_only_indentation): Likewise.
33955         (sc_m4_quote_check): Likewise.
33956         (sc_makefile_path_separator_check): Likewise.
33957         (sc_copyright_check): Likewise.
33958         (sc_Wundef_boolean): Likewise.
33959         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33960
33961         maint.mk: match 0 or more whitespace-before-function-call '('
33962         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33963         that have zero or two-and-more spaces between the function name
33964         and the open parenthesis.
33965         (sc_error_message_warn_fatal): Likewise.
33966         (sc_error_message_uppercase): Likewise.
33967         (sc_error_message_period): Likewise.
33968
33969 2010-03-31  Eric Blake  <eblake@redhat.com>
33970
33971         maint.mk: check for [ as well as test
33972         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33973         Based on a libvirt report by Matthias Bolte.
33974
33975         gnumakefile: don't squelch _version output
33976         * top/GNUmakefile (_version): Create one-shot dependency rather
33977         than using $(shell) when version must be regenerated.
33978         (_autoreconf): Run verbosely, by default.
33979
33980         sys_time: avoid compiler warnings
33981         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33982         unconditional, fixing regression from 2010-03-29.
33983         Reported by Simon Josefsson.
33984
33985 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33986
33987         maint.mk: s/_header_without_use/_sc_header_without_use/
33988         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33989         (sc_prohibit_assert_without_use): Use the new name.
33990         (sc_prohibit_close_stream_without_use): Likewise.
33991         (sc_prohibit_getopt_without_use): Likewise.
33992         (sc_prohibit_quotearg_without_use): Likewise.
33993         (sc_prohibit_quote_without_use): Likewise.
33994         (sc_prohibit_long_options_without_use): Likewise.
33995         (sc_prohibit_inttostr_without_use): Likewise.
33996         (sc_prohibit_ignore_value_without_use): Likewise.
33997         (sc_prohibit_error_without_use): Likewise.
33998         (sc_prohibit_xalloc_without_use): Likewise.
33999         (sc_prohibit_hash_without_use): Likewise.
34000         (sc_prohibit_hash_pjw_without_use): Likewise.
34001         (sc_prohibit_safe_read_without_use): Likewise.
34002         (sc_prohibit_argmatch_without_use): Likewise.
34003         (sc_prohibit_canonicalize_without_use): Likewise.
34004         (sc_prohibit_root_dev_ino_without_use): Likewise.
34005         (sc_prohibit_openat_without_use): Likewise.
34006         (sc_prohibit_c_ctype_without_use): Likewise.
34007         (sc_prohibit_signal_without_use): Likewise.
34008         (sc_prohibit_intprops_without_use): Likewise.
34009
34010 2010-03-30  Eric Blake  <eblake@redhat.com>
34011
34012         maint: improve module indicators
34013         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34014         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34015         columns, and avoid extra macro expansion.
34016
34017         fdopendir: work around FreeBSD bug
34018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34019         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34020         * modules/dirent (Makefile.am): Substitute it.
34021         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34022         declaration.
34023         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34024         fix.
34025         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34026
34027 2010-03-29  Bruno Haible  <bruno@clisp.org>
34028
34029         Emit #pragma system_header after the inclusion guard, not before.
34030         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34031         guard that spans the entire file, not before. This enables an
34032         optimization in GCC's preprocessor.
34033         * lib/ctype.in.h: Likewise.
34034         * lib/dirent.in.h: Likewise.
34035         * lib/errno.in.h: Likewise.
34036         * lib/float.in.h: Likewise.
34037         * lib/getopt.in.h: Likewise.
34038         * lib/iconv.in.h: Likewise.
34039         * lib/langinfo.in.h: Likewise.
34040         * lib/locale.in.h: Likewise.
34041         * lib/math.in.h: Likewise.
34042         * lib/netdb.in.h: Likewise.
34043         * lib/netinet_in.in.h: Likewise.
34044         * lib/pty.in.h: Likewise.
34045         * lib/sched.in.h: Likewise.
34046         * lib/se-selinux.in.h: Likewise.
34047         * lib/search.in.h: Likewise.
34048         * lib/spawn.in.h: Likewise.
34049         * lib/stdarg.in.h: Likewise.
34050         * lib/stdint.in.h: Likewise.
34051         * lib/string.in.h: Likewise.
34052         * lib/strings.in.h: Likewise.
34053         * lib/sys_file.in.h: Likewise.
34054         * lib/sys_ioctl.in.h: Likewise.
34055         * lib/sys_time.in.h: Likewise.
34056         * lib/sys_times.in.h: Likewise.
34057         * lib/sys_utsname.in.h: Likewise.
34058         * lib/sys_wait.in.h: Likewise.
34059         * lib/sysexits.in.h: Likewise.
34060         * lib/wctype.in.h: Likewise.
34061
34062 2010-03-28  James Youngman  <jay@gnu.org>
34063
34064         save-cwd: don't leak a file descriptor when the caller execs.
34065         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34066         saved file descriptor.
34067         * modules/save-cwd (Depends-on): Depend on cloexec.
34068
34069 2010-03-29  Bruno Haible  <bruno@clisp.org>
34070
34071         Remove vestiges of fts-lgpl module.
34072         * lib/fts_.h: Assume GNULIB_FTS is 1.
34073         * lib/fts.c: Likewise.
34074         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34075
34076 2010-03-28  Bruno Haible  <bruno@clisp.org>
34077
34078         Fix definition of tests witness macro.
34079         * gnulib-tool (func_import): Fix definition of witness macro.
34080
34081 2010-03-28  Bruno Haible  <bruno@clisp.org>
34082
34083         Fix ioctl's protoype on glibc systems.
34084         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34085         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34086         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34087         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34088         signature. If not, arrange to replace the ioctl function.
34089         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34090         REPLACE_IOCTL.
34091         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34092         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34093         Reported by Ludovic Courtès <ludo@gnu.org>.
34094
34095 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34096
34097         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34098         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34099         made it so grep -r --include=GLOB* ... did not work.
34100
34101 2010-03-26  Jim Meyering  <meyering@redhat.com>
34102             Eric Blake  <eblake@redhat.com>
34103
34104         maint.mk: prohibit use of test's -o and -a operators
34105         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34106
34107 2010-03-28  Bruno Haible  <bruno@clisp.org>
34108
34109         Remove unused GNULIB_XYZ macro definitions.
34110         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34111         invocation.
34112
34113 2010-03-28  Bruno Haible  <bruno@clisp.org>
34114
34115         Mark privileged tests modules.
34116         * modules/idpriv-drop-tests (Status): New section.
34117         * modules/idpriv-droptemp-tests (Status): New section.
34118
34119 2010-03-28  Bruno Haible  <bruno@clisp.org>
34120
34121         Split C++ tests into separate tests modules.
34122         * modules/dirent-c++-tests: New file, extracted from
34123         modules/dirent-tests.
34124         * modules/dirent-tests: Depend on it.
34125         * modules/fcntl-h-c++-tests: New file, extracted from
34126         modules/fcntl-h-tests.
34127         * modules/fcntl-h-tests: Depend on it.
34128         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34129         * modules/glob-tests: Depend on it.
34130         * modules/iconv-h-c++-tests: New file, extracted from
34131         modules/iconv-h-tests.
34132         * modules/iconv-h-tests: Depend on it.
34133         * modules/langinfo-c++-tests: New file, extracted from
34134         modules/langinfo-tests.
34135         * modules/langinfo-tests: Depend on it.
34136         * modules/locale-c++-tests: New file, extracted from
34137         modules/locale-tests.
34138         * modules/locale-tests: Depend on it.
34139         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34140         * modules/math-tests: Depend on it.
34141         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34142         * modules/pty-tests: Depend on it.
34143         * modules/search-c++-tests: New file, extracted from
34144         modules/search-tests.
34145         * modules/search-tests: Depend on it.
34146         * modules/signal-c++-tests: New file, extracted from
34147         modules/signal-tests.
34148         * modules/signal-tests: Depend on it.
34149         * modules/spawn-c++-tests: New file, extracted from
34150         modules/spawn-tests.
34151         * modules/spawn-tests: Depend on it.
34152         * modules/stdio-c++-tests: New file, extracted from
34153         modules/stdio-tests.
34154         * modules/stdio-tests: Depend on it.
34155         * modules/stdlib-c++-tests: New file, extracted from
34156         modules/stdlib-tests.
34157         * modules/stdlib-tests: Depend on it.
34158         * modules/string-c++-tests: New file, extracted from
34159         modules/string-tests.
34160         * modules/string-tests: Depend on it.
34161         * modules/sys_ioctl-c++-tests: New file, extracted from
34162         modules/sys_ioctl-tests.
34163         * modules/sys_ioctl-tests: Depend on it.
34164         * modules/sys_select-c++-tests: New file, extracted from
34165         modules/sys_select-tests.
34166         * modules/sys_select-tests: Depend on it.
34167         * modules/sys_socket-c++-tests: New file, extracted from
34168         modules/sys_socket-tests.
34169         * modules/sys_socket-tests: Depend on it.
34170         * modules/sys_stat-c++-tests: New file, extracted from
34171         modules/sys_stat-tests.
34172         * modules/sys_stat-tests: Depend on it.
34173         * modules/sys_time-c++-tests: New file, extracted from
34174         modules/sys_time-tests.
34175         * modules/sys_time-tests: Depend on it.
34176         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34177         * modules/time-tests: Depend on it.
34178         * modules/unistd-c++-tests: New file, extracted from
34179         modules/unistd-tests.
34180         * modules/unistd-tests: Depend on it.
34181         * modules/wchar-c++-tests: New file, extracted from
34182         modules/wchar-tests.
34183         * modules/wchar-tests: Depend on it.
34184         * modules/wctype-c++-tests: New file, extracted from
34185         modules/wctype-tests.
34186         * modules/wctype-tests: Depend on it.
34187         Reported by Simon Josefsson.
34188
34189 2010-03-28  Bruno Haible  <bruno@clisp.org>
34190
34191         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34192         * gnulib-tool (func_exists_module): New function, extracted from
34193         func_verify_module.
34194         (func_verify_module): Use it.
34195         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34196         'foo' only if 'foo' exists.
34197         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34198         module.
34199
34200 2010-03-28  Bruno Haible  <bruno@clisp.org>
34201
34202         gnulib-tool: Add support for special categories of tests.
34203         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34204         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34205         (func_usage): Document them.
34206         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34207         inc_unportable_tests, inc_all_tests): New variables.
34208         (func_acceptable): Consider these variables.
34209         (func_modules_transitive_closure): Make it work when the 'Status' field
34210         consists of multiple words.
34211         (func_import): Store and restore the values of inc_cxx_tests,
34212         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34213         inc_all_tests in gnulib-comp.m4.
34214         (func_create_testdir): Set inc_all_tests to true.
34215         * doc/gnulib.texi (Extra tests modules): New section.
34216         Suggested by Jim Meyering.
34217
34218 2010-03-28  Bruno Haible  <bruno@clisp.org>
34219
34220         ansi-c++-opt: Allow turning off the C++ build by default.
34221         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34222         gl_CXX_CHOICE_DEFAULT_NO is defined.
34223         Requested by Eric Blake.
34224
34225 2010-03-28  Bruno Haible  <bruno@clisp.org>
34226
34227         unistd: Avoid #define replacements in C++ mode.
34228         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34229         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34230         setsockopt, shutdown, select): In C++, attach a warning to the function
34231         if possible, rather than #defining the symbol to a dysfunctional alias.
34232         Reported by John W. Eaton <jwe@gnu.org>.
34233
34234 2010-03-28  Bruno Haible  <bruno@clisp.org>
34235
34236         Fix link errors on mingw.
34237         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34238         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34239         $(LIBSOCKET).
34240         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34241         $(LIBSOCKET).
34242
34243 2010-03-28  Bruno Haible  <bruno@clisp.org>
34244             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34245
34246         lib-ignore: Determine different options for different compilers.
34247         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34248         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34249         Add comments.
34250         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34251         * NEWS: Mention the change.
34252
34253 2010-03-27  Bruno Haible  <bruno@clisp.org>
34254
34255         Remove unused GNULIB_XYZ macro definitions.
34256         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34257         * modules/fseek (configure.ac): Likewise.
34258         * modules/ioctl (configure.ac): Likewise.
34259         * modules/open (configure.ac): Likewise.
34260         * modules/stdlib-safer (configure.ac): Likewise.
34261
34262 2010-03-27  Bruno Haible  <bruno@clisp.org>
34263
34264         Add a remark about certain modules.
34265         * modules/malloc (Comment): New section.
34266         * modules/realloc (Comment): Likewise.
34267         * modules/sigpipe (Comment): Likewise.
34268
34269 2010-03-27  Bruno Haible  <bruno@clisp.org>
34270
34271         Resolve conflict between the two kinds of module indicators.
34272         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34273         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34274         * modules/canonicalize (configure.ac): Invoke
34275         gl_MODULE_INDICATOR_FOR_TESTS.
34276         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34277         GNULIB_XYZ.
34278         * tests/test-dirent-c++.cc: Likewise.
34279         * tests/test-dirent-safer.c: Likewise.
34280         * tests/test-dup2.c: Likewise.
34281         * tests/test-fchdir.c: Likewise.
34282         * tests/test-fcntl-h-c++.cc: Likewise.
34283         * tests/test-getopt.c: Likewise.
34284         * tests/test-getopt.h: Likewise.
34285         * tests/test-langinfo-c++.cc: Likewise.
34286         * tests/test-locale-c++.cc: Likewise.
34287         * tests/test-math-c++.cc: Likewise.
34288         * tests/test-pty-c++.cc: Likewise.
34289         * tests/test-search-c++.cc: Likewise.
34290         * tests/test-signal-c++.cc: Likewise.
34291         * tests/test-spawn-c++.cc: Likewise.
34292         * tests/test-stdio-c++.cc: Likewise.
34293         * tests/test-stdlib-c++.cc: Likewise.
34294         * tests/test-string-c++.cc: Likewise.
34295         * tests/test-sys_ioctl-c++.cc: Likewise.
34296         * tests/test-sys_select-c++.cc: Likewise.
34297         * tests/test-sys_socket-c++.cc: Likewise.
34298         * tests/test-sys_stat-c++.cc: Likewise.
34299         * tests/test-sys_time-c++.cc: Likewise.
34300         * tests/test-time-c++.cc: Likewise.
34301         * tests/test-unistd-c++.cc: Likewise.
34302         * tests/test-wchar-c++.cc: Likewise.
34303         * tests/uninorm/test-u8-nfc.c: Likewise.
34304         * tests/uninorm/test-u8-nfd.c: Likewise.
34305         * tests/uninorm/test-u8-nfkc.c: Likewise.
34306         * tests/uninorm/test-u8-nfkd.c: Likewise.
34307         * tests/uninorm/test-u16-nfc.c: Likewise.
34308         * tests/uninorm/test-u16-nfd.c: Likewise.
34309         * tests/uninorm/test-u16-nfkc.c: Likewise.
34310         * tests/uninorm/test-u16-nfkd.c: Likewise.
34311         * tests/uninorm/test-u32-nfc.c: Likewise.
34312         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34313         * tests/uninorm/test-u32-nfd.c: Likewise.
34314         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34315         * tests/uninorm/test-u32-nfkc.c: Likewise.
34316         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34317         * tests/uninorm/test-u32-nfkd.c: Likewise.
34318         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34319         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34320
34321 2010-03-27  Bruno Haible  <bruno@clisp.org>
34322
34323         Distinguish two kinds of module indicators.
34324         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34325         gl_MODULE_INDICATOR.
34326         (gl_MODULE_INDICATOR): New macro.
34327         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34328         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34329         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34330         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34331         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34332         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34333         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34334         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34335         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34336         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34337         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34338         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34341         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34343         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34344         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34345         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34346         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34347         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34348         * modules/cloexec (configure.ac): Likewise.
34349         * modules/getopt-gnu (configure.ac): Likewise.
34350         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34351         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34352         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34353         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34354
34355 2010-03-27  Bruno Haible  <bruno@clisp.org>
34356
34357         New module description field 'Comment'.
34358         * gnulib-tool: New option --extract-comment.
34359         (func_usage): Document it.
34360         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34361         (func_get_comment): New function.
34362         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34363
34364 2010-03-27  Bruno Haible  <bruno@clisp.org>
34365
34366         Addendum to 2010-02-07 commit.
34367         * gnulib-tool (func_usage): Document --extract-applicability option.
34368
34369 2010-03-27  Bruno Haible  <bruno@clisp.org>
34370
34371         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34372         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34373         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34374         rather than link errors.
34375
34376 2010-03-27  Bruno Haible  <bruno@clisp.org>
34377
34378         Avoid side effects from tests-related modules on the compilation of lib.
34379         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34380         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34381         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34382         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34383         macro.
34384         (func_import): Define a witness macro. Assign it a value that depends
34385         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34386         tests-related modules.
34387         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34388         Reported by Jim Meyering.
34389
34390 2010-03-27  Bruno Haible  <bruno@clisp.org>
34391
34392         Factorize common .m4 code.
34393         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34394         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34395         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34396         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34397         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34398         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34399         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34400         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34401         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34402         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34403         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34404         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34405         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34406         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34407         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34408         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34409         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34410         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34412         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34413         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34415         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34418         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34419         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34421         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34423         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34424         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34425
34426 2010-03-27  Bruno Haible  <bruno@clisp.org>
34427
34428         Fix a compilation error on Cygwin with g++ >= 4.3.
34429         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34430         if it is undefined or if we alias it to chmod.
34431         (lstat): Don't warn about the use of this function if it is undefined
34432         or if we alias it to stat.
34433         Reported by Simon Josefsson.
34434
34435 2010-03-27  Bruno Haible  <bruno@clisp.org>
34436
34437         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34438         * modules/getlogin (configure.ac): Update.
34439
34440         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34441         * modules/getlogin_r (configure.ac): Update.
34442
34443         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34445         * modules/inet_ntop (configure.ac): Update.
34446
34447         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34448         * modules/inet_pton (configure.ac): Update.
34449
34450         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34451         * modules/mbslen (configure.ac): Update.
34452
34453         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34454         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34455         * modules/forkpty (configure.ac): Update.
34456         * modules/openpty (configure.ac): Update.
34457
34458 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34459
34460         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34461         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34462
34463 2010-03-25  Eric Blake  <eblake@redhat.com>
34464
34465         maint: use pragma consistently across replacement headers
34466         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34467         * lib/dirent.in.h (system_header): Likewise.
34468         * lib/errno.in.h (system_header): Likewise.
34469         * lib/float.in.h (system_header): Likewise.
34470         * lib/getopt.in.h (system_header): Likewise.
34471         * lib/iconv.in.h (system_header): Likewise.
34472         * lib/inttypes.in.h (system_header): Likewise.
34473         * lib/langinfo.in.h (system_header): Likewise.
34474         * lib/locale.in.h (system_header): Likewise.
34475         * lib/math.in.h (system_header): Likewise.
34476         * lib/netdb.in.h (system_header): Likewise.
34477         * lib/netinet_in.in.h (system_header): Likewise.
34478         * lib/pty.in.h (system_header): Likewise.
34479         * lib/sched.in.h (system_header): Likewise.
34480         * lib/se-selinux.in.h (system_header): Likewise.
34481         * lib/search.in.h (system_header): Likewise.
34482         * lib/spawn.in.h (system_header): Likewise.
34483         * lib/stdarg.in.h (system_header): Likewise.
34484         * lib/stdint.in.h (system_header): Likewise.
34485         * lib/string.in.h (system_header): Likewise.
34486         * lib/strings.in.h (system_header): Likewise.
34487         * lib/sys_file.in.h (system_header): Likewise.
34488         * lib/sys_ioctl.in.h (system_header): Likewise.
34489         * lib/sys_socket.in.h (system_header): Likewise.
34490         * lib/sys_times.in.h (system_header): Likewise.
34491         * lib/sys_utsname.in.h (system_header): Likewise.
34492         * lib/sys_wait.in.h (system_header): Likewise.
34493         * lib/sysexits.in.h (system_header): Likewise.
34494         * lib/unistd.in.h (system_header): Likewise.
34495         * lib/wctype.in.h (system_header): Likewise.
34496
34497         arpa/inet: fix mingw compilation warning
34498         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34499         Reported by Matthew Bolte.
34500
34501 2010-03-25  Bruno Haible  <bruno@clisp.org>
34502
34503         Avoid collision between gnulib wrapper and libintl wrapper.
34504         * lib/printf.c (printf): Don't define if a printf wrapper is already
34505         defined in intl/printf.c.
34506         Reported by Michel Boaventura <michel@michelboaventura.com>.
34507
34508 2010-03-25  Bruno Haible  <bruno@clisp.org>
34509
34510         Use ANSI C.
34511         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34512
34513 2010-03-25  Bruno Haible  <bruno@clisp.org>
34514
34515         Minor formatting changes.
34516         * lib/acosl.c: Insert space before function argument list.
34517         * lib/argz.c: Likewise.
34518         * lib/asinl.c: Likewise.
34519         * lib/expl.c: Likewise.
34520         * lib/gen-uni-tables.c: Likewise.
34521         * lib/gettext.h: Likewise.
34522         * lib/glthread/lock.h: Likewise.
34523         * lib/tanl.c: Likewise.
34524         * lib/uniname/uniname.c: Likewise.
34525         * tests/test-idpriv-drop.c: Likewise.
34526         * tests/test-idpriv-droptemp.c: Likewise.
34527         * tests/test-lock.c: Likewise.
34528         * tests/test-tls.c: Likewise.
34529         * lib/argp-help.c: Insert space before function-like macro argument
34530         list.
34531         * lib/memcmp.c: Likewise.
34532         * tests/test-base64.c: Likewise.
34533         * lib/localename.c: Insert space before sizeof's argument list.
34534         * lib/safe-alloc.h: Likewise.
34535         * lib/file-set.h: Insert space before macro argument list.
34536         * tests/test-argp.c: Likewise.
34537         * lib/argp-namefrob.h: Insert space before function parameter list.
34538         * lib/getaddrinfo.c: Likewise.
34539         * lib/netdb.in.h: Likewise.
34540         * lib/parse-duration.h: Likewise.
34541         * lib/parse-duration.c: Likewise.
34542         * lib/poll.c: Likewise.
34543         * lib/select.c: Likewise.
34544         * lib/trim.h: Likewise.
34545         * tests/test-usleep.c: Likewise.
34546         * lib/ldexpl.c: Insert space before function parameter list and before
34547         function argument list.
34548         * lib/logl.c: Likewise.
34549         * lib/sqrtl.c: Likewise.
34550         * lib/trim.c: Likewise.
34551         * lib/cosl.c: Use GNU style indentation. Insert space before function
34552         argument list.
34553         * lib/sinl.c: Likewise.
34554         * lib/tsearch.c: Insert space after 'for'.
34555         Reported by Jim Meyering.
34556
34557 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34558
34559         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34560         config header before grepping, as it's not present before
34561         autoreconf/configure are run.  Reported by Simon Josefsson.
34562
34563 2010-03-23  Bruno Haible  <bruno@clisp.org>
34564
34565         pt_chown: Make it work with automake < 1.11.
34566         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34567         Reported by Simon Josefsson.
34568
34569 2010-03-23  Bruno Haible  <bruno@clisp.org>
34570
34571         pt_chown: Don't depend on GPLed modules.
34572         * lib/pt_chown.c: Don't include idpriv.h.
34573         (main): Don't drop privileges.
34574         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34575         Reported by Simon Josefsson.
34576
34577 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34578
34579         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34580         suggestions from karl@freefriends.org (Karl Berry).
34581
34582 2010-03-22  Eric Blake  <eblake@redhat.com>
34583
34584         gethostname: further tweaks
34585         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34586         are overriding gethostname.
34587         Suggested by Bruno Haible.
34588
34589 2010-03-21  Bruno Haible  <bruno@clisp.org>
34590
34591         Fix comments.
34592         * lib/forkpty.c (rpl_forkpty): Fix comment.
34593         * lib/openpty.c (rpl_openpty): Likewise.
34594         Reported by Eric Blake.
34595
34596 2010-03-22  Eric Blake  <eblake@redhat.com>
34597
34598         gethostname: fix build on mingw
34599         * lib/unistd.in.h (includes): Work around fact that mingw
34600         <winsock2.h> re-includes <unistd.h>, by avoiding any
34601         redeclarations if we are being included by <winsock2.h>.
34602         Reported by Matthias Bolte.
34603
34604 2010-03-21  Bruno Haible  <bruno@clisp.org>
34605
34606         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34607         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34608         modifications.
34609         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34610         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34611         provide the replacement.
34612         * modules/forkpty (Depends-on): Add openpty, login_tty.
34613         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34614         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34615         * doc/glibc-functions/forkpty.texi: More supported platforms.
34616         * config/srclist.txt: Add forkpty.c (commented).
34617
34618 2010-03-21  Bruno Haible  <bruno@clisp.org>
34619
34620         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34621         (Makefile.am): Verify that PTY_LIB is defined.
34622
34623         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34624
34625 2010-03-21  Bruno Haible  <bruno@clisp.org>
34626
34627         Tests for module 'login_tty'.
34628         * modules/login_tty-tests: New file.
34629         * tests/test-login_tty.c: New file.
34630
34631         New module 'login_tty'.
34632         * lib/login_tty.c: New file.
34633         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34634         * modules/login_tty: New file.
34635         * doc/glibc-functions/login_tty.texi: Mention the new module.
34636
34637 2010-03-21  Bruno Haible  <bruno@clisp.org>
34638
34639         login_tty: Documentation.
34640         * doc/glibc-functions/login_tty.texi: New file.
34641         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34642
34643 2010-03-21  Bruno Haible  <bruno@clisp.org>
34644
34645         pty: Consistent macro naming.
34646         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34647         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34648         * modules/pty (configure.ac): Update.
34649
34650 2010-03-21  Bruno Haible  <bruno@clisp.org>
34651
34652         Tests for openpty: Make stricter.
34653         * tests/test-openpty.c (main): Add test of canonical processing and
34654         erase.
34655         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34656
34657         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34658         * lib/openpty.c (openpty): New replacement function.
34659         * lib/pty.in.h: Include <termios.h>.
34660         (openpty): Update declaration. Add comments.
34661         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34662         is not declared, arrange to provide the replacement. Check for _getpty
34663         and posix_openpt.
34664         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34665         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34666         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34667         * modules/pty-tests (test_pty_c___LDADD): New variable.
34668         * doc/glibc-functions/openpty.texi: More supported platforms.
34669
34670 2010-03-21  Bruno Haible  <bruno@clisp.org>
34671
34672         setenv: Tweaks.
34673         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34674         the test program.
34675         * doc/posix-functions/setenv.texi: Update platforms list.
34676
34677 2010-03-21  Bruno Haible  <bruno@clisp.org>
34678
34679         New module 'unlockpt'.
34680         * lib/unlockpt.c: New file, from glibc with modifications.
34681         * m4/unlockpt.m4: New file.
34682         * modules/unlockpt: New file.
34683         * lib/stdlib.in.h (unlockpt): New declaration.
34684         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34685         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34686         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34687         HAVE_UNLOCKPT.
34688         * doc/posix-functions/unlockpt.texi: Mention the new module.
34689         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34690         * config/srclist.txt: Add unlockpt.c (commented).
34691
34692 2010-03-21  Jim Meyering  <meyering@redhat.com>
34693
34694         maint.mk: prohibit inclusion of "intprops.h" without use
34695         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34696
34697 2010-03-21  Bruno Haible  <bruno@clisp.org>
34698
34699         New module 'grantpt'.
34700         * lib/grantpt.c: New file, from glibc with modifications.
34701         * m4/grantpt.m4: New file.
34702         * modules/grantpt: New file.
34703         * lib/stdlib.in.h (grantpt): New declaration.
34704         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34705         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34706         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34707         HAVE_GRANTPT.
34708         * doc/posix-functions/grantpt.texi: Mention the new module.
34709         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34710         * config/srclist.txt: Add grantpt.c (commented).
34711
34712 2010-03-21  Bruno Haible  <bruno@clisp.org>
34713
34714         New module 'pt_chown'.
34715         * lib/pt_chown.c: New file, from glibc with modifications.
34716         * lib/pty-private.h: New file, from glibc with modifications.
34717         * modules/pt_chown: New file.
34718         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34719
34720 2010-03-21  Bruno Haible  <bruno@clisp.org>
34721
34722         Tests for module 'ptsname'.
34723         * modules/ptsname-tests: New file.
34724         * tests/test-ptsname.c: New file.
34725
34726         New module 'ptsname'.
34727         * lib/ptsname.c: New file, from glibc with modifications.
34728         * m4/ptsname.m4: New file.
34729         * modules/ptsname: New file.
34730         * lib/stdlib.in.h (ptsname): New declaration.
34731         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34732         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34733         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34734         HAVE_PTSNAME.
34735         * doc/posix-functions/ptsname.texi: Mention the new module.
34736         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34737         * config/srclist.txt: Add ptsname.c (commented).
34738
34739 2010-03-21  Bruno Haible  <bruno@clisp.org>
34740
34741         Tests for module 'ttyname_r'.
34742         * modules/ttyname_r-tests: New file.
34743         * tests/test-ttyname_r.c: New file.
34744
34745         New module 'ttyname_r'.
34746         * lib/ttyname_r.c: New file.
34747         * m4/ttyname_r.m4: New file.
34748         * modules/ttyname_r: New file.
34749         * lib/unistd.in.h (ttyname_r): New declaration.
34750         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34751         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34752         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34753         HAVE_TTYNAME_R.
34754         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34755         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34756
34757 2010-03-20  Bruno Haible  <bruno@clisp.org>
34758
34759         signal: Undefine macro definitions in C++ mode.
34760         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34761         sigfillset): Undefine macro definitions from the system header in C++
34762         mode.
34763         Reported by John W. Eaton <jwe@gnu.org>.
34764
34765 2010-03-20  Bruno Haible  <bruno@clisp.org>
34766
34767         Ensure no #include statements inside extern "C" { ... }.
34768         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34769         contain #include statements.
34770         * lib/time.in.h: Likewise.
34771
34772 2010-03-20  Bruno Haible  <bruno@clisp.org>
34773
34774         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34775         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34776         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34777         Reported by John W. Eaton <jwe@gnu.org>.
34778
34779 2010-03-20  Bruno Haible  <bruno@clisp.org>
34780
34781         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34782         Reported by Jim Meyering.
34783
34784 2010-03-20  Bruno Haible  <bruno@clisp.org>
34785
34786         pipe: Set errno upon failure.
34787         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34788         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34789         errno value in error message.
34790
34791 2010-03-20  Bruno Haible  <bruno@clisp.org>
34792             Jim Meyering  <meyering@redhat.com>
34793
34794         lchown: Avoid "unused variable" warning.
34795         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34796
34797 2010-03-20  Bruno Haible  <bruno@clisp.org>
34798
34799         Work around unlink() bug on MacOS X 10.5.6.
34800         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34801         attempting to unlink a parent directory.
34802         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34803         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34804         activate for the replacement function.
34805         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34806
34807 2010-03-20  Bruno Haible  <bruno@clisp.org>
34808
34809         Fix link errors on Solaris 8.
34810         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34811         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34812
34813 2010-03-19  Jim Meyering  <meyering@redhat.com>
34814
34815         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34816         The _LIBC implementation of build_range_exp correctly honors the
34817         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34818         However, the non-_LIBC implementation would ignore that syntax-bit
34819         flag and return REG_ERANGE unconditionally.
34820         This change makes it honor that flag.
34821         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34822         Make two pointer parameters "const".
34823         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34824         (parse_bracket_exp): Update caller.
34825
34826         regex.m4: correct the reversed range endpoint ([b-a]) test
34827         * m4/regex.m4: When requiring that [b-a] evoke failure,
34828         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34829         test pass once again for x86-based systems.
34830
34831 2010-03-19  Bruno Haible  <bruno@clisp.org>
34832
34833         scandir: Fix link error on Solaris 8.
34834         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34835         macros.
34836
34837 2010-03-19  Bruno Haible  <bruno@clisp.org>
34838
34839         getusershell: Fix documentation.
34840         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34841         module.
34842         * doc/glibc-functions/setusershell.texi: Likewise.
34843
34844         getusershell: Provide declaration, missing on Solaris 9.
34845         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34846         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34847         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34848         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34850         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34851         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34852         HAVE_GETUSERSHELL.
34853         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34854
34855 2010-03-19  Bruno Haible  <bruno@clisp.org>
34856
34857         wctype: Provide iswblank function.
34858         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34859         exists and is fine.
34860         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34861         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34862         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34863         * doc/posix-functions/iswblank.texi: Update.
34864
34865 2010-03-19  Bruno Haible  <bruno@clisp.org>
34866
34867         Tests of module 'pty' in C++ mode.
34868         * modules/pty-tests: New file.
34869         * tests/test-pty-c++.cc: New file.
34870         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34871
34872 2010-03-19  Eric Blake  <eblake@redhat.com>
34873
34874         logb: fix documentation
34875         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34876         1.5 declaration bug.
34877
34878         forkpty, openpty: prefer glibc's const-safe prototype
34879         * lib/forkpty.c (rpl_forkpty): New file.
34880         * lib/openpty.c (rpl_openpty): Likewise.
34881         * modules/forkpty (Files): Distribute it.
34882         * modules/openpty (Files): Likewise.
34883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34884         check...
34885         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34886         replacement for for non-const BSD signature.
34887         * modules/pty (Makefile.am): Substitute witnesses.
34888         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34889         * tests/test-forkpty.c: Update signature check.
34890         * tests/test-openpty.c: Likewise.
34891         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34892         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34893
34894         forkpty, openpty: split functions into new modules
34895         * modules/pty (Makefile.am): Substitute new witnesses.
34896         (Libraries): Move library detection...
34897         * modules/forkpty: ...into new module.
34898         * modules/openpty: Another new module.
34899         * modules/pty-tests: Rename and split...
34900         * modules/forkpty-tests: ...to this...
34901         * modules/openpty-tests: ...and this.
34902         * tests/test-pty.c: Rename and split...
34903         * tests/test-forkpty.c: ...to this...
34904         * tests/test-openpty.c: ...and this.
34905         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34906         (gl_PTY): Split library searching...
34907         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34908         (gl_FORKPTY, gl_OPENPTY): New macros.
34909         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34910         * NEWS: Mention the split.
34911         * MODULES.html.sh (Misc): Document the modules.
34912         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34913         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34914
34915         pty: improve replacement header
34916         * lib/pty.in.h: New file.
34917         * modules/pty (Files): Ship it.
34918         (Makefile.am): Always build replacement.
34919         * m4/pty.m4: Rename...
34920         * m4/pty_h.m4: ...to this.
34921         (gl_PTY): Modernize setting of witness macros; update check of
34922         forkpty to take proper advantage of cache.
34923         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34924
34925         getopt: avoid compiler warning
34926         * lib/getopt.c (attribute_hidden): Remove unused macro.
34927
34928 2010-03-18  Bruno Haible  <bruno@clisp.org>
34929
34930         Fix link errors on Solaris 8.
34931         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34932         * modules/search-tests (test_search_c___LDADD): Likewise.
34933         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34934         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34935         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34936         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34937         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34938         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34939         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34940
34941 2010-03-18  Bruno Haible  <bruno@clisp.org>
34942
34943         Fix bug introduced on 2010-03-14.
34944         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34945         (gl_SPAWN_H): Require it.
34946         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34947         Reported by Simon Josefsson.
34948
34949 2010-03-18  Bruno Haible  <bruno@clisp.org>
34950
34951         Fix typo introduced on 2009-12-31.
34952         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34953         posix_spawn_file_actions_adddup2.
34954
34955 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34956         and Eric Blake  <eblake@redhat.com>
34957
34958         test-vc-list-files-git: make more robust
34959         * tests/test-vc-list-files-git.sh: Unset problematic environment
34960         variables.  Chain commands together.
34961
34962 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34963
34964         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34965         `AC_CHECK_DECL' invocation.
34966
34967 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34968
34969         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34970         appears before executable statements. Suggested by Petr Sumbera
34971         <Petr.Sumbera@Sun.COM>.
34972
34973 2010-03-14  Bruno Haible  <bruno@clisp.org>
34974
34975         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34976         portability problems. Instead use a simpler test.
34977         (main): Check that invalid arguments are rejected only on Linux.
34978
34979 2010-03-14  Bruno Haible  <bruno@clisp.org>
34980
34981         Fix bug introduced on 2009-12-31.
34982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34983         gl_PREREQ_SYS_H_WINSOCK2 always.
34984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34985         SYS_SOCKET_H variable.
34986         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34987         Update comments.
34988         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34989         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34990         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34991         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34992         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34993
34994 2010-03-14  Bruno Haible  <bruno@clisp.org>
34995
34996         Fix values returned by sinl, cosl.
34997         * lib/trigl.h: Add specification comments.
34998         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34999         that combines the values from the precomputed table with the values of
35000         the Chebyshev polynomials.
35001
35002 2010-03-14  Bruno Haible  <bruno@clisp.org>
35003
35004         Fix compilation error when modules 'posix_spawn[p]' are not used.
35005         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35007
35008 2010-03-14  Bruno Haible  <bruno@clisp.org>
35009
35010         Fix compilation error on mingw when module 'time_r' is not used.
35011         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35012         is 1.
35013         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35014         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35015         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35016         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35017
35018 2010-03-14  Bruno Haible  <bruno@clisp.org>
35019
35020         Fix compilation error with Sun C.
35021         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35022         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35023         instead of GCC specific ULONG_LONG_MAX.
35024         * lib/xstrtoll.c: Likewise.
35025         * lib/xstrtoull.c: Likewise.
35026
35027 2010-03-13  Bruno Haible  <bruno@clisp.org>
35028
35029         Allow the user to disable C++ code and tests.
35030         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35031         (gl_PROG_ANSI_CXX): Require it.
35032
35033 2010-03-13  Bruno Haible  <bruno@clisp.org>
35034
35035         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35036         cases.
35037
35038 2010-03-13  Bruno Haible  <bruno@clisp.org>
35039
35040         Test that gnulib does not break the standard C++ headers.
35041         * tests/test-locale-c++2.cc: New file.
35042         * modules/locale-tests (Files): Add it.
35043         (Makefile.am): Compile it for test-locale-c++.
35044         * tests/test-math-c++2.cc: New file.
35045         * modules/math-tests (Files): Add it.
35046         (Makefile.am): Compile it for test-math-c++.
35047         * tests/test-signal-c++2.cc: New file.
35048         * modules/signal-tests (Files): Add it.
35049         (Makefile.am): Compile it for test-signal-c++.
35050         * tests/test-stdio-c++2.cc: New file.
35051         * modules/stdio-tests (Files): Add it.
35052         (Makefile.am): Compile it for test-stdio-c++.
35053         * tests/test-stdlib-c++2.cc: New file.
35054         * modules/stdlib-tests (Files): Add it.
35055         (Makefile.am): Compile it for test-stdlib-c++.
35056         * tests/test-string-c++2.cc: New file.
35057         * modules/string-tests (Files): Add it.
35058         (Makefile.am): Compile it for test-string-c++.
35059         * tests/test-time-c++2.cc: New file.
35060         * modules/time-tests (Files): Add it.
35061         (Makefile.am): Compile it for test-time-c++.
35062         Reported by John W. Eaton <jwe@gnu.org>.
35063
35064 2010-03-13  Bruno Haible  <bruno@clisp.org>
35065
35066         * gnulib-tool (func_usage): Clarify which options are available for
35067         --create-testdir and --create-megatestdir.
35068
35069 2010-03-13  Bruno Haible  <bruno@clisp.org>
35070
35071         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35072         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35073         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35074         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35075         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35076         when appropriate.
35077         Reported by Jim Meyering.
35078
35079 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35080
35081         * gnulib-tool (func_import): Explain origin of code.
35082
35083 2010-03-12  Bruno Haible  <bruno@clisp.org>
35084
35085         Fix problem with automake's definition of CXXLINK.
35086         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35087         Reported by Simon Josefsson and Ludovic Courtès.
35088
35089 2010-03-12  Bruno Haible  <bruno@clisp.org>
35090
35091         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35092         stable releases.
35093
35094 2010-03-11  Bruno Haible  <bruno@clisp.org>
35095
35096         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35097         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35098         whether the system provides one variant or multiple variants of the
35099         function.
35100         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35101         C++ compilers.
35102         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35103         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35104         Reported by Jim Meyering.
35105
35106 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35107
35108         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35109
35110 2010-03-08  Bruno Haible  <bruno@clisp.org>
35111
35112         gnulib-tool: Add support for --libtool in --create-testdir.
35113         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35114         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35115
35116 2010-03-08  Eric Blake  <eblake@redhat.com>
35117
35118         gnulib-tool.texi: mention possibility of git submodule
35119         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35120         submodules.
35121         * doc/.gitignore: Ignore another generated file.
35122
35123 2010-03-08  Karl Berry  <karl@gnu.org>
35124
35125         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35126         of committing gnulib files while skipping others.
35127
35128 2010-03-07  Bruno Haible  <bruno@clisp.org>
35129
35130         Tests of module 'wctype' in C++ mode.
35131         * tests/test-wctype-c++.cc: New file.
35132         * modules/wctype-tests (Files): Add it and tests/signature.h.
35133         (Depends-on): Add ansi-c++-opt.
35134         (Makefile.am): Arrange to compile and run test-wctype-c++.
35135
35136         Tests of module 'wchar' in C++ mode.
35137         * tests/test-wchar-c++.cc: New file.
35138         * modules/wchar-tests (Files): Add it and tests/signature.h.
35139         (Depends-on): Add ansi-c++-opt.
35140         (Makefile.am): Arrange to compile and run test-wchar-c++.
35141         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35142         gl_MODULE_INDICATOR.
35143
35144         Tests of module 'unistd' in C++ mode.
35145         * tests/test-unistd-c++.cc: New file.
35146         * modules/unistd-tests (Files): Add it and tests/signature.h.
35147         (Depends-on): Add ansi-c++-opt.
35148         (Makefile.am): Arrange to compile and run test-unistd-c++.
35149         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35150         gl_MODULE_INDICATOR.
35151
35152         Tests of module 'time' in C++ mode.
35153         * tests/test-time-c++.cc: New file.
35154         * modules/time-tests (Files): Add it and tests/signature.h.
35155         (Depends-on): Add ansi-c++-opt.
35156         (Makefile.am): Arrange to compile and run test-time-c++.
35157         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35158
35159         Tests of module 'sys_time' in C++ mode.
35160         * tests/test-sys_time-c++.cc: New file.
35161         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35162         (Depends-on): Add ansi-c++-opt.
35163         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35164         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35165         gl_MODULE_INDICATOR.
35166
35167         Tests of module 'sys_stat' in C++ mode.
35168         * tests/test-sys_stat-c++.cc: New file.
35169         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35170         (Depends-on): Add ansi-c++-opt.
35171         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35172         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35173         gl_MODULE_INDICATOR.
35174
35175         Tests of module 'sys_socket' in C++ mode.
35176         * tests/test-sys_socket-c++.cc: New file.
35177         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35178         (Depends-on): Add ansi-c++-opt.
35179         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35180         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35181         gl_MODULE_INDICATOR.
35182
35183         Tests of module 'sys_select' in C++ mode.
35184         * tests/test-sys_select-c++.cc: New file.
35185         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35186         (Depends-on): Add ansi-c++-opt.
35187         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35189         gl_MODULE_INDICATOR.
35190
35191         Tests of module 'sys_ioctl' in C++ mode.
35192         * tests/test-sys_ioctl-c++.cc: New file.
35193         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35194         (Depends-on): Add ansi-c++-opt.
35195         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35196         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35197         gl_MODULE_INDICATOR.
35198
35199         Tests of module 'string' in C++ mode.
35200         * tests/test-string-c++.cc: New file.
35201         * modules/string-tests (Files): Add it and tests/signature.h.
35202         (Depends-on): Add ansi-c++-opt.
35203         (Makefile.am): Arrange to compile and run test-string-c++.
35204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35205         gl_MODULE_INDICATOR.
35206
35207         Tests of module 'stdlib' in C++ mode.
35208         * tests/test-stdlib-c++.cc: New file.
35209         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35210         (Depends-on): Add ansi-c++-opt.
35211         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35212         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35213         gl_MODULE_INDICATOR.
35214
35215         Tests of module 'stdio' in C++ mode.
35216         * tests/test-stdio-c++.cc: New file.
35217         * modules/stdio-tests (Files): Add it and tests/signature.h.
35218         (Depends-on): Add ansi-c++-opt.
35219         (Makefile.am): Arrange to compile and run test-stdio-c++.
35220         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35221         gl_MODULE_INDICATOR.
35222
35223         Tests of module 'spawn' in C++ mode.
35224         * tests/test-spawn-c++.cc: New file.
35225         * modules/spawn-tests (Files): Add it and tests/signature.h.
35226         (Depends-on): Add ansi-c++-opt.
35227         (Makefile.am): Arrange to compile and run test-spawn-c++.
35228         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35229         gl_MODULE_INDICATOR.
35230
35231         Tests of module 'signal' in C++ mode.
35232         * tests/test-signal-c++.cc: New file.
35233         * modules/signal-tests (Files): Add it and tests/signature.h.
35234         (Depends-on): Add ansi-c++-opt.
35235         (Makefile.am): Arrange to compile and run test-signal-c++.
35236         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35237         gl_MODULE_INDICATOR.
35238
35239         Tests of module 'search' in C++ mode.
35240         * tests/test-search-c++.cc: New file.
35241         * modules/search-tests (Files): Add it and tests/signature.h.
35242         (Depends-on): Add ansi-c++-opt.
35243         (Makefile.am): Arrange to compile and run test-search-c++.
35244         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35245         gl_MODULE_INDICATOR.
35246
35247         Tests of module 'math' in C++ mode.
35248         * tests/test-math-c++.cc: New file.
35249         * modules/math-tests (Files): Add it and tests/signature.h.
35250         (Depends-on): Add ansi-c++-opt.
35251         (Makefile.am): Arrange to compile and run test-math-c++.
35252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35253
35254         Tests of module 'locale' in C++ mode.
35255         * tests/test-locale-c++.cc: New file.
35256         * modules/locale-tests (Files): Add it and tests/signature.h.
35257         (Depends-on): Add ansi-c++-opt.
35258         (Makefile.am): Arrange to compile and run test-locale-c++.
35259         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35260         gl_MODULE_INDICATOR.
35261
35262         Tests of module 'langinfo' in C++ mode.
35263         * tests/test-langinfo-c++.cc: New file.
35264         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35265         (Depends-on): Add ansi-c++-opt.
35266         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35267         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35268         gl_MODULE_INDICATOR.
35269
35270         Tests of module 'iconv-h' in C++ mode.
35271         * tests/test-iconv-h-c++.cc: New file.
35272         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35273         (Depends-on): Add ansi-c++-opt.
35274         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35275
35276         Tests of module 'glob' in C++ mode.
35277         * tests/test-glob-c++.cc: New file.
35278         * modules/glob-tests (Files): Add it.
35279         (Depends-on): Add ansi-c++-opt.
35280         (Makefile.am): Arrange to compile and run test-glob-c++.
35281
35282         Tests of module 'fcntl-h' in C++ mode.
35283         * tests/test-fcntl-h-c++.cc: New file.
35284         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35285         (Depends-on): Add ansi-c++-opt.
35286         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35287         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35288         gl_MODULE_INDICATOR.
35289
35290         Tests of module 'dirent' in C++ mode.
35291         * tests/test-dirent-c++.cc: New file.
35292         * modules/dirent-tests (Files): Add it and tests/signature.h.
35293         (Depends-on): Add ansi-c++-opt.
35294         (Makefile.am): Arrange to compile and run test-dirent-c++.
35295         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35296         gl_MODULE_INDICATOR.
35297
35298         New module 'ansi-c++-opt'.
35299         * modules/ansi-c++-opt: New file.
35300         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35301
35302         Document C++ namespace mode.
35303         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35304
35305         wctype: Avoid #define replacements in C++ mode.
35306         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35307         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35308         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35309         In C++, define a namespaced alias symbol.
35310         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35311         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35312         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35313         rule.
35314
35315         wchar: Avoid #define replacements in C++ mode.
35316         * lib/wchar.in.h: Include c++defs.h.
35317         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35318         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35319         symbol.
35320         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35321         * modules/wchar (Depends-on): Add c++defs.
35322         (Makefile.am): Update wchar.h rule.
35323
35324         unistd: Avoid #define replacements in C++ mode.
35325         * lib/unistd.in.h: Include c++defs.h.
35326         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35327         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35328         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35329         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35330         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35331         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35332         symbol.
35333         (environ): Update.
35334         * modules/unistd (Depends-on): Add c++defs.
35335         (Makefile.am): Update unistd.h rule.
35336
35337         time: Avoid #define replacements in C++ mode.
35338         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35339         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35340         define a namespaced alias symbol.
35341         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35342         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35343         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35344         * modules/time (Depends-on): Add c++defs, warn-on-use.
35345         (Makefile.am): Update time.h rule.
35346         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35347         * modules/nanosleep (configure.ac): Likewise.
35348         * modules/strptime (configure.ac): Likewise.
35349         * modules/timegm (configure.ac): Likewise.
35350
35351         sys_time: Avoid #define replacements in C++ mode.
35352         * lib/sys_time.in.h: Include c++defs.h.
35353         (gettimeofday): In C++, define a namespaced alias symbol.
35354         * modules/sys_time (Depends-on): Add c++defs.
35355         (Makefile.am): Update sys/time.h rule.
35356
35357         sys_stat: Avoid #define replacements in C++ mode.
35358         * lib/sys_stat.in.h: Include c++defs.h.
35359         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35360         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35361         namespaced alias symbol.
35362         In C++, define a namespaced alias symbol.
35363         * modules/sys_stat (Depends-on): Add c++defs.
35364         (Makefile.am): Update sys/stat.h rule.
35365
35366         sys_socket: Avoid #define replacements in C++ mode.
35367         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35368         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35369         definitions also when the system has a <sys/socket.h>.
35370         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35371         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35372         In C++, define a namespaced alias symbol.
35373         * modules/sys_socket (Depends-on): Add c++defs.
35374         (Makefile.am): Update sys/socket.h rule.
35375
35376         sys_select: Avoid #define replacements in C++ mode.
35377         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35378         definitions also when the system has a <sys/select.h>.
35379         (select): In C++, define a namespaced alias symbol.
35380         * modules/sys_select (Depends-on): Add c++defs.
35381         (Makefile.am): Update sys/select.h rule.
35382
35383         sys_ioctl: Avoid #define replacements in C++ mode.
35384         * lib/sys_ioctl.in.h: Include c++defs.h.
35385         (ioctl): In C++, define a namespaced alias symbol.
35386         * modules/sys_ioctl (Depends-on): Add c++defs.
35387         (Makefile.am): Update sys/ioctl.h rule.
35388
35389         string: Avoid #define replacements in C++ mode.
35390         * lib/string.in.h: Include c++defs.h.
35391         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35392         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35393         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35394         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35395         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35396         * modules/string (Depends-on): Add c++defs.
35397         (Makefile.am): Update string.h rule.
35398
35399         stdlib: Avoid #define replacements in C++ mode.
35400         * lib/stdlib.in.h: Include c++defs.h.
35401         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35402         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35403         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35404         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35405         symbol.
35406         * modules/stdlib (Depends-on): Add c++defs.
35407         (Makefile.am): Update stdlib.h rule.
35408
35409         stdio: Avoid #define replacements in C++ mode.
35410         * lib/stdio.in.h: Include c++defs.h.
35411         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35412         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35413         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35414         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35415         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35416         namespaced alias symbol.
35417         * modules/stdio (Depends-on): Add c++defs.
35418         (Makefile.am): Update stdio.h rule.
35419
35420         spawn: Avoid #define replacements in C++ mode.
35421         * lib/spawn.in.h: Include c++defs.h.
35422         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35423         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35424         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35425         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35426         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35427         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35428         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35429         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35430         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35431         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35432         In C++, define a namespaced alias symbol.
35433         * modules/spawn (Depends-on): Add c++defs.
35434         (Makefile.am): Update spawn.h rule.
35435
35436         signal: Avoid #define replacements in C++ mode.
35437         * lib/signal.in.h: Include c++defs.h.
35438         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35439         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35440         namespaced alias symbol.
35441         * modules/signal (Depends-on): Add c++defs.
35442         (Makefile.am): Update signal.h rule.
35443
35444         search: Avoid #define replacements in C++ mode.
35445         * lib/search.in.h: Include c++defs.h.
35446         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35447         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35448         symbol.
35449         * modules/search (Depends-on): Add c++defs.
35450         (Makefile.am): Update search.h rule.
35451
35452         math: Avoid #define replacements in C++ mode.
35453         * lib/math.in.h: Include c++defs.h.
35454         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35455         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35456         trunc, truncl): In C++, define a namespaced alias symbol.
35457         * modules/math (Depends-on): Add c++defs.
35458         (Makefile.am): Update math.h rule.
35459
35460         locale: Avoid #define replacements in C++ mode.
35461         * lib/locale.in.h: Include c++defs.h.
35462         (duplocale): In C++, define a namespaced alias symbol.
35463         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35464         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35465         * modules/locale (Depends-on): Add c++defs.
35466         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35467
35468         langinfo: Avoid #define replacements in C++ mode.
35469         * lib/langinfo.in.h: Include c++defs.h.
35470         (nl_langinfo): In C++, define a namespaced alias symbol.
35471         * modules/langinfo (Depends-on): Add c++defs.
35472         (Makefile.am): Update langinfo.h rule.
35473
35474         iconv-h: Avoid #define replacements in C++ mode.
35475         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35476         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35477         symbol.
35478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35479         whenever iconv is present.
35480         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35481         (Makefile.am): Update iconv.h rule.
35482
35483         glob: Avoid #define replacements in C++ mode.
35484         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35485         (_gl_glob_errfunc_fn): New type.
35486         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35487         symbol.
35488         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35489         (Makefile.am): Update glob.h rule.
35490
35491         fcntl-h: Avoid #define replacements in C++ mode.
35492         * lib/fcntl.in.h: Include c++defs.h.
35493         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35494         * modules/fcntl-h (Depends-on): Add c++defs.
35495         (Makefile.am): Update fcntl.h rule.
35496
35497         dirent: Avoid #define replacements in C++ mode.
35498         * lib/dirent.in.h: Include c++defs.h.
35499         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35500         namespaced alias symbol.
35501         (dirfd): Update declaration.
35502         * modules/dirent (Depends-on): Add c++defs.
35503         (Makefile.am): Update dirent.h rule.
35504
35505         ctype: Make it usable in C++ code.
35506         * lib/ctype.in.h: Include c++defs.h.
35507         (isblank): Declare as extern "C".
35508         * modules/ctype (Depends-on): Add c++defs.
35509         (Makefile.am): Update ctype.h rule.
35510
35511         New module 'c++defs'.
35512         * modules/c++defs: New file.
35513         * build-aux/c++defs.h: New file.
35514         Reported by John W. Eaton <jwe@gnu.org>.
35515
35516 2010-03-07  Bruno Haible  <bruno@clisp.org>
35517
35518         logb: Provide missing declaration for Cygwin.
35519         * lib/math.in.h (logb): New declaration.
35520         * m4/logb.m4: New file.
35521         * modules/logb (Files): Add m4/logb.m4.
35522         (Depends-on): Add math.
35523         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35524         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35526         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35527         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35528
35529 2010-03-07  Bruno Haible  <bruno@clisp.org>
35530
35531         Fix test-cond link error.
35532         * tests/test-cond.c: Include <stdio.h>.
35533
35534 2010-03-07  Bruno Haible  <bruno@clisp.org>
35535
35536         Fix test-dirent-safer link error.
35537         * modules/dirent-safer-tests (Makefile.am): Define
35538         test_dirent_safer_LDADD.
35539
35540 2010-03-07  Bruno Haible  <bruno@clisp.org>
35541
35542         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35543         among default module list.
35544
35545 2010-03-07  Bruno Haible  <bruno@clisp.org>
35546
35547         Fix link error on platforms with GNU libiconv.
35548         * modules/unistr/u8-strcoll-tests (Makefile): Define
35549         test_u8_strcoll_LDADD.
35550         * modules/unistr/u16-strcoll-tests (Makefile): Define
35551         test_u16_strcoll_LDADD.
35552         * modules/unistr/u32-strcoll-tests (Makefile): Define
35553         test_u32_strcoll_LDADD.
35554
35555 2010-03-07  Bruno Haible  <bruno@clisp.org>
35556
35557         Use POSIX declarations for socket functions.
35558         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35559         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35560         rpl_sendto): Change declaration to match POSIX.
35561         * lib/connect.c (rpl_connect): Likewise.
35562         * lib/accept.c (rpl_accept): Likewise.
35563         * lib/bind.c (rpl_bind): Likewise.
35564         * lib/getpeername.c (rpl_getpeername): Likewise.
35565         * lib/getsockname.c (rpl_getsockname): Likewise.
35566         * lib/recv.c (rpl_recv): Likewise.
35567         * lib/send.c (rpl_send): Likewise.
35568         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35569         * lib/sendto.c (rpl_sendto): Likewise.
35570
35571 2010-03-06  Bruno Haible  <bruno@clisp.org>
35572
35573         Clarify access, euidaccess, faccessat.
35574         * doc/posix-functions/faccessat.texi: Mention security problem under
35575         "Other problems", not "Portability problems".
35576         * doc/posix-functions/access.texi: Likewise. Mention a related security
35577         problem.
35578         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35579         * lib/euidaccess.c: Add comments about platforms.
35580         * lib/unistd.in.h (access, euidaccess): Add warnings.
35581
35582 2010-03-07  Bruno Haible  <bruno@clisp.org>
35583
35584         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35585         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35586         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35587         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35588         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35589         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35590         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35591         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35592         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35593         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35594         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35595         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35596         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35597         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35598         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35599         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35600         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35601         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35602         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35603         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35604         Likewise.
35605         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35606         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35607         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35608         Likewise.
35609         * tests/test-spawn.c (main): Make it work when
35610         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35611
35612 2010-03-07  Bruno Haible  <bruno@clisp.org>
35613
35614         Fix incorrect Makefile.am generation in German locale.
35615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35616         Execute sed command with character range in C locale.
35617
35618 2010-03-06  Bruno Haible  <bruno@clisp.org>
35619
35620         Tests for module 'iconv-h'.
35621         * modules/iconv-h-tests: New file.
35622         * tests/test-iconv-h.c: New file.
35623
35624         New module 'iconv-h'.
35625         * modules/iconv-h: New file.
35626         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35627         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35628         (configure.ac): Remove gl_ICONV_H.
35629         (Makefile.am): Remove rule for iconv.h.
35630
35631 2010-03-06  Bruno Haible  <bruno@clisp.org>
35632
35633         More consistent naming of *.m4 files.
35634         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35635         * modules/wctype (Files): Update.
35636
35637         More consistent naming of *.m4 files.
35638         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35639         * modules/wchar (Files): Update.
35640
35641 2010-03-06  Jim Meyering  <meyering@redhat.com>
35642
35643         euidaccess: relax license to LGPLv2+
35644         * modules/euidaccess (License): Relax to LGPLv2+.
35645
35646 2010-03-06  Bruno Haible  <bruno@clisp.org>
35647
35648         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35649         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35650         (Makefile.am): Augment lib_SOURCES instead.
35651
35652 2010-03-04  Jim Meyering  <meyering@redhat.com>
35653
35654         utime: remove obsolete module
35655         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35656         unnecessary for years, and has been marked as obsolete for 10 months.
35657         * modules/utime: Remove file.
35658         * lib/utime.c: Remove file.
35659         * m4/utime.m4: Remove file.
35660         * m4/utimes-null.m4: Remove file.
35661         * doc/posix-functions/utime.texi (utime): Remove reference to
35662         the module.  Move the sole "fixed by gnulib" item into the
35663         "problems not fixed by Gnulib" list.
35664         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35665
35666 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35667
35668         * modules/exit (License): Relax license to LGPLv2+.
35669         (Status): Mark as obsolete.
35670         * NEWS: Mention deprecated 'exit' module.
35671         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35672         of now obsolete 'exit'.
35673
35674 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35675
35676         fts-lgpl: remove unused module
35677         * modules/fts-lgpl: Remove.
35678         * MODULES.html.sh (func_all_modules): Adjust.
35679         * check-module (find_included_lib_files): Adjust.
35680         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35681
35682 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35683
35684         copy-acl: enhance Solaris ACL error handling
35685         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35686         * lib/set-mode-acl.c (qset_acl): Likewise.
35687
35688 2010-03-02  Bruno Haible  <bruno@clisp.org>
35689
35690         spawn: Don't override the system defined values on FreeBSD 8.
35691         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35692         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35693         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35694         if HAVE_POSIX_SPAWN is 1.
35695         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35696
35697 2010-03-01  Bruno Haible  <bruno@clisp.org>
35698
35699         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35700         regarding Automake.
35701
35702 2010-02-25  Bruno Haible  <bruno@clisp.org>
35703
35704         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35705         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35706         setting, not afterwards.
35707         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35708
35709 2010-02-24  Eric Blake  <eblake@redhat.com>
35710
35711         bootstrap, git-version-gen: use timestamp
35712         * build-aux/git-version-gen (scriptversion): Force UTC.
35713         * build-aux/bootstrap (scriptversion): New variable.
35714
35715         bootstrap: allow older git
35716         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35717         older than 1.6.4.  Requested by the libvirt project.
35718
35719 2010-02-23  Eric Blake  <eblake@redhat.com>
35720
35721         warn-on-use: work with old autoconf
35722         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35723         AS_VAR semantics of autoconf 2.60.
35724         Reported by Bruno Haible.
35725
35726         bootstrap: improve some comments
35727         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35728         clarification comments.
35729
35730         gettimeofday: provide correct function
35731         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35732         when replacement is declared, otherwise provide gettimeofday.
35733         Reported by Michael Goffioul.
35734
35735 2010-02-23  Jim Meyering  <meyering@redhat.com>
35736
35737         lib-ignore: relax license to "unlimited", not LGPLv2+
35738         * modules/lib-ignore (License): Relax to "unlimited".
35739
35740 2010-02-23  Jim Meyering  <meyering@redhat.com>
35741
35742         lib-ignore: relax license to LGPLv2+
35743         * modules/lib-ignore (License): Relax to LGPLv2+.
35744
35745 2010-02-22  Eric Blake  <eblake@redhat.com>
35746
35747         lseek: avoid bash 3.2 broken pipe bug
35748         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35749         warning from bash 3.2.
35750         Reported by Ben Pfaff, with analysis from Bruno Haible.
35751
35752         bootstrap: support non-FSF copyright holder
35753         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35754         bootstrap.conf override of COPYRIGHT_HOLDER.
35755         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35756
35757         bootstrap: interoperate with gettext 0.14.1
35758         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35759
35760         bootstrap: allow for alternate submodule location
35761         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35762         hardcoding submodule location.
35763         (gnulib_mk): Allow direct use of Makefile.am.
35764
35765         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35766         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35767         rather than reconfiguring where the submodule points.
35768
35769         gettimeofday: restore support for platforms that lack function
35770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35771         replacement if function is missing.
35772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35773         * modules/sys_time (Makefile.am): Substitute it.
35774         * lib/sys_time.in.h (gettimeofday): Check it.
35775         Reported by Michael Goffioul.
35776
35777 2010-02-21  Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/stdio.in.h (obstack_printf): Fix typo.
35780
35781 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35782
35783         vc-list-files: use bzr ls's -R option
35784         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35785         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35786
35787 2010-02-21  Jim Meyering  <meyering@redhat.com>
35788
35789         init.sh: fix EXEEXT shims to work also for names like test-prog
35790         * tests/init.sh: Re-exec a better shell, when needed.
35791         If the current shell lacks support for posix $(...), an init.sh-using
35792         test will now try to find a shell that supports that.  If EXEEXT is
35793         nonempty, we also require support for hyphen-in-alias-name and shell
35794         substitutions like ${var#glob}.  Failure to find such a shell results
35795         in a skipped test.
35796
35797 2010-02-21  Bruno Haible  <bruno@clisp.org>
35798
35799         Really work around around "broken pipe" error message from bash 3.2.
35800         * gnulib-tool (func_reset_sigpipe): Remove function.
35801         (echo): In bash 3.2, define to a function that uses printf.
35802         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35803
35804 2010-02-20  Bruno Haible  <bruno@clisp.org>
35805
35806         Restore support for automake 1.9.6 with autoconf 2.61.
35807         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35808         Reported by James Youngman <jay@gnu.org>.
35809
35810 2010-02-20  Bruno Haible  <bruno@clisp.org>
35811
35812         Improve *printf warning condition.
35813         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35814         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35815         and the function is overridden due to SIGPIPE emulation.
35816
35817 2010-02-20  Bruno Haible  <bruno@clisp.org>
35818
35819         * lib/stdio.in.h: Tweak comments.
35820
35821 2010-02-19  Bruno Haible  <bruno@clisp.org>
35822
35823         Make it easier to find modules. New gnulib-tool option '--find'.
35824         * gnulib-tool: New option --find.
35825         (func_usage): Document it.
35826         (func_sanitize_modulelist): New function, extracted from
35827         func_all_modules.
35828         (func_all_modules): Invoke it.
35829         * doc/gnulib-tool.texi (Which modules?): New node.
35830
35831 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35832
35833         * lib/sys_select.in.h: Provide select replacement even if
35834         sys/select.h exists on a system, for Interix.
35835
35836 2010-02-18  Jim Meyering  <meyering@redhat.com>
35837
35838         init.sh: don't use $(...) just yet
35839         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35840         to accommodate e.g., Solaris' /bin/sh.
35841
35842 2010-02-17  Bruno Haible  <bruno@clisp.org>
35843
35844         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35845         Reported by Ludovic Courtès <ludo@gnu.org>.
35846
35847 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35848
35849         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35850         linking with -lintl.
35851
35852 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35853
35854         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35855         if not provided by the system's netdb.h.  Reported by
35856         ludo@gnu.org (Ludovic Courtès).
35857
35858 2010-02-15  Jim Meyering  <meyering@redhat.com>
35859
35860         init.sh: improve portability and efficiency
35861         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35862         "dummy" in a for loop.
35863         Use '!', not '^' to select the complement of a character set used
35864         in a "case" statement.
35865         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35866         Suggestions from Eric Blake.
35867
35868         init.sh: automatically accommodate programs with the .exe suffix
35869         Automatically arrange for an invocation of "prog" to execute the
35870         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35871         may use the simpler "prog", yet still work when built on a system
35872         that requires specifying the added suffix.
35873         Do this by constructing a function named "prog" that invokes
35874         "prog.exe" for each .exe file in selected directories.
35875         * tests/init.sh (find_exe_basenames_): New function.
35876         (create_exe_shim_functions_): New function.
35877         (path_prepend_): Use it.
35878
35879         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35880         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35881         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35882
35883 2010-02-14  Jim Meyering  <meyering@redhat.com>
35884
35885         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35886         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35887         (sc_prohibit_hash_pjw_without_use): New rule.
35888
35889         maint.mk: allow the default upload destination dir to be overridden
35890         * top/maint.mk (upload_dest_dir_): Define with a default that
35891         preserves the status quo.
35892         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35893         Reported by Peter Simons.
35894
35895         maint.mk: prohibit inclusion of "hash.h" without_use
35896         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35897
35898 2010-02-10  Jim Meyering  <meyering@redhat.com>
35899
35900         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35901         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35902
35903 2010-02-09  Eric Blake  <ebb9@byu.net>
35904         and Bruno Haible  <bruno@clisp.org>
35905
35906         obstack-printf-posix: ensure declaration
35907         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35908         extracted from gl_FUNC_OBSTACK_PRINTF.
35909         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35911         Likewise.
35912         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35913         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35914         0.
35915
35916 2010-02-08  Bruno Haible  <bruno@clisp.org>
35917
35918         gnulib-tool: Fix typo in 2010-02-07 commit.
35919         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35920         Reported by Eric Blake.
35921
35922 2010-02-07  Bruno Haible  <bruno@clisp.org>
35923
35924         gnulib-tool: Fix up caching patches.
35925         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35926         option --no-cache. Use associative arrays when supported by the shell.
35927         (sed_comments): New variable.
35928         (modcache): Renamed from do_cache.
35929         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35930         abbreviate unnecessarily.
35931         (have_associative): New variable.
35932         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35933         way also for ksh and zsh.
35934         (func_init_sed_convert_to_cache_statements): New function, extracted
35935         from func_cache_lookup_module. Add support for associative arrays.
35936         Don't set the c_MODULE_cached variable here. Ignore all lines before
35937         the first field header. Remove only the final newline, not all trailing
35938         newlines. Support empty fields correctly. Limit the use of 'eval' to
35939         assignments.
35940         (func_get_description, func_get_status, func_get_notice,
35941         func_get_applicability, func_get_filelist, func_get_dependencies,
35942         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35943         func_get_automake_snippet, func_get_include_directive,
35944         func_get_link_directive, func_get_license, func_get_maintainer):
35945         Update documentation. List the unoptimized code first. Add support for
35946         associative arrays. Limit the use of 'eval' to assignments.
35947         (func_get_applicability): Undo stylistic pessimisations.
35948         (func_get_automake_snippet, func_get_include_directive): Reduce code
35949         duplication.
35950         (func_modules_transitive_closure, func_modules_add_dummy,
35951         func_modules_notice, func_modules_to_filelist, func_add_file,
35952         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35953         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35954         func_create_testdir, func_create_megatestdir): Update documentation.
35955
35956 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35957
35958         * gnulib-tool (func_cache_lookup_module): Store the module name
35959         belonging to the cache variable; error out if two different
35960         module names map to the same cache variable name.
35961
35962 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35963
35964         gnulib-tool: Make caching optional.
35965         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35966         Update matching short versions of --no-changelog.
35967         (func_usage): Update.
35968         (sed_extract_cache_prog): Renamed from ...
35969         (sed_extract_prog): ... this; revert to old extraction script.
35970         (func_get_description, func_get_status)
35971         (func_get_notice, func_get_applicability, func_get_filelist)
35972         (func_get_dependencies, func_get_autoconf_early_snippet)
35973         (func_get_autoconf_snippet, func_get_automake_snippet)
35974         (func_get_include_directive, func_get_link_directive)
35975         (func_get_license, func_get_maintainer): If $do_cache is false,
35976         use old, non-caching extraction scripts.
35977         Suggestion by Bruno Haible.
35978
35979 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35980
35981         gnulib-tool: cache module metainformation.
35982         * gnulib-tool (sed_extract_prog): Match newline before each
35983         header, and rewrite header to a shell variable suffix.
35984         (func_cache_var, func_cache_lookup_module): New functions,
35985         to turn a module name into a cache variable prefix, and to
35986         look up and cache module metainformation.
35987         (func_get_description, func_get_status)
35988         (func_get_notice, func_get_applicability, func_get_filelist)
35989         (func_get_dependencies, func_get_autoconf_early_snippet)
35990         (func_get_autoconf_snippet, func_get_automake_snippet)
35991         (func_get_include_directive, func_get_link_directive)
35992         (func_get_license, func_get_maintainer): Use
35993         func_cache_lookup_module.
35994
35995 2010-02-07  Bruno Haible  <bruno@clisp.org>
35996
35997         fnctl: Fix missing dependency.
35998         * modules/fcntl (Depends-on): Add getdtablesize.
35999         Reported by John W. Eaton <jwe@gnu.org>.
36000
36001 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36002
36003         Argp: fix recognition of short alias options.
36004
36005         * lib/argp-parse.c (convert_options): Fix improper use of
36006         `|' between character values.
36007         * tests/test-argp.c (group1_option): New alias option
36008         --read (-r).
36009         (group1_parser): Special handling for 'r'.
36010         (test15): New test case.
36011         (test_fun): Add test15.
36012         * tests/test-argp-2.sh: Update expected --help and --usage
36013         outputs.
36014
36015 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36016
36017         * tests/test-argp.c: Fix indentation.
36018
36019 2010-02-04  Eric Blake  <ebb9@byu.net>
36020
36021         gettimeofday: expose type of second argument
36022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36023         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36024         * tests/test-gettimeofday.c: Use it to silence warning.
36025         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36026         the issue.
36027
36028 2010-02-03  Jim Meyering  <meyering@redhat.com>
36029
36030         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36031         * lib/regcomp.c (TYPE_SIGNED): Define.
36032         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36033
36034         regcomp.c: avoid a new -Wshadow warning
36035         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36036
36037 2010-02-01  Jim Meyering  <meyering@redhat.com>
36038
36039         removing useless parentheses in cpp #define directives
36040         For motivation, see commit c0221df4, "define STREQ(a,b)
36041         consistently, removing useless parentheses"
36042         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36043         * lib/mountlist.c (MNT_IGNORE): Likewise.
36044         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36045
36046 2010-02-01  Eric Blake  <ebb9@byu.net>
36047
36048         sys_time: use link-warning
36049         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36050         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36051         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36052         * modules/sys_time (Depends-on): Add warn-on-use.
36053         (Makefile.am): Always build replacement.
36054         (configure.ac): Update substitutions.
36055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36056         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36057         bother with SYS_TIME_H.
36058         * modules/gettimeofday (configure.ac): Declare indicator.
36059         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36060         in use.
36061
36062         closein-tests: silence compiler warning
36063         * tests/test-closein.c (main): Ignore fread result.
36064         * modules/closein-tests (Depends-on): Add ignore-value.
36065
36066         tests: silence warning about system return
36067         * tests/test-areadlink-with-size.c (main): Ignore system result.
36068         * tests/test-areadlink.c (main): Likewise.
36069         * tests/test-areadlinkat-with-size.c (main): Likewise.
36070         * tests/test-areadlinkat.c (main): Likewise.
36071         * tests/test-canonicalize-lgpl.c (main): Likewise.
36072         * tests/test-canonicalize.c (main): Likewise.
36073         * tests/test-chown.c (main): Likewise.
36074         * tests/test-fchownat.c (main): Likewise.
36075         * tests/test-fdutimensat.c (main): Likewise.
36076         * tests/test-fstatat.c (main): Likewise.
36077         * tests/test-futimens.c (main): Likewise.
36078         * tests/test-lchown.c (main): Likewise.
36079         * tests/test-link.c (main): Likewise.
36080         * tests/test-linkat.c (main): Likewise.
36081         * tests/test-lstat.c (main): Likewise.
36082         * tests/test-mkdir.c (main): Likewise.
36083         * tests/test-mkdirat.c (main): Likewise.
36084         * tests/test-mkfifo.c (main): Likewise.
36085         * tests/test-mkfifoat.c (main): Likewise.
36086         * tests/test-mknod.c (main): Likewise.
36087         * tests/test-readlink.c (main): Likewise.
36088         * tests/test-remove.c (main): Likewise.
36089         * tests/test-rename.c (main): Likewise.
36090         * tests/test-renameat.c (main): Likewise.
36091         * tests/test-rmdir.c (main): Likewise.
36092         * tests/test-symlink.c (main): Likewise.
36093         * tests/test-symlinkat.c (main): Likewise.
36094         * tests/test-unlink.c (main): Likewise.
36095         * tests/test-unlinkat.c (main): Likewise.
36096         * tests/test-utimens.c (main): Likewise.
36097         * tests/test-utimensat.c (main): Likewise.
36098         * modules/areadlink-tests (Depends-on): Add ignore-value.
36099         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36100         * modules/areadlinkat-tests (Depends-on): Likewise.
36101         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36102         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36103         * modules/canonicalize-tests (Depends-on): Likewise.
36104         * modules/chown-tests (Depends-on): Likewise.
36105         * modules/fdutimensat-tests (Depends-on): Likewise.
36106         * modules/futimens-tests (Depends-on): Likewise.
36107         * modules/lchown-tests (Depends-on): Likewise.
36108         * modules/link-tests (Depends-on): Likewise.
36109         * modules/linkat-tests (Depends-on): Likewise.
36110         * modules/lstat-tests (Depends-on): Likewise.
36111         * modules/mkdir-tests (Depends-on): Likewise.
36112         * modules/mkfifo-tests (Depends-on): Likewise.
36113         * modules/mkfifoat-tests (Depends-on): Likewise.
36114         * modules/mknod-tests (Depends-on): Likewise.
36115         * modules/openat-tests (Depends-on): Likewise.
36116         * modules/readlink-tests (Depends-on): Likewise.
36117         * modules/remove-tests (Depends-on): Likewise.
36118         * modules/rename-tests (Depends-on): Likewise.
36119         * modules/renameat-tests (Depends-on): Likewise.
36120         * modules/rmdir-tests (Depends-on): Likewise.
36121         * modules/symlink-tests (Depends-on): Likewise.
36122         * modules/symlinkat-tests (Depends-on): Likewise.
36123         * modules/unlink-tests (Depends-on): Likewise.
36124         * modules/utimens-tests (Depends-on): Likewise.
36125         * modules/utimensat-tests (Depends-on): Likewise.
36126
36127 2010-01-31  Bruno Haible  <bruno@clisp.org>
36128
36129         Perform the same test for many <math.h> functions.
36130         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36131         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36132         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36133         of gl_MATHFUNC.
36134         * modules/acos (configure.ac): Likewise.
36135         * modules/asin (configure.ac): Likewise.
36136         * modules/atan (configure.ac): Likewise.
36137         * modules/atan2 (configure.ac): Likewise.
36138         * modules/cbrt (configure.ac): Likewise.
36139         * modules/copysign (configure.ac): Likewise.
36140         * modules/cos (configure.ac): Likewise.
36141         * modules/cosh (configure.ac): Likewise.
36142         * modules/erf (configure.ac): Likewise.
36143         * modules/erfc (configure.ac): Likewise.
36144         * modules/exp (configure.ac): Likewise.
36145         * modules/fmod (configure.ac): Likewise.
36146         * modules/hypot (configure.ac): Likewise.
36147         * modules/j0 (configure.ac): Likewise.
36148         * modules/j1 (configure.ac): Likewise.
36149         * modules/jn (configure.ac): Likewise.
36150         * modules/lgamma (configure.ac): Likewise.
36151         * modules/log (configure.ac): Likewise.
36152         * modules/log10 (configure.ac): Likewise.
36153         * modules/log1p (configure.ac): Likewise.
36154         * modules/pow (configure.ac): Likewise.
36155         * modules/remainder (configure.ac): Likewise.
36156         * modules/sin (configure.ac): Likewise.
36157         * modules/sinh (configure.ac): Likewise.
36158         * modules/tan (configure.ac): Likewise.
36159         * modules/tanh (configure.ac): Likewise.
36160         * modules/y0 (configure.ac): Likewise.
36161         * modules/y1 (configure.ac): Likewise.
36162         * modules/yn (configure.ac): Likewise.
36163         Suggested by Paolo Bonzini.
36164
36165 2010-01-31  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36168
36169 2010-01-31  Bruno Haible  <bruno@clisp.org>
36170
36171         Work around getdelim() bug on FreeBSD 8.0.
36172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36173         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36174         not work.
36175         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36176         is 1.
36177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36178         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36179         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36180         a non-zero size.
36181         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36182
36183 2010-01-31  Bruno Haible  <bruno@clisp.org>
36184
36185         Work around getline() bug on FreeBSD 8.0.
36186         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36187         and a non-zero size.
36188         * tests/test-getline.c (main): Likewise.
36189         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36190         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36191
36192 2010-01-28  Eric Blake  <ebb9@byu.net>
36193
36194         regex: fix build failure
36195         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36196         platforms.
36197
36198 2010-01-28  Jim Meyering  <meyering@redhat.com>
36199
36200         regex: do not ignore memory allocation failure
36201         * lib/regex_internal.c (create_cd_newstate): Detect
36202         re_node_set_init_copy failure.   Extracted from glibc commit
36203         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36204
36205         regex: sync more white-space changes from libc
36206         * lib/regex_internal.c: White-space only changes.
36207         * lib/regexec.c: Likewise.
36208
36209         regex: add many uses of __attribute_warn_unused_result__
36210         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36211         * lib/regexec.c: Likewise.
36212         Extracted from a messy glibc commit.
36213
36214         regcomp.c: spelling and merge-artifact from glibc
36215         * lib/regcomp.c: Merge remainder of glibc's
36216         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36217
36218         regcomp.c: sync white-space changes from glibc
36219         * lib/regcomp.c: Merge to accommodate white space
36220         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36221
36222         regcomp.c: do not ignore internal return values
36223         * lib/regcomp.c: Do not ignore internal return values.
36224         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36225         but without its white-space changes and spelling fixes.
36226
36227         regex_internal.h: define __attribute_warn_unused_result__
36228         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36229
36230         maint: add a syntax-check rule to check for vulnerable Makefile.in
36231         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36232
36233 2010-01-27  Jim Meyering  <meyering@redhat.com>
36234
36235         ncftpput-ftp: clean up spaces
36236         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36237         Remove trailing blanks.
36238
36239 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36240
36241         * build-aux/git-version-gen: Fix copyright statement.
36242         * build-aux/gnupload: Likewise.
36243         * tests/test-arcfour.c: Likewise.
36244         * tests/test-arctwo.c: Likewise.
36245         * tests/test-count-one-bits.c: Likewise.
36246         * tests/test-crc.c: Likewise.
36247         * tests/test-des.c: Likewise.
36248         * tests/test-gc-arcfour.c: Likewise.
36249         * tests/test-gc-arctwo.c: Likewise.
36250         * tests/test-gc-des.c: Likewise.
36251         * tests/test-gc-hmac-md5.c: Likewise.
36252         * tests/test-gc-hmac-sha1.c: Likewise.
36253         * tests/test-gc-md2.c: Likewise.
36254         * tests/test-gc-md4.c: Likewise.
36255         * tests/test-gc-md5.c: Likewise.
36256         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36257         * tests/test-gc-rijndael.c: Likewise.
36258         * tests/test-gc-sha1.c: Likewise.
36259         * tests/test-gc.c: Likewise.
36260         * tests/test-gethostname.c: Likewise.
36261         * tests/test-gettimeofday.c: Likewise.
36262         * tests/test-hash.c: Likewise.
36263         * tests/test-hmac-md5.c: Likewise.
36264         * tests/test-hmac-sha1.c: Likewise.
36265         * tests/test-md2.c: Likewise.
36266         * tests/test-md4.c: Likewise.
36267         * tests/test-md5.c: Likewise.
36268         * tests/test-memchr.c: Likewise.
36269         * tests/test-memchr2.c: Likewise.
36270         * tests/test-memcmp.c: Likewise.
36271         * tests/test-memmem.c: Likewise.
36272         * tests/test-memrchr.c: Likewise.
36273         * tests/test-rawmemchr.c: Likewise.
36274         * tests/test-read-file.c: Likewise.
36275         * tests/test-rijndael.c: Likewise.
36276         * tests/test-sockets.c: Likewise.
36277         * tests/test-strchrnul.c: Likewise.
36278         * tests/test-strstr.c: Likewise.
36279         * tests/test-strtod.c: Likewise.
36280         * build-aux/ncftpput-ftp: Likewise.
36281
36282 2010-01-26  Eric Blake  <ebb9@byu.net>
36283
36284         ignore-value: update recommended header name
36285         * modules/ignore-value (Include): Only use <> for headers that
36286         exist in glibc.
36287
36288 2010-01-26  Jim Meyering  <meyering@redhat.com>
36289
36290         test-userspec.c: avoid compiler warnings
36291         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36292         and "initialization discards qualifiers..." warnings.
36293         Put the first "uid" in its own scope, and make char* members "const".
36294
36295 2010-01-25  Bruno Haible  <bruno@clisp.org>
36296
36297         gnulib-tool: Make warning diagnostics consistent.
36298         * gnulib-tool (func_warning): New function.
36299         Use it everywhere where gnulib-tool produces output to stderr and it is
36300         not a fatal error.
36301
36302 2010-01-25  Bruno Haible  <bruno@clisp.org>
36303
36304         Fix test dependencies.
36305         * modules/xstrtol-tests (Depends-on): Add inttypes.
36306         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36307
36308 2010-01-25 Pádraig Brady <P@draigBrady.com>
36309
36310         syntax-check: detect incorrect boolean macro values in config.h
36311         * modules/maintainer-makefile (configure.ac): Parameterize the location
36312         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36313         The logic is from Eric Blake and the location indicated by Jim Meyering.
36314         Note the more natural CONFIG_HEADER name is prohibited by automake
36315         for backwards compatibility reasons.
36316         * top/maint.mk (sc_Wundef_boolean): New rule.
36317
36318 2010-01-25  Jim Meyering  <meyering@redhat.com>
36319
36320         bootstrap: detect MacOS 10.6's shasum, too
36321         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36322         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36323
36324 2010-01-23  Jim Meyering  <meyering@redhat.com>
36325
36326         xstrtoll: new module
36327         * modules/xstrtoll: New file.
36328         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36329         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36330         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36331         ./configure fails if you use this module and lack "long long".
36332         * modules/xstrtoll-tests: New module.
36333         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36334         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36335         new init.sh-based test framework.
36336
36337 2010-01-24  Bruno Haible  <bruno@clisp.org>
36338
36339         Tests for module 'yn'.
36340         * modules/yn-tests: New file.
36341         * tests/test-yn.c: New file.
36342
36343         Tests for module 'y1'.
36344         * modules/y1-tests: New file.
36345         * tests/test-y1.c: New file.
36346
36347         Tests for module 'y0'.
36348         * modules/y0-tests: New file.
36349         * tests/test-y0.c: New file.
36350
36351         Tests for module 'tanh'.
36352         * modules/tanh-tests: New file.
36353         * tests/test-tanh.c: New file.
36354
36355         Tests for module 'tan'.
36356         * modules/tan-tests: New file.
36357         * tests/test-tan.c: New file.
36358
36359         Tests for module 'sqrt'.
36360         * modules/sqrt-tests: New file.
36361         * tests/test-sqrt.c: New file.
36362
36363         Tests for module 'sinh'.
36364         * modules/sinh-tests: New file.
36365         * tests/test-sinh.c: New file.
36366
36367         Tests for module 'sin'.
36368         * modules/sin-tests: New file.
36369         * tests/test-sin.c: New file.
36370
36371         Tests for module 'rint'.
36372         * modules/rint-tests: New file.
36373         * tests/test-rint.c: New file.
36374
36375         Tests for module 'remainder'.
36376         * modules/remainder-tests: New file.
36377         * tests/test-remainder.c: New file.
36378
36379         Tests for module 'pow'.
36380         * modules/pow-tests: New file.
36381         * tests/test-pow.c: New file.
36382
36383         Tests for module 'nextafter'.
36384         * modules/nextafter-tests: New file.
36385         * tests/test-nextafter.c: New file.
36386
36387         Tests for module 'modf'.
36388         * modules/modf-tests: New file.
36389         * tests/test-modf.c: New file.
36390
36391         Tests for module 'logb'.
36392         * modules/logb-tests: New file.
36393         * tests/test-logb.c: New file.
36394
36395         Tests for module 'log1p'.
36396         * modules/log1p-tests: New file.
36397         * tests/test-log1p.c: New file.
36398
36399         Tests for module 'log10'.
36400         * modules/log10-tests: New file.
36401         * tests/test-log10.c: New file.
36402
36403         Tests for module 'log'.
36404         * modules/log-tests: New file.
36405         * tests/test-log.c: New file.
36406
36407         Tests for module 'lgamma'.
36408         * modules/lgamma-tests: New file.
36409         * tests/test-lgamma.c: New file.
36410
36411         Tests for module 'ldexp'.
36412         * modules/ldexp-tests: New file.
36413         * tests/test-ldexp.c: New file.
36414
36415         Tests for module 'jn'.
36416         * modules/jn-tests: New file.
36417         * tests/test-jn.c: New file.
36418
36419         Tests for module 'j1'.
36420         * modules/j1-tests: New file.
36421         * tests/test-j1.c: New file.
36422
36423         Tests for module 'j0'.
36424         * modules/j0-tests: New file.
36425         * tests/test-j0.c: New file.
36426
36427         Tests for module 'hypot'.
36428         * modules/hypot-tests: New file.
36429         * tests/test-hypot.c: New file.
36430
36431         Tests for module 'fmod'.
36432         * modules/fmod-tests: New file.
36433         * tests/test-fmod.c: New file.
36434
36435         Tests for module 'fabs'.
36436         * modules/fabs-tests: New file.
36437         * tests/test-fabs.c: New file.
36438
36439         Tests for module 'exp'.
36440         * modules/exp-tests: New file.
36441         * tests/test-exp.c: New file.
36442
36443         Tests for module 'erfc'.
36444         * modules/erfc-tests: New file.
36445         * tests/test-erfc.c: New file.
36446
36447         Tests for module 'erf'.
36448         * modules/erf-tests: New file.
36449         * tests/test-erf.c: New file.
36450
36451         Tests for module 'cosh'.
36452         * modules/cosh-tests: New file.
36453         * tests/test-cosh.c: New file.
36454
36455         Tests for module 'cos'.
36456         * modules/cos-tests: New file.
36457         * tests/test-cos.c: New file.
36458
36459         Tests for module 'copysign'.
36460         * modules/copysign-tests: New file.
36461         * tests/test-copysign.c: New file.
36462
36463         Tests for module 'cbrt'.
36464         * modules/cbrt-tests: New file.
36465         * tests/test-cbrt.c: New file.
36466
36467         Tests for module 'atan2'.
36468         * modules/atan2-tests: New file.
36469         * tests/test-atan2.c: New file.
36470
36471         Tests for module 'atan'.
36472         * modules/atan-tests: New file.
36473         * tests/test-atan.c: New file.
36474
36475         Tests for module 'asin'.
36476         * modules/asin-tests: New file.
36477         * tests/test-asin.c: New file.
36478
36479         Tests for module 'acos'.
36480         * modules/acos-tests: New file.
36481         * tests/test-acos.c: New file.
36482
36483 2010-01-24  Bruno Haible  <bruno@clisp.org>
36484
36485         Fix tests for common <math.h> functions.
36486         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36487         code snippet that references the function pointer, rather than merely
36488         calling the function. Substitute the FUNC_LIBM variable.
36489         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36490         * modules/acos (configure.ac): Likewise.
36491         * modules/asin (configure.ac): Likewise.
36492         * modules/atan (configure.ac): Likewise.
36493         * modules/atan2 (configure.ac): Likewise.
36494         * modules/cbrt (configure.ac): Likewise.
36495         * modules/copysign (configure.ac): Likewise.
36496         * modules/cos (configure.ac): Likewise.
36497         * modules/cosh (configure.ac): Likewise.
36498         * modules/erf (configure.ac): Likewise.
36499         * modules/erfc (configure.ac): Likewise.
36500         * modules/exp (configure.ac): Likewise.
36501         * modules/fabs (configure.ac): Likewise.
36502         * modules/fmod (configure.ac): Likewise.
36503         * modules/hypot (configure.ac): Likewise.
36504         * modules/j0 (configure.ac): Likewise.
36505         * modules/j1 (configure.ac): Likewise.
36506         * modules/jn (configure.ac): Likewise.
36507         * modules/ldexp (configure.ac): Likewise.
36508         * modules/lgamma (configure.ac): Likewise.
36509         * modules/log (configure.ac): Likewise.
36510         * modules/log10 (configure.ac): Likewise.
36511         * modules/log1p (configure.ac): Likewise.
36512         * modules/logb (configure.ac): Likewise.
36513         * modules/modf (configure.ac): Likewise.
36514         * modules/nextafter (configure.ac): Likewise.
36515         * modules/pow (configure.ac): Likewise.
36516         * modules/remainder (configure.ac): Likewise.
36517         * modules/rint (configure.ac): Likewise.
36518         * modules/sin (configure.ac): Likewise.
36519         * modules/sinh (configure.ac): Likewise.
36520         * modules/tan (configure.ac): Likewise.
36521         * modules/tanh (configure.ac): Likewise.
36522         * modules/y0 (configure.ac): Likewise.
36523         * modules/y1 (configure.ac): Likewise.
36524         * modules/yn (configure.ac): Likewise.
36525
36526 2010-01-24  Bruno Haible  <bruno@clisp.org>
36527
36528         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36529         * tests/test-acosl.c (x): New variable.
36530         (main): Store argument in x and fetch it from x.
36531         * tests/test-asinl.c (x): New variable.
36532         (main): Store argument in x and fetch it from x.
36533         * tests/test-atanl.c (x): New variable.
36534         (main): Store argument in x and fetch it from x.
36535         * tests/test-cosl.c (x): New variable.
36536         (main): Store argument in x and fetch it from x.
36537         * tests/test-expl.c (x): New variable.
36538         (main): Store argument in x and fetch it from x.
36539         * tests/test-logl.c (x): New variable.
36540         (main): Store argument in x and fetch it from x.
36541         * tests/test-sinl.c (x): New variable.
36542         (main): Store argument in x and fetch it from x.
36543         * tests/test-sqrtl.c (x): New variable.
36544         (main): Store argument in x and fetch it from x.
36545         * tests/test-tanl.c (x): New variable.
36546         (main): Store argument in x and fetch it from x.
36547
36548 2010-01-24  Bruno Haible  <bruno@clisp.org>
36549
36550         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36551         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36552         assignments to the initial TESTS_ENVIRONMENT.
36553         * doc/gnulib.texi (Unit test modules): Document it.
36554         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36555         TESTS_ENVIRONMENT.
36556         * modules/btowc-tests (Makefile.am): Likewise.
36557         * modules/c-stack-tests (Makefile.am): Likewise.
36558         * modules/c-strcase-tests (Makefile.am): Likewise.
36559         * modules/copy-file-tests (Makefile.am): Likewise.
36560         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36561         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36562         * modules/mbrtowc-tests (Makefile.am): Likewise.
36563         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36564         * modules/mbscasestr-tests (Makefile.am): Likewise.
36565         * modules/mbschr-tests (Makefile.am): Likewise.
36566         * modules/mbscspn-tests (Makefile.am): Likewise.
36567         * modules/mbsinit-tests (Makefile.am): Likewise.
36568         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36569         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36570         * modules/mbspbrk-tests (Makefile.am): Likewise.
36571         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36572         * modules/mbsrchr-tests (Makefile.am): Likewise.
36573         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36574         * modules/mbsspn-tests (Makefile.am): Likewise.
36575         * modules/mbsstr-tests (Makefile.am): Likewise.
36576         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36577         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36578         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36579         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36580         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36581         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36582         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36583         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36584         * modules/wcrtomb-tests (Makefile.am): Likewise.
36585         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36586         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36587         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36588         assignments from TESTS_ENVIRONMENT.
36589         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36590         augmentation.
36591         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36592         * modules/atexit-tests (Makefile.am): Likewise.
36593         * modules/binary-io-tests (Makefile.am): Likewise.
36594         * modules/closein-tests (Makefile.am): Likewise.
36595         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36596         * modules/exclude-tests (Makefile.am): Likewise.
36597         * modules/fflush-tests (Makefile.am): Likewise.
36598         * modules/fpending-tests (Makefile.am): Likewise.
36599         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36600         * modules/freadahead-tests (Makefile.am): Likewise.
36601         * modules/freadptr-tests (Makefile.am): Likewise.
36602         * modules/freadseek-tests (Makefile.am): Likewise.
36603         * modules/fseek-tests (Makefile.am): Likewise.
36604         * modules/fseeko-tests (Makefile.am): Likewise.
36605         * modules/ftell-tests (Makefile.am): Likewise.
36606         * modules/ftello-tests (Makefile.am): Likewise.
36607         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36608         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36609         * modules/lseek-tests (Makefile.am): Likewise.
36610         * modules/parse-duration-tests (Makefile.am): Likewise.
36611         * modules/perror-tests (Makefile.am): Likewise.
36612         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36613         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36614         * modules/pipe-tests (Makefile.am): Likewise.
36615         * modules/pread-tests (Makefile.am): Likewise.
36616         * modules/printf-posix-tests (Makefile.am): Likewise.
36617         * modules/select-tests (Makefile.am): Likewise.
36618         * modules/sigpipe-tests (Makefile.am): Likewise.
36619         * modules/tsearch-tests (Makefile.am): Likewise.
36620         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36621         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36622         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36623         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36624         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36625         * modules/version-etc-tests (Makefile.am): Likewise.
36626         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36627         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36628         * modules/xalloc-die-tests (Makefile.am): Likewise.
36629         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36630         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36631         * modules/xstrtol-tests (Makefile.am): Likewise.
36632         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36633         * modules/yesno-tests (Makefile.am): Likewise.
36634         Suggested by Jim Meyering.
36635
36636 2010-01-24  Bruno Haible  <bruno@clisp.org>
36637
36638         More documentation.
36639         * doc/gnulib.texi (Writing modules): New chapter.
36640         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36641         the new chapter.
36642
36643 2010-01-24  Jim Meyering  <meyering@redhat.com>
36644
36645         maint.mk: do not prepend "./" after filtering
36646         * top/maint.mk (_prepend_srcdir_prefix): New variable
36647         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36648         "./" when $(srcdir) is ".".
36649
36650         define STREQ(a,b) consistently, removing useless parentheses
36651         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36652         since the only risk is that "a" or "b" contains an unparenthesized
36653         comma, but if either did that, STREQ would have 3 or more arguments.
36654         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36655         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36656         * lib/hash-triple.c (STREQ): Likewise.
36657         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36658         * lib/getugroups.c (STREQ): Likewise.
36659
36660 2010-01-23  Jim Meyering  <meyering@redhat.com>
36661
36662         maint.mk: fix syntax-check in a non-srcdir build directory
36663         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36664         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36665
36666 2010-01-22  Jim Meyering  <meyering@redhat.com>
36667
36668         userspec: add unit tests
36669         * tests/test-userspec.c: New file.
36670         * modules/userspec-tests: Likewise.
36671
36672 2010-01-21  Jim Meyering  <meyering@redhat.com>
36673
36674         maint.mk: handle source file names containing "." robustly
36675         * top/maint.mk (_dot_escaped_srcdir): Define.
36676         (VC_LIST): Use it in LHS of sed substitution.
36677
36678 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36679
36680         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36681         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36682         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36683         from a non-srcdir build.
36684
36685 2010-01-20  Eric Blake  <ebb9@byu.net>
36686
36687         warn-on-use: use instead of link-warning
36688         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36689         * modules/unistd (Depends-on, Makefile.am): Likewise.
36690         * modules/arpa_inet (Depends-on): Replace link-warning with
36691         warn-on-use.
36692         (Makefile.am): Update rules accordingly.
36693         * modules/ctype (Depends-on, Makefile.am): Likewise.
36694         * modules/dirent (Depends-on, Makefile.am): Likewise.
36695         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36696         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36697         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36698         * modules/locale (Depends-on, Makefile.am): Likewise.
36699         * modules/math (Depends-on, Makefile.am): Likewise.
36700         * modules/search (Depends-on, Makefile.am): Likewise.
36701         * modules/signal (Depends-on, Makefile.am): Likewise.
36702         * modules/spawn (Depends-on, Makefile.am): Likewise.
36703         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36704         * modules/string (Depends-on, Makefile.am): Likewise.
36705         * modules/strings (Depends-on, Makefile.am): Likewise.
36706         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36707         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36708         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36709         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36710         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36711         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36712         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36713         * modules/wchar (Depends-on, Makefile.am): Likewise.
36714         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36715         should be poisoned.
36716         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36717         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36718         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36719         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36721         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36722         * m4/math_h.m4 (gl_MATH_H): Likewise.
36723         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36724         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36725         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36726         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36727         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36729         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36730         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36731         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36735         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36737         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36738         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36739         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36740         GL_LINK_WARNING.
36741         * lib/ctype.in.h: Likewise.
36742         * lib/dirent.in.h: Likewise.
36743         * lib/fcntl.in.h: Likewise.
36744         * lib/inttypes.in.h: Likewise.
36745         * lib/langinfo.in.h: Likewise.
36746         * lib/locale.in.h: Likewise.
36747         * lib/math.in.h: Likewise.
36748         * lib/search.in.h: Likewise.
36749         * lib/signal.in.h: Likewise.
36750         * lib/spawn.in.h: Likewise.
36751         * lib/stdio.in.h: Likewise.
36752         * lib/stdlib.in.h: Likewise.
36753         * lib/string.in.h: Likewise.
36754         * lib/strings.in.h: Likewise.
36755         * lib/sys_file.in.h: Likewise.
36756         * lib/sys_ioctl.in.h: Likewise.
36757         * lib/sys_select.in.h: Likewise.
36758         * lib/sys_socket.in.h: Likewise.
36759         * lib/sys_stat.in.h: Likewise.
36760         * lib/sys_times.in.h: Likewise.
36761         * lib/sys_utsname.in.h: Likewise.
36762         * lib/unistd.in.h: Likewise.
36763         * lib/wchar.in.h: Likewise.
36764
36765 2010-01-20  Bruno Haible  <bruno@clisp.org>
36766
36767         Avoid duplicate -lm.
36768         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36769         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36772         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36773         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36774         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36775         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36776         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36777         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36778         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36779         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36780         Reported by Paolo Bonzini.
36781
36782 2010-01-19  Bruno Haible  <bruno@clisp.org>
36783
36784         langinfo, nl_langinfo: Relicense under LGPLv2+.
36785         * modules/langinfo (License): Change to LGPLv2+.
36786         * modules/nl_langinfo (License): Likewise.
36787         Patch by David Lutterkort <lutter@redhat.com>.
36788
36789 2010-01-19  Bruno Haible  <bruno@clisp.org>
36790
36791         Avoid compilation error with cc on OSF/1 5.1.
36792         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36793         statement, not before.
36794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36795
36796 2010-01-18  Bruno Haible  <bruno@clisp.org>
36797
36798         Avoid a link error due to the __printf__ symbol.
36799         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36800         and 2.6.x.
36801         (__format__, __printf__): Remove definitions.
36802         * lib/argp-fmtstream.h: Likewise.
36803         * lib/argp.h: Likewise.
36804         * lib/error.h: Likewise.
36805         * lib/vasnprintf.h: Likewise.
36806         * lib/xprintf.h: Likewise.
36807         * lib/xvasprintf.h: Likewise.
36808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36809
36810 2010-01-18  Bruno Haible  <bruno@clisp.org>
36811
36812         Tests for module 'tanl'.
36813         * modules/tanl-tests: New file.
36814         * tests/test-tanl.c: New file.
36815
36816         Tests for module 'sqrtl'.
36817         * modules/sqrtl-tests: New file.
36818         * tests/test-sqrtl.c: New file.
36819
36820         Tests for module 'sinl'.
36821         * modules/sinl-tests: New file.
36822         * tests/test-sinl.c: New file.
36823
36824         Tests for module 'logl'.
36825         * modules/logl-tests: New file.
36826         * tests/test-logl.c: New file.
36827
36828         Tests for module 'expl'.
36829         * modules/expl-tests: New file.
36830         * tests/test-expl.c: New file.
36831
36832         Tests for module 'cosl'.
36833         * modules/cosl-tests: New file.
36834         * tests/test-cosl.c: New file.
36835
36836         Tests for module 'atanl'.
36837         * modules/atanl-tests: New file.
36838         * tests/test-atanl.c: New file.
36839
36840         Tests for module 'asinl'.
36841         * modules/asinl-tests: New file.
36842         * tests/test-asinl.c: New file.
36843
36844         Tests for module 'acosl'.
36845         * modules/acosl-tests: New file.
36846         * tests/test-acosl.c: New file.
36847
36848         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36849         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36850         tanl): Use the standard gnulib idiom.
36851         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36852         * lib/sinl.c: Likewise.
36853         * lib/tanl.c: Don't include trigl.c.
36854         (kernel_tanl): Make static.
36855         * lib/sincosl.c: Include trigl.h first.
36856         * lib/trigl.c: Likewise.
36857         * m4/acosl.m4: New file.
36858         * m4/asinl.m4: New file.
36859         * m4/atanl.m4: New file.
36860         * m4/cosl.m4: New file.
36861         * m4/expl.m4: New file.
36862         * m4/logl.m4: New file.
36863         * m4/sinl.m4: New file.
36864         * m4/sqrtl.m4: New file.
36865         * m4/tanl.m4: New file.
36866         * m4/mathl.m4: Remove file.
36867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36868         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36869         Don't initialize GNULIB_MATHL.
36870         * modules/acosl: New file.
36871         * modules/asinl: New file.
36872         * modules/atanl: New file.
36873         * modules/cosl: New file.
36874         * modules/expl: New file.
36875         * modules/logl: New file.
36876         * modules/sinl: New file.
36877         * modules/sqrtl: New file.
36878         * modules/tanl: New file.
36879         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36880         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36881         substitute GNULIB_MATHL.
36882         * modules/mathl: Rewritten.
36883         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36884         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36885         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36886         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36887         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36888         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36889         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36890         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36891         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36892
36893 2010-01-18  Bruno Haible  <bruno@clisp.org>
36894
36895         sqrt: Make gl_FUNC_SQRT requirable.
36896         * m4/sqrt.m4: New file.
36897         * modules/sqrt (Files): Add it.
36898         (configure.ac): Invoke gl_FUNC_SQRT.
36899
36900 2010-01-18  Bruno Haible  <bruno@clisp.org>
36901
36902         New modules for common <math.h> functions.
36903         * m4/mathfunc.m4: New file.
36904         * modules/acos: New file.
36905         * modules/asin: New file.
36906         * modules/atan: New file.
36907         * modules/atan2: New file.
36908         * modules/cbrt: New file.
36909         * modules/copysign: New file.
36910         * modules/cos: New file.
36911         * modules/cosh: New file.
36912         * modules/erf: New file.
36913         * modules/erfc: New file.
36914         * modules/exp: New file.
36915         * modules/fabs: New file.
36916         * modules/fmod: New file.
36917         * modules/hypot: New file.
36918         * modules/j0: New file.
36919         * modules/j1: New file.
36920         * modules/jn: New file.
36921         * modules/ldexp: New file.
36922         * modules/lgamma: New file.
36923         * modules/log: New file.
36924         * modules/log10: New file.
36925         * modules/log1p: New file.
36926         * modules/logb: New file.
36927         * modules/modf: New file.
36928         * modules/nextafter: New file.
36929         * modules/pow: New file.
36930         * modules/remainder: New file.
36931         * modules/rint: New file.
36932         * modules/sin: New file.
36933         * modules/sinh: New file.
36934         * modules/sqrt: New file.
36935         * modules/tan: New file.
36936         * modules/tanh: New file.
36937         * modules/y0: New file.
36938         * modules/y1: New file.
36939         * modules/yn: New file.
36940         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36941         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36942         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36943         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36944         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36945         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36946         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36947         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36948         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36949         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36950         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36951         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36952         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36953         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36954         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36955         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36956         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36957         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36958         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36959         * doc/posix-functions/log.texi: Mention the 'log' module.
36960         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36961         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36962         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36963         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36964         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36965         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36966         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36967         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36968         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36969         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36970         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36971         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36972         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36973         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36974         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36975         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36976
36977 2010-01-18  Jim Meyering  <meyering@redhat.com>
36978
36979         ignore-value: relax license to LGPLv2+
36980         * modules/ignore-value (License): Relax to LGPLv2+.
36981
36982         getdate: don't leak when TZ contains two or more '"'s
36983         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36984         double quote in TZ after the first one.
36985
36986         readtokens: do not leak internal token_lengths buffer
36987         * lib/readtokens.c (readtokens): Free the local, lengths,
36988         when the supplied "token_lengths" parameter is NULL.
36989
36990 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36991
36992         Fix a couple of missing LIBTHREAD link failures on AIX.
36993         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36994         $(LIBTHREAD).
36995         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36996
36997         Link test-poll against INET_PTON_LIB.
36998         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36999         for inet_pton on Solaris 10.
37000
37001 2010-01-17  Bruno Haible  <bruno@clisp.org>
37002
37003         unistdio/*-sprintf: Fix typo in module description.
37004         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37005         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37006         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37007         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37008         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37009         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37010         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37012
37013 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37014
37015         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37016         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37017         variables in shell case patterns, for AIX and HP-UX ksh.
37018
37019         Split large sed scripts, for HP-UX sed.
37020         * modules/stdio: Split sed scripts around 50 sed commands,
37021         to avoid HP-UX limit of 99 commands, in the near future.
37022         * modules/string: Likewise.
37023         * modules/unistd: Likewise.
37024
37025         gnulib-tool: avoid writing in the current directory.
37026         * gnulib-tool (func_emit_lib_Makefile_am)
37027         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37028         not in the current directory, so concurrent gnulib-tool
37029         instances do not interfere.
37030
37031 2010-01-16  Jim Meyering  <meyering@redhat.com>
37032
37033         doc: update users.txt
37034         * users.txt: Add grep.
37035         (diffutils, gzip): Update URLs.
37036
37037 2010-01-12  Bruno Haible  <bruno@clisp.org>
37038
37039         posix_spawn: Avoid test failure on Cygwin.
37040         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37041         characters.
37042         Reported by Simon Josefsson.
37043
37044 2010-01-12  Bruno Haible  <bruno@clisp.org>
37045
37046         * tests/test-cond.c (main): When skipping the test, show the reason.
37047
37048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37049
37050         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37051
37052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37053
37054         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37055         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37056
37057 2010-01-12  Eric Blake  <ebb9@byu.net>
37058
37059         build: guarantee AS_VAR_IF
37060         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37061         (gl_AS_VAR_IF): Move...
37062         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37063         Reported by Simon Josefsson.
37064
37065 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37066
37067         * lib/stdio.in.h: Fix typo.
37068
37069 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37070
37071         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37072         libgpg-error.
37073
37074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37075
37076         * tests/test-xalloc-die.sh: Use $EXEEXT.
37077
37078 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37079             Bruno Haible  <bruno@clisp.org>
37080
37081         getlogin, getlogin_r: Avoid test failure.
37082         * tests/test-getlogin.c: Include <stdio.h>.
37083         (main): Skip the test when the function fails because stdin is not a
37084         tty.
37085         * tests/test-getlogin_r.c: Include <stdio.h>.
37086         (main): Skip the test when the function fails because stdin is not a
37087         tty.
37088
37089 2010-01-11  Eric Blake  <ebb9@byu.net>
37090
37091         tests: avoid more large file warnings
37092         * tests/test-fflush.c: Avoid warning about ftell use.
37093         * tests/test-fseek.c: Avoid warning about fseek use.
37094
37095 2010-01-10  Bruno Haible  <bruno@clisp.org>
37096
37097         nproc: Work better on Linux when /proc and /sys are not mounted.
37098         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37099         as lower bound when, on glibc/Linux systems,
37100         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37101         Suggested by Pádraig Brady <P@draigbrady.com>.
37102         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37103
37104         nproc: Refactor.
37105         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37106         extracted from num_processors.
37107         (num_processors): Call it.
37108
37109 2010-01-11  Jim Meyering  <meyering@redhat.com>
37110
37111         utimecmp: avoid new warning from upcoming gcc-4.5.0
37112         * lib/utimecmp.c (BILLION): Define using #define rather than an
37113         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37114
37115 2010-01-11  Eric Blake  <ebb9@byu.net>
37116
37117         math: add portability warnings for classification macros
37118         * modules/math (Depends-on): Add warn-on-use.
37119         (Makefile.am): Provide new substitutions.
37120         * m4/math_h.m4 (gl_MATH_H): Require inline.
37121         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37122         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37123         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37124         implement warnings.
37125
37126         unistd: warn on use of environ without module
37127         * modules/unistd (Depends-on): Add warn-on-use.
37128         (Makefile.am): Provide new substitutions.
37129         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37130         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37131
37132         stdio: warn on suspicious uses
37133         * modules/stdio (Depends-on): Add warn-on-use.
37134         (Makefile.am): Provide new substitutions.
37135         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37136         fseeko.
37137         * lib/stdio.in.h (gets): Always warn on use.
37138         (fseek, ftell): Adjust when warnings are issued, and honor
37139         _GL_NO_LARGE_FILES as a way to silence the warning.
37140         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37141         any warning about large file offsets.
37142         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37143         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37144         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37145         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37146         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37147         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37148         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37149         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37150
37151         warn-on-use: new module
37152         * modules/warn-on-use: New file.
37153         * build-aux/warn-on-use.h: Likewise.
37154         * m4/warn-on-use.m4: Likewise.
37155         * MODULES.html.sh (Support for building): Mention it.
37156
37157 2010-01-10  Bruno Haible  <bruno@clisp.org>
37158
37159         Tests for module 'unistr/u32-strdup'.
37160         * modules/unistr/u32-strdup-tests: New file.
37161         * tests/unistr/test-u32-strdup.c: New file.
37162
37163         Tests for module 'unistr/u16-strdup'.
37164         * modules/unistr/u16-strdup-tests: New file.
37165         * tests/unistr/test-u16-strdup.c: New file.
37166
37167         Tests for module 'unistr/u8-strdup'.
37168         * modules/unistr/u8-strdup-tests: New file.
37169         * tests/unistr/test-u8-strdup.c: New file.
37170         * tests/unistr/test-strdup.h: New file.
37171
37172         Tests for module 'unistr/u32-strncmp'.
37173         * modules/unistr/u32-strncmp-tests: New file.
37174         * tests/unistr/test-u32-strncmp.c: New file.
37175
37176         Tests for module 'unistr/u16-strncmp'.
37177         * modules/unistr/u16-strncmp-tests: New file.
37178         * tests/unistr/test-u16-strncmp.c: New file.
37179
37180         Tests for module 'unistr/u8-strncmp'.
37181         * modules/unistr/u8-strncmp-tests: New file.
37182         * tests/unistr/test-u8-strncmp.c: New file.
37183         * tests/unistr/test-strncmp.h: New file.
37184
37185         Tests for module 'unistr/u32-strcoll'.
37186         * modules/unistr/u32-strcoll-tests: New file.
37187         * tests/unistr/test-u32-strcoll.c: New file.
37188
37189         Tests for module 'unistr/u16-strcoll'.
37190         * modules/unistr/u16-strcoll-tests: New file.
37191         * tests/unistr/test-u16-strcoll.c: New file.
37192
37193         Tests for module 'unistr/u8-strcoll'.
37194         * modules/unistr/u8-strcoll-tests: New file.
37195         * tests/unistr/test-u8-strcoll.c: New file.
37196
37197         Tests for module 'unistr/u32-strcmp'.
37198         * modules/unistr/u32-strcmp-tests: New file.
37199         * tests/unistr/test-u32-strcmp.c: New file.
37200         * tests/unistr/test-u32-strcmp.h: New file.
37201
37202         Tests for module 'unistr/u16-strcmp'.
37203         * modules/unistr/u16-strcmp-tests: New file.
37204         * tests/unistr/test-u16-strcmp.c: New file.
37205         * tests/unistr/test-u16-strcmp.h: New file.
37206
37207         Tests for module 'unistr/u8-strcmp'.
37208         * modules/unistr/u8-strcmp-tests: New file.
37209         * tests/unistr/test-u8-strcmp.c: New file.
37210         * tests/unistr/test-u8-strcmp.h: New file.
37211         * tests/unistr/test-strcmp.h: New file.
37212
37213         Tests for module 'unistr/u32-strncat'.
37214         * modules/unistr/u32-strncat-tests: New file.
37215         * tests/unistr/test-u32-strncat.c: New file.
37216
37217         Tests for module 'unistr/u16-strncat'.
37218         * modules/unistr/u16-strncat-tests: New file.
37219         * tests/unistr/test-u16-strncat.c: New file.
37220
37221         Tests for module 'unistr/u8-strncat'.
37222         * modules/unistr/u8-strncat-tests: New file.
37223         * tests/unistr/test-u8-strncat.c: New file.
37224         * tests/unistr/test-strncat.h: New file.
37225
37226         Tests for module 'unistr/u32-strcat'.
37227         * modules/unistr/u32-strcat-tests: New file.
37228         * tests/unistr/test-u32-strcat.c: New file.
37229
37230         Tests for module 'unistr/u16-strcat'.
37231         * modules/unistr/u16-strcat-tests: New file.
37232         * tests/unistr/test-u16-strcat.c: New file.
37233
37234         Tests for module 'unistr/u8-strcat'.
37235         * modules/unistr/u8-strcat-tests: New file.
37236         * tests/unistr/test-u8-strcat.c: New file.
37237         * tests/unistr/test-strcat.h: New file.
37238
37239         Tests for module 'unistr/u32-stpncpy'.
37240         * modules/unistr/u32-stpncpy-tests: New file.
37241         * tests/unistr/test-u32-stpncpy.c: New file.
37242
37243         Tests for module 'unistr/u16-stpncpy'.
37244         * modules/unistr/u16-stpncpy-tests: New file.
37245         * tests/unistr/test-u16-stpncpy.c: New file.
37246
37247         Tests for module 'unistr/u8-stpncpy'.
37248         * modules/unistr/u8-stpncpy-tests: New file.
37249         * tests/unistr/test-u8-stpncpy.c: New file.
37250         * tests/unistr/test-stpncpy.h: New file.
37251
37252         Tests for module 'unistr/u32-strncpy'.
37253         * modules/unistr/u32-strncpy-tests: New file.
37254         * tests/unistr/test-u32-strncpy.c: New file.
37255
37256         Tests for module 'unistr/u16-strncpy'.
37257         * modules/unistr/u16-strncpy-tests: New file.
37258         * tests/unistr/test-u16-strncpy.c: New file.
37259
37260         Tests for module 'unistr/u8-strncpy'.
37261         * modules/unistr/u8-strncpy-tests: New file.
37262         * tests/unistr/test-u8-strncpy.c: New file.
37263         * tests/unistr/test-strncpy.h: New file.
37264
37265         Tests for module 'unistr/u32-stpcpy'.
37266         * modules/unistr/u32-stpcpy-tests: New file.
37267         * tests/unistr/test-u32-stpcpy.c: New file.
37268
37269         Tests for module 'unistr/u16-stpcpy'.
37270         * modules/unistr/u16-stpcpy-tests: New file.
37271         * tests/unistr/test-u16-stpcpy.c: New file.
37272
37273         Tests for module 'unistr/u8-stpcpy'.
37274         * modules/unistr/u8-stpcpy-tests: New file.
37275         * tests/unistr/test-u8-stpcpy.c: New file.
37276         * tests/unistr/test-stpcpy.h: New file.
37277
37278         Tests for module 'unistr/u32-strcpy'.
37279         * modules/unistr/u32-strcpy-tests: New file.
37280         * tests/unistr/test-u32-strcpy.c: New file.
37281
37282         Tests for module 'unistr/u16-strcpy'.
37283         * modules/unistr/u16-strcpy-tests: New file.
37284         * tests/unistr/test-u16-strcpy.c: New file.
37285
37286         Tests for module 'unistr/u8-strcpy'.
37287         * modules/unistr/u8-strcpy-tests: New file.
37288         * tests/unistr/test-u8-strcpy.c: New file.
37289         * tests/unistr/test-strcpy.h: New file.
37290
37291         Tests for module 'unistr/u32-strnlen'.
37292         * modules/unistr/u32-strnlen-tests: New file.
37293         * tests/unistr/test-u32-strnlen.c: New file.
37294
37295         Tests for module 'unistr/u16-strnlen'.
37296         * modules/unistr/u16-strnlen-tests: New file.
37297         * tests/unistr/test-u16-strnlen.c: New file.
37298
37299         Tests for module 'unistr/u8-strnlen'.
37300         * modules/unistr/u8-strnlen-tests: New file.
37301         * tests/unistr/test-u8-strnlen.c: New file.
37302         * tests/unistr/test-strnlen.h: New file.
37303
37304         Tests for module 'unistr/u32-strlen'.
37305         * modules/unistr/u32-strlen-tests: New file.
37306         * tests/unistr/test-u32-strlen.c: New file.
37307
37308         Tests for module 'unistr/u16-strlen'.
37309         * modules/unistr/u16-strlen-tests: New file.
37310         * tests/unistr/test-u16-strlen.c: New file.
37311
37312         Tests for module 'unistr/u8-strlen'.
37313         * modules/unistr/u8-strlen-tests: New file.
37314         * tests/unistr/test-u8-strlen.c: New file.
37315
37316         Tests for module 'unistr/u32-prev'.
37317         * modules/unistr/u32-prev-tests: New file.
37318         * tests/unistr/test-u32-prev.c: New file.
37319
37320         Tests for module 'unistr/u16-prev'.
37321         * modules/unistr/u16-prev-tests: New file.
37322         * tests/unistr/test-u16-prev.c: New file.
37323
37324         Tests for module 'unistr/u8-prev'.
37325         * modules/unistr/u8-prev-tests: New file.
37326         * tests/unistr/test-u8-prev.c: New file.
37327
37328         Tests for module 'unistr/u32-next'.
37329         * modules/unistr/u32-next-tests: New file.
37330         * tests/unistr/test-u32-next.c: New file.
37331
37332         Tests for module 'unistr/u16-next'.
37333         * modules/unistr/u16-next-tests: New file.
37334         * tests/unistr/test-u16-next.c: New file.
37335
37336         Tests for module 'unistr/u8-next'.
37337         * modules/unistr/u8-next-tests: New file.
37338         * tests/unistr/test-u8-next.c: New file.
37339
37340         Tests for module 'unistr/u32-strmbtouc'.
37341         * modules/unistr/u32-strmbtouc-tests: New file.
37342         * tests/unistr/test-u32-strmbtouc.c: New file.
37343
37344         Tests for module 'unistr/u16-strmbtouc'.
37345         * modules/unistr/u16-strmbtouc-tests: New file.
37346         * tests/unistr/test-u16-strmbtouc.c: New file.
37347
37348         Tests for module 'unistr/u8-strmbtouc'.
37349         * modules/unistr/u8-strmbtouc-tests: New file.
37350         * tests/unistr/test-u8-strmbtouc.c: New file.
37351
37352         Tests for module 'unistr/u32-strmblen'.
37353         * modules/unistr/u32-strmblen-tests: New file.
37354         * tests/unistr/test-u32-strmblen.c: New file.
37355
37356         Tests for module 'unistr/u16-strmblen'.
37357         * modules/unistr/u16-strmblen-tests: New file.
37358         * tests/unistr/test-u16-strmblen.c: New file.
37359
37360         Tests for module 'unistr/u8-strmblen'.
37361         * modules/unistr/u8-strmblen-tests: New file.
37362         * tests/unistr/test-u8-strmblen.c: New file.
37363
37364         Tests for module 'unistr/u32-cpy-alloc'.
37365         * modules/unistr/u32-cpy-alloc-tests: New file.
37366         * tests/unistr/test-u32-cpy-alloc.c: New file.
37367
37368         Tests for module 'unistr/u16-cpy-alloc'.
37369         * modules/unistr/u16-cpy-alloc-tests: New file.
37370         * tests/unistr/test-u16-cpy-alloc.c: New file.
37371
37372         Tests for module 'unistr/u8-cpy-alloc'.
37373         * modules/unistr/u8-cpy-alloc-tests: New file.
37374         * tests/unistr/test-u8-cpy-alloc.c: New file.
37375         * tests/unistr/test-cpy-alloc.h: New file.
37376
37377         Tests for module 'unistr/u32-mbsnlen'.
37378         * modules/unistr/u32-mbsnlen-tests: New file.
37379         * tests/unistr/test-u32-mbsnlen.c: New file.
37380
37381         Tests for module 'unistr/u16-mbsnlen'.
37382         * modules/unistr/u16-mbsnlen-tests: New file.
37383         * tests/unistr/test-u16-mbsnlen.c: New file.
37384
37385         Tests for module 'unistr/u8-mbsnlen'.
37386         * modules/unistr/u8-mbsnlen-tests: New file.
37387         * tests/unistr/test-u8-mbsnlen.c: New file.
37388
37389         Tests for module 'unistr/u32-chr'.
37390         * modules/unistr/u32-chr-tests: New file.
37391         * tests/unistr/test-u32-chr.c: New file.
37392
37393         Tests for module 'unistr/u16-chr'.
37394         * modules/unistr/u16-chr-tests: New file.
37395         * tests/unistr/test-u16-chr.c: New file.
37396
37397         Tests for module 'unistr/u8-chr'.
37398         * modules/unistr/u8-chr-tests: New file.
37399         * tests/unistr/test-u8-chr.c: New file.
37400         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37401
37402         Tests for module 'unistr/u32-cmp2'.
37403         * modules/unistr/u32-cmp2-tests: New file.
37404         * tests/unistr/test-u32-cmp2.c: New file.
37405
37406         Tests for module 'unistr/u16-cmp2'.
37407         * modules/unistr/u16-cmp2-tests: New file.
37408         * tests/unistr/test-u16-cmp2.c: New file.
37409
37410         Tests for module 'unistr/u8-cmp2'.
37411         * modules/unistr/u8-cmp2-tests: New file.
37412         * tests/unistr/test-u8-cmp2.c: New file.
37413         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37414
37415         Tests for module 'unistr/u32-cmp'.
37416         * modules/unistr/u32-cmp-tests: New file.
37417         * tests/unistr/test-u32-cmp.c: New file.
37418
37419         Tests for module 'unistr/u16-cmp'.
37420         * modules/unistr/u16-cmp-tests: New file.
37421         * tests/unistr/test-u16-cmp.c: New file.
37422
37423         Tests for module 'unistr/u8-cmp'.
37424         * modules/unistr/u8-cmp-tests: New file.
37425         * tests/unistr/test-u8-cmp.c: New file.
37426         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37427
37428         Tests for module 'unistr/u32-set'.
37429         * modules/unistr/u32-set-tests: New file.
37430         * tests/unistr/test-u32-set.c: New file.
37431
37432         Tests for module 'unistr/u16-set'.
37433         * modules/unistr/u16-set-tests: New file.
37434         * tests/unistr/test-u16-set.c: New file.
37435
37436         Tests for module 'unistr/u8-set'.
37437         * modules/unistr/u8-set-tests: New file.
37438         * tests/unistr/test-u8-set.c: New file.
37439         * tests/unistr/test-set.h: New file.
37440
37441         Tests for module 'unistr/u32-move'.
37442         * modules/unistr/u32-move-tests: New file.
37443         * tests/unistr/test-u32-move.c: New file.
37444
37445         Tests for module 'unistr/u16-move'.
37446         * modules/unistr/u16-move-tests: New file.
37447         * tests/unistr/test-u16-move.c: New file.
37448
37449         Tests for module 'unistr/u8-move'.
37450         * modules/unistr/u8-move-tests: New file.
37451         * tests/unistr/test-u8-move.c: New file.
37452         * tests/unistr/test-move.h: New file.
37453
37454         Tests for module 'unistr/u32-cpy'.
37455         * modules/unistr/u32-cpy-tests: New file.
37456         * tests/unistr/test-u32-cpy.c: New file.
37457
37458         Tests for module 'unistr/u16-cpy'.
37459         * modules/unistr/u16-cpy-tests: New file.
37460         * tests/unistr/test-u16-cpy.c: New file.
37461
37462         Tests for module 'unistr/u8-cpy'.
37463         * modules/unistr/u8-cpy-tests: New file.
37464         * tests/unistr/test-u8-cpy.c: New file.
37465         * tests/unistr/test-cpy.h: New file.
37466
37467 2010-01-09  Bruno Haible  <bruno@clisp.org>
37468
37469         Tests for module 'unistr/u32-uctomb'.
37470         * modules/unistr/u32-uctomb-tests: New file.
37471         * tests/unistr/test-u32-uctomb.c: New file.
37472
37473         Tests for module 'unistr/u16-uctomb'.
37474         * modules/unistr/u16-uctomb-tests: New file.
37475         * tests/unistr/test-u16-uctomb.c: New file.
37476
37477         Tests for module 'unistr/u8-uctomb'.
37478         * modules/unistr/u8-uctomb-tests: New file.
37479         * tests/unistr/test-u8-uctomb.c: New file.
37480
37481         Tests for module 'unistr/u32-mbtoucr'.
37482         * modules/unistr/u32-mbtoucr-tests: New file.
37483         * tests/unistr/test-u32-mbtoucr.c: New file.
37484
37485         Tests for module 'unistr/u16-mbtoucr'.
37486         * modules/unistr/u16-mbtoucr-tests: New file.
37487         * tests/unistr/test-u16-mbtoucr.c: New file.
37488
37489         Tests for module 'unistr/u8-mbtoucr'.
37490         * modules/unistr/u8-mbtoucr-tests: New file.
37491         * tests/unistr/test-u8-mbtoucr.c: New file.
37492
37493         Tests for module 'unistr/u32-mbtouc'.
37494         * modules/unistr/u32-mbtouc-tests: New file.
37495         * tests/unistr/test-u32-mbtouc.c: New file.
37496
37497         Tests for module 'unistr/u16-mbtouc'.
37498         * modules/unistr/u16-mbtouc-tests: New file.
37499         * tests/unistr/test-u16-mbtouc.c: New file.
37500
37501         Tests for module 'unistr/u8-mbtouc'.
37502         * modules/unistr/u8-mbtouc-tests: New file.
37503         * tests/unistr/test-u8-mbtouc.c: New file.
37504
37505         Tests for module 'unistr/u32-mbtouc-unsafe'.
37506         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37507         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37508         * tests/unistr/test-u32-mbtouc.h: New file.
37509
37510         Tests for module 'unistr/u16-mbtouc-unsafe'.
37511         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37512         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37513         * tests/unistr/test-u16-mbtouc.h: New file.
37514
37515         Tests for module 'unistr/u8-mbtouc-unsafe'.
37516         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37517         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37518         * tests/unistr/test-u8-mbtouc.h: New file.
37519
37520         Tests for module 'unistr/u32-mblen'.
37521         * modules/unistr/u32-mblen-tests: New file.
37522         * tests/unistr/test-u32-mblen.c: New file.
37523
37524         Tests for module 'unistr/u16-mblen'.
37525         * modules/unistr/u16-mblen-tests: New file.
37526         * tests/unistr/test-u16-mblen.c: New file.
37527
37528         Tests for module 'unistr/u8-mblen'.
37529         * modules/unistr/u8-mblen-tests: New file.
37530         * tests/unistr/test-u8-mblen.c: New file.
37531
37532         Tests for module 'unistr/u32-to-u16'.
37533         * modules/unistr/u32-to-u16-tests: New file.
37534         * tests/unistr/test-u32-to-u16.c: New file.
37535
37536         Tests for module 'unistr/u32-to-u8'.
37537         * modules/unistr/u32-to-u8-tests: New file.
37538         * tests/unistr/test-u32-to-u8.c: New file.
37539
37540         Tests for module 'unistr/u16-to-u32'.
37541         * modules/unistr/u16-to-u32-tests: New file.
37542         * tests/unistr/test-u16-to-u32.c: New file.
37543
37544         Tests for module 'unistr/u16-to-u8'.
37545         * modules/unistr/u16-to-u8-tests: New file.
37546         * tests/unistr/test-u16-to-u8.c: New file.
37547
37548         Tests for module 'unistr/u8-to-u32'.
37549         * modules/unistr/u8-to-u32-tests: New file.
37550         * tests/unistr/test-u8-to-u32.c: New file.
37551
37552         Tests for module 'unistr/u8-to-u16'.
37553         * modules/unistr/u8-to-u16-tests: New file.
37554         * tests/unistr/test-u8-to-u16.c: New file.
37555
37556         Tests for module 'unistr/u32-check'.
37557         * modules/unistr/u32-check-tests: New file.
37558         * tests/unistr/test-u32-check.c: New file.
37559
37560         Tests for module 'unistr/u16-check'.
37561         * modules/unistr/u16-check-tests: New file.
37562         * tests/unistr/test-u16-check.c: New file.
37563
37564         Tests for module 'unistr/u8-check'.
37565         * modules/unistr/u8-check-tests: New file.
37566         * tests/unistr/test-u8-check.c: New file.
37567
37568         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37569         (category_equals): New function.
37570         (main): Add more tests.
37571         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37572
37573         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37574
37575 2010-01-10  Bruno Haible  <bruno@clisp.org>
37576
37577         unistr/u*-strcoll: Try harder to distinguish different strings.
37578         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37579         compare s1 and s2 to see if they are different.
37580
37581 2010-01-10  Bruno Haible  <bruno@clisp.org>
37582
37583         unistr/u*-stpncpy: Fix the return value.
37584         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37585         description of the return value consistent with stpncpy in glibc.
37586         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37587         written non-NUL unit.
37588
37589 2010-01-10  Bruno Haible  <bruno@clisp.org>
37590
37591         unistr/u*-next: Add missing dependencies.
37592         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37593         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37594         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37595
37596 2010-01-10  Bruno Haible  <bruno@clisp.org>
37597
37598         unistr/u8-mbsnlen: Fix return value for incomplete character.
37599         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37600         u8_mblen.
37601         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37602         Remove unistr/u8-mblen.
37603         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37604         u16_mblen.
37605         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37606         Remove unistr/u16-mblen.
37607
37608 2010-01-10  Bruno Haible  <bruno@clisp.org>
37609
37610         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37611         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37612         Reported by Brian Gough <bjg@gnu.org> and
37613         Chris Clayton <chris2553@googlemail.com> via
37614         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37615
37616 2010-01-09  Bruno Haible  <bruno@clisp.org>
37617
37618         unistr/u16-to-u32: Reject invalid input.
37619         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37620         u16_mbtouc.
37621         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37622         Remove unistr/u16-mbtouc.
37623
37624         unistr/u16-to-u8: Reject invalid input.
37625         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37626         u16_mbtouc.
37627         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37628         Remove unistr/u16-mbtouc.
37629
37630         unistr/u8-to-u32: Reject invalid input.
37631         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37632         u8_mbtouc.
37633         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37634         Remove unistr/u8-mbtouc.
37635
37636         unistr/u8-to-u16: Reject invalid input.
37637         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37638         u8_mbtouc.
37639         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37640         Remove unistr/u8-mbtouc.
37641
37642 2010-01-09  Bruno Haible  <bruno@clisp.org>
37643
37644         Tests for module 'getlogin'.
37645         * modules/getlogin-tests: New file.
37646         * tests/test-getlogin.c: New file.
37647
37648         New module 'getlogin'.
37649         * lib/unistd.in.h (getlogin): New declaration.
37650         * lib/getlogin.c: New file.
37651         * m4/getlogin.m4: New file.
37652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37653         HAVE_GETLOGIN.
37654         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37655         HAVE_GETLOGIN.
37656         * modules/getlogin: New file.
37657         * doc/posix-functions/getlogin.texi: Mention the new module.
37658         Reported by John W. Eaton <jwe@gnu.org>.
37659
37660 2010-01-09  Bruno Haible  <bruno@clisp.org>
37661
37662         getlogin_r: Support for native Windows.
37663         * lib/getlogin_r.c: Include <windows.h>
37664         (getlogin_r): Implement for native Windows.
37665         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37666         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37667         via John W. Eaton <jwe@gnu.org>.
37668
37669 2010-01-09  Bruno Haible  <bruno@clisp.org>
37670
37671         getlogin_r: Small fixes.
37672         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37673         succeeds.
37674         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37675         before testing whether getlogin_r is declared. No need to set
37676         HAVE_DECL_GETLOGIN_R to 1.
37677         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37678
37679 2010-01-09  Bruno Haible  <bruno@clisp.org>
37680
37681         * lib/unistd.in.h (getlogin_r): Add comment.
37682
37683 2010-01-09  Bruno Haible  <bruno@clisp.org>
37684
37685         Tests for module 'getlogin_r'.
37686         * modules/getlogin_r-tests: New file.
37687         * tests/test-getlogin_r.c: New file.
37688
37689 2010-01-09  Jim Meyering  <meyering@redhat.com>
37690
37691         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37692         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37693         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37694
37695 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37696
37697         * lib/dup2.c (rpl_dup2): Improve comment.
37698
37699 2010-01-08  Eric Blake  <ebb9@byu.net>
37700
37701         maint.mk: allow packages to add makefile @@ exceptions
37702         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37703         (sc_makefile_check): Rename...
37704         (sc_makefile_at_at_check): ...to this, and use hook.
37705
37706         dup2: work around mingw bug
37707         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37708         Reported by Simon Josefsson.
37709
37710 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37711
37712         glob: Fix C++ compilation.
37713         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37714         C++.
37715
37716 2010-01-07  Bruno Haible  <bruno@clisp.org>
37717
37718         Fix indentation of wctype.in.h, broken since 2007-01-06.
37719         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37720
37721 2010-01-07  Bruno Haible  <bruno@clisp.org>
37722
37723         mbslen: Avoid collision with system function.
37724         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37725         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37726         * m4/mbslen.m4: New file.
37727         * modules/mbslen (Files): Add it.
37728         (configure.ac): Invoke gl_MBSLEN.
37729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37730         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37731         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37732         via Ian Beckwith <ianb@erislabs.net>.
37733
37734 2010-01-07  Bruno Haible  <bruno@clisp.org>
37735
37736         dirent: Document the last fix.
37737         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37738
37739 2010-01-07  Bruno Haible  <bruno@clisp.org>
37740
37741         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37742         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37743         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37744         va_list are defined.
37745         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37746         Reported by Eric Blake.
37747
37748 2010-01-07  Bruno Haible  <bruno@clisp.org>
37749
37750         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37751         * modules/xlist (Depends-on): Add 'list',
37752         * modules/xoset (Depends-on): Add 'oset'.
37753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37754
37755 2010-01-07  Bruno Haible  <bruno@clisp.org>
37756
37757         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37758         * doc/posix-functions/strncasecmp.texi: Likewise.
37759
37760 2010-01-07  Bruno Haible  <bruno@clisp.org>
37761
37762         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37763
37764 2010-01-07  John W. Eaton  <jwe@octave.org>
37765
37766         wctype: allow C++ use
37767         * lib/wctype.in.h: Add extern "C" block for C++.
37768
37769 2010-01-06  Eric Blake  <ebb9@byu.net>
37770
37771         maint.mk: detect incorrect GFDL usage
37772         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37773
37774 2010-01-06  Jim Meyering  <meyering@redhat.com>
37775         and Eric Blake  <ebb9@byu.net>
37776
37777         maint.mk: ignore multi-line copyright in NEWS
37778         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37779
37780 2010-01-06  Eric Blake  <ebb9@byu.net>
37781
37782         select: add missing dependency
37783         * modules/select-tests (Depends-on): Move sockets dependency...
37784         * modules/select (Depends-on): ...here.
37785         Reported by Ian Beckwith.
37786
37787         doc: regenerate INSTALL
37788         * doc/INSTALL: Reflect recent autoconf update.
37789         * doc/INSTALL.ISO: Likewise.
37790         * doc/INSTALL.UTF-8: Likewise.
37791
37792         pread: fix compilation on glibc
37793         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37794         Reported by Ralf Wildenhues.
37795
37796         dirent: fix test failure
37797         * lib/dirent.in.h (includes): Guarantee ino_t.
37798         Reported by Ralf Wildenhues.
37799
37800 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37801
37802         linkat, renameat: avoid bad free
37803         * lib/at-func2.c (at_func2): Fix typo.
37804         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37805
37806 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37807
37808         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37809         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37810         to avoid failure of symlink test later.
37811
37812 2010-01-06  Eric Blake  <ebb9@byu.net>
37813
37814         stdio, unistd: guarantee ssize_t
37815         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37816         2008 are exposed when needed.
37817         * lib/stdio.in.h (includes): Likewise.
37818         Reported by Ralf Wildenhues.
37819
37820 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37821
37822         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37823         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37824         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37825
37826 2010-01-06  Jim Meyering  <meyering@redhat.com>
37827
37828         readtokens: this module *does* require xalloc.h
37829         It uses only functions that were omitted by the old syntax-check rule.
37830         * lib/readtokens.c: Include "xalloc.h" once again.
37831         * modules/readtokens (Depends-on): Add xalloc.
37832         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37833
37834 2010-01-05  Eric Blake  <ebb9@byu.net>
37835
37836         maint: support 'make announcement' from a VPATH build
37837         * top/maint.mk (announcement): Look for correct NEWS file.
37838
37839 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37840
37841         utimens (fdutimens): ignore a negative FD, per contract
37842         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37843         when we have a valid file descriptor.  Otherwise, using a brand
37844         new glibc (with just-patched futimens that now fails with EBADF)
37845         would cause this function to fail with ENOSYS.
37846         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37847         See also http://bugzilla.redhat.com/552320.
37848
37849 2010-01-05  Eric Blake  <ebb9@byu.net>
37850
37851         strcase: document what it provides
37852         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37853         gnulib module.
37854         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37855         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37856
37857 2010-01-05  Jim Meyering  <meyering@redhat.com>
37858
37859         maint: remove useless inclusions of "xalloc.h"
37860         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37861         * lib/readtokens.c: Likewise.
37862         * lib/same.c: Likewise.
37863         * modules/getloadavg (Depends-on): Remove xalloc.
37864         * modules/readtokens: Likewise.
37865         * modules/same: Likewise.
37866
37867         maint.mk: include 4 more function names in alloca.h-checking regexp
37868         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37869         regexp.  Before, we would give a false-positive (saying alloca.h
37870         is included unnecessarily) when the only uses involved omitted symbols.
37871
37872         xalloc.h: use consistent formatting
37873         * lib/xalloc.h: Move declarations to start in the first column.
37874
37875 2010-01-05  Eric Blake  <ebb9@byu.net>
37876
37877         mkdir: avoid xalloc
37878         * lib/mkdir.c (includes): Drop unused header.
37879         Reported by John W. Eaton.
37880
37881 2010-01-04  Jim Meyering  <meyering@redhat.com>
37882
37883         nl_langinfo: avoid configure-time syntax error
37884         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37885         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37886         the empty string.  Don't let that provoke a shell syntax error.
37887
37888         regcomp, regexec, fnmatch: avoid array bounds read error
37889         * lib/regcomp.c (build_equiv_class): From glibc:
37890         Use only the low 24 bits of a findidx return value as an index
37891         into the weights array.  Patch by Ulrich Drepper:
37892         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37893         * lib/regexec.c (check_node_accept_bytes): Likewise.
37894         * lib/fnmatch_loop.c (FCT): Likewise.
37895
37896         regcomp: skip collseq lookup when there are no rules
37897         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37898         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37899
37900         regcomp: recognize ill-formed { } expressions
37901         * lib/regcomp.c (parse_dup_op): From glibc:
37902         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37903
37904         regcomp: fix typo in comment
37905         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37906         s/satisfy/satisfies/.
37907
37908         regcomp: sync from glibc: remove dead store
37909         * lib/regcomp.c (duplicate_node_closure): Remove useless
37910         search_duplicated_node call and dead store.
37911
37912         regcomp: sync from glibc; always use nl_langinfo
37913         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37914         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37915         * modules/regex (Depends-on): Add nl_langinfo.
37916
37917 2010-01-04  Eric Blake  <ebb9@byu.net>
37918
37919         fdopendir: fix configure test
37920         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37921
37922 2010-01-01  Bruno Haible  <bruno@clisp.org>
37923
37924         wchar: Remove unused configure check.
37925         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37926
37927 2010-01-01  Eric Blake  <ebb9@byu.net>
37928
37929         headers: make check of system header explicit
37930         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37931         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37932         ourselves.
37933         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37935         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37936         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37937         internals.
37938         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37939         missing.
37940         Suggested by Bruno Haible.
37941
37942 2010-01-01  Jim Meyering  <meyering@redhat.com>
37943
37944         ChangeLog: tweak to eliminate unnecessary copyright line
37945         * ChangeLog: Remove a copyright line that was mistakenly updated
37946         by today's update-copyright run.  Reported by Eric Blake.
37947
37948         test-update-copyright: don't let envvar setting cause test failure
37949         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37950
37951 2010-01-01  Bruno Haible  <bruno@clisp.org>
37952
37953         localename: Avoid gcc warning.
37954         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37955         function if it is not used.
37956
37957 2010-01-01  Jim Meyering  <meyering@redhat.com>
37958
37959         update nearly all FSF copyright year lists to include 2010
37960         Use the same procedure as for 2009, outlined in
37961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37962
37963         version-etc: set COPYRIGHT_YEAR to 2010
37964         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37965
37966 2009-12-31  Eric Blake  <ebb9@byu.net>
37967
37968         doc: correct availability of cygwin 1.5.x getopt
37969         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37970         variables.
37971         * doc/posix-functions/opterr.texi (opterr): Likewise.
37972         * doc/posix-functions/optind.texi (optind): Likewise.
37973         * doc/posix-functions/optopt.texi (optopt): Likewise.
37974         * doc/posix-functions/tzname.texi (tzname): Likewise.
37975
37976         openat: update maintainer
37977         * modules/openat (Maintainer): Add myself.
37978
37979         utimens: avoid shadowing warning
37980         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37981         buffers into one, to avoid shadowing, as well as avoiding a
37982         redundant stat.
37983         Reported by Jim Meyering.
37984
37985         test-dup2: avoid compiler warning
37986         * tests/test-dup2.c (is_inheritable): Only define if used.
37987
37988 2010-01-01  Bruno Haible  <bruno@clisp.org>
37989
37990         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37991         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37992         defined, use wctomb instead of wcrtomb.
37993
37994 2010-01-01  Bruno Haible  <bruno@clisp.org>
37995
37996         iconv: Reject native Solaris iconv.
37997         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37998         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37999
38000 2009-12-31  Bruno Haible  <bruno@clisp.org>
38001
38002         * tests/test-signal.c (main): Remove test of 'SIG'.
38003
38004 2009-12-31  Bruno Haible  <bruno@clisp.org>
38005
38006         spawn: Fix incomplete fix.
38007         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38008         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38009         warnings for GNULIB_POSIXCHECK again.
38010         Reported by Eric Blake.
38011
38012 2009-12-31  Bruno Haible  <bruno@clisp.org>
38013
38014         Avoid namespace pollution on glibc systems.
38015         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38016         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38017         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38018         glibc systems.
38019
38020 2009-12-31  Bruno Haible  <bruno@clisp.org>
38021
38022         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38023         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38025         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38027         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38028         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38029
38030 2009-12-31  Bruno Haible  <bruno@clisp.org>
38031
38032         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38033         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38034         afterwards.
38035
38036 2009-12-31  Bruno Haible  <bruno@clisp.org>
38037
38038         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38039         SYS_UTSNAME_H.
38040
38041 2009-12-31  Bruno Haible  <bruno@clisp.org>
38042
38043         spawn: Fix misapplied patch.
38044         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38045         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38046         warnings for GNULIB_POSIXCHECK.
38047
38048 2009-12-31  Bruno Haible  <bruno@clisp.org>
38049
38050         times: Update after sys_times changed.
38051         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38052         * modules/times (Files): Add it.
38053         (configure.ac): Invoke gl_FUNC_TIMES.
38054
38055 2009-12-31  Bruno Haible  <bruno@clisp.org>
38056
38057         Use AC_C_INLINE where necessary.
38058         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38059         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38061         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38062         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38063         * m4/mbiter.m4 (gl_MBITER): Likewise.
38064         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38065         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38066         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38067         * modules/u64 (configure.ac): Likewise.
38068
38069 2009-12-31  Bruno Haible  <bruno@clisp.org>
38070
38071         Use AC_C_INLINE instead of module 'inline' where possible.
38072         * modules/inline (Description): Clarify purpose.
38073         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38074         * modules/count-one-bits (Depends-on): Remove inline.
38075         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38076         * modules/openat (Depends-on): Remove inline.
38077         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38078         instead of depending on module 'inline'.
38079         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38080         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38081         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38082         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38083         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38084         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38085         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38086         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38087         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38088         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38089         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38090         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38091         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38092         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38093         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38094         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38095         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38096         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38097         Likewise.
38098         * modules/unictype/property-ascii-hex-digit (Depends-on,
38099         configure.ac): Likewise.
38100         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38101         configure.ac): Likewise.
38102         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38103         configure.ac): Likewise.
38104         * modules/unictype/property-bidi-block-separator (Depends-on,
38105         configure.ac): Likewise.
38106         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38107         configure.ac): Likewise.
38108         * modules/unictype/property-bidi-common-separator (Depends-on,
38109         configure.ac): Likewise.
38110         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38111         Likewise.
38112         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38113         configure.ac): Likewise.
38114         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38115         configure.ac): Likewise.
38116         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38117         configure.ac): Likewise.
38118         * modules/unictype/property-bidi-european-digit (Depends-on,
38119         configure.ac): Likewise.
38120         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38121         configure.ac): Likewise.
38122         * modules/unictype/property-bidi-left-to-right (Depends-on,
38123         configure.ac): Likewise.
38124         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38125         configure.ac): Likewise.
38126         * modules/unictype/property-bidi-other-neutral (Depends-on,
38127         configure.ac): Likewise.
38128         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38129         Likewise.
38130         * modules/unictype/property-bidi-segment-separator (Depends-on,
38131         configure.ac): Likewise.
38132         * modules/unictype/property-bidi-whitespace (Depends-on,
38133         configure.ac): Likewise.
38134         * modules/unictype/property-combining (Depends-on, configure.ac):
38135         Likewise.
38136         * modules/unictype/property-composite (Depends-on, configure.ac):
38137         Likewise.
38138         * modules/unictype/property-currency-symbol (Depends-on,
38139         configure.ac): Likewise.
38140         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38141         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38142         Likewise.
38143         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38144         configure.ac): Likewise.
38145         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38146         Likewise.
38147         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38148         Likewise.
38149         * modules/unictype/property-extender (Depends-on, configure.ac):
38150         Likewise.
38151         * modules/unictype/property-format-control (Depends-on, configure.ac):
38152         Likewise.
38153         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38154         Likewise.
38155         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38156         Likewise.
38157         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38158         Likewise.
38159         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38160         Likewise.
38161         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38162         Likewise.
38163         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38164         Likewise.
38165         * modules/unictype/property-id-start (Depends-on, configure.ac):
38166         Likewise.
38167         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38168         Likewise.
38169         * modules/unictype/property-ids-binary-operator (Depends-on,
38170         configure.ac): Likewise.
38171         * modules/unictype/property-ids-trinary-operator (Depends-on,
38172         configure.ac): Likewise.
38173         * modules/unictype/property-ignorable-control (Depends-on,
38174         configure.ac): Likewise.
38175         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38176         Likewise.
38177         * modules/unictype/property-join-control (Depends-on, configure.ac):
38178         Likewise.
38179         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38180         Likewise.
38181         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38182         Likewise.
38183         * modules/unictype/property-logical-order-exception (Depends-on,
38184         configure.ac): Likewise.
38185         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38186         Likewise.
38187         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38188         * modules/unictype/property-non-break (Depends-on, configure.ac):
38189         Likewise.
38190         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38191         Likewise.
38192         * modules/unictype/property-numeric (Depends-on, configure.ac):
38193         Likewise.
38194         * modules/unictype/property-other-alphabetic (Depends-on,
38195         configure.ac): Likewise.
38196         * modules/unictype/property-other-default-ignorable-code-point
38197         (Depends-on, configure.ac): Likewise.
38198         * modules/unictype/property-other-grapheme-extend (Depends-on,
38199         configure.ac): Likewise.
38200         * modules/unictype/property-other-id-continue (Depends-on,
38201         configure.ac): Likewise.
38202         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38203         Likewise.
38204         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38205         Likewise.
38206         * modules/unictype/property-other-math (Depends-on, configure.ac):
38207         Likewise.
38208         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38209         Likewise.
38210         * modules/unictype/property-paired-punctuation (Depends-on,
38211         configure.ac): Likewise.
38212         * modules/unictype/property-paragraph-separator (Depends-on,
38213         configure.ac): Likewise.
38214         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38215         Likewise.
38216         * modules/unictype/property-pattern-white-space (Depends-on,
38217         configure.ac): Likewise.
38218         * modules/unictype/property-private-use (Depends-on, configure.ac):
38219         Likewise.
38220         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38221         Likewise.
38222         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38223         Likewise.
38224         * modules/unictype/property-radical (Depends-on, configure.ac):
38225         Likewise.
38226         * modules/unictype/property-sentence-terminal (Depends-on,
38227         configure.ac): Likewise.
38228         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38229         Likewise.
38230         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38231         * modules/unictype/property-terminal-punctuation (Depends-on,
38232         configure.ac): Likewise.
38233         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38234         Likewise.
38235         * modules/unictype/property-unassigned-code-value (Depends-on,
38236         configure.ac): Likewise.
38237         * modules/unictype/property-unified-ideograph (Depends-on,
38238         configure.ac): Likewise.
38239         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38240         Likewise.
38241         * modules/unictype/property-variation-selector (Depends-on,
38242         configure.ac): Likewise.
38243         * modules/unictype/property-white-space (Depends-on, configure.ac):
38244         Likewise.
38245         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38246         Likewise.
38247         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38248         Likewise.
38249         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38250         Likewise.
38251         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38252         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38253         Likewise.
38254
38255 2009-12-31  Bruno Haible  <bruno@clisp.org>
38256
38257         Remove unnecessary AC_C_INLINE invocation.
38258         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38259         since 2009-08-21.
38260
38261 2009-12-31  Jim Meyering  <meyering@redhat.com>
38262
38263         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38264         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38265         With this change, we can all remove the gpg_key_ID = ... definition
38266         from our respective cfg.mk files.
38267
38268         maint.mk: create announcement template in ~/, not in /tmp
38269         * top/maint.mk (emit_upload_commands): Adjust.
38270         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38271         Remove temporary file, .ci-msg.
38272
38273 2009-12-31  Eric Blake  <ebb9@byu.net>
38274
38275         link-warning: always build headers with link warnings
38276         * modules/arpa_inet (Makefile.am): Always build replacement
38277         header.
38278         * modules/ctype (Makefile.am): Likewise.
38279         * modules/dirent (Makefile.am): Likewise.
38280         * modules/inttypes (Makefile.am): Likewise.
38281         * modules/langinfo (Makefile.am): Likewise.
38282         * modules/locale (Makefile.am): Likewise.
38283         * modules/spawn (Makefile.am): Likewise.
38284         * modules/sys_file (Makefile.am): Likewise.
38285         * modules/sys_ioctl (Makefile.am): Likewise.
38286         * modules/sys_select (Makefile.am): Likewise.
38287         * modules/sys_socket (Makefile.am): Likewise.
38288         * modules/sys_times (Makefile.am): Likewise.
38289         * modules/sys_utsname (Makefile.am): Likewise.
38290         * modules/sys_wait (Makefile.am): Likewise.
38291         * modules/wchar (Makefile.am): Likewise.
38292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38293         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38294         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38295         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38296         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38297         Likewise.
38298         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38300         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38301         Likewise.
38302         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38303         Likewise.
38304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38306         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38308         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38309         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38310         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38311         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38312         (gl_WCHAR_H_DEFAULTS): Likewise.
38313
38314 2009-12-31  Eric Blake  <ebb9@byu.net>
38315
38316         signal, spawn: use link warnings
38317         * lib/signal.in.h (sigset_t): Make unconditional.
38318         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38319         (sigpending, sigprocmask, sigaction): Add link warnings.
38320         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38321         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38322         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38323         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38324         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38325         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38326         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38327         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38328         (posix_spawn_file_actions_destroy)
38329         (posix_spawn_file_actions_addopen)
38330         (posix_spawn_file_actions_addclose)
38331         (posix_spawn_file_actions_adddup2): Likewise.
38332         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38333         * tests/test-signal.c (main): Enhance test.
38334
38335         spawn: improve wrapper support
38336         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38337         (gl_SPAWN_H_DEFAULTS): New defaults.
38338         * modules/spawn (Makefile.am): Substitute them.
38339         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38340         Only declare if missing or broken.
38341
38342         sys_times, sys_utsname: use include_next
38343         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38344         header.
38345         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38347         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38348         * modules/sys_times (Depends-on): Add include_next.
38349         (Makefile.am): Substitute additional values.
38350         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38351         * lib/sys_times.in.h (includes): Include native header, if
38352         available.
38353         * lib/sys_utsname.in.h (includes): Likewise.
38354         * tests/test-sys_times.c (main): Enhance test.
38355
38356         fdutimensat: revert prior patch
38357         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38358         utimens.h.
38359         Reported by Bruno Haible.
38360
38361 2009-12-30  Eric Blake  <ebb9@byu.net>
38362
38363         sys_wait: drop link-warning dependency
38364         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38365         link-warning efforts.
38366         * lib/sys_wait.in.h: Likewise.
38367
38368         fdutimensat: remove bogus dependency
38369         * modules/fdutimensat (Depends-on): Drop inline.
38370
38371         unistd: fix typo
38372         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38373
38374 2009-12-30  Bruno Haible  <bruno@clisp.org>
38375
38376         Fix compilation error with Solaris cc.
38377         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38378         * lib/unicase/u16-is-invariant.c: Likewise.
38379         * lib/unicase/u32-is-invariant.c: Likewise.
38380         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38381
38382 2009-12-30  Bruno Haible  <bruno@clisp.org>
38383
38384         Fix test crash.
38385         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38386         locales.
38387         Reported by Simon Josefsson <simon@josefsson.org>.
38388
38389 2009-12-30  Bruno Haible  <bruno@clisp.org>
38390
38391         Fix compilation error on most platforms.
38392         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38393         Reported by Simon Josefsson <simon@josefsson.org>
38394         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38395
38396 2009-12-30  Eric Blake  <ebb9@byu.net>
38397
38398         futimens, utimensat: work around ntfs-3g bug
38399         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38400         a ctime bug is present, and expand workaround to cover ntfs-3g.
38401         * lib/utimens.c (fdutimens, lutimens): Likewise.
38402         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38403         (validate_timespec): Adjust return value.
38404         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38405         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38406         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38407
38408 2009-12-29  Eric Blake  <ebb9@byu.net>
38409
38410         link-warning: make usage consistent
38411         * modules/ctype (Depends-on): Add link-warning.
38412         (Makefile.am): Update rules accordingly.
38413         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38414         * modules/locale (Depends-on, Makefile.am): Likewise.
38415         * modules/sys_file (Makefile.am): Likewise.
38416         * modules/getopt-posix (Makefile.am): Delete unused link warning
38417         efforts.
38418         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38419         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38420         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38421         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38422
38423         stdio: remove unused variables
38424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38426         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38427
38428         tests: test more substitute headers
38429         * modules/ctype-tests: New file.
38430         * modules/dirent-tests: Likewise.
38431         * modules/spawn-tests: Likewise.
38432         * modules/sys_file-tests: Likewise.
38433         * modules/sys_ioctl-tests: Likewise.
38434         * modules/sys_wait-tests: Likewise.
38435         * tests/test-ctype.c: Likewise.
38436         * tests/test-dirent.c: Likewise.
38437         * tests/test-spawn.c: Likewise.
38438         * tests/test-sys_file.c: Likewise.
38439         * tests/test-sys_ioctl.c: Likewise.
38440         * tests/test-sys_wait.c: Likewise.
38441         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38442         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38443         whether or not flock is in use.
38444
38445         tests: remove License section from module
38446         * modules/arpa_inet-tests: Remove unneeded section.
38447         * modules/byteswap-tests: Likewise.
38448         * modules/ceilf-tests: Likewise.
38449         * modules/ceill-tests: Likewise.
38450         * modules/crypto/des-tests: Likewise.
38451         * modules/crypto/gc-arcfour-tests: Likewise.
38452         * modules/crypto/gc-arctwo-tests: Likewise.
38453         * modules/crypto/gc-des-tests: Likewise.
38454         * modules/crypto/gc-hmac-md5-tests: Likewise.
38455         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38456         * modules/crypto/gc-md2-tests: Likewise.
38457         * modules/crypto/gc-md4-tests: Likewise.
38458         * modules/crypto/gc-md5-tests: Likewise.
38459         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38460         * modules/crypto/gc-rijndael-tests: Likewise.
38461         * modules/crypto/gc-sha1-tests: Likewise.
38462         * modules/crypto/gc-tests: Likewise.
38463         * modules/crypto/md2-tests: Likewise.
38464         * modules/crypto/md4-tests: Likewise.
38465         * modules/fcntl-h-tests: Likewise.
38466         * modules/floorf-tests: Likewise.
38467         * modules/floorl-tests: Likewise.
38468         * modules/frexp-nolibm-tests: Likewise.
38469         * modules/frexp-tests: Likewise.
38470         * modules/frexpl-nolibm-tests: Likewise.
38471         * modules/frexpl-tests: Likewise.
38472         * modules/getaddrinfo-tests: Likewise.
38473         * modules/inttypes-tests: Likewise.
38474         * modules/isfinite-tests: Likewise.
38475         * modules/isinf-tests: Likewise.
38476         * modules/ldexpl-tests: Likewise.
38477         * modules/locale-tests: Likewise.
38478         * modules/math-tests: Likewise.
38479         * modules/netdb-tests: Likewise.
38480         * modules/netinet_in-tests: Likewise.
38481         * modules/printf-frexp-tests: Likewise.
38482         * modules/printf-frexpl-tests: Likewise.
38483         * modules/priv-set-tests: Likewise.
38484         * modules/random_r-tests: Likewise.
38485         * modules/round-tests: Likewise.
38486         * modules/roundf-tests: Likewise.
38487         * modules/roundl-tests: Likewise.
38488         * modules/search-tests: Likewise.
38489         * modules/select-tests: Likewise.
38490         * modules/signal-tests: Likewise.
38491         * modules/stdbool-tests: Likewise.
38492         * modules/stddef-tests: Likewise.
38493         * modules/stdint-tests: Likewise.
38494         * modules/stdio-tests: Likewise.
38495         * modules/stdlib-tests: Likewise.
38496         * modules/string-tests: Likewise.
38497         * modules/strings-tests: Likewise.
38498         * modules/sys_select-tests: Likewise.
38499         * modules/sys_socket-tests: Likewise.
38500         * modules/sys_stat-tests: Likewise.
38501         * modules/sys_time-tests: Likewise.
38502         * modules/sys_utsname-tests: Likewise.
38503         * modules/sysexits-tests: Likewise.
38504         * modules/time-tests: Likewise.
38505         * modules/trunc-tests: Likewise.
38506         * modules/truncf-tests: Likewise.
38507         * modules/truncl-tests: Likewise.
38508         * modules/tsearch-tests: Likewise.
38509         * modules/unistd-tests: Likewise.
38510         * modules/wchar-tests: Likewise.
38511         * modules/wctype-tests: Likewise.
38512
38513         tests: fix license on several tests
38514         * tests/test-des.c: Update to GPLv3+.
38515         * tests/test-flock.c: Likewise.
38516         * tests/test-fsync.c: Likewise.
38517         * tests/test-futimens.h: Likewise.
38518         * tests/test-gc-arcfour.c: Likewise.
38519         * tests/test-gc-arctwo.c: Likewise.
38520         * tests/test-gc-des.c: Likewise.
38521         * tests/test-gc-hmac-md5.c: Likewise.
38522         * tests/test-gc-hmac-sha1.c: Likewise.
38523         * tests/test-gc-md2.c: Likewise.
38524         * tests/test-gc-md4.c: Likewise.
38525         * tests/test-gc-md5.c: Likewise.
38526         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38527         * tests/test-gc-rijndael.c: Likewise.
38528         * tests/test-gc-sha1.c: Likewise.
38529         * tests/test-gc.c: Likewise.
38530         * tests/test-getcwd.c: Likewise.
38531         * tests/test-link.c: Likewise.
38532         * tests/test-link.h: Likewise.
38533         * tests/test-lutimens.h: Likewise.
38534         * tests/test-md2.c: Likewise.
38535         * tests/test-md4.c: Likewise.
38536         * tests/test-mkdir.h: Likewise.
38537         * tests/test-rename.c: Likewise.
38538         * tests/test-rename.h: Likewise.
38539         * tests/test-safe-alloc.c: Likewise.
38540         * tests/test-utimens-common.h: Likewise.
38541         * tests/test-utimens.h: Likewise.
38542
38543         maint: sync license texts
38544         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38545         * doc/gpl-3.0.texi: Revert copyright year update.
38546         * doc/lgpl-3.0.texi: Likewise.
38547
38548 2009-12-29  Jim Meyering  <meyering@redhat.com>
38549
38550         update nearly all FSF copyright year lists to include 2009
38551         The files named by the following are exempted:
38552             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38553               test -f "$dst" && { echo "$dst"; continue; }
38554               test -d "$dst" || continue
38555               echo "$dst"/$(basename "$src")
38556             done > exempt
38557             git ls-files tests/unictype >> exempt
38558         In the remaining files, convert to all-interval notation if
38559         - there is already at least one year interval like 2000-2003
38560         - the file is maintained by me
38561         - the file is in lib/uni*/, where that style already prevails
38562         Otherwise, use update-copyright's default.
38563
38564 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38565         and Eric Blake  <ebb9@byu.net>
38566
38567         tests: don't require debug system() to pass
38568         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38569         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38570         * tests/test-unlink.h (test_unlink_func): Likewise.
38571         * tests/test-fstatat.c (main): ...into callers.
38572         * tests/test-lstat.c (main): Likewise.
38573         * tests/test-rmdir.c (main): Likewise.
38574         * tests/test-unlink.c (main): Likewise.
38575         * tests/test-unlinkat.c (main): Likewise.
38576         * tests/test-areadlink-with-size.c (main): Don't require a
38577         debug-only system call to pass, aiding cross-testing to mingw.
38578         * tests/test-areadlink.c (main): Likewise.
38579         * tests/test-areadlinkat-with-size.c (main): Likewise.
38580         * tests/test-areadlinkat.c (main): Likewise.
38581         * tests/test-canonicalize-lgpl.c (main): Likewise.
38582         * tests/test-canonicalize.c (main): Likewise.
38583         * tests/test-chown.c (main): Likewise.
38584         * tests/test-fchownat.c (main): Likewise.
38585         * tests/test-lchown.c (main): Likewise.
38586         * tests/test-fdutimensat.c (main): Likewise.
38587         * tests/test-futimens.c (main): Likewise.
38588         * tests/test-link.c (main): Likewise.
38589         * tests/test-linkat.c (main): Likewise.
38590         * tests/test-mkdir.c (main): Likewise.
38591         * tests/test-mkdirat.c (main): Likewise.
38592         * tests/test-mkfifo.c (main): Likewise.
38593         * tests/test-mkfifoat.c (main): Likewise.
38594         * tests/test-mknod.c (main): Likewise.
38595         * tests/test-readlink.c (main): Likewise.
38596         * tests/test-remove.c (main): Likewise.
38597         * tests/test-rename.c (main): Likewise.
38598         * tests/test-renameat.c (main): Likewise.
38599         * tests/test-symlink.c (main): Likewise.
38600         * tests/test-symlinkat.c (main): Likewise.
38601         * tests/test-utimens.c (main): Likewise.
38602         * tests/test-utimensat.c (main): Likewise.
38603
38604 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38605
38606         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38607         on $(UNUSED_PARAMETER_H) to avoid build failure.
38608
38609 2009-12-28  Jim Meyering  <meyering@redhat.com>
38610
38611         update-copyright: you may specify a max. line length other than 72
38612         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38613
38614         maint: use consistent FSF copyright line syntax
38615         * lib/posixtm.c: Add missing comma in FSF copyright line.
38616         * lib/posixtm.h: Likewise.
38617         * lib/getugroups.c: Add missing ", Inc.".
38618
38619         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38620         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38621         FSF copyright line.  Remove trailing blanks.
38622
38623 2009-12-28  Eric Blake  <ebb9@byu.net>
38624
38625         test-dup2: reduce dependencies
38626         * modules/cloexec (Configure.ac): Set witness.
38627         * modules/dup2-tests (Depends-on): Drop cloexec.
38628         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38629         not present.
38630         Suggested by Bruno Haible.
38631
38632 2009-12-26  Bruno Haible  <bruno@clisp.org>
38633
38634         Remove an unneeded dependency.
38635         * modules/fseterr (Depends-on): Remove dup2.
38636
38637 2009-12-26  Eric Blake  <ebb9@byu.net>
38638
38639         tests: use macros.h in more places
38640         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38641         (ASSERT_STREAM): Provide default of stderr.
38642         * tests/test-dirent-safer.c: Include macros.h, using alternate
38643         stream for assertions.
38644         * tests/test-dup-safer.c: Likewise.
38645         * tests/test-freopen-safer.c: Likewise.
38646         * tests/test-getopt.c: Likewise.
38647         * tests/test-openat-safer.c: Likewise.
38648         * tests/test-pipe.c: Likewise.
38649         * tests/test-popen-safer.c: Likewise.
38650         * modules/dirent-safer-tests (Files): Include macros.h.
38651         * modules/unistd-safer-tests (Files): Likewise.
38652         * modules/freopen-safer-tests (Files): Likewise.
38653         * modules/getopt-posix-tests (Files): Likewise.
38654         * modules/openat-safer-tests (Files): Likewise.
38655         * modules/pipe-tests (Files): Likewise.
38656
38657 2009-12-26  Bruno Haible  <bruno@clisp.org>
38658
38659         javacomp: Portability fix.
38660         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38661         that it also works on Solaris.
38662
38663 2009-12-26  Bruno Haible  <bruno@clisp.org>
38664
38665         localename: Fix storage allocation of gl_locale_name_thread's result.
38666         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38667         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38668         all platforms that have 'uselocale'.
38669         (gl_locale_name_thread_unsafe): New function, extracted from
38670         gl_locale_name_thread.
38671         (gl_locale_name_thread): Call struniq on all platforms that have
38672         'uselocale'.
38673         * tests/test-localename.c (test_locale_name_thread): Check that the
38674         resulting strings are permanently allocated.
38675         * modules/localename-tests (Depends-on): Add strdup.
38676
38677 2009-12-26  Bruno Haible  <bruno@clisp.org>
38678
38679         * tests/test-localename.c (categories): Fill in the strings.
38680
38681 2009-12-26  Jim Meyering  <meyering@redhat.com>
38682
38683         isdir: complete the removal of m4/isdir.m4
38684         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38685
38686         isdir: clean up, since at least grep still uses it
38687         * lib/isdir.c: Include "isdir.h".
38688         (S_ISDIR): Remove now-unneeded definition.
38689         * modules/isdir (Files): Add lib/isdir.h.
38690         * lib/isdir.h: New file, with declaration.
38691         * m4/isdir.m4: Remove file -- unneeded.
38692
38693 2009-12-25  Bruno Haible  <bruno@clisp.org>
38694
38695         selinux-h: Make generated .h files standalone.
38696         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38697         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38698         * lib/se-selinux.in.h: Likewise.
38699         * modules/selinux-h (Depends-on): Add unused-parameter.
38700         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38701         selinux/selinux.h and selinux/context.h.
38702         Suggested by Eric Blake.
38703
38704 2009-12-25  Bruno Haible  <bruno@clisp.org>
38705
38706         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38707         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38708         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38709         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38710         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38711
38712 2009-12-24  Bruno Haible  <bruno@clisp.org>
38713
38714         openat: Fix warning.
38715         * lib/openat-proc.c: Include <unistd.h>.
38716
38717 2009-12-24  Bruno Haible  <bruno@clisp.org>
38718
38719         New module 'unused-parameter'.
38720         * build-aux/unused-parameter.h: New file, extracted from earlier
38721         gnulib-common.m4.
38722         * modules/unused-parameter: New file.
38723         * lib/unistr.h: Include unused-parameter.h.
38724         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38725         _GL_UNUSED.
38726         * modules/unistr/base (Depends-on): Add unused-parameter.
38727
38728 2009-12-24  Bruno Haible  <bruno@clisp.org>
38729
38730         Add missing dependencies to 'extensions' module.
38731         * m4/extensions.m4: Add comment.
38732         * modules/accept4 (Depends-on): Add extensions.
38733         * modules/dup3 (Depends-on): Likewise.
38734         * modules/fcntl (Depends-on): Likewise.
38735         * modules/futimens (Depends-on): Likewise.
38736         * modules/mknod (Depends-on): Likewise.
38737         * modules/pipe2 (Depends-on): Likewise.
38738         * modules/stat-time (Depends-on): Likewise.
38739         * modules/strcasestr-simple (Depends-on): Likewise.
38740         * modules/strsignal (Depends-on): Likewise.
38741         * modules/utimensat (Depends-on): Likewise.
38742         * modules/localcharset (Depends-on): Likewise. Needed because of
38743         gl_FCNTL_O_FLAGS.
38744         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38745         AC_TYPE_MBSTATE_T.
38746         * modules/wcsnrtombs (Depends-on): Likewise.
38747         * modules/wcsrtombs (Depends-on): Likewise.
38748
38749 2009-12-24  Bruno Haible  <bruno@clisp.org>
38750
38751         binary-io: Avoid gcc warning due to SET_BINARY.
38752         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38753         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38754
38755 2009-12-24  Bruno Haible  <bruno@clisp.org>
38756
38757         Avoid future namespace pollution on glibc systems.
38758         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38759         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38760         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38761         glibc systems.
38762
38763 2009-12-24  Bruno Haible  <bruno@clisp.org>
38764
38765         Refactor common macros used in tests.
38766         * tests/macros.h: New file.
38767         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38768         and/or <stdlib.h>, if appropriate.
38769         (ASSERT, SIZEOF): Remove macros.
38770         * tests/test-areadlink-with-size.c: Likewise.
38771         * tests/test-areadlinkat.c: Likewise.
38772         * tests/test-areadlinkat-with-size.c: Likewise.
38773         * tests/test-argmatch.c: Likewise.
38774         * tests/test-argv-iter.c: Likewise.
38775         * tests/test-array-mergesort.c: Likewise.
38776         * tests/test-array_list.c: Likewise.
38777         * tests/test-array_oset.c: Likewise.
38778         * tests/test-avltree_list.c: Likewise.
38779         * tests/test-avltree_oset.c: Likewise.
38780         * tests/test-avltreehash_list.c: Likewise.
38781         * tests/test-base64.c: Likewise.
38782         * tests/test-binary-io.c: Likewise.
38783         * tests/test-bitrotate.c: Likewise.
38784         * tests/test-btowc.c: Likewise.
38785         * tests/test-byteswap.c: Likewise.
38786         * tests/test-c-ctype.c: Likewise.
38787         * tests/test-c-stack.c: Likewise.
38788         * tests/test-c-strcasecmp.c: Likewise.
38789         * tests/test-c-strcasestr.c: Likewise.
38790         * tests/test-c-strncasecmp.c: Likewise.
38791         * tests/test-c-strstr.c: Likewise.
38792         * tests/test-canonicalize-lgpl.c: Likewise.
38793         * tests/test-canonicalize.c: Likewise.
38794         * tests/test-carray_list.c: Likewise.
38795         * tests/test-ceilf1.c: Likewise.
38796         * tests/test-ceilf2.c: Likewise.
38797         * tests/test-ceill.c: Likewise.
38798         * tests/test-chown.c: Likewise.
38799         * tests/test-cloexec.c: Likewise.
38800         * tests/test-copy-acl.c: Likewise.
38801         * tests/test-copy-file.c: Likewise.
38802         * tests/test-count-one-bits.c: Likewise.
38803         * tests/test-dprintf-posix.c: Likewise.
38804         * tests/test-dup2.c: Likewise.
38805         * tests/test-dup3.c: Likewise.
38806         * tests/test-duplocale.c: Likewise.
38807         * tests/test-fbufmode.c: Likewise.
38808         * tests/test-fchdir.c: Likewise.
38809         * tests/test-fchownat.c: Likewise.
38810         * tests/test-fcntl-safer.c: Likewise.
38811         * tests/test-fcntl.c: Likewise.
38812         * tests/test-fdopendir.c: Likewise.
38813         * tests/test-fdutimensat.c: Likewise.
38814         * tests/test-fflush2.c: Likewise.
38815         * tests/test-file-has-acl.c: Likewise.
38816         * tests/test-filevercmp.c: Likewise.
38817         * tests/test-flock.c: Likewise.
38818         * tests/test-floorf1.c: Likewise.
38819         * tests/test-floorf2.c: Likewise.
38820         * tests/test-floorl.c: Likewise.
38821         * tests/test-fnmatch.c: Likewise.
38822         * tests/test-fopen.h: Likewise.
38823         * tests/test-fpending.c: Likewise.
38824         * tests/test-fprintf-posix.c: Likewise.
38825         * tests/test-fpurge.c: Likewise.
38826         * tests/test-freadable.c: Likewise.
38827         * tests/test-freadahead.c: Likewise.
38828         * tests/test-freading.c: Likewise.
38829         * tests/test-freadptr.c: Likewise.
38830         * tests/test-freadptr2.c: Likewise.
38831         * tests/test-freadseek.c: Likewise.
38832         * tests/test-freopen.c: Likewise.
38833         * tests/test-frexp.c: Likewise.
38834         * tests/test-frexpl.c: Likewise.
38835         * tests/test-fseek.c: Likewise.
38836         * tests/test-fseeko.c: Likewise.
38837         * tests/test-fstatat.c: Likewise.
38838         * tests/test-fstrcmp.c: Likewise.
38839         * tests/test-fsync.c: Likewise.
38840         * tests/test-ftell.c: Likewise.
38841         * tests/test-ftello.c: Likewise.
38842         * tests/test-func.c: Likewise.
38843         * tests/test-futimens.c: Likewise.
38844         * tests/test-fwritable.c: Likewise.
38845         * tests/test-fwriting.c: Likewise.
38846         * tests/test-getcwd.c: Likewise.
38847         * tests/test-getdate.c: Likewise.
38848         * tests/test-getdelim.c: Likewise.
38849         * tests/test-getdtablesize.c: Likewise.
38850         * tests/test-getgroups.c: Likewise.
38851         * tests/test-getline.c: Likewise.
38852         * tests/test-getndelim2.c: Likewise.
38853         * tests/test-glob.c: Likewise.
38854         * tests/test-hash.c: Likewise.
38855         * tests/test-i-ring.c: Likewise.
38856         * tests/test-iconv-utf.c: Likewise.
38857         * tests/test-iconv.c: Likewise.
38858         * tests/test-idpriv-drop.c: Likewise.
38859         * tests/test-idpriv-droptemp.c: Likewise.
38860         * tests/test-inet_ntop.c: Likewise.
38861         * tests/test-inet_pton.c: Likewise.
38862         * tests/test-isblank.c: Likewise.
38863         * tests/test-isfinite.c: Likewise.
38864         * tests/test-isinf.c: Likewise.
38865         * tests/test-isnan.c: Likewise.
38866         * tests/test-isnand.h: Likewise.
38867         * tests/test-isnanf.h: Likewise.
38868         * tests/test-isnanl.h: Likewise.
38869         * tests/test-lchown.c: Likewise.
38870         * tests/test-ldexpl.c: Likewise.
38871         * tests/test-link.c: Likewise.
38872         * tests/test-linkat.c: Likewise.
38873         * tests/test-linked_list.c: Likewise.
38874         * tests/test-linkedhash_list.c: Likewise.
38875         * tests/test-localename.c: Likewise.
38876         * tests/test-lseek.c: Likewise.
38877         * tests/test-lstat.c: Likewise.
38878         * tests/test-mbmemcasecmp.c: Likewise.
38879         * tests/test-mbmemcasecoll.c: Likewise.
38880         * tests/test-mbrtowc.c: Likewise.
38881         * tests/test-mbscasecmp.c: Likewise.
38882         * tests/test-mbscasestr1.c: Likewise.
38883         * tests/test-mbscasestr2.c: Likewise.
38884         * tests/test-mbscasestr3.c: Likewise.
38885         * tests/test-mbscasestr4.c: Likewise.
38886         * tests/test-mbschr.c: Likewise.
38887         * tests/test-mbscspn.c: Likewise.
38888         * tests/test-mbsinit.c: Likewise.
38889         * tests/test-mbsncasecmp.c: Likewise.
38890         * tests/test-mbsnrtowcs.c: Likewise.
38891         * tests/test-mbspbrk.c: Likewise.
38892         * tests/test-mbspcasecmp.c: Likewise.
38893         * tests/test-mbsrchr.c: Likewise.
38894         * tests/test-mbsrtowcs.c: Likewise.
38895         * tests/test-mbsspn.c: Likewise.
38896         * tests/test-mbsstr1.c: Likewise.
38897         * tests/test-mbsstr2.c: Likewise.
38898         * tests/test-mbsstr3.c: Likewise.
38899         * tests/test-memchr.c: Likewise.
38900         * tests/test-memchr2.c: Likewise.
38901         * tests/test-memcmp.c: Likewise.
38902         * tests/test-memmem.c: Likewise.
38903         * tests/test-memrchr.c: Likewise.
38904         * tests/test-mkdir.c: Likewise.
38905         * tests/test-mkdirat.c: Likewise.
38906         * tests/test-mkfifo.c: Likewise.
38907         * tests/test-mkfifoat.c: Likewise.
38908         * tests/test-mknod.c: Likewise.
38909         * tests/test-nanosleep.c: Likewise.
38910         * tests/test-nl_langinfo.c: Likewise.
38911         * tests/test-obstack-printf.c: Likewise.
38912         * tests/test-open.c: Likewise.
38913         * tests/test-openat.c: Likewise.
38914         * tests/test-pipe-filter-gi1.c: Likewise.
38915         * tests/test-pipe-filter-gi2-main.c: Likewise.
38916         * tests/test-pipe-filter-ii1.c: Likewise.
38917         * tests/test-pipe-filter-ii2-main.c: Likewise.
38918         * tests/test-pipe2.c: Likewise.
38919         * tests/test-popen.h: Likewise.
38920         * tests/test-posixtm.c: Likewise.
38921         * tests/test-pread.c: Likewise.
38922         * tests/test-printf-frexp.c: Likewise.
38923         * tests/test-printf-frexpl.c: Likewise.
38924         * tests/test-printf-posix.c: Likewise.
38925         * tests/test-priv-set.c: Likewise.
38926         * tests/test-quotearg.c: Likewise.
38927         * tests/test-random_r.c: Likewise.
38928         * tests/test-rawmemchr.c: Likewise.
38929         * tests/test-rbtree_list.c: Likewise.
38930         * tests/test-rbtree_oset.c: Likewise.
38931         * tests/test-rbtreehash_list.c: Likewise.
38932         * tests/test-readlink.c: Likewise.
38933         * tests/test-remove.c: Likewise.
38934         * tests/test-rename.c: Likewise.
38935         * tests/test-renameat.c: Likewise.
38936         * tests/test-rmdir.c: Likewise.
38937         * tests/test-round1.c: Likewise.
38938         * tests/test-roundf1.c: Likewise.
38939         * tests/test-roundl.c: Likewise.
38940         * tests/test-safe-alloc.c: Likewise.
38941         * tests/test-sameacls.c: Likewise.
38942         * tests/test-set-mode-acl.c: Likewise.
38943         * tests/test-setenv.c: Likewise.
38944         * tests/test-sigaction.c: Likewise.
38945         * tests/test-signbit.c: Likewise.
38946         * tests/test-sleep.c: Likewise.
38947         * tests/test-snprintf-posix.c: Likewise.
38948         * tests/test-snprintf.c: Likewise.
38949         * tests/test-sprintf-posix.c: Likewise.
38950         * tests/test-stat-time.c: Likewise.
38951         * tests/test-stat.c: Likewise.
38952         * tests/test-strcasestr.c: Likewise.
38953         * tests/test-strchrnul.c: Likewise.
38954         * tests/test-strerror.c: Likewise.
38955         * tests/test-striconv.c: Likewise.
38956         * tests/test-striconveh.c: Likewise.
38957         * tests/test-striconveha.c: Likewise.
38958         * tests/test-strsignal.c: Likewise.
38959         * tests/test-strstr.c: Likewise.
38960         * tests/test-strtod.c: Likewise.
38961         * tests/test-strverscmp.c: Likewise.
38962         * tests/test-symlink.c: Likewise.
38963         * tests/test-symlinkat.c: Likewise.
38964         * tests/test-trunc1.c: Likewise.
38965         * tests/test-trunc2.c: Likewise.
38966         * tests/test-truncf1.c: Likewise.
38967         * tests/test-truncf2.c: Likewise.
38968         * tests/test-truncl.c: Likewise.
38969         * tests/test-uname.c: Likewise.
38970         * tests/test-unlink.c: Likewise.
38971         * tests/test-unlinkat.c: Likewise.
38972         * tests/test-unsetenv.c: Likewise.
38973         * tests/test-usleep.c: Likewise.
38974         * tests/test-utimens.c: Likewise.
38975         * tests/test-utimensat.c: Likewise.
38976         * tests/test-vasnprintf-posix.c: Likewise.
38977         * tests/test-vasnprintf-posix2.c: Likewise.
38978         * tests/test-vasnprintf.c: Likewise.
38979         * tests/test-vasprintf-posix.c: Likewise.
38980         * tests/test-vasprintf.c: Likewise.
38981         * tests/test-vdprintf-posix.c: Likewise.
38982         * tests/test-vfprintf-posix.c: Likewise.
38983         * tests/test-vprintf-posix.c: Likewise.
38984         * tests/test-vsnprintf-posix.c: Likewise.
38985         * tests/test-vsnprintf.c: Likewise.
38986         * tests/test-vsprintf-posix.c: Likewise.
38987         * tests/test-wcrtomb.c: Likewise.
38988         * tests/test-wcsnrtombs.c: Likewise.
38989         * tests/test-wcsrtombs.c: Likewise.
38990         * tests/test-wctype.c: Likewise.
38991         * tests/test-wcwidth.c: Likewise.
38992         * tests/test-xfprintf-posix.c: Likewise.
38993         * tests/test-xmemdup0.c: Likewise.
38994         * tests/test-xprintf-posix.c: Likewise.
38995         * tests/test-xvasprintf.c: Likewise.
38996         * tests/unicase/test-locale-language.c: Likewise.
38997         * tests/unicase/test-mapping-part1.h: Likewise.
38998         * tests/unicase/test-predicate-part1.h: Likewise.
38999         * tests/unicase/test-u8-casecmp.c: Likewise.
39000         * tests/unicase/test-u8-casecoll.c: Likewise.
39001         * tests/unicase/test-u8-casefold.c: Likewise.
39002         * tests/unicase/test-u8-is-cased.c: Likewise.
39003         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39004         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39005         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39006         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39007         * tests/unicase/test-u8-tolower.c: Likewise.
39008         * tests/unicase/test-u8-totitle.c: Likewise.
39009         * tests/unicase/test-u8-toupper.c: Likewise.
39010         * tests/unicase/test-u16-casecmp.c: Likewise.
39011         * tests/unicase/test-u16-casecoll.c: Likewise.
39012         * tests/unicase/test-u16-casefold.c: Likewise.
39013         * tests/unicase/test-u16-is-cased.c: Likewise.
39014         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39015         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39016         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39017         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39018         * tests/unicase/test-u16-tolower.c: Likewise.
39019         * tests/unicase/test-u16-totitle.c: Likewise.
39020         * tests/unicase/test-u16-toupper.c: Likewise.
39021         * tests/unicase/test-u32-casecmp.c: Likewise.
39022         * tests/unicase/test-u32-casecoll.c: Likewise.
39023         * tests/unicase/test-u32-casefold.c: Likewise.
39024         * tests/unicase/test-u32-is-cased.c: Likewise.
39025         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39026         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39027         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39028         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39029         * tests/unicase/test-u32-tolower.c: Likewise.
39030         * tests/unicase/test-u32-totitle.c: Likewise.
39031         * tests/unicase/test-u32-toupper.c: Likewise.
39032         * tests/unicase/test-ulc-casecmp.c: Likewise.
39033         * tests/unicase/test-ulc-casecoll.c: Likewise.
39034         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39035         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39036         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39037         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39038         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39039         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39040         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39041         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39042         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39043         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39044         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39045         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39046         * tests/unictype/test-bidi_byname.c: Likewise.
39047         * tests/unictype/test-bidi_name.c: Likewise.
39048         * tests/unictype/test-bidi_of.c: Likewise.
39049         * tests/unictype/test-bidi_test.c: Likewise.
39050         * tests/unictype/test-block_list.c: Likewise.
39051         * tests/unictype/test-block_of.c: Likewise.
39052         * tests/unictype/test-block_test.c: Likewise.
39053         * tests/unictype/test-categ_and.c: Likewise.
39054         * tests/unictype/test-categ_and_not.c: Likewise.
39055         * tests/unictype/test-categ_byname.c: Likewise.
39056         * tests/unictype/test-categ_name.c: Likewise.
39057         * tests/unictype/test-categ_none.c: Likewise.
39058         * tests/unictype/test-categ_of.c: Likewise.
39059         * tests/unictype/test-categ_or.c: Likewise.
39060         * tests/unictype/test-categ_test_withtable.c: Likewise.
39061         * tests/unictype/test-combining.c: Likewise.
39062         * tests/unictype/test-decdigit.c: Likewise.
39063         * tests/unictype/test-digit.c: Likewise.
39064         * tests/unictype/test-mirror.c: Likewise.
39065         * tests/unictype/test-numeric.c: Likewise.
39066         * tests/unictype/test-pr_byname.c: Likewise.
39067         * tests/unictype/test-pr_test.c: Likewise.
39068         * tests/unictype/test-predicate-part1.h: Likewise.
39069         * tests/unictype/test-scripts.c: Likewise.
39070         * tests/unictype/test-sy_c_ident.c: Likewise.
39071         * tests/unictype/test-sy_java_ident.c: Likewise.
39072         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39073         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39074         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39075         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39076         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39077         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39078         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39079         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39080         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39081         * tests/uninorm/test-compat-decomposition.c: Likewise.
39082         * tests/uninorm/test-composition.c: Likewise.
39083         * tests/uninorm/test-decomposing-form.c: Likewise.
39084         * tests/uninorm/test-decomposition.c: Likewise.
39085         * tests/uninorm/test-u8-nfc.c: Likewise.
39086         * tests/uninorm/test-u8-nfd.c: Likewise.
39087         * tests/uninorm/test-u8-nfkc.c: Likewise.
39088         * tests/uninorm/test-u8-nfkd.c: Likewise.
39089         * tests/uninorm/test-u8-normcmp.c: Likewise.
39090         * tests/uninorm/test-u8-normcoll.c: Likewise.
39091         * tests/uninorm/test-u16-nfc.c: Likewise.
39092         * tests/uninorm/test-u16-nfd.c: Likewise.
39093         * tests/uninorm/test-u16-nfkc.c: Likewise.
39094         * tests/uninorm/test-u16-nfkd.c: Likewise.
39095         * tests/uninorm/test-u16-normcmp.c: Likewise.
39096         * tests/uninorm/test-u16-normcoll.c: Likewise.
39097         * tests/uninorm/test-u32-nfc.c: Likewise.
39098         * tests/uninorm/test-u32-nfd.c: Likewise.
39099         * tests/uninorm/test-u32-nfkc.c: Likewise.
39100         * tests/uninorm/test-u32-nfkd.c: Likewise.
39101         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39102         * tests/uninorm/test-u32-normcmp.c: Likewise.
39103         * tests/uninorm/test-u32-normcoll.c: Likewise.
39104         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39105         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39106         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39107         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39108         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39109         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39110         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39111         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39112         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39113         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39114         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39115         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39116         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39117         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39118         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39119         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39120         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39121         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39122         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39123         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39124         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39125         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39126         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39127         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39128         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39129         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39130         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39131         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39132         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39133         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39134         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39135         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39136         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39137         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39138         * tests/uniwidth/test-u8-width.c: Likewise.
39139         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39140         * tests/uniwidth/test-u16-width.c: Likewise.
39141         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39142         * tests/uniwidth/test-u32-width.c: Likewise.
39143         * tests/uniwidth/test-uc_width.c: Likewise.
39144         * tests/uniwidth/test-uc_width2.c: Likewise.
39145         * modules/acl-tests (Files): Add tests/macros.h.
39146         * modules/areadlink-tests (Files): Likewise.
39147         * modules/areadlink-with-size-tests (Files): Likewise.
39148         * modules/areadlinkat-tests (Files): Likewise.
39149         * modules/areadlinkat-with-size-tests (Files): Likewise.
39150         * modules/argmatch-tests (Files): Likewise.
39151         * modules/argv-iter-tests (Files): Likewise.
39152         * modules/array-list-tests (Files): Likewise.
39153         * modules/array-mergesort-tests (Files): Likewise.
39154         * modules/array-oset-tests (Files): Likewise.
39155         * modules/avltree-list-tests (Files): Likewise.
39156         * modules/avltree-oset-tests (Files): Likewise.
39157         * modules/avltreehash-list-tests (Files): Likewise.
39158         * modules/base64-tests (Files): Likewise.
39159         * modules/binary-io-tests (Files): Likewise.
39160         * modules/bitrotate-tests (Files): Likewise.
39161         * modules/btowc-tests (Files): Likewise.
39162         * modules/byteswap-tests (Files): Likewise.
39163         * modules/c-ctype-tests (Files): Likewise.
39164         * modules/c-stack-tests (Files): Likewise.
39165         * modules/c-strcase-tests (Files): Likewise.
39166         * modules/c-strcasestr-tests (Files): Likewise.
39167         * modules/c-strstr-tests (Files): Likewise.
39168         * modules/canonicalize-lgpl-tests (Files): Likewise.
39169         * modules/canonicalize-tests (Files): Likewise.
39170         * modules/carray-list-tests (Files): Likewise.
39171         * modules/ceilf-tests (Files): Likewise.
39172         * modules/ceill-tests (Files): Likewise.
39173         * modules/chown-tests (Files): Likewise.
39174         * modules/cloexec-tests (Files): Likewise.
39175         * modules/copy-file-tests (Files): Likewise.
39176         * modules/count-one-bits-tests (Files): Likewise.
39177         * modules/dprintf-posix-tests (Files): Likewise.
39178         * modules/dup2-tests (Files): Likewise.
39179         * modules/dup3-tests (Files): Likewise.
39180         * modules/duplocale-tests (Files): Likewise.
39181         * modules/fbufmode-tests (Files): Likewise.
39182         * modules/fchdir-tests (Files): Likewise.
39183         * modules/fcntl-safer-tests (Files): Likewise.
39184         * modules/fcntl-tests (Files): Likewise.
39185         * modules/fdopendir-tests (Files): Likewise.
39186         * modules/fdutimensat-tests (Files): Likewise.
39187         * modules/fflush-tests (Files): Likewise.
39188         * modules/filevercmp-tests (Files): Likewise.
39189         * modules/flock-tests (Files): Likewise.
39190         * modules/floorf-tests (Files): Likewise.
39191         * modules/floorl-tests (Files): Likewise.
39192         * modules/fnmatch-tests (Files): Likewise.
39193         * modules/fopen-safer-tests (Files): Likewise.
39194         * modules/fopen-tests (Files): Likewise.
39195         * modules/fpending-tests (Files): Likewise.
39196         * modules/fprintf-posix-tests (Files): Likewise.
39197         * modules/fpurge-tests (Files): Likewise.
39198         * modules/freadable-tests (Files): Likewise.
39199         * modules/freadahead-tests (Files): Likewise.
39200         * modules/freading-tests (Files): Likewise.
39201         * modules/freadptr-tests (Files): Likewise.
39202         * modules/freadseek-tests (Files): Likewise.
39203         * modules/freopen-tests (Files): Likewise.
39204         * modules/frexp-nolibm-tests (Files): Likewise.
39205         * modules/frexp-tests (Files): Likewise.
39206         * modules/frexpl-nolibm-tests (Files): Likewise.
39207         * modules/frexpl-tests (Files): Likewise.
39208         * modules/fseek-tests (Files): Likewise.
39209         * modules/fseeko-tests (Files): Likewise.
39210         * modules/fstrcmp-tests (Files): Likewise.
39211         * modules/fsync-tests (Files): Likewise.
39212         * modules/ftell-tests (Files): Likewise.
39213         * modules/ftello-tests (Files): Likewise.
39214         * modules/func-tests (Files): Likewise.
39215         * modules/futimens-tests (Files): Likewise.
39216         * modules/fwritable-tests (Files): Likewise.
39217         * modules/fwriting-tests (Files): Likewise.
39218         * modules/getcwd-tests (Files): Likewise.
39219         * modules/getdate-tests (Files): Likewise.
39220         * modules/getdelim-tests (Files): Likewise.
39221         * modules/getdtablesize-tests (Files): Likewise.
39222         * modules/getgroups-tests (Files): Likewise.
39223         * modules/getline-tests (Files): Likewise.
39224         * modules/getndelim2-tests (Files): Likewise.
39225         * modules/glob-tests (Files): Likewise.
39226         * modules/hash-tests (Files): Likewise.
39227         * modules/i-ring-tests (Files): Likewise.
39228         * modules/iconv-tests (Files): Likewise.
39229         * modules/iconv_open-utf-tests (Files): Likewise.
39230         * modules/idpriv-drop-tests (Files): Likewise.
39231         * modules/idpriv-droptemp-tests (Files): Likewise.
39232         * modules/inet_ntop-tests (Files): Likewise.
39233         * modules/inet_pton-tests (Files): Likewise.
39234         * modules/isblank-tests (Files): Likewise.
39235         * modules/isfinite-tests (Files): Likewise.
39236         * modules/isinf-tests (Files): Likewise.
39237         * modules/isnan-tests (Files): Likewise.
39238         * modules/isnand-nolibm-tests (Files): Likewise.
39239         * modules/isnand-tests (Files): Likewise.
39240         * modules/isnanf-nolibm-tests (Files): Likewise.
39241         * modules/isnanf-tests (Files): Likewise.
39242         * modules/isnanl-nolibm-tests (Files): Likewise.
39243         * modules/isnanl-tests (Files): Likewise.
39244         * modules/lchown-tests (Files): Likewise.
39245         * modules/ldexpl-tests (Files): Likewise.
39246         * modules/link-tests (Files): Likewise.
39247         * modules/linkat-tests (Files): Likewise.
39248         * modules/linked-list-tests (Files): Likewise.
39249         * modules/linkedhash-list-tests (Files): Likewise.
39250         * modules/localename-tests (Files): Likewise.
39251         * modules/lseek-tests (Files): Likewise.
39252         * modules/lstat-tests (Files): Likewise.
39253         * modules/mbmemcasecmp-tests (Files): Likewise.
39254         * modules/mbmemcasecoll-tests (Files): Likewise.
39255         * modules/mbrtowc-tests (Files): Likewise.
39256         * modules/mbscasecmp-tests (Files): Likewise.
39257         * modules/mbscasestr-tests (Files): Likewise.
39258         * modules/mbschr-tests (Files): Likewise.
39259         * modules/mbscspn-tests (Files): Likewise.
39260         * modules/mbsinit-tests (Files): Likewise.
39261         * modules/mbsncasecmp-tests (Files): Likewise.
39262         * modules/mbsnrtowcs-tests (Files): Likewise.
39263         * modules/mbspbrk-tests (Files): Likewise.
39264         * modules/mbspcasecmp-tests (Files): Likewise.
39265         * modules/mbsrchr-tests (Files): Likewise.
39266         * modules/mbsrtowcs-tests (Files): Likewise.
39267         * modules/mbsspn-tests (Files): Likewise.
39268         * modules/mbsstr-tests (Files): Likewise.
39269         * modules/memchr-tests (Files): Likewise.
39270         * modules/memchr2-tests (Files): Likewise.
39271         * modules/memcmp-tests (Files): Likewise.
39272         * modules/memmem-tests (Files): Likewise.
39273         * modules/memrchr-tests (Files): Likewise.
39274         * modules/mkdir-tests (Files): Likewise.
39275         * modules/mkfifo-tests (Files): Likewise.
39276         * modules/mkfifoat-tests (Files): Likewise.
39277         * modules/mknod-tests (Files): Likewise.
39278         * modules/nanosleep-tests (Files): Likewise.
39279         * modules/nl_langinfo-tests (Files): Likewise.
39280         * modules/obstack-printf-tests (Files): Likewise.
39281         * modules/open-tests (Files): Likewise.
39282         * modules/openat-tests (Files): Likewise.
39283         * modules/pipe-filter-gi-tests (Files): Likewise.
39284         * modules/pipe-filter-ii-tests (Files): Likewise.
39285         * modules/pipe2-tests (Files): Likewise.
39286         * modules/popen-safer-tests (Files): Likewise.
39287         * modules/popen-tests (Files): Likewise.
39288         * modules/posixtm-tests (Files): Likewise.
39289         * modules/pread-tests (Files): Likewise.
39290         * modules/printf-frexp-tests (Files): Likewise.
39291         * modules/printf-frexpl-tests (Files): Likewise.
39292         * modules/printf-posix-tests (Files): Likewise.
39293         * modules/priv-set-tests (Files): Likewise.
39294         * modules/quotearg-tests (Files): Likewise.
39295         * modules/random_r-tests (Files): Likewise.
39296         * modules/rawmemchr-tests (Files): Likewise.
39297         * modules/rbtree-list-tests (Files): Likewise.
39298         * modules/rbtree-oset-tests (Files): Likewise.
39299         * modules/rbtreehash-list-tests (Files): Likewise.
39300         * modules/readlink-tests (Files): Likewise.
39301         * modules/remove-tests (Files): Likewise.
39302         * modules/rename-tests (Files): Likewise.
39303         * modules/renameat-tests (Files): Likewise.
39304         * modules/rmdir-tests (Files): Likewise.
39305         * modules/round-tests (Files): Likewise.
39306         * modules/roundf-tests (Files): Likewise.
39307         * modules/roundl-tests (Files): Likewise.
39308         * modules/safe-alloc-tests (Files): Likewise.
39309         * modules/setenv-tests (Files): Likewise.
39310         * modules/sigaction-tests (Files): Likewise.
39311         * modules/signbit-tests (Files): Likewise.
39312         * modules/sleep-tests (Files): Likewise.
39313         * modules/snprintf-posix-tests (Files): Likewise.
39314         * modules/snprintf-tests (Files): Likewise.
39315         * modules/sprintf-posix-tests (Files): Likewise.
39316         * modules/stat-tests (Files): Likewise.
39317         * modules/stat-time-tests (Files): Likewise.
39318         * modules/strcasestr-tests (Files): Likewise.
39319         * modules/strchrnul-tests (Files): Likewise.
39320         * modules/strerror-tests (Files): Likewise.
39321         * modules/striconv-tests (Files): Likewise.
39322         * modules/striconveh-tests (Files): Likewise.
39323         * modules/striconveha-tests (Files): Likewise.
39324         * modules/strsignal-tests (Files): Likewise.
39325         * modules/strstr-tests (Files): Likewise.
39326         * modules/strtod-tests (Files): Likewise.
39327         * modules/strverscmp-tests (Files): Likewise.
39328         * modules/symlink-tests (Files): Likewise.
39329         * modules/symlinkat-tests (Files): Likewise.
39330         * modules/trunc-tests (Files): Likewise.
39331         * modules/truncf-tests (Files): Likewise.
39332         * modules/truncl-tests (Files): Likewise.
39333         * modules/uname-tests (Files): Likewise.
39334         * modules/unicase/cased-tests (Files): Likewise.
39335         * modules/unicase/ignorable-tests (Files): Likewise.
39336         * modules/unicase/locale-language-tests (Files): Likewise.
39337         * modules/unicase/tolower-tests (Files): Likewise.
39338         * modules/unicase/totitle-tests (Files): Likewise.
39339         * modules/unicase/toupper-tests (Files): Likewise.
39340         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39341         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39342         * modules/unicase/u8-casefold-tests (Files): Likewise.
39343         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39344         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39345         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39346         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39347         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39348         * modules/unicase/u8-tolower-tests (Files): Likewise.
39349         * modules/unicase/u8-totitle-tests (Files): Likewise.
39350         * modules/unicase/u8-toupper-tests (Files): Likewise.
39351         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39352         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39353         * modules/unicase/u16-casefold-tests (Files): Likewise.
39354         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39355         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39356         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39357         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39358         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39359         * modules/unicase/u16-tolower-tests (Files): Likewise.
39360         * modules/unicase/u16-totitle-tests (Files): Likewise.
39361         * modules/unicase/u16-toupper-tests (Files): Likewise.
39362         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39363         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39364         * modules/unicase/u32-casefold-tests (Files): Likewise.
39365         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39366         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39367         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39368         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39369         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39370         * modules/unicase/u32-tolower-tests (Files): Likewise.
39371         * modules/unicase/u32-totitle-tests (Files): Likewise.
39372         * modules/unicase/u32-toupper-tests (Files): Likewise.
39373         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39374         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39375         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39376         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39377         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39378         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39379         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39380         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39381         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39382         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39383         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39384         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39385         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39386         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39387         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39388         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39389         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39390         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39391         * modules/unictype/block-list-tests (Files): Likewise.
39392         * modules/unictype/block-of-tests (Files): Likewise.
39393         * modules/unictype/block-test-tests (Files): Likewise.
39394         * modules/unictype/category-C-tests (Files): Likewise.
39395         * modules/unictype/category-Cc-tests (Files): Likewise.
39396         * modules/unictype/category-Cf-tests (Files): Likewise.
39397         * modules/unictype/category-Cn-tests (Files): Likewise.
39398         * modules/unictype/category-Co-tests (Files): Likewise.
39399         * modules/unictype/category-Cs-tests (Files): Likewise.
39400         * modules/unictype/category-L-tests (Files): Likewise.
39401         * modules/unictype/category-Ll-tests (Files): Likewise.
39402         * modules/unictype/category-Lm-tests (Files): Likewise.
39403         * modules/unictype/category-Lo-tests (Files): Likewise.
39404         * modules/unictype/category-Lt-tests (Files): Likewise.
39405         * modules/unictype/category-Lu-tests (Files): Likewise.
39406         * modules/unictype/category-M-tests (Files): Likewise.
39407         * modules/unictype/category-Mc-tests (Files): Likewise.
39408         * modules/unictype/category-Me-tests (Files): Likewise.
39409         * modules/unictype/category-Mn-tests (Files): Likewise.
39410         * modules/unictype/category-N-tests (Files): Likewise.
39411         * modules/unictype/category-Nd-tests (Files): Likewise.
39412         * modules/unictype/category-Nl-tests (Files): Likewise.
39413         * modules/unictype/category-No-tests (Files): Likewise.
39414         * modules/unictype/category-P-tests (Files): Likewise.
39415         * modules/unictype/category-Pc-tests (Files): Likewise.
39416         * modules/unictype/category-Pd-tests (Files): Likewise.
39417         * modules/unictype/category-Pe-tests (Files): Likewise.
39418         * modules/unictype/category-Pf-tests (Files): Likewise.
39419         * modules/unictype/category-Pi-tests (Files): Likewise.
39420         * modules/unictype/category-Po-tests (Files): Likewise.
39421         * modules/unictype/category-Ps-tests (Files): Likewise.
39422         * modules/unictype/category-S-tests (Files): Likewise.
39423         * modules/unictype/category-Sc-tests (Files): Likewise.
39424         * modules/unictype/category-Sk-tests (Files): Likewise.
39425         * modules/unictype/category-Sm-tests (Files): Likewise.
39426         * modules/unictype/category-So-tests (Files): Likewise.
39427         * modules/unictype/category-Z-tests (Files): Likewise.
39428         * modules/unictype/category-Zl-tests (Files): Likewise.
39429         * modules/unictype/category-Zp-tests (Files): Likewise.
39430         * modules/unictype/category-Zs-tests (Files): Likewise.
39431         * modules/unictype/category-and-not-tests (Files): Likewise.
39432         * modules/unictype/category-and-tests (Files): Likewise.
39433         * modules/unictype/category-byname-tests (Files): Likewise.
39434         * modules/unictype/category-name-tests (Files): Likewise.
39435         * modules/unictype/category-none-tests (Files): Likewise.
39436         * modules/unictype/category-of-tests (Files): Likewise.
39437         * modules/unictype/category-or-tests (Files): Likewise.
39438         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39439         * modules/unictype/combining-class-tests (Files): Likewise.
39440         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39441         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39442         * modules/unictype/ctype-blank-tests (Files): Likewise.
39443         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39444         * modules/unictype/ctype-digit-tests (Files): Likewise.
39445         * modules/unictype/ctype-graph-tests (Files): Likewise.
39446         * modules/unictype/ctype-lower-tests (Files): Likewise.
39447         * modules/unictype/ctype-print-tests (Files): Likewise.
39448         * modules/unictype/ctype-punct-tests (Files): Likewise.
39449         * modules/unictype/ctype-space-tests (Files): Likewise.
39450         * modules/unictype/ctype-upper-tests (Files): Likewise.
39451         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39452         * modules/unictype/decimal-digit-tests (Files): Likewise.
39453         * modules/unictype/digit-tests (Files): Likewise.
39454         * modules/unictype/mirror-tests (Files): Likewise.
39455         * modules/unictype/numeric-tests (Files): Likewise.
39456         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39457         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39458         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39459         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39460         Likewise.
39461         * modules/unictype/property-bidi-block-separator-tests (Files):
39462         Likewise.
39463         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39464         Likewise.
39465         * modules/unictype/property-bidi-common-separator-tests (Files):
39466         Likewise.
39467         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39468         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39469         Likewise.
39470         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39471         Likewise.
39472         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39473         Likewise.
39474         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39475         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39476         Likewise.
39477         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39478         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39479         Likewise.
39480         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39481         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39482         * modules/unictype/property-bidi-segment-separator-tests (Files):
39483         Likewise.
39484         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39485         * modules/unictype/property-byname-tests (Files): Likewise.
39486         * modules/unictype/property-combining-tests (Files): Likewise.
39487         * modules/unictype/property-composite-tests (Files): Likewise.
39488         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39489         * modules/unictype/property-dash-tests (Files): Likewise.
39490         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39491         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39492         Likewise.
39493         * modules/unictype/property-deprecated-tests (Files): Likewise.
39494         * modules/unictype/property-diacritic-tests (Files): Likewise.
39495         * modules/unictype/property-extender-tests (Files): Likewise.
39496         * modules/unictype/property-format-control-tests (Files): Likewise.
39497         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39498         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39499         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39500         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39501         * modules/unictype/property-hyphen-tests (Files): Likewise.
39502         * modules/unictype/property-id-continue-tests (Files): Likewise.
39503         * modules/unictype/property-id-start-tests (Files): Likewise.
39504         * modules/unictype/property-ideographic-tests (Files): Likewise.
39505         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39506         * modules/unictype/property-ids-trinary-operator-tests (Files):
39507         Likewise.
39508         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39509         * modules/unictype/property-iso-control-tests (Files): Likewise.
39510         * modules/unictype/property-join-control-tests (Files): Likewise.
39511         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39512         * modules/unictype/property-line-separator-tests (Files): Likewise.
39513         * modules/unictype/property-logical-order-exception-tests (Files):
39514         Likewise.
39515         * modules/unictype/property-lowercase-tests (Files): Likewise.
39516         * modules/unictype/property-math-tests (Files): Likewise.
39517         * modules/unictype/property-non-break-tests (Files): Likewise.
39518         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39519         * modules/unictype/property-numeric-tests (Files): Likewise.
39520         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39521         * modules/unictype/property-other-default-ignorable-code-point-tests
39522         (Files): Likewise.
39523         * modules/unictype/property-other-grapheme-extend-tests (Files):
39524         Likewise.
39525         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39526         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39527         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39528         * modules/unictype/property-other-math-tests (Files): Likewise.
39529         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39530         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39531         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39532         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39533         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39534         * modules/unictype/property-private-use-tests (Files): Likewise.
39535         * modules/unictype/property-punctuation-tests (Files): Likewise.
39536         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39537         * modules/unictype/property-radical-tests (Files): Likewise.
39538         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39539         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39540         * modules/unictype/property-space-tests (Files): Likewise.
39541         * modules/unictype/property-terminal-punctuation-tests (Files):
39542         Likewise.
39543         * modules/unictype/property-test-tests (Files): Likewise.
39544         * modules/unictype/property-titlecase-tests (Files): Likewise.
39545         * modules/unictype/property-unassigned-code-value-tests (Files):
39546         Likewise.
39547         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39548         * modules/unictype/property-uppercase-tests (Files): Likewise.
39549         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39550         * modules/unictype/property-white-space-tests (Files): Likewise.
39551         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39552         * modules/unictype/property-xid-start-tests (Files): Likewise.
39553         * modules/unictype/property-zero-width-tests (Files): Likewise.
39554         * modules/unictype/scripts-tests (Files): Likewise.
39555         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39556         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39557         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39558         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39559         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39560         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39561         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39562         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39563         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39564         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39565         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39566         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39567         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39568         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39569         * modules/uninorm/composition-tests (Files): Likewise.
39570         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39571         * modules/uninorm/decomposition-tests (Files): Likewise.
39572         * modules/uninorm/filter-tests (Files): Likewise.
39573         * modules/uninorm/nfc-tests (Files): Likewise.
39574         * modules/uninorm/nfd-tests (Files): Likewise.
39575         * modules/uninorm/nfkc-tests (Files): Likewise.
39576         * modules/uninorm/nfkd-tests (Files): Likewise.
39577         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39578         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39579         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39580         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39581         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39582         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39583         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39584         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39585         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39586         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39587         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39588         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39589         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39590         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39591         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39592         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39593         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39594         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39595         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39596         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39597         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39598         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39599         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39600         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39601         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39602         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39603         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39604         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39605         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39606         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39607         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39608         * modules/uniwidth/u8-width-tests (Files): Likewise.
39609         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39610         * modules/uniwidth/u16-width-tests (Files): Likewise.
39611         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39612         * modules/uniwidth/u32-width-tests (Files): Likewise.
39613         * modules/uniwidth/width-tests (Files): Likewise.
39614         * modules/unlink-tests (Files): Likewise.
39615         * modules/unsetenv-tests (Files): Likewise.
39616         * modules/usleep-tests (Files): Likewise.
39617         * modules/utimens-tests (Files): Likewise.
39618         * modules/utimensat-tests (Files): Likewise.
39619         * modules/vasnprintf-posix-tests (Files): Likewise.
39620         * modules/vasnprintf-tests (Files): Likewise.
39621         * modules/vasprintf-posix-tests (Files): Likewise.
39622         * modules/vasprintf-tests (Files): Likewise.
39623         * modules/vdprintf-posix-tests (Files): Likewise.
39624         * modules/vfprintf-posix-tests (Files): Likewise.
39625         * modules/vprintf-posix-tests (Files): Likewise.
39626         * modules/vsnprintf-posix-tests (Files): Likewise.
39627         * modules/vsnprintf-tests (Files): Likewise.
39628         * modules/vsprintf-posix-tests (Files): Likewise.
39629         * modules/wcrtomb-tests (Files): Likewise.
39630         * modules/wcsnrtombs-tests (Files): Likewise.
39631         * modules/wcsrtombs-tests (Files): Likewise.
39632         * modules/wctype-tests (Files): Likewise.
39633         * modules/wcwidth-tests (Files): Likewise.
39634         * modules/xmemdup0-tests (Files): Likewise.
39635         * modules/xprintf-posix-tests (Files): Likewise.
39636         * modules/xvasprintf-tests (Files): Likewise.
39637
39638 2009-12-24  Eric Blake  <ebb9@byu.net>
39639
39640         test-nanosleep: fix typo
39641         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39642         patch.
39643         Reported by Bruno Haible.
39644
39645 2009-12-24  Bruno Haible  <bruno@clisp.org>
39646
39647         Reduce namespace pollution on glibc systems.
39648         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39649         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39650         systems.
39651         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39652         <getopt.h> on glibc systems.
39653         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39654         systems.
39655         * lib/fcntl.c: Include <unistd.h> here instead.
39656
39657 2009-12-24  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39660
39661 2009-12-24  Eric Blake  <ebb9@byu.net>
39662
39663         tests: add signature checks
39664         * tests/signature.h (SIGNATURE_CHECK): New file.
39665         * modules/atexit-tests (Files): Use it.
39666         * modules/btowc-tests (Files): Likewise.
39667         * modules/canonicalize-lgpl-tests (Files): Likewise.
39668         * modules/ceilf-tests (Files): Likewise.
39669         * modules/ceill-tests (Files): Likewise.
39670         * modules/chown-tests (Files): Likewise.
39671         * modules/dprintf-posix-tests (Files): Likewise.
39672         * modules/dup2-tests (Files): Likewise.
39673         * modules/dup3-tests (Files): Likewise.
39674         * modules/duplocale-tests (Files): Likewise.
39675         * modules/fchdir-tests (Files): Likewise.
39676         * modules/fcntl-tests (Files): Likewise.
39677         * modules/fdopendir-tests (Files): Likewise.
39678         * modules/fflush-tests (Files): Likewise.
39679         * modules/flock-tests (Files): Likewise.
39680         * modules/floorf-tests (Files): Likewise.
39681         * modules/floorl-tests (Files): Likewise.
39682         * modules/fnmatch-tests (Files): Likewise.
39683         * modules/fopen-tests (Files): Likewise.
39684         * modules/fprintf-posix-tests (Files): Likewise.
39685         * modules/freopen-tests (Files): Likewise.
39686         * modules/frexp-nolibm-tests (Files): Likewise.
39687         * modules/frexp-tests (Files): Likewise.
39688         * modules/frexpl-nolibm-tests (Files): Likewise.
39689         * modules/frexpl-tests (Files): Likewise.
39690         * modules/fseek-tests (Files): Likewise.
39691         * modules/fseeko-tests (Files): Likewise.
39692         * modules/fsync-tests (Files): Likewise.
39693         * modules/ftell-tests (Files): Likewise.
39694         * modules/ftello-tests (Files): Likewise.
39695         * modules/futimens-tests (Files): Likewise.
39696         * modules/getaddrinfo-tests (Files): Likewise.
39697         * modules/getcwd-tests (Files): Likewise.
39698         * modules/getdelim-tests (Files): Likewise.
39699         * modules/getdtablesize-tests (Files): Likewise.
39700         * modules/getgroups-tests (Files): Likewise.
39701         * modules/gethostname-tests (Files): Likewise.
39702         * modules/getline-tests (Files): Likewise.
39703         * modules/getopt-posix-tests (Files): Likewise.
39704         * modules/gettimeofday-tests (Files): Likewise.
39705         * modules/glob-tests (Files): Likewise.
39706         * modules/iconv-tests (Files): Likewise.
39707         * modules/inet_ntop-tests (Files): Likewise.
39708         * modules/inet_pton-tests (Files): Likewise.
39709         * modules/isblank-tests (Files): Likewise.
39710         * modules/lchown-tests (Files): Likewise.
39711         * modules/ldexpl-tests (Files): Likewise.
39712         * modules/link-tests (Files): Likewise.
39713         * modules/linkat-tests (Files): Likewise.
39714         * modules/lseek-tests (Files): Likewise.
39715         * modules/lstat-tests (Files): Likewise.
39716         * modules/mbrtowc-tests (Files): Likewise.
39717         * modules/mbsinit-tests (Files): Likewise.
39718         * modules/mbsnrtowcs-tests (Files): Likewise.
39719         * modules/mbsrtowcs-tests (Files): Likewise.
39720         * modules/memchr-tests (Files): Likewise.
39721         * modules/memcmp-tests (Files): Likewise.
39722         * modules/memmem-tests (Files): Likewise.
39723         * modules/memrchr-tests (Files): Likewise.
39724         * modules/mkdir-tests (Files): Likewise.
39725         * modules/mkfifo-tests (Files): Likewise.
39726         * modules/mkfifoat-tests (Files): Likewise.
39727         * modules/mknod-tests (Files): Likewise.
39728         * modules/nanosleep-tests (Files): Likewise.
39729         * modules/nl_langinfo-tests (Files): Likewise.
39730         * modules/obstack-printf-tests (Files): Likewise.
39731         * modules/open-tests (Files): Likewise.
39732         * modules/openat-tests (Files): Likewise.
39733         * modules/perror-tests (Files): Likewise.
39734         * modules/pipe2-tests (Files): Likewise.
39735         * modules/poll-tests (Files): Likewise.
39736         * modules/popen-tests (Files): Likewise.
39737         * modules/posix_spawn-tests (Files): Likewise.
39738         * modules/posix_spawnp-tests (Files): Likewise.
39739         * modules/pread-tests (Files): Likewise.
39740         * modules/printf-posix-tests (Files): Likewise.
39741         * modules/pty-tests (Files): Likewise.
39742         * modules/random_r-tests (Files): Likewise.
39743         * modules/rawmemchr-tests (Files): Likewise.
39744         * modules/readlink-tests (Files): Likewise.
39745         * modules/remove-tests (Files): Likewise.
39746         * modules/rename-tests (Files): Likewise.
39747         * modules/renameat-tests (Files): Likewise.
39748         * modules/rmdir-tests (Files): Likewise.
39749         * modules/round-tests (Files): Likewise.
39750         * modules/roundf-tests (Files): Likewise.
39751         * modules/roundl-tests (Files): Likewise.
39752         * modules/select-tests (Files): Likewise.
39753         * modules/setenv-tests (Files): Likewise.
39754         * modules/sigaction-tests (Files): Likewise.
39755         * modules/sleep-tests (Files): Likewise.
39756         * modules/snprintf-posix-tests (Files): Likewise.
39757         * modules/snprintf-tests (Files): Likewise.
39758         * modules/sprintf-posix-tests (Files): Likewise.
39759         * modules/stat-tests (Files): Likewise.
39760         * modules/strcasestr-tests (Files): Likewise.
39761         * modules/strchrnul-tests (Files): Likewise.
39762         * modules/strerror-tests (Files): Likewise.
39763         * modules/strsignal-tests (Files): Likewise.
39764         * modules/strstr-tests (Files): Likewise.
39765         * modules/strtod-tests (Files): Likewise.
39766         * modules/strverscmp-tests (Files): Likewise.
39767         * modules/symlink-tests (Files): Likewise.
39768         * modules/symlinkat-tests (Files): Likewise.
39769         * modules/times-tests (Files): Likewise.
39770         * modules/trunc-tests (Files): Likewise.
39771         * modules/truncf-tests (Files): Likewise.
39772         * modules/truncl-tests (Files): Likewise.
39773         * modules/tsearch-tests (Files): Likewise.
39774         * modules/uname-tests (Files): Likewise.
39775         * modules/unlink-tests (Files): Likewise.
39776         * modules/unsetenv-tests (Files): Likewise.
39777         * modules/usleep-tests (Files): Likewise.
39778         * modules/utimensat-tests (Files): Likewise.
39779         * modules/vasprintf-tests (Files): Likewise.
39780         * modules/vdprintf-posix-tests (Files): Likewise.
39781         * modules/vfprintf-posix-tests (Files): Likewise.
39782         * modules/vprintf-posix-tests (Files): Likewise.
39783         * modules/vsnprintf-posix-tests (Files): Likewise.
39784         * modules/vsnprintf-tests (Files): Likewise.
39785         * modules/vsprintf-posix-tests (Files): Likewise.
39786         * modules/wcrtomb-tests (Files): Likewise.
39787         * modules/wcsnrtombs-tests (Files): Likewise.
39788         * modules/wcsrtombs-tests (Files): Likewise.
39789         * modules/wcwidth-tests (Files): Likewise.
39790         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39791         * tests/test-isinf.c (isinf): Likewise.
39792         * tests/test-isnan.c (isnan): Likewise.
39793         * tests/test-signbit.c (signbit): Likewise.
39794         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39795         declaration, either as macro or with correct signature.
39796         (select): Ensure function under test is declared with correct
39797         signature in correct header.
39798         * tests/test-atexit.c (atexit): Likewise.
39799         * tests/test-btowc.c (btowc): Likewise.
39800         * tests/test-canonicalize-lgpl.c (realpath)
39801         (canonicalize_file_name): Likewise.
39802         * tests/test-ceilf1.c (ceilf): Likewise.
39803         * tests/test-ceill.c (ceill): Likewise.
39804         * tests/test-chown.c (chown): Likewise.
39805         * tests/test-dprintf-posix.c (dprintf): Likewise.
39806         * tests/test-dup2.c (dup2): Likewise.
39807         * tests/test-dup3.c (dup3): Likewise.
39808         * tests/test-duplocale.c (duplocale): Likewise.
39809         * tests/test-fchdir.c (fchdir): Likewise.
39810         * tests/test-fchownat.c (fchownat): Likewise.
39811         * tests/test-fcntl.c (fcntl): Likewise.
39812         * tests/test-fdopendir.c (fdopendir): Likewise.
39813         * tests/test-fflush.c (fflush): Likewise.
39814         * tests/test-flock.c (flock): Likewise.
39815         * tests/test-floorf1.c (floorf): Likewise.
39816         * tests/test-floorl.c (floorl): Likewise.
39817         * tests/test-fnmatch.c (fnmatch): Likewise.
39818         * tests/test-fopen.c (fopen): Likewise.
39819         * tests/test-fprintf-posix.c (fprintf): Likewise.
39820         * tests/test-freopen.c (freopen): Likewise.
39821         * tests/test-frexp.c (frexp): Likewise.
39822         * tests/test-frexpl.c (frexpl): Likewise.
39823         * tests/test-fseek.c (fseek): Likewise.
39824         * tests/test-fseeko.c (fseeko): Likewise.
39825         * tests/test-fstatat.c (fstatat): Likewise.
39826         * tests/test-fsync.c (fsync): Likewise.
39827         * tests/test-ftell.c (ftell): Likewise.
39828         * tests/test-ftello.c (ftello): Likewise.
39829         * tests/test-futimens.c (futimens): Likewise.
39830         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39831         (gai_strerror): Likewise.
39832         * tests/test-getcwd.c (getcwd): Likewise.
39833         * tests/test-getdelim.c (getdelim): Likewise.
39834         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39835         * tests/test-getgroups.c (getgroups): Likewise.
39836         * tests/test-gethostname.c (gethostname): Likewise.
39837         * tests/test-getline.c (getline): Likewise.
39838         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39839         Likewise.
39840         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39841         * tests/test-glob.c (glob, globfree): Likewise.
39842         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39843         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39844         * tests/test-inet_pton.c (inet_pton): Likewise.
39845         * tests/test-isblank.c (isblank): Likewise.
39846         * tests/test-lchown.c (lchown): Likewise.
39847         * tests/test-ldexpl.c (ldexpl): Likewise.
39848         * tests/test-link.c (link): Likewise.
39849         * tests/test-linkat.c (linkat): Likewise.
39850         * tests/test-lseek.c (lseek): Likewise.
39851         * tests/test-lstat.c (lstat): Likewise.
39852         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39853         * tests/test-mbsinit.c (mbsinit): Likewise.
39854         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39855         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39856         * tests/test-memchr.c (memchr): Likewise.
39857         * tests/test-memcmp.c (memcmp): Likewise.
39858         * tests/test-memmem.c (memmem): Likewise.
39859         * tests/test-memrchr.c (memrchr): Likewise.
39860         * tests/test-mkdir.c (mkdir): Likewise.
39861         * tests/test-mkdirat.c (mkdirat): Likewise.
39862         * tests/test-mkfifo.c (mkfifo): Likewise.
39863         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39864         * tests/test-mknod.c (mknod): Likewise.
39865         * tests/test-nanosleep.c (nanosleep): Likewise.
39866         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39867         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39868         Likewise.
39869         * tests/test-open.c (open): Likewise.
39870         * tests/test-openat.c (openat): Likewise.
39871         * tests/test-perror.c (perror): Likewise.
39872         * tests/test-pipe2.c (pipe2): Likewise.
39873         * tests/test-poll.c (poll): Likewise.
39874         * tests/test-popen.c (popen, pclose): Likewise.
39875         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39876         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39877         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39878         (posix_spawn_file_actions_destroy)
39879         (posix_spawn_file_actions_addclose)
39880         (posix_spawn_file_actions_addopen)
39881         (posix_spawn_file_actions_adddup2): Likewise.
39882         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39883         * tests/test-pread.c (pread): Likewise.
39884         * tests/test-printf-posix.c (printf): Likewise.
39885         * tests/test-pty.c (openpty, forkpty): Likewise.
39886         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39887         (random_r): Likewise.
39888         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39889         * tests/test-readlink.c (readlink): Likewise.
39890         * tests/test-remove.c (remove): Likewise.
39891         * tests/test-rename.c (rename): Likewise.
39892         * tests/test-renameat.c (renameat): Likewise.
39893         * tests/test-rmdir.c (rmdir): Likewise.
39894         * tests/test-round1.c (round): Likewise.
39895         * tests/test-roundf1.c (roundf): Likewise.
39896         * tests/test-roundl.c (roundl): Likewise.
39897         * tests/test-setenv.c (setenv): Likewise.
39898         * tests/test-sigaction.c (sigaction): Likewise.
39899         * tests/test-sleep.c (sleep): Likewise.
39900         * tests/test-snprintf.c (snprintf): Likewise.
39901         * tests/test-sprintf-posix.c (sprintf): Likewise.
39902         * tests/test-stat.c (stat): Likewise.
39903         * tests/test-stpncpy.c (stpncpy): Likewise.
39904         * tests/test-strcasestr.c (strcasestr): Likewise.
39905         * tests/test-strchrnul.c (strchrnul): Likewise.
39906         * tests/test-strerror.c (strerror): Likewise.
39907         * tests/test-strsignal.c (strsignal): Likewise.
39908         * tests/test-strstr.c (strstr): Likewise.
39909         * tests/test-strtod.c (strtod): Likewise.
39910         * tests/test-strverscmp.c (strverscmp): Likewise.
39911         * tests/test-symlink.c (symlink): Likewise.
39912         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39913         * tests/test-times.c (times): Likewise.
39914         * tests/test-trunc1.c (trunc): Likewise.
39915         * tests/test-truncf1.c (truncf): Likewise.
39916         * tests/test-truncl.c (truncl): Likewise.
39917         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39918         Likewise.
39919         * tests/test-uname.c (uname): Likewise.
39920         * tests/test-unlink.c (unlink): Likewise.
39921         * tests/test-unlinkat.c (unlinkat): Likewise.
39922         * tests/test-unsetenv.c (unsetenv): Likewise.
39923         * tests/test-usleep.c (usleep): Likewise.
39924         * tests/test-utimensat.c (utimensat): Likewise.
39925         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39926         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39927         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39928         * tests/test-vprintf-posix.c (vprintf): Likewise.
39929         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39930         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39931         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39932         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39933         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39934         * tests/test-wcwidth.c (wcwidth): Likewise.
39935
39936         build: pull in conditional headers during GNULIB_POSIXCHECK
39937         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39938         definitions from any conditionally-included headers.
39939         * lib/stdlib.in.h (includes): Likewise.
39940         * lib/unistd.in.h (includes): Likewise.
39941
39942 2009-12-24  Bruno Haible  <bruno@clisp.org>
39943
39944         * tests/test-argv-iter.c: Include header file being tested immediately
39945         after config.h.
39946         * tests/test-base64.c: Likewise.
39947         * tests/test-flock.c: Likewise.
39948         * tests/test-fsync.c: Likewise.
39949         * tests/test-getdate.c: Likewise.
39950         * tests/test-getndelim2.c: Likewise.
39951         * tests/test-isfinite.c: Likewise.
39952         * tests/test-isinf.c: Likewise.
39953         * tests/test-strerror.c: Likewise.
39954         * tests/test-strsignal.c: Likewise.
39955
39956 2009-12-23  Eric Blake  <ebb9@byu.net>
39957
39958         unistd: work around cygwin bug
39959         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39960         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39961         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39962
39963 2009-12-23  Bruno Haible  <bruno@clisp.org>
39964
39965         localename: More tests.
39966         * tests/test-localename.c (SIZEOF): New macro.
39967         (categories): New variable.
39968         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39969         test_locale_name_default): Add test w.r.t. thread locale.
39970         (test_locale_name_thread): New function.
39971         (main): Invoke it.
39972
39973         localename: Make aware of thread locale.
39974         * lib/localename.h (gl_locale_name_thread): New declaration.
39975         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39976         behaviour with respect to thread locale.
39977         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39978         <langinfo.h>, glthread/lock.h.
39979         (SIZE_BITS): New macro.
39980         (string_hash): New function.
39981         (struct hash_node): New type.
39982         (HASH_TABLE_SIZE): New macro.
39983         (struniq_hash_table, struniq_lock): New variables.
39984         (struniq): New function.
39985         (gl_locale_name_thread): New function.
39986         (gl_locale_name): Invoke it.
39987         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39988         * modules/localename (Depends-on): Add lock.
39989         Reported by Mike Gran <spk121@yahoo.com>.
39990
39991 2009-12-23  Eric Blake  <ebb9@byu.net>
39992
39993         va-args: new module
39994         * modules/va-args: New file.
39995         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39996         * MODULES.html.sh (Core language properties): Mention it.
39997
39998         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39999         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40000         named alias for __attribute__((__unused__)).
40001         * lib/chown.c: Update client.
40002         * lib/fchmodat.c: Likewise.
40003         * lib/fts.c: Likewise.
40004         * lib/getdate.y: Likewise.
40005         * lib/getgroups.c: Likewise.
40006         * lib/getopt.c: Likewise.
40007         * lib/getugroups.c: Likewise.
40008         * lib/mkdir.c: Likewise.
40009         * lib/mkfifo.c: Likewise.
40010         * lib/mkfifoat.c: Likewise.
40011         * lib/mknod.c: Likewise.
40012         * lib/mknodat.c: Likewise.
40013         * lib/readlink.c: Likewise.
40014         * lib/se-context.in.h: Likewise.
40015         * lib/se-selinux.in.h: Likewise.
40016         * lib/sockets.c: Likewise.
40017         * lib/symlink.c: Likewise.
40018         * lib/symlinkat.c: Likewise.
40019         * lib/unicodeio.c: Likewise.
40020         * lib/unistr.h: Likewise.
40021         * tests/test-areadlink.c: Likewise.
40022         * tests/test-areadlinkat.c: Likewise.
40023         * tests/test-filenamecat.c: Likewise.
40024         * tests/test-fseeko.c: Likewise.
40025         * tests/test-ftello.c: Likewise.
40026         * tests/test-getdate.c: Likewise.
40027         * tests/test-getgroups.c: Likewise.
40028         * tests/test-gethostname.c: Likewise.
40029         * tests/test-quotearg.c: Likewise.
40030         * tests/test-version-etc.c: Likewise.
40031         * tests/test-xalloc-die.c: Likewise.
40032         * tests/test-xfprintf-posix.c: Likewise.
40033         * tests/test-xprintf-posix.c: Likewise.
40034         * tests/test-xvasprintf.c: Likewise.
40035
40036         tests: avoid compiler warnings
40037         * tests/test-fcntl.c (main): Delete unused parameters.
40038         * tests/test-freopen-safer.c (main): Likewise.
40039         * tests/test-xalloc-die.c (main): Mark unused parameters.
40040         * tests/test-fseeko.c (main): Likewise.
40041         * tests/test-ftello.c (main): Likewise.
40042         * tests/test-nanosleep.c (main): Avoid declaration warning.
40043         * tests/test-sleep.c (main): Likewise.
40044         * tests/test-unsetenv.c (main): Silence warning about string
40045         literal.
40046         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40047
40048 2009-12-23  Bruno Haible  <bruno@clisp.org>
40049
40050         * tests/test-localename.c (test_locale_name): New function, extracted
40051         from main. Also test mixed situations.
40052         (test_locale_name_posix, test_locale_name_environ,
40053         test_locale_name_default): New functions.
40054         (main): Invoke them all.
40055         * modules/localename-tests (configure.ac): Test for newlocale.
40056
40057 2009-12-23  Bruno Haible  <bruno@clisp.org>
40058
40059         unistd: Ensure getcwd gets declared before being overridden.
40060         * lib/unistd.in.h: Conditionally include <io.h>.
40061
40062 2009-12-22  Bruno Haible  <bruno@clisp.org>
40063
40064         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40065         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40066         (gl_WCHAR_H): Invoke it.
40067         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40068         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40069         Reported by Karl Berry <karl@freefriends.org>.
40070
40071 2009-12-22  Eric Blake  <ebb9@byu.net>
40072
40073         math, unistd: avoid redundant includes
40074         * lib/math.in.h (isnan): No need to re-include <math.h>.
40075         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40076
40077         getsubopt: work around cygwin bug
40078         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40079         avoid conflicting with system getsubopt.
40080         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40081         bug.
40082
40083         getopt: synchronize from glibc
40084         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40085         parameter order.  Adjust all callers.
40086         (_getopt_internal_r, main): Adjust quoting in error messages.
40087         Drop considerations for outdated POSIX 1003.2 error message.
40088         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40089         callers.
40090         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40091
40092         test-getopt: test stderr behavior
40093         * modules/getopt-posix-tests (Depends-on): Add dup2.
40094         * tests/test-getopt.c (ASSERT): Avoid stderr.
40095         (main): Move stderr to a temporary file.
40096         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40097         Instead, add parameter to inform caller if output occurred.
40098         (test_getopt): Adjust all existing tests to expect silence, and
40099         add new tests of leading ":".
40100         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40101         glibc shortcomings with leading "-:" or "+:" in optstring.
40102         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40103         Likewise.
40104         * doc/posix-functions/getopt.texi (getopt): Likewise.
40105
40106         test-getopt: enhance test
40107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40108         supports optind=0.
40109         * tests/test-getopt.c (OPTIND_MIN): Move...
40110         * tests/test-getopt.h (OPTIND_MIN): ...here.
40111         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40112         Require that optind=0 works, since modern BSD supports it in
40113         addition to optreset, and since coreutils expects it.
40114         (test_getopt_long_only): New test.
40115         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40116         glibc shortcomings with 'W;', and enforcement of optind=0.
40117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40118         Likewise.
40119
40120 2009-12-21  Bruno Haible  <bruno@clisp.org>
40121
40122         localename: Improvements for MacOS X and Cygwin.
40123         * lib/localename.h (gl_locale_name_environ): New declaration.
40124         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40125         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40126         (gl_locale_name_posix): Invoke it.
40127         (gl_locale_name_default): Add comments. Use Windows native API also on
40128         Cygwin.
40129
40130 2009-12-21  Bruno Haible  <bruno@clisp.org>
40131
40132         Update list of Win32 locale ids.
40133         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40134         (LANG_SAMI): Renamed from LANG_SAAMI.
40135         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40136         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40137         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40138         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40139         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40140         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40141         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40142         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40143         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40144         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40145         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40146         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40147         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40148         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40149         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40150         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40151         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40152         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40153         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40154         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40155         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40156         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40157         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40158         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40159         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40160         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40161         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40162         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40163         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40164         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40165         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40166         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40167         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40168         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40169         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40170         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40171         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40172         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40173         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40174         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40175         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40176         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40177         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40178         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40179         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40180         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40181         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40182         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40183         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40184         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40185         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40186         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40187         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40188         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40189         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40190         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40191         Add more languages and countries for Sami, Sorbian. Add more countries
40192         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40193         for Pashto. Change country for Syriac, Tswana.
40194
40195 2009-12-21  Eric Blake  <ebb9@byu.net>
40196
40197         test-utimens: avoid spurious failure
40198         * tests/test-chown.h (nap): Factor...
40199         * tests/nap.h: ...into new file.
40200         * tests/test-lchown.h (nap): Avoid duplication.
40201         * tests/test-utimens-common.h (nap): Use shared implementation,
40202         necessary on file systems with 1-second resolution.
40203         * modules/chown-tests (Files): Include new file.
40204         * modules/fdutimensat-tests (Files): Likewise.
40205         * modules/futimens-tests (Files): Likewise.
40206         * modules/lchown-tests (Files): Likewise.
40207         * modules/openat-tests (Files): Likewise.
40208         * modules/utimens-tests (Files): Likewise.
40209         * modules/utimensat-tests (Files): Likewise.
40210
40211 2009-12-19  Eric Blake  <ebb9@byu.net>
40212
40213         futimens, utimensat: work around Linux bug
40214         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40215         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40216         * lib/utimensat.c (rpl_utimensat): Work around it.
40217         * lib/futimens.c (rpl_futimens): Adjust comment.
40218
40219         utimens: work around Linux ctime bug
40220         * lib/utimens.c (detect_ctime_bug): New helper function.
40221         (update_timespec): Differentiate between workaround needed for
40222         this bug vs. what is needed for systems that lack utimensat.
40223         (fdutimens, lutimens): Work around bug.
40224
40225         utimens: check for ctime update
40226         * tests/test-utimens-common.h (check_ctime): Define.
40227         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40228         * tests/test-futimens.h (test_futimens): Likewise.
40229         * tests/test-lutimens.h (test_lutimens): Likewise.
40230         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40231         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40232
40233 2009-12-19  Bruno Haible  <bruno@clisp.org>
40234
40235         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40236         * tests/test-dprintf-posix2.sh: New file.
40237         * tests/test-dprintf-posix2.c: New file.
40238         * modules/dprintf-posix-tests (Files): Add them.
40239         (configure.ac): Check for getrlimit and setrlimit.
40240         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40241
40242 2009-12-19  Bruno Haible  <bruno@clisp.org>
40243
40244         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40245         * tests/test-fprintf-posix3.sh: New file.
40246         * tests/test-fprintf-posix3.c: New file.
40247         * modules/fprintf-posix-tests (Files): Add them.
40248         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40249
40250 2009-12-19  Eric Blake  <ebb9@byu.net>
40251
40252         dirfd: fix prototype
40253         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40254         * lib/dirfd.c (dirfd): Likewise.
40255
40256         canonicalize: reduce memory usage
40257         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40258         allocation to size.
40259         Reported by Solar Designer <solar@openwall.com>.
40260
40261 2009-12-19  Bruno Haible  <bruno@clisp.org>
40262
40263         New module attribute 'Applicability'.
40264         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40265         * gnulib-tool: New option --extract-applicability.
40266         (func_usage): Document it.
40267         (sed_extract_prog): Recognize it.
40268         (func_get_applicability): New function.
40269         (func_import): Generalize handling of 'link-warning' module.
40270         * modules/link-warning (Applicability): New section.
40271         * modules/arg-nonnull (Applicability): New section.
40272         Repoted by Simon Josefsson <simon@josefsson.org>.
40273
40274 2009-12-19  Bruno Haible  <bruno@clisp.org>
40275
40276         fflush: tweak
40277         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40278         * lib/fseeko.c (rpl_fseeko): Likewise.
40279
40280 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40281
40282         * lib/gl_list.h: Fix typo in comment.
40283
40284 2009-12-16  Eric Blake  <ebb9@byu.net>
40285
40286         fcntl: use to simplify other modules
40287         * modules/cloexec (Depends-on): Add fcntl.
40288         * modules/fchdir (Depends-on): Likewise.
40289         * modules/fd-safer-flag (Depends-on): Likewise.
40290         * modules/unistd-safer (Depends-on): Likewise.
40291         * modules/dup3 (configure.ac): Set module indicator.
40292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40293         missing.
40294         * lib/fchdir.c (_gl_register_dup): Fix comment.
40295         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40296         * lib/dup-safer.c (dup_safer): Likewise.
40297         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40298         * lib/dup3.c (dup3): Likewise.
40299         * tests/test-fchdir.c (main): Enhance test.
40300         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40301
40302         fcntl: port portions of fcntl to mingw
40303         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40304         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40305         replacement for mingw.
40306         * modules/fcntl (Description): Update.
40307         (Depends-on): Add dup2.
40308         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40309         * modules/fcntl-h (Makefile.am): Substitute it.
40310         * lib/fcntl.in.h (fcntl): Update declaration.
40311         (F_DUPFD, F_GETFD): New macros, when needed.
40312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40313         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40314         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40315         we now guarantee.
40316
40317         fcntl: work around cygwin bug in F_DUPFD
40318         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40319         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40320         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40321         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40322         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40323
40324         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40325         * modules/fcntl (Files): List new files.
40326         (configure.ac): Run a test.
40327         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40328         * lib/fcntl.c (rpl_fcntl): Likewise.
40329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40330         (gl_FCNTL_H): Always replace fcntl.h.
40331         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40332         * lib/fcntl.in.h (fcntl): Declare replacement.
40333         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40334         needed, plus a witness.
40335         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40336         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40337         * tests/test-fcntl.c: New file.
40338         * modules/fcntl-tests: Likewise.
40339
40340         binary-io: avoid potential compilation warning
40341         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40342         directives.
40343
40344         fflush: avoid compilation error on NetBSD
40345         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40346         between off_t and fpos_t, since the latter is sometimes a struct.
40347         * lib/fseeko.c (rpl_fseeko): Likewise.
40348         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40349
40350 2009-12-15  Eric Blake  <ebb9@byu.net>
40351
40352         fcntl-h, stdio, sys_ioctl: fix declarations
40353         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40354         function must not take arguments.
40355         * lib/sys_ioctl.in.h (ioctl): Likewise.
40356         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40357         (open): Add a link warning.
40358
40359 2009-12-15  Jim Meyering  <meyering@redhat.com>
40360
40361         areadlink, areadlink-with-size: relax license to LGPLv2+
40362         * modules/areadlink (License): Relax to LGPLv2+.
40363         * modules/areadlink-with-size (License): Likewise.
40364
40365 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40366             Bruno Haible  <bruno@clisp.org>
40367
40368         *printf: Fix memory leak.
40369         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40370         * lib/vfprintf.c (vfprintf): Likewise.
40371         * lib/dprintf.c (dprintf): Likewise.
40372         * lib/vdprintf.c (vdprintf): Likewise.
40373
40374 2009-12-14  Eric Blake  <ebb9@byu.net>
40375
40376         accept4: adjust module dependencies
40377         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40378
40379         utimens: one more try at avoiding compiler warning
40380         * lib/utimens.c (lutimens): Lower scope of result.
40381
40382 2009-12-13  Bruno Haible  <bruno@clisp.org>
40383
40384         Move the malloc checking from module 'list' to new module 'xlist'.
40385         * modules/xlist: New file.
40386         * lib/gl_xlist.h: New file.
40387         * lib/gl_xlist.c: New file.
40388         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40389         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40390         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40391         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40392         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40393         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40394         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40395         gl_sortedlist_nx_add): New declarations.
40396         (struct gl_list_implementation): Rename and change methods accordingly.
40397         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40398         (gl_list_nx_create): Renamed from gl_list_create.
40399         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40400         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40401         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40402         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40403         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40404         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40405         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40406         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40407         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40408         gl_list_create_empty.
40409         (gl_list_nx_create): Renamed from gl_list_create.
40410         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40411         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40412         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40413         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40414         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40415         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40416         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40417         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40418         * lib/gl_array_list.c: Don't include xalloc.h.
40419         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40420         NULL upon out-of-memory.
40421         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40422         out-of-memory.
40423         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40424         Change return type to 'int'.
40425         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40426         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40427         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40428         upon out-of-memory.
40429         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40430         upon out-of-memory.
40431         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40432         upon out-of-memory.
40433         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40434         upon out-of-memory.
40435         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40436         out-of-memory.
40437         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40438         Update.
40439         (gl_array_list_implementation): Update.
40440         * lib/gl_carray_list.c: Don't include xalloc.h.
40441         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40442         Return NULL upon out-of-memory.
40443         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40444         out-of-memory.
40445         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40446         Change return type to 'int'.
40447         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40448         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40449         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40450         upon out-of-memory.
40451         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40452         upon out-of-memory.
40453         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40454         out-of-memory.
40455         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40456         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40457         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40458         Update.
40459         (gl_carray_list_implementation): Update.
40460         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40461         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40462         gl_linked_create_empty. Return NULL upon out-of-memory.
40463         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40464         out-of-memory.
40465         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40466         Change return type to 'int'. Return -1 upon out-of-memory.
40467         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40468         out-of-memory.
40469         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40470         upon out-of-memory.
40471         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40472         upon out-of-memory.
40473         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40474         NULL upon out-of-memory.
40475         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40476         upon out-of-memory.
40477         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40478         out-of-memory.
40479         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40480         Update.
40481         * lib/gl_linked_list.c: Don't include xalloc.h.
40482         (gl_linked_list_implementation): Update.
40483         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40484         (add_to_bucket): Change return type to 'int'.
40485         (gl_linkedhash_list_implementation): Update.
40486         * lib/gl_anytree_list1.h (free_subtree): New function.
40487         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40488         gl_tree_create_empty. Return NULL upon out-of-memory.
40489         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40490         Change return type to 'int'. Return -1 upon out-of-memory.
40491         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40492         out-of-memory.
40493         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40494         (gl_tree_remove_node): New function, moved here from
40495         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40496         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40497         Update.
40498         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40499         malloc, not xmalloc. Return NULL upon out-of-memory.
40500         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40501         out-of-memory.
40502         (gl_tree_remove_node_from_tree): New function, extracted from
40503         gl_tree_remove_node.
40504         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40505         upon out-of-memory.
40506         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40507         out-of-memory.
40508         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40509         upon out-of-memory.
40510         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40511         upon out-of-memory.
40512         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40513         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40514         not xmalloc. Return NULL upon out-of-memory.
40515         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40516         out-of-memory.
40517         (gl_tree_remove_node_from_tree): New function, extracted from
40518         gl_tree_remove_node.
40519         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40520         upon out-of-memory.
40521         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40522         out-of-memory.
40523         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40524         upon out-of-memory.
40525         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40526         upon out-of-memory.
40527         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40528         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40529         gl_anytree_list1.h before gl_anyavltree_list2.h.
40530         (gl_avltree_list_implementation): Update.
40531         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40532         gl_anytree_list1.h before gl_anyavltree_list2.h.
40533         (gl_rbtree_list_implementation): Update.
40534         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40535         Change return type to 'int'. Return -1 upon out-of-memory. Use
40536         __builtin_expect.
40537         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40538         (gl_avltreehash_list_implementation): Update.
40539         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40540         (gl_rbtreehash_list_implementation): Update.
40541         * modules/array-list (Depends-on): Remove xalloc.
40542         * modules/carray-list (Depends-on): Likewise.
40543         * modules/linked-list (Depends-on): Likewise.
40544         * modules/linkedhash-list (Depends-on): Likewise.
40545         * modules/avltree-list (Depends-on): Likewise.
40546         * modules/rbtree-list (Depends-on): Likewise.
40547         * modules/avltreehash-list (Depends-on): Likewise.
40548         * modules/rbtreehash-list (Depends-on): Likewise.
40549
40550         * modules/xsublist: New file.
40551         * lib/gl_xsublist.h: New file.
40552         * lib/gl_xsublist.c: New file.
40553         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40554         (gl_sublist_nx_create): New declaration.
40555         * lib/gl_sublist.c: Don't include xalloc.h.
40556         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40557         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40558         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40559         Change return type to 'int'. Return -1 upon out-of-memory.
40560         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40561         upon out-of-memory.
40562         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40563         NULL upon out-of-memory.
40564         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40565         upon out-of-memory.
40566         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40567         NULL upon out-of-memory.
40568         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40569         NULL upon out-of-memory.
40570         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40571         upon out-of-memory.
40572         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40573         (gl_sublist_list_implementation): Update.
40574         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40575         upon out-of-memory.
40576         * modules/sublist (Depends-on): Remove xalloc.
40577
40578         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40579         * tests/test-carray_list.c: Likewise.
40580         * tests/test-linked_list.c: Likewise.
40581         * tests/test-linkedhash_list.c: Likewise.
40582         * tests/test-avltree_list.c: Likewise.
40583         * tests/test-rbtree_list.c: Likewise.
40584         * tests/test-avltreehash_list.c: Likewise.
40585         * tests/test-rbtreehash_list.c: Likewise.
40586         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40587         * modules/carray-list-tests (Makefile.am): Likewise.
40588         * modules/linked-list-tests (Makefile.am): Likewise.
40589         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40590         * modules/avltree-list-tests (Makefile.am): Likewise.
40591         * modules/rbtree-list-tests (Makefile.am): Likewise.
40592         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40593         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40594
40595         * NEWS: Mention the changes.
40596
40597         * lib/clean-temp.c: Include gl_xlist.h.
40598         * modules/clean-temp (Depends-on): Add xlist.
40599
40600         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40601         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40602
40603         * tests/test-array_oset.c: Include gl_xlist.h.
40604         * modules/array-oset-tests (Depends-on): Add xlist.
40605
40606         Reported by José E. Marchesi <jemarch@gnu.org>.
40607
40608 2009-12-13  Bruno Haible  <bruno@clisp.org>
40609
40610         Move the malloc checking from module 'oset' to new module 'xoset'.
40611         * modules/xoset: New file.
40612         * lib/gl_xoset.h: New file.
40613         * lib/gl_xoset.c: New file.
40614         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40615         declarations.
40616         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40617         (struct gl_oset_implementation): Rename and change methods accordingly.
40618         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40619         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40620         'int'. Mark as __warn_unused_result__.
40621         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40622         gl_oset_create_empty.
40623         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40624         'int'.
40625         * lib/gl_array_oset.c: Don't include xalloc.h.
40626         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40627         malloc, not xmalloc.
40628         (grow): Change return type to 'int'. Don't call xalloc_die.
40629         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40630         to 'int'.
40631         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40632         'int'.
40633         (gl_array_oset_implementation): Update.
40634         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40635         gl_tree_create_empty.
40636         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40637         'int'.
40638         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40639         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40640         xmalloc.
40641         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40642         not xmalloc.
40643         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40644         xmalloc.
40645         (gl_avltree_oset_implementation): Update.
40646         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40647         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40648         xmalloc.
40649         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40650         not xmalloc.
40651         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40652         xmalloc.
40653         (gl_rbtree_oset_implementation): Update.
40654         * modules/array-oset (Depends-on): Remove xalloc.
40655         * modules/avltree-oset (Depends-on): Likewise.
40656         * modules/rbtree-oset (Depends-on): Likewise.
40657         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40658         * tests/test-avltree_oset.c: Likewise.
40659         * tests/test-rbtree_oset.c: Likewise.
40660         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40661         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40662         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40663         * NEWS: Mention the change.
40664
40665 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40666
40667         maint.mk: allow a project to override release-prep commands
40668         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40669         commands into a new rule.
40670         (release-prep): New rule.
40671         (release-prep-hook): New overridable variable.
40672
40673 2009-12-13  Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40676
40677 2009-12-13  Jim Meyering  <meyering@redhat.com>
40678
40679         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40680         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40681
40682 2009-12-12  Bruno Haible  <bruno@clisp.org>
40683
40684         duplocale: Tweak.
40685         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40686
40687 2009-12-12  Karl Berry  <karl@gnu.org>
40688
40689         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40690
40691 2009-12-12  Bruno Haible  <bruno@clisp.org>
40692
40693         * m4/po.m4: Undo incorrect untabification.
40694
40695 2009-12-12  Bruno Haible  <bruno@clisp.org>
40696
40697         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40698         * modules/c-strtod (Depends-on): Add locale.
40699         * modules/c-strtold (Depends-on): Likewise.
40700
40701 2009-12-12  Bruno Haible  <bruno@clisp.org>
40702
40703         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40704
40705 2009-12-11  Eric Blake  <ebb9@byu.net>
40706
40707         setenv: relax requirement in light of POSIX ruling
40708         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40709         not NULL.
40710         * tests/test-setenv.c (main): Relax test.
40711         * tests/test-unsetenv.c (main): Likewise.
40712         * doc/posix-functions/setenv.texi (setenv): Document this.
40713         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40714
40715 2009-12-11  Bruno Haible  <bruno@clisp.org>
40716
40717         New module 'fd-safer-flag'.
40718         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40719         * lib/dup-safer.c (dup_safer_flag): Remove function.
40720         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40721         * lib/fd-safer.c (fd_safer_flag): Remove function.
40722         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40723         * modules/cloexec (configure.ac): Drop indicator macro.
40724         * modules/fd-safer-flag: New file.
40725         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40726         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40727         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40728
40729 2009-12-11  Bruno Haible  <bruno@clisp.org>
40730
40731         Tests for module 'nl_langinfo'.
40732         * modules/nl_langinfo-tests: New file.
40733         * tests/test-nl_langinfo.sh: New file.
40734         * tests/test-nl_langinfo.c: New file.
40735
40736         New module 'nl_langinfo'.
40737         * lib/nl_langinfo.c: New file.
40738         * m4/nl_langinfo.m4: New file.
40739         * modules/nl_langinfo: New file.
40740         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40741
40742 2009-12-11  Bruno Haible  <bruno@clisp.org>
40743
40744         Tests for module 'langinfo'.
40745         * modules/langinfo-tests: New file.
40746         * tests/test-langinfo.c: New file.
40747
40748         New module 'langinfo'.
40749         * lib/langinfo.in.h: New file.
40750         * m4/langinfo_h.m4: New file.
40751         * modules/langinfo: New file.
40752         * doc/posix-headers/langinfo.texi: Mention the new module.
40753
40754 2009-12-11  Bruno Haible  <bruno@clisp.org>
40755
40756         * lib/config.charset: Untabify.
40757
40758 2009-12-11  Bruno Haible  <bruno@clisp.org>
40759
40760         * modules/unistd-safer (configure.ac): Drop indicator macro.
40761
40762 2009-12-11  Bruno Haible  <bruno@clisp.org>
40763
40764         Move pipe2-safer code to its own file.
40765         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40766         * lib/pipe-safer.c (pipe2_safer): Remove function.
40767         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40768         (Makefile.am): Add it to lib_SOURCES.
40769
40770 2009-12-10  Bruno Haible  <bruno@clisp.org>
40771
40772         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40773
40774 2009-12-10  Bruno Haible  <bruno@clisp.org>
40775
40776         Declare which arguments expect non-NULL values, for GCC and clang.
40777         * build-aux/arg-nonnull.h: New file.
40778         * modules/arg-nonnull: New file.
40779         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40780         (inet_ntop, inet_pton): Use it.
40781         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40782         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40783         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40784         (open, openat): Use it.
40785         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40786         (fnmatch): Use it.
40787         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40788         (getopt, getopt_long, getopt_long_only): Use it.
40789         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40790         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40791         Use it.
40792         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40793         (iconv_open): Use it.
40794         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40795         (strtoimax, strtoumax): Use it.
40796         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40797         (duplocale): Use it.
40798         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40799         (frexp, frexpl): Use it.
40800         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40801         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40802         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40803         (tsearch, tfind, tdelete, twalk): Use it.
40804         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40805         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40806         sigpending): Use it.
40807         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40808         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40809         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40810         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40811         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40812         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40813         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40814         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40815         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40816         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40817         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40818         Use it.
40819         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40820         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40821         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40822         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40823         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40824         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40825         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40826         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40827         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40828         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40829         strtoull, unsetenv): Use it.
40830         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40831         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40832         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40833         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40834         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40835         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40836         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40837         (strcasecmp, strncasecmp): Use it.
40838         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40839         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40840         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40841         rpl_setsockopt): Use it.
40842         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40843         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40844         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40845         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40846         (gettimeofday): Use it.
40847         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40848         (times): Use it.
40849         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40850         (uname): Use it.
40851         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40852         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40853         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40854         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40855         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40856         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40857         unlinkat, write): Use it.
40858         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40859         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40860         * lib/argv-iter.h: Include arg-nonnull.h.
40861         (_ATTRIBUTE_NONNULL_): Remove macro.
40862         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40863         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40864         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40865         optimization.
40866         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40867         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40868         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40869         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40870         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40871         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40872         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40873         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40874         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40875         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40876         * modules/dirent (Depends-on): Add arg-nonnull.
40877         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40878         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40879         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40880         * modules/fnmatch (Depends-on): Add arg-nonnull.
40881         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40882         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40883         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40884         * modules/glob (Depends-on): Add arg-nonnull.
40885         (Makefile.am): Insert arg-nonnull.h into glob.h.
40886         * modules/iconv_open (Depends-on): Add arg-nonnull.
40887         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40888         * modules/inttypes (Depends-on): Add arg-nonnull.
40889         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40890         * modules/locale (Depends-on): Add arg-nonnull.
40891         (Makefile.am): Insert arg-nonnull.h into locale.h.
40892         * modules/math (Depends-on): Add arg-nonnull.
40893         (Makefile.am): Insert arg-nonnull.h into math.h.
40894         * modules/netdb (Depends-on): Add arg-nonnull.
40895         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40896         * modules/search (Depends-on): Add arg-nonnull.
40897         (Makefile.am): Insert arg-nonnull.h into search.h.
40898         * modules/signal (Depends-on): Add arg-nonnull.
40899         (Makefile.am): Insert arg-nonnull.h into signal.h.
40900         * modules/spawn (Depends-on): Add arg-nonnull.
40901         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40902         * modules/stdio (Depends-on): Add arg-nonnull.
40903         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40904         * modules/stdlib (Depends-on): Add arg-nonnull.
40905         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40906         * modules/string (Depends-on): Add arg-nonnull.
40907         (Makefile.am): Insert arg-nonnull.h into string.h.
40908         * modules/strings (Depends-on): Add arg-nonnull.
40909         (Makefile.am): Insert arg-nonnull.h into strings.h.
40910         * modules/sys_socket (Depends-on): Add arg-nonnull.
40911         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40912         * modules/sys_stat (Depends-on): Add arg-nonnull.
40913         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40914         * modules/sys_time (Depends-on): Add arg-nonnull.
40915         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40916         * modules/sys_times (Depends-on): Add arg-nonnull.
40917         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40918         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40919         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40920         * modules/time (Depends-on): Add arg-nonnull.
40921         (Makefile.am): Insert arg-nonnull.h into time.h.
40922         * modules/unistd (Depends-on): Add arg-nonnull.
40923         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40924         * modules/wchar (Depends-on): Add arg-nonnull.
40925         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40926         * modules/argv-iter (Depends-on): Add arg-nonnull.
40927         * tests/test-canonicalize.c (null_ptr): New function.
40928         (main): Use it.
40929         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40930         (main): Use it.
40931         * tests/test-memmem.c (null_ptr): New function.
40932         (main): Use it.
40933         Reported by Jim Meyering.
40934
40935 2009-12-10  Bruno Haible  <bruno@clisp.org>
40936
40937         Use spaces for indentation, not tabs.
40938         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40939         * m4/*.m4: Untabify.
40940         * build-aux/*.h: Untabify.
40941         * tests/**/*.[hc]: Untabify.
40942         * README: New section "Indent with spaces, not TABs", based on
40943         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40944         * NEWS: Mention the change.
40945
40946 2009-12-10  Bruno Haible  <bruno@clisp.org>
40947
40948         pty test: Fix link error.
40949         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40950         test_pty_LDADD.
40951
40952 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40953
40954         * modules/pty: New file.
40955         * modules/pty-tests: New file.
40956         * m4/pty.m4: New file.
40957         * tests/test-pty.c: New file.
40958         * doc/glibc-headers/pty.texi: Modified.
40959         * doc/glibc-functions/forkpty.texi: Modified.
40960         * doc/glibc-functions/openpty.texi: Modified.
40961
40962 2009-12-10  Bruno Haible  <bruno@clisp.org>
40963
40964         Avoid syntax error in C++ mode.
40965         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40966
40967 2009-12-10  Bruno Haible  <bruno@clisp.org>
40968
40969         Use sed with option -e.
40970         * gnulib-tool (func_version, func_emit_copyright_notice,
40971         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40972         option -e to sed.
40973         * modules/link-warning (Makefile.am): Likewise.
40974
40975 2009-12-10  Jim Meyering  <meyering@redhat.com>
40976
40977         mgetgroups: do not write bytes beyond end of malloc'd buffer
40978         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40979         username, we call getgroups with a one-element-shorter buffer,
40980         but still told it the length was original, max_n_groups.
40981
40982 2009-12-09  Eric Blake  <ebb9@byu.net>
40983
40984         cloexec: relax license
40985         * modules/cloexec (Maintainer): Add myself.
40986         (License): Use LGPL, not GPL.
40987
40988         link-warning: optimize generation
40989         * modules/link-warning (Makefile.am): Reduce process usage.
40990
40991 2009-12-09  Bruno Haible  <bruno@clisp.org>
40992
40993         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40994         workaround was added on 2009-11-17.
40995
40996 2009-12-09  Jim Meyering  <meyering@redhat.com>
40997             Bruno Haible  <bruno@clisp.org>
40998
40999         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41000         * modules/link-warning (Makefile.am): Make the comment-removing sed
41001         command more robust in the face of bootstrap-prepended comment lines.
41002
41003 2009-12-09  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41006         most one group.
41007
41008 2009-12-09  Simon Josefsson <simon@josefsson.org>
41009             Bruno Haible  <bruno@clisp.org>
41010
41011         * build-aux/link-warning.h: Add copyright notice.
41012         * modules/link-warning (Makefile.am): Generate link-warning.h from
41013         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41014         * NEWS: Mention change in link-warning module.
41015         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41016         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41017         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41018         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41019         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41020         * modules/math (Makefile.am): Add dependency to math.h.
41021         * modules/search (Makefile.am): Add dependency to search.h.
41022         * modules/signal (Makefile.am): Add dependency to signal.h.
41023         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41024         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41025         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41026         * modules/string (Makefile.am): Add dependency to string.h.
41027         * modules/strings (Makefile.am): Add dependency to strings.h.
41028         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41029         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41030         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41031         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41032         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41033         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41034         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41035         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41036         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41037
41038 2009-12-09  Bruno Haible  <bruno@clisp.org>
41039
41040         fchdir: Optimize away rpl_fstat when possible.
41041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41042         REPLACE_OPEN_DIRECTORY.
41043         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41044
41045 2009-12-09  Bruno Haible  <bruno@clisp.org>
41046
41047         * lib/fchdir.c: Update comment.
41048
41049 2009-12-09  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41052
41053 2009-12-08  Eric Blake  <ebb9@byu.net>
41054
41055         fchdir: avoid memory leak on re-registration.
41056         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41057
41058 2009-12-08  Jim Meyering  <meyering@redhat.com>
41059
41060         init.sh: avoid Solaris 10 /bin/sh portability problem
41061         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41062         sourced script:
41063           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41064           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41065           bar
41066         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41067         and two tests used that idiom.
41068         * tests/init.sh: Update suggested usage comments.
41069         (path_prepend_): New function, to be used in place
41070         of the --src-path=DIR option.
41071         (setup_): Move PATH-prepending code into path_prepend_.
41072         * tests/test-pread.sh: Adapt to new usage.
41073         * tests/test-xalloc-die.sh: Likewise.
41074
41075 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41076
41077         * doc/gnulib.texi (Glibc pty.h): Add.
41078         * doc/glibc-functions/forkpty.texi: Add.
41079         * doc/glibc-functions/openpty.texi: Add.
41080         Suggested by Bruno Haible.
41081
41082 2009-12-08  Eric Blake  <ebb9@byu.net>
41083
41084         fchdir: fix logic bugs
41085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41086         * tests/test-fchdir.c (main): Enhance test.
41087         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41088         is in use.
41089
41090         dup2: fix logic bugs
41091         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41092         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41093         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41094         exists.
41095         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41096
41097 2009-12-07  Eric Blake  <ebb9@byu.net>
41098
41099         unlink: fix m4 detection
41100         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41101
41102         unistd-safer: add unit test
41103         * modules/unistd-safer-tests: New file.
41104         * tests/test-dup-safer.c: Likewise.
41105         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41106         * tests/test-dup2.c (setmode): Likewise.
41107         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41108
41109         cloexec: preserve text vs. binary across dup_cloexec
41110         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41111         mode.
41112         * modules/dup2-tests (Depends-on): Add binary-io.
41113         * modules/cloexec-tests (Depends-on): Likewise.
41114         * tests/test-dup2.c (setmode, is_mode): New helpers.
41115         (main): Add tests that translation mode is preserved.
41116         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41117         Reported by Bruno Haible.
41118
41119         mgetgroups: reduce duplicate listings
41120         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41121         resulting array.
41122         * tests/test-chown.h (test_chown): Simplify client.
41123         * tests/test-lchown.h (test_lchown): Likewise.
41124
41125 2009-12-06  Bruno Haible  <bruno@clisp.org>
41126
41127         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41128         value.
41129
41130 2009-12-06  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/progname.c: Include stdio.h, stdlib.h.
41133         (set_program_name): Reject a NULL argument.
41134
41135 2009-12-05  Eric Blake  <ebb9@byu.net>
41136
41137         pipe2-safer: new module
41138         * modules/pipe2-safer: New file.
41139         * lib/unistd-safer.h (pipe2_safer): New prototype.
41140         * lib/unistd--.h (pipe2): New wrapper.
41141         * lib/pipe-safer.c (pipe2_safer): New function.
41142         * modules/pipe (Depends-on): Add pipe2-safer.
41143         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41144
41145         stdlib-safer: preserve cloexec flag for mkostemp[s]
41146         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41147         fd_safer_flag.
41148
41149         unistd-safer: allow preservation of cloexec status via flag
41150         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41151         prototypes.
41152         * lib/dup-safer.c (dup_safer_flag): New function.
41153         * lib/fd-safer.c (fd_safer_flag): Likewise.
41154         * modules/cloexec (configure.ac): Set witness.
41155
41156         test-dup2: enhance test
41157         * modules/dup2-tests (Depends-on): Add cloexec.
41158         * tests/test-dup2.c (main): Enhance test.
41159
41160         cloexec: add dup_cloexec
41161         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41162         header and comments.
41163         * lib/cloexec.c (set_cloexec_flag): Add comments.
41164         (dup_cloexec): New function, with mingw implementation borrowed
41165         from...
41166         * lib/w32spawn.h (dup_noinherit): ...here.
41167         * modules/execute (Depends-on): Add cloexec.
41168         * modules/pipe (Depends-on): Likewise.
41169         * modules/cloexec (Depends-on): Add dup2.
41170         * modules/cloexec-tests (Files): New file.
41171         * tests/test-cloexec.c: Likewise.
41172
41173         test-xalloc-die: fix test for mingw
41174         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41175         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41176         directory and .exe suffix off argv[0] output.
41177
41178         test-fseeko: fix test for mingw
41179         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41180         than undefining fseek, so test will pass on mingw.
41181
41182 2009-12-05  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/progname.h (set_program_name): Clarify specification.
41185         * lib/progname.c (set_program_name): Likewise.
41186         Reported by Jim Meyering.
41187
41188 2009-12-05  Jim Meyering  <meyering@redhat.com>
41189
41190         maint.mk: backslash-escape parens in default regexp
41191         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41192         backslash-escape the literal parentheses.
41193
41194         maint.mk: news-date-check: use grep -E
41195         * top/maint.mk (today): Define a Make variable, not a...
41196         (news-date-check): ...shell variable.
41197         (news-date-regexp): Use the Make variable.
41198         Use grep's -E option.  Change the failing diagnostic to mention
41199         the variable, $(news-date-regexp).
41200
41201 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41202
41203         maintainer-makefile: allow customization of NEWS entry format
41204         * top/maint.mk (news-date-regexp): New overridable variable.
41205         (news-date-check): Use it.
41206
41207 2009-12-04  Eric Blake  <ebb9@byu.net>
41208
41209         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41210         * lib/mgetgroups.h (xgetgroups): New prototype.
41211         * lib/mgetgroups.c (xgetgroups): New wrapper.
41212         (mgetgroups): Handle ENOSYS.
41213         * modules/mgetgroups (Depends-on): Add realloc.
41214         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41215
41216         mgetgroups: avoid argument promotion issues with -1
41217         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41218         for invalid gid_t.
41219         * tests/test-chown.h (getegid, test_chown): Likewise.
41220         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41221
41222 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41223
41224         exclude: Fix header file problems.
41225         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41226
41227 2009-12-01  Jim Meyering  <meyering@redhat.com>
41228
41229         fts: fts_open: do not let an empty string cause immediate failure
41230         This is required in support of GNU rm, for which the command
41231         "rm A '' B" must process and remove both A and B, in spite of
41232         the empty string argument.
41233         * lib/fts.c (fts_open): Do not let the presence of an empty string
41234         cause fts_open to fail immediately.  Most fts-using tools must be
41235         able to process all arguments, in order, and can be expected to
41236         diagnose such arguments themselves.
41237
41238 2009-11-30  Eric Blake  <ebb9@byu.net>
41239
41240         utimens: fix compilation error
41241         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41242         Declare variable at right scope.
41243
41244 2009-11-29  Jim Meyering  <meyering@redhat.com>
41245
41246         bootstrap: handle perl-5.11's changed --version output
41247         * build-aux/bootstrap (get_version): Handle perl separately,
41248         since perl-5.11's --version output is different.
41249
41250 2009-11-28  Jim Meyering  <meyering@redhat.com>
41251
41252         userspec: depend on the inttostr module, too
41253         * modules/userspec (Depends-on): Add inttostr.
41254
41255         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41256         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41257         number of MAXUID when it evaluates to (uid_t) -1.
41258         Likewise for group ID.  Reported by Matt McCutchen in
41259         <http://savannah.gnu.org/bugs/?28113>
41260
41261         userspec: reformat to use spaces, not TABs
41262         * lib/userspec.c: Expand TABs to spaces.
41263         Add Emacs' "indent-tabs-mode: nil" hint.
41264
41265 2009-11-27  Eric Blake  <ebb9@byu.net>
41266
41267         getopt-gnu: flush out another BSD bug
41268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41269         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41270         flush out BSD bug.
41271         * tests/test-getopt.h (test_getopt): End lists with NULL.
41272         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41273         (test_getopt_long_posix): Enhance test.
41274         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41275         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41276         getopt-gnu.
41277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41278         Likewise.
41279
41280 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41281
41282         * modules/idpriv-droptemp-tests (Notice): Fix text.
41283
41284 2009-11-27  Jim Meyering  <meyering@redhat.com>
41285
41286         test-xalloc-die: avoid spurious failure due to libtool argv difference
41287         In a libtool-enabled project, this test would fail due to a difference
41288         in the emitted program name, e.g.,
41289         -test-xalloc-die: memory exhausted
41290         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41291         Use program to avoid that.
41292         * modules/xalloc-die-tests (Depends-on): Add progname.
41293         * tests/test-xalloc-die.c: Include progname.h".
41294         (program_name): Remove decl.
41295         (main): Call set_program_name.
41296         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41297
41298 2009-11-26  Richard Jones  <rjones@redhat.com>
41299
41300         w32sock: leave win32 error in place.
41301         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41302
41303 2009-11-26  Eric Blake  <ebb9@byu.net>
41304
41305         init.sh: suggest to use skip_ and fail_ functions in comments
41306         * tests/init.sh: Add a sentence.
41307
41308 2009-11-25  Bruno Haible  <bruno@clisp.org>
41309
41310         init.sh: add documentation in comments
41311         * tests/init.sh: Add some developer and user documentation.
41312
41313 2009-11-26  Jim Meyering  <meyering@redhat.com>
41314
41315         init.sh: accommodate even those who specify bogus srcdir manually
41316         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41317         configure-time tests to be sanitized, so that there is no need to
41318         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41319         (with no double quotes) suffices.  However, since tests may be
41320         invoked manually, and since you may explicitly set srcdir to the
41321         name of a directory containing spaces, do quote its uses here.
41322         * tests/test-pread.sh: Likewise.
41323         Suggested by Bruno Haible.
41324
41325         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41326         * tests/test-pread.sh: Write no data into the pipe, because
41327         test-pread actually reads none.  This avoids a diagnostic,
41328         "bash: echo: write error: Broken pipe", that arises in the unusual
41329         event something is ignoring SIGPIPE, and might be interpreted
41330         as some sort of failure.  Reported by Bruno Haible.
41331
41332 2009-11-25  Jim Meyering  <meyering@redhat.com>
41333
41334         test-pread: cover failure with ESPIPE and EINVAL
41335         * tests/test-pread.c (main): Test for failure, too.
41336         * tests/test-pread.sh: Invoke with stdin on a pipe.
41337         Suggested by Eric Blake.
41338
41339         pread: improvement and fix
41340         * modules/pread (Depends-on): Depend on lseek, for portability to
41341         e.g., mingw.  Suggested by Eric Blake.
41342         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41343
41344         unistd.in.h: correct declaration of pread
41345         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41346         Reported by Richard W.M. Jones.
41347
41348         test-pread.sh: distribute the test script
41349         * modules/pread-tests (Files): Include test-pread.sh.
41350
41351         test-pread.sh: clean up
41352         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41353         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41354         That is unnecessary, since it's always ".".
41355         Suggestion from Eric Blake.
41356
41357         test-pread.sh: make executable
41358         * tests/test-pread.sh: Set executable bit.
41359         Reported by Eric Blake.
41360
41361         correct typo in test-pread.sh
41362         * tests/test-pread.sh: Add #! line.
41363
41364         test pread
41365         * tests/test-pread.c: New file.
41366         * tests/test-pread.sh: Likewise.
41367         * modules/pread-tests: Likewise.
41368
41369         pread: new module
41370         * modules/pread: New file.
41371         * lib/unistd.in.h (pread): Define/declare.
41372         * lib/pread.c (pread): New file.
41373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41374         * modules/unistd (Makefile.am): Substitute witnesses.
41375         * doc/posix-functions/pread.texi (pread): Update.
41376         * MODULES.html.sh: Add pread.
41377
41378 2009-11-25  Jim Meyering  <meyering@redhat.com>
41379
41380         tests/init.sh: new file to be used via most *.sh tests
41381         * tests/init.sh: New file.
41382
41383 2009-11-25  Eric Blake  <ebb9@byu.net>
41384
41385         utimens: work around older Linux failure with symlinks
41386         * lib/utimens.c (lutimensat_works_really): New variable.
41387         (fdutimens, lutimens): Use it to manage kernels that support
41388         nanosecond times on files, but not on symlinks.
41389         Reported by OndÅ™ej Vašík.
41390
41391         utimes: fix configure grammar
41392         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41393
41394 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41395
41396         regex: Fix fastmap for multibyte character ranges.
41397         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41398         characters when a multibyte character range is included.
41399
41400 2009-11-22  Andy Wingo  <wingo@pobox.com>
41401
41402         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41403         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41404
41405 2009-11-24  Bruno Haible  <bruno@clisp.org>
41406
41407         doc: Most *_l functions exist in MacOS X 10.5.
41408         * doc/posix-functions/duplocale.texi: Update platforms list.
41409         * doc/posix-functions/freelocale.texi: Likewise.
41410         * doc/posix-functions/newlocale.texi: Likewise.
41411         * doc/posix-functions/uselocale.texi: Likewise.
41412         * doc/posix-functions/isalnum_l.texi: Likewise.
41413         * doc/posix-functions/isalpha_l.texi: Likewise.
41414         * doc/posix-functions/isblank_l.texi: Likewise.
41415         * doc/posix-functions/iscntrl_l.texi: Likewise.
41416         * doc/posix-functions/isdigit_l.texi: Likewise.
41417         * doc/posix-functions/isgraph_l.texi: Likewise.
41418         * doc/posix-functions/islower_l.texi: Likewise.
41419         * doc/posix-functions/isprint_l.texi: Likewise.
41420         * doc/posix-functions/ispunct_l.texi: Likewise.
41421         * doc/posix-functions/isspace_l.texi: Likewise.
41422         * doc/posix-functions/isupper_l.texi: Likewise.
41423         * doc/posix-functions/iswalnum_l.texi: Likewise.
41424         * doc/posix-functions/iswalpha_l.texi: Likewise.
41425         * doc/posix-functions/iswblank_l.texi: Likewise.
41426         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41427         * doc/posix-functions/iswctype_l.texi: Likewise.
41428         * doc/posix-functions/iswdigit_l.texi: Likewise.
41429         * doc/posix-functions/iswgraph_l.texi: Likewise.
41430         * doc/posix-functions/iswlower_l.texi: Likewise.
41431         * doc/posix-functions/iswprint_l.texi: Likewise.
41432         * doc/posix-functions/iswpunct_l.texi: Likewise.
41433         * doc/posix-functions/iswspace_l.texi: Likewise.
41434         * doc/posix-functions/iswupper_l.texi: Likewise.
41435         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41436         * doc/posix-functions/isxdigit_l.texi: Likewise.
41437         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41438         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41439         * doc/posix-functions/strcoll_l.texi: Likewise.
41440         * doc/posix-functions/strfmon_l.texi: Likewise.
41441         * doc/posix-functions/strftime_l.texi: Likewise.
41442         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41443         * doc/posix-functions/strxfrm_l.texi: Likewise.
41444         * doc/posix-functions/tolower_l.texi: Likewise.
41445         * doc/posix-functions/toupper_l.texi: Likewise.
41446         * doc/posix-functions/towctrans_l.texi: Likewise.
41447         * doc/posix-functions/towlower_l.texi: Likewise.
41448         * doc/posix-functions/towupper_l.texi: Likewise.
41449         * doc/posix-functions/wcscoll_l.texi: Likewise.
41450         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41451         * doc/posix-functions/wctrans_l.texi: Likewise.
41452         * doc/posix-functions/wctype_l.texi: Likewise.
41453         * doc/glibc-functions/strptime_l.texi: Likewise.
41454         * doc/glibc-functions/strtod_l.texi: Likewise.
41455         * doc/glibc-functions/strtof_l.texi: Likewise.
41456         * doc/glibc-functions/strtol_l.texi: Likewise.
41457         * doc/glibc-functions/strtold_l.texi: Likewise.
41458         * doc/glibc-functions/strtoll_l.texi: Likewise.
41459         * doc/glibc-functions/strtoul_l.texi: Likewise.
41460         * doc/glibc-functions/strtoull_l.texi: Likewise.
41461         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41462         * doc/glibc-functions/wcstod_l.texi: Likewise.
41463         * doc/glibc-functions/wcstof_l.texi: Likewise.
41464         * doc/glibc-functions/wcstol_l.texi: Likewise.
41465         * doc/glibc-functions/wcstold_l.texi: Likewise.
41466         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41467         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41468         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41469
41470 2009-11-24  Bruno Haible  <bruno@clisp.org>
41471
41472         duplocale: Fix logic bug.
41473         * lib/duplocale.c: Don't include <langinfo.h>.
41474         (_NL_LOCALE_NAME): Remove macro.
41475         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41476         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41477
41478 2009-11-23  Jim Meyering  <meyering@redhat.com>
41479
41480         test-update-copyright: don't hard-code /usr/bin/perl
41481         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41482         perl to print the current year.  Gilles Espinasse reported that
41483         the replaced use of perl was hard-coded as /usr/bin/perl.
41484
41485 2009-11-23  Bruno Haible  <bruno@clisp.org>
41486
41487         duplocale: Add support for glibc 2.3.x.
41488         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41489
41490 2009-11-22  Bruno Haible  <bruno@clisp.org>
41491
41492         vasnprintf: Tiny optimization.
41493         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41494         MacOS X.
41495
41496 2009-11-22  Bruno Haible  <bruno@clisp.org>
41497
41498         Tests for module 'duplocale'.
41499         * modules/duplocale-tests: New file.
41500         * tests/test-duplocale.c: New file.
41501
41502         New module 'duplocale'.
41503         * m4/duplocale.m4: New file.
41504         * lib/locale.in.h (duplocale): New declaration.
41505         * lib/duplocale.c: New file.
41506         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41507         gl_LOCALE_H_DEFAULTS): New macros.
41508         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41509         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41510         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41511         REPLACE_DUPLOCALE.
41512         * modules/duplocale: New file.
41513         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41514
41515 2009-11-22  Bruno Haible  <bruno@clisp.org>
41516
41517         * modules/locale-tests (configure.ac): Test for newlocale function.
41518         * tests/test-locale.c: When the system has extended locale functions,
41519         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41520
41521         locale: Make locale_t available when possible.
41522         * lib/locale.in.h: Include <xlocale.h> when it exists.
41523         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41524         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41525         * modules/locale (Depends-on): Add extensions.
41526         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41527         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41528
41529 2009-11-22  Bruno Haible  <bruno@clisp.org>
41530
41531         Add comments.
41532         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41533         invocation.
41534         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41535         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41536         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41537
41538 2009-11-22  Bruno Haible  <bruno@clisp.org>
41539
41540         error: account for the possibility of freopen (stdout).
41541         * lib/error.c: Include <unistd.h>.
41542         (flush_stdout): New function, extracted from error and error_at_line.
41543         Determine stdout's fd dynamically.
41544         (error, error_at_line): Invoke flush_stdout.
41545         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41546         * modules/error (Depends-on): Add unistd.
41547
41548 2009-11-22  Bruno Haible  <bruno@clisp.org>
41549
41550         diffseq: Add comment.
41551         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41552
41553 2009-11-22  Jim Meyering  <meyering@redhat.com>
41554
41555         c-stack: avoid defining an unused static function
41556         * lib/c-stack.c (find_stack_direction): Do not define this function
41557         when it will not be used.
41558
41559         diffseq: avoid spurious gcc warnings
41560         * lib/diffseq.h (IF_LINT2): Define.
41561         (compareseq): Use it to initialize two members of "part".
41562         This avoids two used-uninitialized warnings.
41563
41564 2009-11-21  Jim Meyering  <meyering@redhat.com>
41565
41566         c-stack: avoid "ignoring return value of `write'" warning
41567         * lib/c-stack.c: Include "ignore-value.h".
41568         (die): Explicitly ignore each write return value.
41569         * modules/c-stack (Depends-on): Add ignore-value.
41570
41571 2009-11-21  Bruno Haible  <bruno@clisp.org>
41572
41573         diffseq: reduce scope of variable 'best'.
41574         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41575         variable, earlier used for two different purposes.
41576
41577 2009-11-21  Jim Meyering  <meyering@redhat.com>
41578
41579         diffseq: remove useless assignment to "best"
41580         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41581         assignment.  At that point "best" is already guaranteed to be zero.
41582
41583 2009-11-20  Eric Blake  <ebb9@byu.net>
41584
41585         build: mention ftp redirector in release announcements
41586         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41587         values that used to come from cfg.mk; mention FTP redirect URL.
41588         * build-aux/announce-gen: Mention the mirror list.
41589         Suggested by Karl Berry.
41590
41591         nanosleep: improve port to mingw
41592         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41594         LIB_NANOSLEEP, but only when needed.
41595         * modules/select (Link): Document LIBSOCKET.
41596         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41597         enough.
41598
41599         nanosleep: work around cygwin bug
41600         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41601         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41602         bug.
41603         (getnow): Delete, not needed.
41604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41605         LIB_CLOCK_GETTIME.
41606         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41607         clock-time, gettime.
41608         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41609         bug.
41610         * modules/nanosleep-tests: New test.
41611         * tests/test-nanosleep.c: New file.
41612
41613         sleep: work around cygwin bug
41614         * lib/sleep.c (rpl_sleep): Work around the bug.
41615         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41616         (gl_PREREQ_SLEEP): Delete unused macro.
41617         * modules/sleep (Depends-on): Add verify.
41618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41619         * modules/unistd (Makefile.am): Substitute witness.
41620         * lib/unistd.in.h (sleep): Update prototype.
41621         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41622         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41623         * modules/sleep-tests (Depends-on): Check for alarm.
41624
41625 2009-11-20  Jim Meyering  <meyering@redhat.com>
41626
41627         maint.mk: improve sc_prohibit_magic_number_exit
41628         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41629         so it does not match uses like System.exit(1).
41630         Add comments showing how to correct all offenders.
41631
41632 2009-11-19  Eric Blake  <ebb9@byu.net>
41633
41634         xalloc-die-tests: add missing library
41635         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41636
41637         test-xvasprintf: silence compiler warnings
41638         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41639         empty string from gcc.
41640
41641 2009-11-19  Jim Meyering  <meyering@redhat.com>
41642
41643         xfreopen: new module, from coreutils
41644         * modules/xfreopen: New module.
41645         * lib/xfreopen.c: New file.
41646         * lib/xfreopen.h: New file.
41647         * MODULES.html.sh (File stream based Input/Output"): Add it.
41648
41649 2009-11-19  Eric Blake  <ebb9@byu.net>
41650
41651         manywarnings: depend on warnings
41652         * modules/manywarnings (Depends-on): Add warnings.
41653
41654         build: avoid compiler warnings
41655         * lib/select.c (rpl_select): Delete unused variable.
41656         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41657
41658 2009-11-18  Eric Blake  <ebb9@byu.net>
41659
41660         tests: avoid false negative with --with-packager
41661         * tests/test-version-etc.sh: Discard packager information.
41662         * tests/test-argp-version-etc-1.sh: Likewise.
41663         Reported by Mike Frysinger.
41664
41665         utimens: fix regression on Solaris
41666         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41667         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41668         can only change fd timestamps via futimesat.  Instead, use an
41669         additional witness macro to avoid BSD bug.
41670         Reported by Jim Meyering.
41671
41672 2009-11-17  Eric Blake  <ebb9@byu.net>
41673
41674         usleep: use it to simplify tests
41675         * modules/stat-time-tests (Depends-on): Add usleep.
41676         (configure.ac): Drop usleep check.
41677         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41678         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41679         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41680         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41681         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41682         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41683         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41684         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41685         Likewise.
41686         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41687         * tests/test-lchown.h (nap): Likewise.
41688         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41689         * tests/test-stat-time.c (nap): Likewise.
41690         * tests/test-utimens-common.h (nap): Update comments.
41691
41692         usleep: new module
41693         * modules/usleep: New file.
41694         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41695         * lib/usleep.c (usleep): Likewise.
41696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41697         * modules/unistd (Makefile.am): Substitute witnesses.
41698         * lib/unistd.in.h (usleep): Add declaration.
41699         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41700         * MODULES.html.sh (Date and time): Likewise.
41701         * modules/usleep-tests (Depends-on): New test.
41702         * tests/test-usleep.c: New file.
41703
41704         chown: work around OpenBSD bug
41705         * lib/chown.c (rpl_chown): Work around the bug.
41706         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41707         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41708         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41709         * modules/chown (Depends-on): Add stdbool.
41710         * modules/lchown (Depends-on): Likewise.
41711         * doc/posix-functions/chown.texi (chown): Document the bug.
41712         * doc/posix-functions/lchown.texi (lchown): Likewise.
41713         * tests/test-lchown.h (test_chown): Relax test.
41714
41715         mkstemp: avoid conflict with C++ keyword template
41716         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41717         * lib/mkostemp.c (mkostemp): Likewise.
41718         * lib/mkostemps.c (mkostemps): Likewise.
41719         * lib/mkstemp.c (mkstemp): Likewise.
41720         * lib/mkstemps.c (mkstemps): Likewise.
41721
41722         xalloc-die-tests: optimize
41723         * tests/test-xalloc-die.sh: Reduce number of processes.
41724
41725 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41726
41727         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41728         patch from ludo@gnu.org (Ludovic Courtès).
41729
41730 2009-11-17  Jim Meyering  <meyering@redhat.com>
41731
41732         version-etc: use proper license string
41733         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41734         * modules/version-etc-fsf: Likewise.
41735
41736 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41737
41738         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41739         printed to stdout.  Deal with EOL differences.
41740
41741 2009-11-17  Eric Blake  <ebb9@byu.net>
41742
41743         unsetenv: work around Solaris bug
41744         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41745         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41746         Reported by Jim Meyering.
41747
41748         vasnprintf: avoid compiler warnings
41749         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41750         variables.
41751         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41752
41753 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41754
41755         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41756         settings since xalloc-die is no longer the self test,
41757         xalloc-die.sh is.
41758
41759 2009-11-17  Jim Meyering  <meyering@redhat.com>
41760
41761         test-xalloc-die.sh: make the code agree with the commit log
41762         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41763         at the end, just in case you happen to have a test-xalloc-die
41764         program in some other PATH directory.
41765
41766         test-xalloc-die.sh: fix a portability bug
41767         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41768         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41769         Otherwise, argv[0] (as often seen in diagnostics) would be too
41770         system-dependent, sometimes with, and sometimes without the leading "./".
41771
41772         version-etc-fsf: relax license to LGPLv3+
41773         * modules/version-etc-fsf (License): Relax license.
41774
41775 2009-11-16  Eric Blake  <ebb9@byu.net>
41776
41777         xalloc-die-tests: avoid printing null pointer
41778         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41779         shell script.
41780         * tests/test-xalloc-die.c (program_name): Declare.
41781         * tests/test-xalloc-die.sh (tmpfiles): New file.
41782
41783         setenv, unsetenv: work around various bugs
41784         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41785         (setenv) [HAVE_SETENV]: Work around bugs.
41786         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41788         for bugs.
41789         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41790         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41792         * modules/stdlib (Makefile.am): Update substitutions.
41793         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41794         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41795         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41796         * modules/setenv-tests: New test.
41797         * modules/unsetenv-tests: Likewise.
41798         * tests/test-setenv.c: New file.
41799         * tests/test-unsetenv.c: Likewise.
41800
41801 2009-11-16  Jim Meyering  <meyering@redhat.com>
41802
41803         version-etc: relax license to LGPLv3+
41804         * modules/version-etc (License): Relax license.
41805
41806         better AC_REQUIRE expanded-before-required-warning avoidance
41807         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41808         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41809         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41810         which is no longer needed.
41811
41812 2009-11-16  Eric Blake  <ebb9@byu.net>
41813
41814         test-freading: clean up temporary file
41815         * tests/test-freading.c (main): Remove file on success, and use
41816         ASSERT more liberally.
41817         Reported by Jim Meyering.
41818
41819 2009-11-16  Jim Meyering  <meyering@redhat.com>
41820
41821         avoid new AC_REQUIRE expanded-before-required warnings
41822         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41823         merely using it.
41824         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41825         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41826
41827 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41828
41829         * tests/test-xalloc-die.c: New file.
41830         * modules/xalloc-die-tests: New file.
41831         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41832         XFAIL_TESTS so it can be appended by modules.
41833
41834 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41835
41836         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41837         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41838
41839 2009-11-14  Eric Blake  <ebb9@byu.net>
41840
41841         fnmatch: avoid compiler warning
41842         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41843         to silence compiler warning about mismatch signedness in ?:.
41844         Reported by Robert Millan.
41845
41846         intprops: add double-inclusion guard
41847         * lib/intprops.h: Allow idempotent includes.
41848         Suggested by Bruce Korb.
41849
41850         openat: detect Solaris fchownat bug
41851         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41852         penalizing glibc chownat when only lchownat is broken.
41853         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41854         trailing slash bugs.
41855         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41856         * modules/openat-tests (Files): Include more files.
41857         (Depends-on): Add mgetgroups, sleep, stat-time.
41858         (configure.ac): Add additional checks.
41859         (Makefile.am): Build new test.
41860         * tests/test-fchownat.c: New file.
41861
41862         lchown: detect Solaris and FreeBSD bug
41863         * lib/lchown.c (rpl_lchown): Work around bug.
41864         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41866         * modules/unistd (Makefile.am): Populate it.
41867         * lib/unistd.in.h (lchown): Update declaration.
41868         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41869         * modules/lchown-tests: New file.
41870         * tests/test-lchown.h (test_lchown): Likewise.
41871         * tests/test-lchown.c (main): Likewise.
41872
41873         chown: detect Solaris and FreeBSD bug
41874         * lib/chown.c (rpl_chown): Work around bug.
41875         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41876         (gl_PREREQ_CHOWN): Delete.
41877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41878         * modules/unistd (Makefile.am): Populate it.
41879         * lib/unistd.in.h (chown): Update declaration.
41880         * lib/lchown.c (chown): Update client.
41881         * modules/lchown (Depends-on): Add lstat.
41882         * doc/posix-functions/chown.texi (chown): Document the bug.
41883         * doc/posix-functions/getgroups.texi (getgroups): Document
41884         getgroups pitfall.
41885         * modules/chown-tests: New file.
41886         * tests/test-chown.h (test_chown): Likewise.
41887         * tests/test-chown.c (main): Likewise.
41888
41889 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41890
41891         gnulib-tool: correctly detect absence of m4 directories
41892         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41893
41894 2009-11-14  Jim Meyering  <meyering@redhat.com>
41895
41896         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41897         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41898
41899 2009-11-14  John W. Eaton  <jwe@gnu.org>
41900
41901         strftime.h: wrap function declaration in extern "C" block
41902         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41903
41904 2009-11-13  Eric Blake  <ebb9@byu.net>
41905
41906         getgroups: avoid compiler warning
41907         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41908
41909         getgroups: work around FreeBSD bug
41910         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41911         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41912         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41913         * tests/test-getgroups.c (main): Fix buffer overrun.
41914
41915         getgroups: avoid compilation failure
41916         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41917         * modules/getgroups (Depends-on): Add stdint.
41918
41919 2009-11-13  Jim Meyering  <meyering@redhat.com>
41920
41921         test-getgroups: avoid compilation failure
41922         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41923
41924 2009-11-13  Eric Blake  <ebb9@byu.net>
41925
41926         mgetgroups: new module, taken from coreutils
41927         * modules/mgetgroups: New file.
41928         * lib/mgetgroups.h: Likewise.
41929         * lib/mgetgroups.c (mgetgroups): Likewise.
41930         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41931         * MODULES.html.sh (Users and groups): Mention it.
41932
41933         getgroups: don't expose GETGROUPS_T to user
41934         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41935         an element at a time if GETGROUPS_T is wrong size.
41936         * lib/getugroups.h (getugroups): Change signature.
41937         * lib/unistd.in.h (getgroups): Likewise.
41938         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41939         signature needs fixing.
41940         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41941         AC_TYPE_GETGROUPS.
41942         * modules/group-member (Depends-on): Add getgroups.
41943         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41944         (group_member): Rely on getgroups replacement.
41945         * lib/getugroups.c (getugroups): Use gid_t.
41946         * tests/test-getgroups.c (main): Likewise.
41947         * NEWS: Mention the signature change.
41948         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41949         problem with signature.
41950         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41951         GETGROUPS_T is still useful for setgroups.
41952
41953         getgroups, getugroups: provide stubs for mingw
41954         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41955         * lib/getugroups.c (getugroups): Likewise.
41956         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41957         function.  Modernize replacement scheme.
41958         (gl_PREREQ_GETGROUPS): Delete.
41959         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41960         * modules/getgroups (configure.ac): Declare witness.
41961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41962         * modules/unistd (Depends-on): Substitute witness.
41963         * lib/unistd.in.h (getgroups): Declare replacement.
41964
41965         getgroups: avoid calling exit
41966         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41967         drop xalloc.
41968         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41969         dependencies.
41970         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41971         exiting, in the rare case of malloc failure.
41972
41973         getgroups: fix logic error
41974         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41975         has more than 20 groups.
41976         * modules/getgroups-tests: New test.
41977         * tests/test-getgroups.c: New file.
41978
41979 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41980
41981         * tests/test-base64.c: Improve.
41982
41983 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41984
41985         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41986         Blake <ebb9@byu.net>.
41987
41988 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41989
41990         * tests/test-xvasprintf.c: Add %s%s related checks.
41991
41992 2009-11-12  Eric Blake  <ebb9@byu.net>
41993
41994         version-etc: match standards.texi style
41995         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41996         and use <> only for URLs.
41997
41998 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41999
42000         fts: do not fail on a submount during traversal
42001         * lib/fts.c (fts_build): Read the stat info again after opening
42002         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42003         Original report at http://bugzilla.redhat.com/501848.
42004
42005 2009-11-12  Jim Meyering  <meyering@redhat.com>
42006
42007         bootstrap: sync from coreutils
42008         * build-aux/bootstrap (bootstrap_epilogue): New function.
42009         Use git_modules_config in one more place.  This make bootstrap's
42010         --gnulib-srcdir option more useful for testing.
42011
42012         bootstrap: generalize autoheader check
42013         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42014         AC_CONFIG_HEADERS.
42015
42016 2009-11-11  Eric Blake  <ebb9@byu.net>
42017
42018         mkfifoat: use new modules for Solaris and BSD bugs
42019         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42020         * lib/mkfifoat.c (mknodat): Split...
42021         * lib/mknodat.c (mknodat): ...into new file.
42022         * modules/mkfifoat (Files): Ship new file.
42023         (Depends-on): Add mkfifo, mknod.
42024         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42025         (Depends-on): Add symlink.
42026         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42027         redundant with test_mkfifo.h.
42028         (do_mkfifoat, do_mknodat): New helpers.
42029
42030         mknod: new module
42031         * modules/mknod: New file.
42032         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42033         * lib/mknod.c (mknod): Likewise.
42034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42035         defaults.
42036         * modules/sys_stat (Makefile.am): Substitute them.
42037         * lib/sys_stat.in.h (mknod): Declare replacement.
42038         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42039         Document it.
42040         * doc/posix-functions/mknod.texi (mknod): Likewise.
42041         * modules/mknod-tests: New test.
42042         * tests/test-mknod.c: Likewise.
42043
42044         mkfifo: new module
42045         * modules/mkfifo: New file.
42046         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42047         * lib/mkfifo.c (mkfifo): Likewise.
42048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42049         defaults.
42050         * modules/sys_stat (Makefile.am): Substitute them.
42051         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42052         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42053         Document it.
42054         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42055         * modules/mkfifo-tests: New test.
42056         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42057         from test-mkfifoat.c.
42058         * tests/test-mkfifo.c: New file.
42059
42060         readlink: detect FreeBSD bug
42061         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42062         slash on symlink.
42063         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42064         * tests/test-readlink.h (test_readlink): Enhance test.
42065
42066         symlink: detect FreeBSD bug
42067         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42068         slash on symlink.
42069         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42070         * tests/test-symlink.h (test_symlink): Enhance test.
42071
42072 2009-11-10  Eric Blake  <ebb9@byu.net>
42073
42074         link: detect FreeBSD bug
42075         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42076         symlink.
42077         * doc/posix-functions/link.texi (link): Document the bug.
42078         * tests/test-link.h (test_link): Enhance test.
42079         * tests/test-linkat.c (main): Update caller.
42080
42081         unlink, remove: detect FreeBSD bug
42082         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42083         slash on symlink.
42084         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42085         * doc/posix-functions/remove.texi (remove): Likewise.
42086         * tests/test-unlink.h (test_unlink): Enhance test.
42087         * tests/test-remove.c (main): Likewise.
42088
42089 2009-11-09  Eric Blake  <ebb9@byu.net>
42090
42091         rename: detect FreeBSD bug
42092         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42093         slash on symlink.
42094         * modules/renameat-tests (Depends-on): Add filenamecat.
42095         * tests/test-rename.h (test_rename): Allow one more errno.
42096         * tests/test-renameat.c (main): Likewise.
42097         * doc/posix-functions/rename.texi (rename): Document the bug.
42098
42099         open: detect FreeBSD bug
42100         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42101         symlink.
42102         * doc/posix-functions/open.texi (open): Document the bug.
42103         * doc/posix-functions/utimes.texi (utimes): Likewise.
42104         * tests/test-open.h (test_open): Add parameters, and test symlink
42105         handling.
42106         * tests/test-open.c (main): Adjust caller.
42107         * tests/test-fcntl-safer.c (main): Likewise.
42108         * modules/open-tests (Depends-on): Add stdbool, symlink.
42109         * modules/fcntl-safer-tests (Depends-on): Likewise.
42110         * tests/test-openat.c (main): Add test-open tests.
42111
42112         stat: detect FreeBSD bug
42113         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42114         symlink.
42115         * doc/posix-functions/stat.texi (stat): Document the bug.
42116         * tests/test-stat.h (test_stat_func): Add argument.
42117         * tests/test-stat.c (main): Adjust caller.
42118         * tests/test-fstatat.c (main): Likewise.
42119         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42120         Reported by Jim Meyering.
42121
42122 2009-11-09  James Youngman  <jay@gnu.org>
42123
42124         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42125         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42126
42127 2009-11-08  Jim Meyering  <meyering@redhat.com>
42128
42129         utimens: remove invalid futimesat call
42130         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42131         It used the file descriptor of the target file as the DIR_FD
42132         parameter and NULL as the file name.  That caused failure with
42133         errno == EFAULT on FreeBSD-8.0-rc2
42134
42135 2009-11-07  Eric Blake  <ebb9@byu.net>
42136
42137         fflush, freadseek: use fseeko, not fseek
42138         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42139         (clear_ungetc_buffer): Avoid potential problems on large files.
42140         * lib/freadseek.c (freadseek): Likewise.
42141         * modules/freadseek (Depends-on): Add fseeko.
42142         * modules/fseek (configure.ac): Set a witness.
42143         * tests/test-fflush.c (main): Use fseeko.
42144         * tests/test-fpurge.c (fseek): Disable link warning.
42145         * tests/test-freadable.c (fseek): Likewise.
42146         * tests/test-freading.c (fseek): Likewise.
42147         * tests/test-fseeko.c (fseek): Likewise.
42148         * tests/test-ftell.c (fseek): Likewise.
42149         * tests/test-ftello.c (fseek): Likewise.
42150         * tests/test-fwritable.c (fseek): Likewise.
42151         * tests/test-fwriting.c (fseek): Likewise.
42152
42153 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42154
42155         * modules/memchr (Depends-on): Drop getpagesize dependency.
42156
42157 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42158
42159         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42160         Reported by Ludovic Courtès.
42161         * build-aux/pmccabe2html: Improve example usage.
42162         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42163
42164 2009-11-06  Jim Meyering  <meyering@redhat.com>
42165
42166         do-release-commit-and-tag: New module.
42167         Automate the release-commit and tag process.
42168         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42169         * modules/do-release-commit-and-tag: New file.
42170         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42171
42172 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42173
42174         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42175         because test-select.c uses inet_pton.
42176
42177 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42178
42179         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42180         GETADDRINFO_LIB.  Bump serial number.
42181         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42182         Suggested by Eric Blake <ebb9@byu.net>.
42183
42184 2009-11-05  Eric Blake  <ebb9@byu.net>
42185
42186         strtod: detect darwin bug
42187         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42188         Reported by Leo Davis.
42189
42190         freopen-safer: new module
42191         * modules/freopen-safer: New module.
42192         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42193         * lib/freopen-safer.c (freopen_safer): New file.
42194         * lib/stdio-safer.h (freopen_safer): New declaration.
42195         * lib/stdio--.h (freopen): New override.
42196         * MODULES.html.sh (File stream based Input/Output): Mention it.
42197         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42198         freopen-safer module.
42199         * doc/posix-functions/stderr.texi (stderr): Likewise.
42200         * doc/posix-functions/stdin.texi (stdin): Likewise.
42201         * doc/posix-functions/stdout.texi (stdout): Likewise.
42202         * modules/freopen-safer-tests: New test.
42203         * tests/test-reopen-safer.c: New file.
42204
42205 2009-11-05  Jim Meyering  <meyering@redhat.com>
42206
42207         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42208         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42209
42210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42211
42212         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42213
42214 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42215
42216         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42217
42218 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42219
42220         Fix link error.
42221         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42222         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42223
42224 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42225
42226         * tests/test-func.c: Also test value of __func__.
42227
42228 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42229
42230         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42231         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42232
42233 2009-11-05  Bruno Haible  <bruno@clisp.org>
42234
42235         Fix link error.
42236         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42237         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42238         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42239
42240 2009-11-05  Bruno Haible  <bruno@clisp.org>
42241
42242         Tests for module 'inet_pton'.
42243         * modules/inet_pton-tests: New file.
42244         * tests/test-inet_pton.c: New file.
42245
42246 2009-11-05  Bruno Haible  <bruno@clisp.org>
42247
42248         Tests for module 'inet_ntop'.
42249         * modules/inet_ntop-tests: New file.
42250         * tests/test-inet_ntop.c: New file.
42251
42252 2009-11-04  Eric Blake  <ebb9@byu.net>
42253
42254         stdlib-safer: wrap all mkstemp variants
42255         * modules/mkostemp (configure.ac): Set witness.
42256         * modules/mkostemps (configure.ac): Likewise.
42257         * modules/mkstemps (configure.ac): Likewise.
42258         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42259         (mkstemps_safer): Wrap more functions.
42260         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42261         wrapping.
42262         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42263         (mkstemps_safer): Implement the wrappers.
42264
42265         mkstemps, mkostemps: new modules
42266         * modules/mkostemps: New module.
42267         * modules/mkstemps: Likewise.
42268         * lib/mkostemps.c (mkostemps): New file.
42269         * lib/mkstemps.c (mkstemps): Likewise.
42270         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42271         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42273         * modules/stdlib (Makefile.am): Substitute them.
42274         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42275         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42276         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42277         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42278         * MODULES.html.sh (File system functions): Mention them.
42279
42280         tempname: resync from glibc
42281         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42282         same values for __GT_FILE as glibc.  Abort even when assertions
42283         are disabled.
42284         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42285         match its value otherwise.  Allow idempotent inclusion.
42286         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42287         * lib/mkostemp.c (mkostemp): Likewise.
42288         * lib/mkstemp.c (mkstemp): Likewise.
42289         * lib/tmpfile.c (tmpfile): Likewise.
42290         * NEWS: Document this.
42291
42292         utimens: fix use of futimens on older Linux
42293         * lib/utimens.c (fdutimens): Use updated, rather than original,
42294         timespec to avoid bug in older Linux kernel.
42295         Reported by Simon Josefsson.
42296
42297 2009-11-04  Bruno Haible  <bruno@clisp.org>
42298
42299         Make num_processors more flexible and consistent.
42300         * lib/nproc.h (enum nproc_query): New type.
42301         (num_processors): Add a 'query' argument.
42302         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42303         (num_processors): Add a 'query' argument. Test the value of the
42304         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42305         mingw, count the number of CPUs available for the current process.
42306         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42307         Check for sched_getaffinity and sched_getaffinity_np.
42308         * modules/nproc (Depends-on): Add c-ctype, extensions.
42309         * NEWS: Mention the change.
42310
42311 2009-11-03  Bruno Haible  <bruno@clisp.org>
42312
42313         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42314
42315 2009-11-03  Jim Meyering  <meyering@redhat.com>
42316
42317         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42318         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42319         if it is defined.
42320
42321 2009-11-02  Eric Blake  <ebb9@byu.net>
42322
42323         mktime, timegm: share common declaration
42324         * lib/mktime-internal.h: New file.
42325         * lib/mktime.c: Use it rather than open-coding a declaration.
42326         * lib/timegm.c: Likewise.
42327         * modules/mktime (Files): Ship it.
42328         * modules/timegm (Files): Likewise.
42329         Suggested by Bruno Haible.
42330
42331         test-update-copyright: update test to match script changes
42332         * tests/test-update-copyright.sh: Avoid hard-coding perl
42333         location.  Don't update *.bak created by earlier runs.
42334
42335 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42336             Simon Josefsson  <simon@josefsson.org>
42337             Bruno Haible  <bruno@clisp.org>
42338
42339         Fix link error on Solaris 8.
42340         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42341         also in libnsl. Define also INET_PTON_LIB.
42342         * modules/inet_pton (Link): New section.
42343
42344 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42345             Bruno Haible  <bruno@clisp.org>
42346
42347         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42348         * modules/inet_ntop (Link): New section.
42349         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42350
42351 2009-11-02  Eric Blake  <ebb9@byu.net>
42352
42353         maint: avoid compiler warnings in m4 macros
42354         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42356
42357 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42358
42359         * m4/pmccabe2html.m4: Remove file.
42360         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42361         function.  Change maintainer.
42362         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42363         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42364         Courtès).
42365
42366 2009-10-31  Eric Blake  <ebb9@byu.net>
42367
42368         fseeko: fix m4 regression
42369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42370         regression from 2009-10-27.
42371         Reported by Ralf Wildenhues.
42372
42373 2009-10-31  Jim Meyering  <meyering@redhat.com>
42374
42375         inttostr: aesthetics and improved (compile-time) safety
42376         Define inttype_is_signed rather than inttype_is_unsigned,
42377         since the sole use is via "#if inttype_is_signed".
42378         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42379         inttype_is_unsigned.
42380         * lib/offtostr.c (inttype_is_signed): Likewise.
42381         * lib/uinttostr.c (inttype_is_signed): Likewise.
42382         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42383         * lib/inttostr.c (inttostr): Use verify to cross-check the
42384         inttype_is_signed value and the signedness of the actual type.
42385         * modules/inttostr (Depends-on): Add verify.
42386
42387 2009-10-30  Eric Blake  <ebb9@byu.net>
42388
42389         build: avoid compiler warnings
42390         * lib/fchmodat.c (lchmod): Mark unused variables.
42391         * lib/getopt.c (_getopt_initialize): Likewise.
42392         * lib/mktime.c (__mktime_internal): Provide prototype.
42393         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42394         older gcc that do not understand #pragma GCC diagnostic.
42395         * lib/uinttostr.c (inttype_is_unsigned): Define.
42396         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42397
42398 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42399
42400         stat: fix compilation on AIX
42401         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42402         only see struct stat64.
42403
42404 2009-10-30  Eric Blake  <ebb9@byu.net>
42405
42406         exclude: make more robust
42407         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42408         rather than masking a coding bug.
42409         Suggested by Bruno Haible.
42410
42411 2009-10-30  Jim Meyering  <meyering@redhat.com>
42412
42413         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42414         Rather than putting #!/usr/bin/perl on the first line,
42415         start with a variant of what's recommended by "man perlrun" that
42416         invokes the first "perl" program from your shell's search path.
42417         * build-aux/gitlog-to-changelog: Replace #!... as above.
42418         Add a "Local Variables" perl mode setting.
42419         Prompted by a patch from Ludovic Courtès.
42420         Improved by Eric Blake.
42421         * build-aux/useless-if-before-free: Likewise.
42422         * build-aux/announce-gen: Likewise.
42423         * build-aux/update-copyright: Likewise.
42424
42425 2009-10-29  Eric Blake  <ebb9@byu.net>
42426
42427         filenamecat-lgpl: adjust clients
42428         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42429         filenamecat.
42430         * modules/renameat (Depends-on): Likewise.
42431
42432         filenamecat: split into filenamecat-lgpl
42433         * modules/filenamecat-lgpl: New module.
42434         * modules/filenamecat (Files): Move library-safe files into
42435         filenamecat-lgpl.
42436         (Depends-on): Add filenamecat-lgpl.
42437         (configure.ac): Declare witness.
42438         * lib/filenamecat.h (file_name_concat): Only declare when using
42439         GPL module.
42440         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42441         Move...
42442         * lib/filenamecat-lgpl.c: ...into new file.
42443         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42444         (gl_FILE_NAME_CONCAT): Use it.
42445         * MODULES.html.sh (File system functions): Mention new module.
42446
42447         argp: avoid memory leak
42448         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42449         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42450         base_name, since the latter malloc()s and can call exit().
42451         Leak introduced 2006-07-03.
42452
42453         dirname-lgpl: adjust clients that don't need full dirname
42454         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42455         * modules/filenamecat (Depends-on): Likewise.
42456         * modules/linkat (Depends-on): Likewise.
42457         * modules/mkancesdirs (Depends-on): Likewise.
42458         * modules/mkdir (Depends-on): Likewise.
42459         * modules/openat (Depends-on): Likewise.
42460         * modules/savewd (Depends-on): Likewise.
42461         * modules/rename (Depends-on): Likewise.
42462         (License): Relax license.
42463         * modules/mkdir-tests (Depends-on): Drop progname.
42464         (Makefile.am): Delete unneeded LDADD.
42465         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42466
42467         dirname: split into dirname-lgpl
42468         * modules/dirname-lgpl: New module.
42469         * modules/dirname (Files): Move library-safe files into
42470         dirname-lgpl.
42471         (Depends-on): Add dirname-lgpl.
42472         (configure.ac): Declare witness.
42473         * modules/double-slash-root (License): Relax license.
42474         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42475         module.
42476         * lib/dirname.c (dir_len, mdir_name): Move...
42477         * lib/dirname-lgpl.c: ...into new file.
42478         * lib/basename.c (last_component, base_len): Move...
42479         * lib/basename-lgpl.c: ...into new file.
42480         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42481         (gl_DIRNAME): Use it.
42482         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42483         Mention new module.
42484         * modules/dirname-tests (Depends-on): Add progname.
42485         * tests/test-dirname.c (program_name): Delete.
42486
42487         mkdir: make safe for libraries
42488         * modules/mkdir (Depends-on): Drop xalloc.
42489         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42490         exit.
42491
42492         tests: avoid some compiler warnings
42493         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42494         literals.
42495         * tests/test-memchr.c (main): Avoid type mismatch.
42496         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42497         * tests/test-base64.c (main): Likewise.
42498         * tests/test-getdelim.c (main): Likewise.
42499         * tests/test-gethostname.c (main): Likewise.
42500         * tests/test-getline.c (main): Likewise.
42501         * tests/test-netinet_in.c (main): Likewise.
42502         * tests/test-select.c (open_server_socket, main): Likewise.
42503         * tests/test-select-stdin.c (main): Likewise.
42504         * tests/test-sockets.c (main): Likewise.
42505         * tests/test-strsignal.c (main): Likewise.
42506         * tests/test-sys_select.c (main): Likewise.
42507         * tests/test-sys_socket.c (main): Likewise.
42508         * tests/test-u64.c (main): Likewise.
42509         * tests/test-xfprintf-posix.c (main): Likewise.
42510         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42511
42512         sockets: avoid compiler warning
42513         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42514
42515         maint: detect usage(1) and other suspicious exits
42516         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42517
42518 2009-10-29  Jim Meyering  <meyering@redhat.com>
42519
42520         timespec: long-to-int truncation could make timespec_cmp malfunction
42521         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42522         a multiple of 2^32 nanoseconds as no difference.
42523
42524 2009-10-28  Jim Meyering  <meyering@redhat.com>
42525
42526         fprintftime: wrap macro code argument in "do {...} while(0)"
42527         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42528         cpy macro must be a statement that can be followed by a semicolon.
42529         Now that the else clause contains a comment and is hence longer
42530         than one line, I require curly braces.  That in turn requires
42531         that we wrap this code block in the standard do...while(0).
42532
42533         fprintftime: remove stray semicolon from previous change
42534         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42535
42536         fprintftime: avoid a warning about ignored fwrite return value
42537         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42538         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42539         that is unsafe.
42540         * modules/fprintftime (Depends-on): Add ignore-value.
42541
42542         exclude: avoid an unwarranted warning
42543         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42544
42545 2009-10-27  Eric Blake  <ebb9@byu.net>
42546
42547         fseek: avoid compilation failure when fflush is replaced
42548         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42549         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42550         module is in use.
42551         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42552         module is not in use; since REPLACE_FSEEK worked otherwise.
42553         (GNULIB_FTELLO): Likewise for ftell.
42554         Reported by Ian Beckwith and others.
42555
42556 2009-10-27  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42559         Reported by Jim Meyering.
42560
42561 2009-10-27  Jim Meyering  <jim@meyering.net>
42562             Bruno Haible  <bruno@clisp.org>
42563
42564         Avoid warning despite dropping the return value of fwrite.
42565         * lib/unicodeio.c: Include ignore-value.h.
42566         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42567         * modules/unicodeio (Depends-on): Add ignore-value.
42568
42569 2009-10-26  Eric Blake  <ebb9@byu.net>
42570
42571         areadlinkat: fix fallback path
42572         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42573         pointer and zero.
42574
42575 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42576
42577         Use a better IO block size for modern systems
42578         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42579         * lib/md2.c: Likewise.
42580         * lib/md4.c: Likewise.
42581         * lib/md5.c: Likewise.
42582         * lib/sha1.c: Likewise.
42583         * lib/sha256.c: Likewise.
42584         * lib/sha512.c: Likewise.
42585
42586 2009-10-22  Eric Blake  <ebb9@byu.net>
42587
42588         tests: avoid several compiler warnings
42589         * tests/test-getcwd.c (main): Avoid buffer underflow.
42590         * tests/test-getdate.c (main): String literals are not safe with
42591         putenv, so use setenv.  Declare unused argument.
42592         * modules/getdate-tests (Depends-on): Add setenv.
42593         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42594         problems with string literals in char *.
42595         * tests/test-hash.c (main): Avoid shadowing declaration.
42596         (insert_new): Treat string literals as char const *.
42597         * tests/test-getopt.h (test_getopt): Likewise.
42598         (getopt_loop): Alter types to minimize casting elsewhere.
42599         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42600         (test_getopt_long_posix): Likewise.
42601         (do_getopt_long): Add wrapper to minimize casting.
42602         * tests/test-atexit.c (clear_temp_file): Use void.
42603         * tests/test-areadlink-with-size.c (main): Declare unused
42604         arguments.
42605         * tests/test-areadlink.c (main): Likewise.
42606         * tests/test-areadlinkat-with-size.c (main): Likewise.
42607         * tests/test-areadlinkat.c (main): Likewise.
42608         * tests/test-canonicalize-lgpl.c (main): Likewise.
42609         * tests/test-canonicalize.c (main): Likewise.
42610         * tests/test-dirent-safer.c (main): Likewise.
42611         * tests/test-dirname.c (main): Likewise.
42612         * tests/test-dup2.c (main): Likewise.
42613         * tests/test-fchdir.c (main): Likewise.
42614         * tests/test-fcntl-h.c (main): Likewise.
42615         * tests/test-fcntl-safer.c (main): Likewise.
42616         * tests/test-fdopendir.c (main): Likewise.
42617         * tests/test-fdutimensat.c (main): Likewise.
42618         * tests/test-fflush.c (main): Likewise.
42619         * tests/test-filenamecat.c (main): Likewise.
42620         * tests/test-filevercmp.c (main): Likewise.
42621         * tests/test-fopen-safer.c (main): Likewise.
42622         * tests/test-fopen.c (main): Likewise.
42623         * tests/test-fpending.c (main): Likewise.
42624         * tests/test-fpurge.c (main): Likewise.
42625         * tests/test-freading.c (main): Likewise.
42626         * tests/test-fstatat.c (main): Likewise.
42627         * tests/test-fsync.c (main): Likewise.
42628         * tests/test-futimens.c (main): Likewise.
42629         * tests/test-getndelim2.c (main): Likewise.
42630         * tests/test-gettimeofday.c (main): Likewise.
42631         * tests/test-getopt.c (main): Likewise.
42632         * tests/test-i-ring.c (main): Likewise.
42633         * tests/test-inttypes.c (main): Likewise.
42634         * tests/test-link.c (main): Likewise.
42635         * tests/test-lstat.c (main): Likewise.
42636         * tests/test-math.c (main): Likewise.
42637         * tests/test-md5.c (main): Likewise.
42638         * tests/test-memchr2.c (main): Likewise.
42639         * tests/test-memrchr.c (main): Likewise.
42640         * tests/test-mkdir.c (main): Likewise.
42641         * tests/test-mkdirat.c (main): Likewise.
42642         * tests/test-mkfifoat.c (main): Likewise.
42643         * tests/test-open.c (main): Likewise.
42644         * tests/test-openat-safer.c (main): Likewise.
42645         * tests/test-openat.c (main): Likewise.
42646         * tests/test-quotearg.c (main): Likewise.
42647         * tests/test-rawmemchr.c (main): Likewise.
42648         * tests/test-readlink.c (main): Likewise.
42649         * tests/test-remove.c (main): Likewise.
42650         * tests/test-rename.c (main): Likewise.
42651         * tests/test-renameat.c (main): Likewise.
42652         * tests/test-rmdir.c (main): Likewise.
42653         * tests/test-sha1.c (main): Likewise.
42654         * tests/test-signal.c (main): Likewise.
42655         * tests/test-sigaction.c (main): Likewise.
42656         * tests/test-stat.c (main): Likewise.
42657         * tests/test-stat-time.c (main): Likewise.
42658         * tests/test-stddef.c (main): Likewise.
42659         * tests/test-stdint.c (main): Likewise.
42660         * tests/test-stdio.c (main): Likewise.
42661         * tests/test-stdlib.c (main): Likewise.
42662         * tests/test-strchrnul.c (main): Likewise.
42663         * tests/test-strerror.c (main): Likewise.
42664         * tests/test-string.c (main): Likewise.
42665         * tests/test-strtod.c (main): Likewise.
42666         * tests/test-strverscmp.c (main): Likewise.
42667         * tests/test-symlink.c (main): Likewise.
42668         * tests/test-symlinkat.c (main): Likewise.
42669         * tests/test-sys_stat.c (main): Likewise.
42670         * tests/test-sys_time.c (main): Likewise.
42671         * tests/test-time.c (main): Likewise.
42672         * tests/test-unistd.c (main): Likewise.
42673         * tests/test-unlink.c (main): Likewise.
42674         * tests/test-unlinkat.c (main): Likewise.
42675         * tests/test-utimens.c (main): Likewise.
42676         * tests/test-utimensat.c (main): Likewise.
42677         * tests/test-version-etc.c (main): Likewise.
42678         * tests/test-wchar.c (main): Likewise.
42679         * tests/test-wctype.c (main): Likewise.
42680         * tests/test-xprintf-posix.c (main): Likewise.
42681         * tests/test-posixtm.c (main): Likewise.
42682         (STREQ): Delete unused macro.
42683         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42684         shadowed variables.
42685         * tests/test-memchr.c (main): Likewise.
42686
42687 2009-10-21  Eric Blake  <ebb9@byu.net>
42688
42689         areadlinkat: avoid failure on older glibc
42690         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42691         rather than mis-comparing 0 against FUNC_RESULT of char*.
42692
42693 2009-10-21  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/stpncpy (License): Relicense under LGPLv2+.
42696         Reported by David Lutterkort <lutter@redhat.com>.
42697
42698 2009-10-20  Eric Blake  <ebb9@byu.net>
42699
42700         utimensat: work around Solaris 9 bug
42701         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42702         has trailing slash bugs.
42703         * tests/test-lutimens.h (test_lutimens): Enhance test.
42704         * tests/test-utimens.h (test_utimens): Likewise.
42705         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42706         * doc/posix-functions/utimes.texi (utimes): Likewise.
42707         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42708         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42709         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42710         * doc/posix-functions/futimens.texi (futimens): Likewise.
42711
42712         fdutimensat: new module
42713         * modules/fdutimensat: New file.
42714         * lib/fdutimensat.c (fdutimensat): Likewise.
42715         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42716         * MODULES.html.sh (File system functions): Mention module.
42717         * modules/fdutimensat-tests: New test.
42718         * tests/test-fdutimensat.c: Likewise.
42719
42720         doc: regenerate INSTALL
42721         * doc/INSTALL: Reflect recent autoconf update.
42722         * doc/INSTALL.ISO: Likewise.
42723         * doc/INSTALL.UTF-8: Likewise.
42724
42725 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42726
42727         acl: warn if ACL support is not detected
42728         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42729
42730 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42731
42732         * lib/nproc.h: Add extern "C" block for C++.
42733
42734 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42735             Bruno Haible  <bruno@clisp.org>
42736
42737         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42738         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42739         * doc/posix-functions/isalpha.texi: Likewise.
42740         * doc/posix-functions/isblank.texi: Likewise.
42741         * doc/posix-functions/iscntrl.texi: Likewise.
42742         * doc/posix-functions/isdigit.texi: Likewise.
42743         * doc/posix-functions/isgraph.texi: Likewise.
42744         * doc/posix-functions/islower.texi: Likewise.
42745         * doc/posix-functions/isprint.texi: Likewise.
42746         * doc/posix-functions/ispunct.texi: Likewise.
42747         * doc/posix-functions/isspace.texi: Likewise.
42748         * doc/posix-functions/isupper.texi: Likewise.
42749         * doc/posix-functions/isxdigit.texi: Likewise.
42750
42751 2009-10-18  Bruno Haible  <bruno@clisp.org>
42752
42753         Tests for module 'isblank'.
42754         * modules/isblank-tests: New file.
42755         * tests/test-isblank.c: New file.
42756
42757         New module 'isblank'.
42758         * lib/isblank.c: New file.
42759         * m4/isblank.m4: New file.
42760         * modules/isblank: New file.
42761         * doc/posix-functions/isblank.texi: Mention the new module.
42762
42763 2009-10-18  Bruno Haible  <bruno@clisp.org>
42764
42765         New module 'ctype'.
42766         * lib/ctype.in.h: New file.
42767         * m4/ctype.m4: New file.
42768         * modules/ctype: New file.
42769         * doc/posix-headers/ctype.texi: Mention the new module.
42770
42771 2009-10-18  Jim Meyering  <meyering@redhat.com>
42772
42773         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42774         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42775         right after its initialization, rather than farther down.
42776         Keeping these in close proximity makes it easier to ensure
42777         that each such variable is initialized.  E.g.,
42778
42779             LIB_CLOCK_GETTIME=
42780             AC_SUBST([LIB_CLOCK_GETTIME])
42781
42782         This change also increments these serial numbers.
42783         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42786
42787 2009-10-18  Bruno Haible  <bruno@clisp.org>
42788
42789         Don't let environment variables perturb build.
42790         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42791         (gl_PREREQ_GETHRXTIME): ... not here.
42792
42793 2009-10-18  Bruno Haible  <bruno@clisp.org>
42794
42795         Avoid symlink attack in localcharset module.
42796         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42797         (O_NOFOLLOW): Define fallback.
42798         (get_charset_aliases): Don't open the file if it is a symbolic link.
42799         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42800         gl_FCNTL_H.
42801         (gl_FCNTL_H): Require it.
42802         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42803         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42804         Reported by Fergal Glynn <fglynn@veracode.com>.
42805
42806 2009-10-18  Bruno Haible  <bruno@clisp.org>
42807
42808         Implement nproc for mingw.
42809         * lib/nproc.c: Include <windows.h>
42810         (num_processors): On native Windows platforms, try GetSystemInfo.
42811
42812 2009-10-18  Bruno Haible  <bruno@clisp.org>
42813
42814         Implement nproc for IRIX.
42815         * lib/nproc.c: Include <sys/sysmp.h>.
42816         (num_processors): On IRIX systems, try sysmp.
42817         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42818
42819 2009-10-18  Bruno Haible  <bruno@clisp.org>
42820
42821         Implement nproc for HP-UX.
42822         * lib/nproc.c: Include <sys/pstat.h>
42823         (num_processors): On HP-UX systems, try pstat_getdynamic.
42824         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42825         pstat_getdynamic.
42826
42827 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42828             Bruno Haible  <bruno@clisp.org>
42829
42830         Implement nproc for NetBSD, OpenBSD.
42831         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42832         (ARRAY_SIZE): New macro.
42833         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42834         * m4/nproc.m4: New file.
42835         * modules/nproc (Files): Add m4/nproc.m4.
42836         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42837         (Makefile.am): Instead, augment lib_SOURCES.
42838
42839 2009-10-18  Bruno Haible  <bruno@clisp.org>
42840
42841         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42842         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42843         sys/param.h.
42844
42845 2009-10-16  Eric Blake  <ebb9@byu.net>
42846
42847         utimensat: new module
42848         * modules/utimensat: New file.
42849         * lib/utimensat.c (utimensat): Likewise.
42850         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42851         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42852         so we can work around Linux bugs.
42853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42854         * modules/sys_stat (Makefile.am): Substitute them.
42855         * lib/sys_stat.in.h (utimensat): Declare it.
42856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42857         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42858         * modules/utimensat-tests: New test.
42859         * tests/test-utimensat.c: Likewise.
42860
42861         utimens: let lutimens work on non-symlinks
42862         * lib/utimens.c (lutimens): Fall back to utimens rather than
42863         failing with ENOSYS, when file is not a symlink.
42864         (utimens): Reduce redirection.
42865         * tests/test-lutimens.h (test_lutimens): Update test to cover
42866         non-symlinks.
42867         * tests/test-utimens.h (test_utimens): Update test to cover
42868         symlinks.
42869         * tests/test-utimens.c (main): Update caller.
42870
42871         utimens: cache whether utimensat syscall works
42872         * lib/utimens.c (utimensat_works_really): New cache variable.
42873         (fdutimens, lutimens): Use it to avoid failing syscall.
42874
42875         test-stat-time, test-utimens: improve portability
42876         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42877         ext4 on alpha, and for cygwin.
42878         * tests/test-utimens-common.h: New file.
42879         (nap): Factor delays into single function.
42880         * tests/test-lutimens.h (test_lutimens): Use new header.
42881         * tests/test-futimens.h (test_futimens): Likewise.
42882         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42883         timestamps to occur from same machine, as was done previously for
42884         test_utimens.
42885         * modules/utimens-tests (Files): Ship new file.
42886         * modules/futimens-tests (Files): Likewise.
42887         Reported in part by Jim Meyering.
42888
42889         sys_stat: sort replacement declarations
42890         * lib/sys_stat.in.h: Sort declarations.
42891         * lib/futimens.c (futimens): Fix typo.
42892
42893 2009-10-15  Jim Meyering  <meyering@redhat.com>
42894
42895         don't let environment settings perturb build
42896         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42897         could cause a configure-time and/or build-time malfunction.
42898         Typically, a configure-time function-in-library test is performed
42899         via code like this:
42900
42901           LIB_VAR=
42902           AC_SUBST([LIB_VAR])
42903           prefix_saved_LIBS=$LIBS
42904             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42905                        [test "$ac_cv_search_FUNC" = "none required" ||
42906                         LIB_VAR=$ac_cv_search_FUNC])
42907           LIBS=$prefix_saved_LIBS
42908
42909         However, in each of the files affected by this change, the LIB_VAR=
42910         initialization was omitted.  Thus, when set in the environment, its
42911         value would propagate into generated Makefiles when FUNC is not found
42912         in LIB_NAME.
42913         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42914         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42916
42917 2009-10-14  Eric Blake  <ebb9@byu.net>
42918
42919         fchdir: avoid infinite recursion in mingw
42920         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42921         recursing.
42922
42923         test-stat-time: port to mingw
42924         * tests/test-stat-time.c (force_unlink): Return a value.
42925         (test_ctime) [W32]: Fix compilation error.
42926         (nap): Don't call usleep with too large an argument.  Use
42927         force_unlink.
42928         * doc/pastposix-functions/usleep.texi (usleep): Document the
42929         portability issue.
42930
42931 2009-10-13  Jim Meyering  <meyering@redhat.com>
42932
42933         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42934         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42935         * modules/pipe-filter-ii: Likewise.
42936         * modules/sys_socket-tests: Likewise.
42937         * modules/tsearch-tests: Likewise.
42938         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42939         (check): Depend on it.
42940
42941 2009-10-12  Eric Blake  <ebb9@byu.net>
42942
42943         utimens-tests: port to NFS file systems
42944         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42945         comparisons to avoid spurious failures from timestamp drift
42946         between NFS machines.
42947
42948 2009-10-12  Eric Blake  <ebb9@byu.net>
42949
42950         stat-time-tests: minor cleanups
42951         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42952         * tests/test-stat-time.c (nap): Separate assignment from call.
42953         Suggested by Paolo Bonzini and Bruno Haible.
42954
42955         sys_stat: guarantee struct timespec
42956         * lib/sys_stat.in.h (includes): Always include <time.h>
42957         * modules/sys_stat (Depends-on): Add time.
42958         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42959         mode_t permission values.
42960         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42961         get at subsecond timestamps.
42962
42963 2009-10-10  Eric Blake  <ebb9@byu.net>
42964
42965         futimens: new module
42966         * modules/futimens: New file.
42967         * lib/futimens.c (futimens): Likewise.
42968         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42969         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42970         we can work around Linux bugs.
42971         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42972         * modules/sys_stat (Makefile.am): Substitute them.
42973         * lib/sys_stat.in.h (futimens): Declare it.
42974         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42975         * doc/posix-functions/futimens.texi (futimens): Likewise.
42976         * modules/futimens-tests: New test.
42977         * tests/test-futimens.c: Likewise.
42978
42979         utimens: introduce fdutimens
42980         * lib/utimens.h (fdutimens): New prototype.
42981         * lib/utimens.c (gl_futimens): Move guts...
42982         (fdutimens): ...to new interface.
42983         * tests/test-utimens.c (do_fdutimens): Use it.
42984
42985         utimens: add UTIME_NOW and UTIME_OMIT support
42986         * lib/utimens.c (validate_timespec, update_timespec): New helper
42987         functions.
42988         (gl_futimens, lutimens): Use them.
42989         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42990         stdbool, sys_stat.
42991         (Link): Mention resulting library dependency.
42992         * modules/utimecmp (Link): Likewise.
42993         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42994         (Makefile.am): Pick up library dependency.
42995         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42996         definition.
42997         * tests/test-sys_stat.c: Test the definitions.
42998         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42999         * NEWS: Document library dependency.
43000
43001         utimecmp: support symlink timestamps
43002         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43003         hashing when possible.  Use pathconf when available.
43004         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43005         * modules/utimecmp (Depends-on): Add lstat.
43006
43007         utimens: add lutimens interface
43008         * lib/utimens.c (lutimens): New function.
43009         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43010         * lib/utimens.h (lutimens): Declare new interface.
43011         * tests/test-utimens.c (main): Enhance test.
43012         * tests/test-lutimens.h (test_lutimens): New file.
43013         * modules/utimens-tests (Files): Distribute it.
43014         (Depends-on): Add symlink.
43015         (configure.ac): Check for usleep.
43016
43017         utimens: validate futimens usage
43018         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43019         fewer syscalls on failure later on.  Avoid compiler warning on
43020         mingw.
43021         * modules/utimens (Depends-on): Add dup2.
43022
43023         utimens: add test
43024         * modules/utimens-tests: New test.
43025         * tests/test-utimens.h: New file.
43026         * tests/test-futimens.h: Likewise.
43027         * tests/test-utimens.c: Likewise.
43028
43029         doc: mention timestamp portability issues
43030         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43031         instead.
43032         * doc/posix-functions/utime.texi (utime): Likewise.
43033         * doc/posix-functions/utimes.texi (utimes): Likewise.
43034         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43035         instead.
43036         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43037         module.
43038         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43039         Mention weakness with symlink timestamps.
43040         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43041         to utimensat/futimens instead.
43042         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43043
43044         test-dup2: enhance test
43045         * tests/test-dup2.c (main): Also check AT_FDCWD.
43046
43047         test-stat-time: avoid more spurious failures
43048         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43049         xfs; and avoid race if the two timestamps cross quantization edge.
43050
43051         relocatable: prefer 'file system' over 'filesystem'
43052         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43053         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43054         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43055         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43056         * lib/relocatable.c (compute_curr_prefix): Likewise.
43057
43058 2009-10-10  Jim Meyering  <meyering@redhat.com>
43059
43060         stat-time-tests: check for the usleep function
43061         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43062
43063 2009-10-10  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/xnanosleep: Put the Link section after the Include section.
43066
43067 2009-10-09  Eric Blake  <ebb9@byu.net>
43068
43069         dup2: work around FreeBSD 6.1 bug
43070         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43071         * doc/posix-functions/dup2.texi (dup2): Document it.
43072         Reported by Nelson H. F. Beebe and Jim Meyering.
43073
43074         test-stat-time: port to buggy NFS clients
43075         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43076         (test_ctime): Also skip test if mtime and ctime are skewed.
43077
43078         maint: prefer 'file system' over 'filesystem'
43079         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43080         * doc/posix-functions/lstat.texi (lstat): Likewise.
43081         * lib/file-has-acl.c (file_has_acl): Likewise.
43082         * lib/fwriteerror.c [TEST]: Likewise.
43083         * tests/test-areadlink.h (test_areadlink): Likewise.
43084         * tests/test-areadlinkat-with-size.c (main): Likewise.
43085         * tests/test-areadlinkat.c (main): Likewise.
43086         * tests/test-canonicalize-lgpl.c (main): Likewise.
43087         * tests/test-canonicalize.c (main): Likewise.
43088         * tests/test-fstatat.c (main): Likewise.
43089         * tests/test-linkat.c (main): Likewise.
43090         * tests/test-lstat.h (test_lstat_func): Likewise.
43091         * tests/test-mkdir.h (test_mkdir): Likewise.
43092         * tests/test-readlink.h (test_readlink): Likewise.
43093         * tests/test-remove.c (main): Likewise.
43094         * tests/test-rename.h (test_rename): Likewise.
43095         * tests/test-renameat.c (main): Likewise.
43096         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43097         * tests/test-symlink.h (test_symlink): Likewise.
43098         * tests/test-symlinkat.c (main): Likewise.
43099         * tests/test-unlink.h (test_unlink_func): Likewise.
43100         * tests/test-unlinkat.c (main): Likewise.
43101
43102         maint: make realtime library usage explicit
43103         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43104         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43105         * modules/settime (Link): Likewise.
43106         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43107
43108         test-stat-time: speed up execution
43109         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43110         warning on mingw.
43111         (nap): New helper function.
43112         (prepare_test): Use it to reduce sleep time.
43113         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43114         execution.
43115         * modules/stat-time-tests (configure.ac): Check for usleep.
43116
43117 2009-10-09  Jim Meyering  <meyering@redhat.com>
43118
43119         selinux-h: always use getfilecon wrappers
43120         * lib/getfilecon.c: New file.
43121         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43122         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43123         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43124         (fgetfilecon): Provide a stub.
43125         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43126         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43127         file unconditionally.
43128         When <selinux/selinux.h> is found, arrange to use wrappers.
43129         * modules/selinux-h (Files): Add getfilecon.c.
43130         (Makefile.am): Substitute include-next-related bits
43131         into the now-always-generated selinux/selinux.h file.
43132         * doc/glibc-functions/lgetfilecon.texi: New file.
43133         * doc/glibc-functions/fgetfilecon.texi: New file.
43134         * doc/glibc-functions/getfilecon.texi: New file.
43135         * doc/glibc-functions/getfilecon-desc.texi: New file.
43136         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43137         which to pull in the new files.
43138         * MODULES.html.sh (Misc): Add selinux-h.
43139
43140 2009-10-08  Jim Meyering  <meyering@redhat.com>
43141
43142         unistd: fix comment typo
43143         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43144
43145 2009-10-08  Eric Blake  <ebb9@byu.net>
43146
43147         areadlink: use SIZE_MAX consistently
43148         * modules/areadlink (Depends-on): Add stdint.
43149         * modules/areadlink-with-size (Depends-on): Likewise.
43150         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43151         gives NULL; drop sys/types, since unistd gives size_t; and add
43152         stdint for SIZE_MAX.
43153         (SIZE_MAX): Rely on headers.
43154         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43155         and add stdint.
43156         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43157         (SIZE_MAX): Likewise.
43158         (INITIAL_BUF_SIZE): Turn into enum.
43159         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43160
43161 2009-10-08  Jim Meyering  <meyering@redhat.com>
43162
43163         areadlinkat: avoid compilation failure
43164         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43165         Fix typo in comment.
43166
43167 2009-10-07  Eric Blake  <ebb9@byu.net>
43168
43169         areadlinkat-with-size: new module
43170         * modules/areadlinkat-with-size: New module.
43171         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43172         * lib/areadlink.h (areadlinkat): Declare it.
43173         * MODULES.html.sh (File system functions): Mention it.
43174         * modules/areadlinkat-with-size-tests: New test.
43175         * tests/test-areadlinkat-with-size.c: New file.
43176
43177         xreadlinkat: new module
43178         * modules/xreadlinkat: New module.
43179         * lib/xreadlinkat.c (xreadlinkat): New file.
43180         * lib/xreadlink.h (xreadlinkat): Declare it.
43181         * MODULES.html.sh (File system functions): Mention it.
43182
43183         areadlinkat: new module
43184         * lib/at-func.c (FUNC_FAIL): New define.
43185         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43186         * modules/areadlinkat: New module.
43187         * lib/linkat.c (areadlinkat): Move...
43188         * lib/areadlinkat.c (areadlinkat): ...to new file.
43189         * lib/areadlink.h (areadlinkat): Declare it.
43190         * modules/linkat (Depends-on): Add areadlinkat.
43191         * MODULES.html.sh (File system functions): Mention it.
43192         * modules/areadlinkat-tests: New test.
43193         * tests/test-areadlinkat.c: New file.
43194
43195         areadlink, areadlink-with-size: add tests
43196         * modules/areadlink-tests: New test.
43197         * modules/areadlink-with-size-tests: Likewise.
43198         * tests/test-areadlink.h: New file.
43199         * tests/test-areadlink.c: Likewise.
43200         * tests/test-areadlink-with-size.c: Likewise.
43201
43202         maint: minor cleanups
43203         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43204         _UNUSED_PARAMETER_ instead.
43205         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43206         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43207         * modules/linkat-tests (Files): Distribute test-link.h.
43208
43209         openat, utimens: whitespace cleanup
43210         * lib/openat.c: Prefer space throughout, rather than mix of 8
43211         spaces vs. tabs.
43212         * lib/at-func.c: Likewise.
43213         * lib/utimens.c: Likewise.
43214
43215         openat: avoid using wrong fd
43216         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43217         working directory chooses same fd.
43218         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43219
43220         mkdir, mkdirat: fix cygwin 1.5.x bug
43221         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43222         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43223         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43224         bug.
43225         (gl_PREREQ_MKDIR): Delete unused macro.
43226         * modules/mkdir (Files): Track file rename.
43227         (configure.ac): Update macro name.
43228         * modules/openat (Depends-on): Add mkdir.
43229         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43230
43231         mkdir, mkdirat: add tests
43232         * modules/mkdir-tests: New test.
43233         * tests/test-mkdir.h: New file.
43234         * tests/test-mkdir.c: Likewise.
43235         * tests/test-mkdirat.c: Likewise.
43236         * modules/openat-tests (Files): Add new files.
43237         (Makefile.am): Run new test.
43238
43239 2009-10-06  Eric Blake  <ebb9@byu.net>
43240
43241         doc: tweak *at function documentation
43242         * doc/posix-functions/faccessat.texi (faccessat): Mention
43243         known issue with replacement.
43244         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43245         * doc/posix-functions/linkat.texi (linkat): Likewise.
43246         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43247         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43248         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43249         * doc/posix-functions/renameat.texi (renameat): Likewise.
43250         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43251
43252         openat: fix GNU/Hurd bug in unlinkat
43253         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43254         broken.
43255         * doc/posix-functions/unlink.texi (unlink): Document this.
43256         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43257
43258         fdopendir: fix GNU/Hurd bug
43259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43260         allowing non-directory fds.
43261         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43263         * modules/dirent (Makefile.am): Substitute it.
43264         * lib/dirent.in.h (fdopendir): Declare replacement.
43265         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43266         * tests/test-fdopendir.c (main): Test something other than
43267         /dev/null, since on Hurd that behaves like a directory.
43268
43269         test-symlink: port to GNU/Hurd
43270         * tests/test-symlink.h (test_symlink): Relax expected errno.
43271
43272         doc: tweak more cygwin information
43273         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43274         now compatible with glibc.
43275         * doc/posix-functions/getopt.texi (getopt): Likewise.
43276
43277         getopt-gnu: add another test
43278         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43279         guarantee behavior relied on by m4.
43280         * tests/test-getopt.c (main): Use it.
43281         * modules/getopt-posix-tests (Depends-on): Add setenv.
43282         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43283
43284         getopt: fix compilation on darwin
43285         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43286         include.
43287         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43288         Reported by Ludovic Courtès.
43289
43290 2009-10-06  Bruno Haible  <bruno@clisp.org>
43291
43292         * modules/size_max (Description): Discourage its use.
43293         Reported by Simon Josefsson.
43294
43295 2009-10-06  Jim Meyering  <meyering@redhat.com>
43296
43297         linkat: avoid compilation failure
43298         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43299
43300 2009-10-05  Eric Blake  <ebb9@byu.net>
43301
43302         linkat: support Linux 2.6.17
43303         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43304         linkat on Linux, but allow cache variable override.
43305         * lib/linkat.c (rpl_linkat): Define override.
43306         * modules/linkat (Depends-on): Add symlinkat.
43307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43308         * modules/unistd (Makefile.am): Substitute it.
43309         * lib/unistd.in.h (linkat): Declare replacement.
43310         Reported by Pádraig Brady.
43311
43312         quotearg: port test to systems with C.UTF-8 locale
43313         * tests/test-quotearg.c (struct result_strings): Add another
43314         member, differentiating between C.ASCII and C.UTF-8 handling.
43315         (compare_strings): Add parameter.
43316         (main): Adjust all callers.
43317
43318         getopt: avoid clash with FreeBSD _getopt_internal
43319         * lib/getopt.in.h (_getopt_internal): Override the name.
43320         * lib/getopt_int.h (includes): Pick up any overrides.
43321         Reported by Reuben Thomas.
43322
43323         hash: allow C89 compilation
43324         * lib/hash.c (check_tuning): Move declaration before statement.
43325         Reported by Reuben Thomas.
43326
43327 2009-10-05  Karl Berry  <karl@gnu.org>
43328
43329         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43330
43331 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43332             Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/uname.c (uname): Use a table-driven algorithm to compute
43335         Windows NT versions.
43336
43337 2009-10-04  Bruno Haible  <bruno@clisp.org>
43338
43339         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43340         program_invocation_short_name.
43341         * modules/progname (configure.ac): Test for presence of
43342         program_invocation_short_name.
43343         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43344
43345 2009-10-04  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/progname.c (set_program_name): Fix comment.
43348         Reported by Jim Meyering.
43349
43350 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43351             Bruno Haible  <bruno@clisp.org>
43352
43353         * lib/uname.c: Include <string.h>.
43354         (uname): Do only one call to GetVersionEx in the common case.
43355
43356 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43357             Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43360         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43361         (uname): Add support for Windows CE and various non-x86 CPU types.
43362
43363 2009-10-03  Bruno Haible  <bruno@clisp.org>
43364
43365         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43366         invocation to tests/configure.ac.
43367         Reported by Ian Beckwith <ianb@erislabs.net>.
43368
43369 2009-10-02  Eric Blake  <ebb9@byu.net>
43370
43371         fchdir: avoid compiler warning
43372         * lib/fchdir.c (canonicalize_file_name)
43373         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43374
43375         test-open: support mingw errno values
43376         * tests/test-open.h (test_open): Relax test.
43377         * tests/test-fopen.h (test_fopen): Likewise.
43378         * tests/test-openat-safer.c (main): Likewise.
43379
43380         open: fix opening directory on mingw
43381         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43382
43383         test-open: on GNU/Hurd, /dev/null is a directory
43384         * tests/test-fopen.h (main): Rename...
43385         (test_fopen): ...to this.  Use a guaranteed non-directory when
43386         confirming open behavior on trailing slash.
43387         * tests/test-openat-safer.c (main): Likewise.
43388         * tests/test-open.h (main): Likewise....
43389         (test_open): ...to this.
43390         * tests/test-fopen.c (main): Adjust caller.
43391         * tests/test-fopen-safer.c (main): Likewise.
43392         * tests/test-open.c (main): Likewise.
43393         * tests/test-fcntl-safer.c (main): Likewise.
43394         Reported by Samuel Thibault.
43395
43396         rename, fchdir: don't ignore chdir failure
43397         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43398         * lib/rename.c (rpl_rename) [W32]: Likewise.
43399         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43400         an empty destination directory if source cannot be renamed,
43401         although there is still possibility for failure.
43402         * doc/posix-functions/rename.texi (rename): Document the race.
43403         Reported by Jim Meyering.
43404
43405         maint: cleanup whitespace in recent commits
43406         * lib/rename.c (rpl_rename): Remove tabs.
43407         * tests/test-link.h (test_link): Likewise.
43408         * lib/fchdir.c (get_name): Likewise.
43409         Reported by Jim Meyering.
43410
43411 2009-10-02  Ben Pfaff  <blp@gnu.org>
43412
43413         relocatable-prog-wrapper: Add missing dependency on
43414         double-slash-root.
43415         * modules/relocatable-prog-wrapper: Add dependency.
43416         Reported by Ian Beckwith <ianb@erislabs.net>.
43417
43418 2009-10-02  Eric Blake  <ebb9@byu.net>
43419
43420         renameat: fix Solaris bugs
43421         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43422         needed fixing.
43423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43424         * modules/stdio (Makefile.am): Substitute it.
43425         * lib/stdio.in.h (renameat): Declare replacement.
43426         * lib/renameat.c (rpl_renameat): Implement fix.
43427
43428         renameat: new module
43429         * modules/renameat: New file.
43430         * lib/renameat.c (renameat): Likewise.
43431         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43433         * modules/stdio (Makefile.am): Substitute them.
43434         * lib/stdio.in.h (renameat): Declare it.
43435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43436         * doc/posix-functions/renameat.texi (renameat): Likewise.
43437         * modules/renameat-tests: New test.
43438         * tests/test-renameat.c: Likewise.
43439
43440         rename: fix mingw bugs
43441         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43442         directory overwrite bugs.
43443
43444         rename: fix another cygwin 1.5 bug
43445         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43446         checks.
43447         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43448         unnecessary cygwin workarounds.  Also work around bug with moving
43449         full directory onto an empty one.
43450         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43451
43452         rename-dest-slash: merge into rename module
43453         * modules/rename-dest-slash (Status): Mark obsolete.
43454         (Depends-on): Add rename.
43455         (Files): Let rename do it all.
43456         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43457         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43458         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43459         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43460         * lib/rename.c (rpl_rename): Update comments.
43461
43462         rename: fix cygwin 1.5.x bugs
43463         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43464         * lib/rename.c (rpl_rename): Work around them.
43465         * modules/rename (Depends-on): Add same-inode.
43466
43467         rename: fix Solaris 10 bug
43468         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43469         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43470         was the only bug.
43471
43472         rename: fix Solaris 9 bug
43473         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43474         on non-directory.  Avoid calling exit.
43475         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43476         strdup.
43477         * modules/rename-tests (Depends-on): Drop lstat.
43478         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43479         (gl_PREREQ_RENAME): Delete unused macro.
43480
43481         rename-dest-slash: fix NetBSD bug
43482         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43483         links.
43484         * modules/rename-dest-slash (Depends-on): Add same-inode.
43485
43486         rename-tests: new test, exposes several platform bugs
43487         * modules/rename-tests: New file.
43488         * tests/test-rename.h: Likewise.
43489         * tests/test-rename.c: Likewise.
43490         * doc/posix-functions/rename.texi (rename): Improve documentation,
43491         including bugs that will eventually be fixed in gnulib.
43492
43493 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43494
43495         * lib/uname.c: Include <stdlib.h>
43496         (uname): Assume version info is available.
43497
43498 2009-10-02  Jim Meyering  <meyering@redhat.com>
43499
43500         gnu-web-doc-update: correct --help output
43501         * build-aux/gnu-web-doc-update: Make --help output relevant.
43502
43503         gnu-web-doc-update: add standard options
43504         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43505
43506         gnu-web-doc-update: New module.
43507         Use this script to automatically update the on-line web documentation
43508         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43509         * modules/gnu-web-doc-update: New file, from coreutils.
43510         * build-aux/gnu-web-doc-update: New script.
43511
43512 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43513
43514         link: LoadLibrary is not needed.
43515         * lib/link.c: Use GetModuleHandle.
43516
43517 2009-10-01  Eric Blake  <ebb9@byu.net>
43518
43519         getopt: bump serial number
43520         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43521         change.
43522
43523         tests: tighten link, rmdir, and remove tests
43524         * tests/test-link.h (includes): No need to use <config.h> here.
43525         Clean up if directory hard link was created, otherwise test for
43526         trailing '.'.
43527         * tests/test-linkat.c (main): Simplify.
43528         * tests/test-remove.c (main): Enhance test for trailing '.'.
43529         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43530
43531 2009-10-01  Jim Meyering  <meyering@redhat.com>
43532
43533         maint.mk: requiring "make major" was annoying, for a "minor" release.
43534         What is intended is "stable", to contrast with alpha and beta,
43535         so require "make stable", not "make major".
43536         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43537         (get_tool_versions): Likewise.
43538         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43539
43540 2009-09-30  Ben Pfaff  <blp@gnu.org>
43541
43542         Fix broken build of replacement for Windows tmpfile().
43543         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43544         flags argument added along with the 'mkostemp' module.
43545
43546 2009-09-28  Bruno Haible  <bruno@clisp.org>
43547
43548         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43549         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43550         to 'remove_elt'.
43551         (gl_list_remove): Update.
43552         * lib/gl_list.c (gl_list_remove): Update.
43553         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43554         to 'remove_elt'.
43555         (gl_oset_remove): Update.
43556         * lib/gl_list.c (gl_oset_remove): Update.
43557         Reported by Eric Blake.
43558
43559 2009-09-28  Eric Blake  <ebb9@byu.net>
43560
43561         doc: mention yet more cygwin 1.7 status
43562         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43563         cygwin.
43564         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43565         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43566
43567         argp: fix test failure
43568         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43569         that are not upper-case.  Pass correct range to tolower.
43570
43571 2009-09-27  Jim Meyering  <meyering@redhat.com>
43572
43573         test-yesno: work around sparc-dash here-document infelicity
43574         Without this change, the literal \177 byte in a here document
43575         would make dash 0.5.5.1-3 access uninitialized memory.
43576         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43577         Instead, use a marker, "@", and filter through tr to create the desired
43578         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43579
43580 2009-09-27  Bruno Haible  <bruno@clisp.org>
43581
43582         Disable untested support for new flavours of ACLs on AIX.
43583         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43584         progress.
43585         * lib/set-mode-acl.c (qset_acl): Likewise.
43586
43587 2008-12-07  Bruno Haible  <bruno@clisp.org>
43588
43589         Add support for new flavours of ACLs on AIX. (Untested.)
43590         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43591         (file_has_acl): Add support for newer AIX.
43592         * lib/set-mode-acl.c (qset_acl): Likewise.
43593         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43594         Rainer Tammer <tammer@tammer.net>.
43595
43596 2009-09-26  Eric Blake  <ebb9@byu.net>
43597
43598         argp: fix compilation of getopt
43599         * lib/getopt.in.h (includes): Use different guard than glibc.
43600         Reported by Sergey Poznyakoff.
43601
43602         doc: mention more cygwin 1.7 status
43603         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43604         bug.
43605         * doc/posix-functions/execl.texi (execl): Likewise.
43606         * doc/posix-functions/execle.texi (execle): Likewise.
43607         * doc/posix-functions/execlp.texi (execlp): Likewise.
43608         * doc/posix-functions/execv.texi (execv): Likewise.
43609         * doc/posix-functions/execve.texi (execve): Likewise.
43610         * doc/posix-functions/execvp.texi (execvp): Likewise.
43611         * doc/glibc-functions/canonicalize_file_name.texi
43612         (canonicalize_file_name): Cygwin 1.7 now provides this.
43613         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43614         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43615         on AT_SYMLINK_NOFOLLOW.
43616
43617 2009-09-24  Eric Blake  <ebb9@byu.net>
43618
43619         test-linkat: make test more robust
43620         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43621
43622         getopt: fix inclusion guards for cygwin
43623         * modules/getopt-posix (Depends-on): Add include-next.
43624         (Makefile.am): Substitute more items in replacement header.
43625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43626         <getopt.h>.
43627         * lib/getopt.in.h (includes): Use split inclusion guard, and
43628         prefer <getopt.h> over include <unistd.h> when one is present.
43629         (option): Also override name of 'struct option'.
43630
43631         same-inode: revert prior change; it is not yet ready
43632         * NEWS: Undo mention of this change.
43633         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43634         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43635         * lib/cycle-check.c (cycle_check): Likewise.
43636         * lib/same.c (same_name): Likewise.
43637         * lib/at-func2.c (at_func2): Likewise.
43638
43639 2009-09-23  Eric Blake  <ebb9@byu.net>
43640
43641         linkat: new module
43642         * modules/linkat: New file.
43643         * lib/at-func2.c (at_func2): Likewise.
43644         * lib/linkat.c (linkat): Likewise.
43645         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43646         * lib/openat-priv.h (at_func2): Add declaration.
43647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43648         * modules/unistd (Makefile.am): Substitute them.
43649         * lib/unistd.in.h (linkat): Declare it.
43650         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43651         * doc/posix-functions/linkat.texi (linkat): Likewise.
43652         * doc/posix-functions/link.texi (link): Tweak wording.
43653         * tests/test-link.c (main): Move guts...
43654         * tests/test-link.h (test_link): ...into new file.
43655         * modules/linkat-tests: New test.
43656         * tests/test-linkat.c: Likewise.
43657         * modules/link-tests (Files): Ship new file.
43658         (Depends-on): Add stdbool.
43659
43660         dirname: add library-safe mdir_name
43661         * lib/dirname.h (mdir_name): New prototype.
43662         * lib/dirname.c (dir_name): Move guts...
43663         (mdir_name): ...to new function that avoids xalloc_die.
43664
43665         fchdir: another mingw fix
43666         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43667         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43668         on mingw (where it has not yet been ported), and make it optional
43669         elsewhere.
43670         (_gl_register_fd): Use it.
43671
43672         same-inode: make SAME_INODE tri-state, to port to mingw
43673         * NEWS: Mention this change.
43674         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43675         st_ino always being 0.
43676         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43677         * lib/cycle-check.c (cycle_check): Likewise.
43678         * lib/same.c (same_name): Likewise.
43679
43680         lstat: avoid mingw compilation error
43681         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43683         lstat ourselves.
43684         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43685         was adequate.
43686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43687         the checks for lstat.
43688         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43689
43690         link: fix test failure on Solaris 9
43691         * lib/link.c (rpl_link): Don't assume link will catch bogus
43692         trailing slash on source.
43693
43694         test-symlinkat: enhance test
43695         * tests/test-readlink.c (main): Move guts...
43696         * tests/test-readlink.h (test_readlink): ...into new file.
43697         * tests/test-symlink.c (main): Move guts...
43698         * tests/test-symlink.h (test_symlink): ...into new file.
43699         * tests/test-symlinkat.c (main): Use new files for further
43700         coverage.
43701         (do_symlink, do_readlink): New helper functions.
43702         * modules/symlink-tests (Files): Ship new file.
43703         (Depends-on): Add stdbool.
43704         * modules/readlink-tests (Files): Ship new file.
43705         (Depends-on): Add stdbool.
43706         * modules/symlinkat-tests (Files): Use new files.
43707
43708 2009-09-23  Eric Blake  <ebb9@byu.net>
43709
43710         readlink: document portability issue with symlink length
43711         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43712         systems have bogus st_size on symlinks, and mention the
43713         areadlink-with-size module.
43714         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43715         * doc/posix-functions/readlink.texi (readlink): Mention the
43716         areadlink module, and ERANGE failure.
43717         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43718         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43719
43720         readlink: fix Solaris 9 bug with trailing slash
43721         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43722         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43723         * doc/posix-functions/readlink.texi (readlink): Document this.
43724         * modules/readlink-tests: New test.
43725         * tests/test-readlink.c: Likewise.
43726
43727         readlink: fix cygwin 1.5.x bug with return type
43728         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43729         * lib/unistd.in.h (readlink): Use ssize_t.
43730         * lib/readlink.c (readlink): Likewise.
43731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43732         * modules/unistd (Makefile.am): Substitute it.
43733         * lib/unistd.in.h (readlink): Declare replacement.
43734         * doc/posix-functions/readlink.texi (readlink): Document this.
43735
43736         symlink: use throughout gnulib
43737         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43738         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43739         symlink is not used.
43740         * modules/symlinkat (Depends-on): Add symlink.
43741         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43742         * modules/canonicalize-tests (Depends-on): Likewise.
43743         * modules/lstat-tests (Depends-on): Likewise.
43744         * modules/openat-tests (Depends-on): Likewise.
43745         * modules/remove-tests (Depends-on): Likewise.
43746         * modules/rmdir-tests (Depends-on): Likewise.
43747         * modules/unlink-tests (Depends-on): Likewise.
43748         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43749         * tests/test-canonicalize.c (symlink): Likewise.
43750         * tests/test-fstatat.c (symlink): Likewise.
43751         * tests/test-lstat.c (symlink): Likewise.
43752         * tests/test-remove.c (symlink): Likewise.
43753         * tests/test-rmdir.c (symlink): Likewise.
43754         * tests/test-unlink.c (symlink): Likewise.
43755         * tests/test-unlinkat.c (symlink): Likewise.
43756
43757         symlink: new module, for Solaris 9 bug
43758         * modules/symlink: New file.
43759         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43760         * lib/symlink.c: Likewise.
43761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43762         * modules/unistd (Makefile.am): Substitute them.
43763         * lib/unistd.in.h (symlink): Declare replacement.
43764         * MODULES.html.sh (File system functions): Mention it.
43765         * doc/posix-functions/symlink.texi (symlink): Likewise.
43766         * modules/symlink-tests: New test.
43767         * tests/test-symlink.c: Likewise.
43768
43769 2009-09-23  Bruno Haible  <bruno@clisp.org>
43770
43771         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43772         when needed.
43773         Test case: gnulib-tool --import --with-tests atexit inttypes.
43774         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43775
43776 2009-09-23  Bruno Haible  <bruno@clisp.org>
43777
43778         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43779         subcommand, not in a subshell.
43780
43781 2009-09-22  Eric Blake  <ebb9@byu.net>
43782
43783         unistd: sort replacement declarations
43784         * lib/unistd.in.h: Sort declarations.
43785
43786         open, openat: minor optimization
43787         * lib/open.c (open): If open succeeded, len is non-zero.
43788         * lib/openat.c (rpl_openat): Likewise.
43789
43790         link-follow: ensure correct result
43791         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43792         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43793         distinguish between possible failures.
43794
43795 2009-09-21  Eric Blake  <ebb9@byu.net>
43796
43797         fts: avoid compiler warning
43798         * lib/fts.c (dirent_inode_sort_may_be_useful)
43799         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43800
43801 2009-09-19  Bruno Haible  <bruno@clisp.org>
43802
43803         * lib/progreloc.c (canonicalize_file_name): New declaration.
43804
43805 2009-09-19  Eric Blake  <ebb9@byu.net>
43806
43807         link: fix quoting
43808         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43809
43810         openat: fix openat bugs on Solaris 9
43811         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43812         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43813         * modules/openat (Depends-on): Add open.
43814         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43815         * modules/fcntl-h (Makefile.am): Substitute it.
43816         * lib/fcntl.in.h (openat): Declare replacement.
43817         * doc/posix-functions/openat.texi (openat): Document this.
43818
43819         openat: move fstatat and unlinkat into correct files
43820         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43821         compiled.
43822         * lib/openat.c (fstatat, unlinkat): Move...
43823         * lib/fstatat.c (fstatat): ...into correct files.
43824         * lib/unlinkat.c (unlinkat): Likewise.
43825
43826         openat: fix unlinkat bugs on Solaris 9
43827         * lib/unlinkat.c (unlinkat): New file.
43828         * modules/openat (Depends-on): Add unlink.
43829         (Files): Distribute it.
43830         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43831         trailing slash behavior is broken.
43832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43833         * modules/unistd (Makefile.am): Substitute it.
43834         * lib/unistd.in.h (unlinkat): Declare replacement.
43835         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43836
43837         openat: fix fstatat bugs on Solaris 9
43838         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43839         stat.
43840         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43841
43842         test-unlinkat: enhance test, to expose Solaris 9 bug
43843         * tests/test-unlink.c (main): Factor guts...
43844         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43845         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43846         * tests/test-rmdir.c (main): Adjust caller.
43847         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43848         (unlinker): New helper function.
43849         (rmdirat): Enhance check.
43850         * modules/rmdir-tests (Depends-on): Add stdbool.
43851         * modules/unlink-tests (Depends-on): Likewise.
43852         (Files): Add test-unlink.h.
43853         * modules/openat-tests (Files): Likewise.
43854         (Depends-on): Add unlinkdir.
43855
43856         test-fstatat: new test, to expose Solaris 9 bugs
43857         * tests/test-stat.c (main): Factor guts...
43858         * tests/test-stat.h (test_stat_func): ...into new file.
43859         * tests/test-lstat.c (main): Factor guts...
43860         * tests/test-lstat.h (test_lstat_func): ...into new file.
43861         * tests/test-fstatat.c: New file.
43862         * modules/stat-tests (Files): Add test-stat.h.
43863         * modules/lstat-tests (Files): Add test-lstat.h.
43864         (Depends-on): Add stdbool.
43865         * modules/openat-tests (Depends-on): Add pathmax.
43866         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43867         (Makefile.am): Run new test.
43868
43869         remove: new module, for mingw and Solaris 9 bugs
43870         * modules/remove: New file.
43871         * lib/remove.c: Likewise.
43872         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43874         * modules/stdio (Makefile.am): Use them.
43875         * lib/stdio.in.h (remove): Declare replacement.
43876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43877         * doc/posix-functions/remove.texi (remove): Likewise.
43878         * modules/remove-tests: New test.
43879         * tests/test-remove.c: Likewise.
43880
43881         unlink: new module, for Solaris 9 bug
43882         * modules/unlink: New file.
43883         * lib/unlink.c: Likewise.
43884         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43886         * modules/unistd (Makefile.am): Use them.
43887         * lib/unistd.in.h (stat): Declare replacement.
43888         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43889         * doc/posix-functions/unlink.texi (unlink): Likewise.
43890         * modules/unlink-tests: New test.
43891         * tests/test-unlink.c: Likewise.
43892
43893         lstat: fix Solaris 9 bug
43894         * lib/lstat.c (lstat): Also check for trailing slash on
43895         non-symlink, non-directories.  Use stat module to simplify logic.
43896         * doc/posix-functions/lstat.texi (lstat): Document it.
43897         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43898         (configure.ac): Check for symlink.
43899         * tests/test-lstat.c (main): Add more tests.
43900
43901         stat: add as dependency to other modules
43902         * modules/chown (Depends-on): Add stat.
43903         * modules/euidaccess (Depends-on): Likewise.
43904         * modules/fchdir (Depends-on): Likewise.
43905         * modules/isdir (Depends-on): Likewise.
43906         * modules/link (Depends-on): Likewise.
43907         * modules/lstat (Depends-on): Likewise.
43908         * modules/mkdir-p (Depends-on): Likewise.
43909         * modules/modechange (Depends-on): Likewise.
43910         * modules/open (Depends-on): Likewise.
43911         * modules/readlink (Depends-on): Likewise.
43912         * modules/same (Depends-on): Likewise.
43913
43914         stat: fix Solaris 9 bug
43915         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43916         slash.
43917         * lib/stat.c (rpl_stat): Work around it.
43918         * doc/posix-functions/stat.texi (stat): Update documentation.
43919
43920         stat: new module, for mingw bug
43921         * modules/stat: New file.
43922         * lib/stat.c: Likewise.
43923         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43925         * modules/sys_stat (Makefile.am): Use them.
43926         * lib/sys_stat.in.h (stat): Declare replacement.
43927         * lib/openat.c (fstatat): Deal with lstat and stat being function
43928         macros.
43929         * modules/openat (Depends-on): Add inline.
43930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43931         * doc/posix-functions/stat.texi (stat): Likewise.
43932         * modules/stat-tests: New test.
43933         * tests/test-stat.c: Likewise.
43934
43935 2009-09-19  Jim Meyering  <meyering@redhat.com>
43936
43937         syntax-check: detect unnecessary inclusion of canonicalize.h
43938         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43939
43940 2009-09-19  Eric Blake  <ebb9@byu.net>
43941
43942         canonicalize-lgpl: adjust clients to use correct header
43943         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43944         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43945         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43946         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43947         * lib/progreloc.c (includes): Likewise.
43948
43949 2009-09-19  Jim Meyering  <meyering@redhat.com>
43950
43951         test-posixtm.c: correct a comment
43952         * tests/test-posixtm.c: Correct first-line comment.
43953         Spotted by Eric Blake.
43954
43955 2009-09-16  Jim Meyering  <meyering@redhat.com>
43956
43957         posixtm-tests: make T const-correct; add a test case
43958         * tests/test-posixtm.c (T): Declare const.
43959         Add a test for -(2^31+1).
43960         Remove useless can-succeed-only-in-2002 test.
43961
43962         posixtm-tests: adjust the sole failing test
43963         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43964         expected output matches what mktime now produces.  Cross-checked via
43965         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43966
43967         posixtm: move #ifdef'd tests into a new module
43968         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43969         * tests/test-posixtm.c: ... this new file.
43970         * modules/posixtm-tests: New module.
43971
43972 2009-09-19  Eric Blake  <ebb9@byu.net>
43973
43974         openat: simplify use of at-func.c
43975         * lib/at-func.c (includes): Include prerequisites here, to
43976         simplify requirements on client files.
43977         * lib/openat-priv.h: Add double-inclusion guard.
43978         * lib/faccessat.c (includes): Simplify.
43979         * lib/fchmodat.c (includes): Likewise.
43980         * lib/fchownat.c (includes): Likewise.
43981         * lib/mkdirat.c (includes): Likewise.
43982         * lib/mkfifoat.c (includes): Likewise.
43983         * lib/symlinkat.c (includes): Likewise.
43984
43985         openat: allow return of fd 0
43986         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43987         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43988         unistd-safer.
43989         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43990         <fcntl.h>; this module does not leak fds.
43991         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43992         must be allowed to return 0, leaving openat_safer to add the
43993         safety.
43994         (openat_permissive): Avoid writing to just-opened fd 2 if
43995         restoring the current directory fails.
43996         * lib/openat-die.c (openat_restore_fail): Add comment.
43997         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43998         (save_cwd): Guarantee safe fd, but without use of open_safer.
43999         * tests/test-openat.c: New test.
44000         * modules/openat-tests (Files, Makefile.am): Distribute and build
44001         new file.
44002
44003         relocatable-prog-wrapper: fix build
44004         * modules/relocatable-prog-wrapper (Files): Update name of
44005         canonicalize m4 file, broken on 2009-09-17.
44006         Reported by emad hajjar <aleppos@hotmail.com>.
44007
44008 2009-09-19  Bruno Haible  <bruno@clisp.org>
44009
44010         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44011         * lib/safe-alloc.c: Likewise.
44012         Reported by Ian Beckwith <ianb@erislabs.net>.
44013
44014 2009-09-18  Bruno Haible  <bruno@clisp.org>
44015
44016         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44017         Reported by <erobles@sensacd.com.mx>.
44018
44019 2009-09-17  Eric Blake  <ebb9@byu.net>
44020
44021         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44022         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44023         slashes when checking if last component is missing.
44024         * tests/test-canonicalize.c (main): Test this.
44025
44026         canonicalize, canonicalize-lgpl: honor // if distinct from /
44027         * modules/canonicalize (Files): Add double-slash-root.m4.
44028         * modules/canonicalize-lgpl (Files): Likewise.
44029         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44030         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44031         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44032         fallback definition.
44033         (canonicalize_filename_mode): Use it to protect //.
44034         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44035         (__realpath): Likewise.
44036         * tests/test-canonicalize.c (main): Test this.
44037         * tests/test-canonicalize-lgpl.c (main): Likewise.
44038         * modules/canonicalize-tests (Depends-on): Add same-inode.
44039         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44040
44041         canonicalize-lgpl: fix glibc bug with trailing slash
44042         * m4/canonicalize-lgpl.m4: Move contents...
44043         * m4/canonicalize.m4: ...here.
44044         (gl_CANONICALIZE_LGPL): Factor realpath check...
44045         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44046         glibc 2.3.5 bug, fixed 2005-04-27.
44047         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44048         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44049         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44050         * modules/canonicalize-lgpl (Files): Manage file rename.
44051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44052         * modules/stdlib (Makefile.am): Substitute witness.
44053         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44054         is needed.
44055         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44056         replacement is required.
44057         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44058         * doc/glibc-functions/canonicalize_file_name.texi
44059         (canonicalize_file_name): Document this.
44060         * doc/posix-functions/realpath.texi (realpath): Likewise.
44061
44062         canonicalize-lgpl: reject non-directory with trailing slash
44063         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44064         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44065         catches failures in glibc 2.3.5.
44066         * tests/test-canonicalize.c (main): Likewise.
44067
44068         canonicalize-lgpl: use native realpath if it works
44069         * lib/canonicalize-lgpl.c (realpath): Guard with
44070         FUNC_REALPATH_WORKS.
44071         * lib/stdlib.in.h (realpath): Make declaration optional based on
44072         HAVE_REALPATH.
44073         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44074         native realpath works.
44075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44076         * modules/stdlib (Makefile.am): Substitute witness.
44077
44078         canonicalize, canonicalize-lgpl: use <stdlib.h>
44079         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44080         (Include): Mention <stdlib.h>.
44081         (configure.ac): Mention functions we provide.
44082         * modules/canonicalize (configure.ac): Likewise.
44083         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44084         realpath if canonicalize_file_name is missing.
44085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44086         * modules/stdlib (Makefile.am): Substitute witnesses.
44087         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44088         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44089         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44090         * NEWS: Document this.
44091         * doc/glibc-functions/canonicalize_file_name.texi
44092         (canonicalize_file_name): Likewise.
44093         * doc/posix-functions/realpath.texi (realpath): Likewise.
44094         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44095
44096         test-canonicalize: consolidate into single C program
44097         * tests/test-canonicalize.sh: Delete; move setup into...
44098         * tests/test-canonicalize.c (main): ...the program, making it
44099         easier to run in debugger.  Add some tests.
44100         * modules/canonicalize-tests (Files): Remove unused file.
44101         (Depends-on): Add progname.
44102         (configure.ac, Makefile.am): Simplify.
44103
44104         test-canonicalize-lgpl: consolidate into single C program
44105         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44106         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44107         easier to run in debugger.  Add some tests.
44108         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44109         (configure.ac, Makefile.am): Simplify.
44110
44111         canonicalize: avoid resolvepath
44112         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44113         unnecessary checks.
44114         * lib/canonicalize.c (includes): Simplify.
44115         (canonicalize_file_name): Drop resolvepath implementation.
44116         * modules/canonicalize (Depends-on): Drop filenamecat.
44117
44118         canonicalize: don't lose errno
44119         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44120         over calls to free.
44121
44122         canonicalize: simplify errno handling
44123         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44124         assignment.
44125
44126         canonicalize, canonicalize-lgpl: update module dependencies
44127         * modules/canonicalize (Depends-on): Add extensions, lstat,
44128         pathmax, stdlib.
44129         (Files): Drop pathmax.h.
44130         (configure.ac): Adjust macro name.
44131         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44132         lstat, stdlib, sys_stat.
44133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44134         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44135         extensions.
44136         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44137         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44138         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44139         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44140         declaration, if available.
44141         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44142         we can rely on the readlink module.
44143         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44144         (includes): Use <unistd.h> unconditionally.
44145
44146 2009-09-17  Eric Blake  <ebb9@byu.net>
44147
44148         maint: make Include sections of modules consistent
44149         * modules/alloca: Use only header name; no need to list #include.
44150         * modules/alloca-opt: Likewise.
44151         * modules/arpa_inet: Likewise.
44152         * modules/canon-host: Likewise.
44153         * modules/configmake: Likewise.
44154         * modules/dirent: Likewise.
44155         * modules/eealloc: Likewise.
44156         * modules/environ: Likewise.
44157         * modules/fchdir: Likewise.
44158         * modules/fcntl: Likewise.
44159         * modules/fcntl-h: Likewise.
44160         * modules/gethrxtime: Likewise.
44161         * modules/gettime: Likewise.
44162         * modules/ignore-value: Likewise.
44163         * modules/inet_ntop: Likewise.
44164         * modules/inet_pton: Likewise.
44165         * modules/inttypes: Likewise.
44166         * modules/isnand-nolibm: Likewise.
44167         * modules/isnanf-nolibm: Likewise.
44168         * modules/mbchar: Likewise.
44169         * modules/mbfile: Likewise.
44170         * modules/mbiter: Likewise.
44171         * modules/mbuiter: Likewise.
44172         * modules/netdb: Likewise.
44173         * modules/netinet_in: Likewise.
44174         * modules/nproc: Likewise.
44175         * modules/pagealign_alloc: Likewise.
44176         * modules/poll: Likewise.
44177         * modules/printf-frexp: Likewise.
44178         * modules/pthread: Likewise.
44179         * modules/putenv: Likewise.
44180         * modules/random_r: Likewise.
44181         * modules/relocatable-prog: Likewise.
44182         * modules/search: Likewise.
44183         * modules/select: Likewise.
44184         * modules/selinux-h: Likewise.
44185         * modules/settime: Likewise.
44186         * modules/signal: Likewise.
44187         * modules/size_max: Likewise.
44188         * modules/socklen: Likewise.
44189         * modules/ssize_t: Likewise.
44190         * modules/stdarg: Likewise.
44191         * modules/stdbool: Likewise.
44192         * modules/stddef: Likewise.
44193         * modules/stdint: Likewise.
44194         * modules/stdio: Likewise.
44195         * modules/stdlib: Likewise.
44196         * modules/string: Likewise.
44197         * modules/strings: Likewise.
44198         * modules/sys_file: Likewise.
44199         * modules/sys_ioctl: Likewise.
44200         * modules/sys_select: Likewise.
44201         * modules/sys_socket: Likewise.
44202         * modules/sys_stat: Likewise.
44203         * modules/sys_time: Likewise.
44204         * modules/sys_times: Likewise.
44205         * modules/sys_utsname: Likewise.
44206         * modules/sys_wait: Likewise.
44207         * modules/sysexits: Likewise.
44208         * modules/time: Likewise.
44209         * modules/times: Likewise.
44210         * modules/tmpfile: Likewise.
44211         * modules/trim: Likewise.
44212         * modules/unistd: Likewise.
44213         * modules/wchar: Likewise.
44214         * modules/wctype: Likewise.
44215
44216 2009-09-17  Bruno Haible  <bruno@clisp.org>
44217
44218         Make getdate.y compile on QNX and NetBSD 5 / i386.
44219         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44220         TIME_T_FITS_IN_LONG_INT.
44221         * lib/getdate.y (long_time_t): New type.
44222         (relative_time): Change type of 'seconds' field to long_time_t.
44223         (get_date): Update types of local variables. Check against overflow
44224         during conversion from long_time_t to time_t.
44225         Reported by Matt Kraai <kraai@ftbfs.org>
44226         and Hasso Tepper <hasso@netbsd.org>.
44227
44228 2009-09-17  Bruno Haible  <bruno@clisp.org>
44229
44230         * modules/COPYING: Update copyright years.
44231         * modules/README: Likeiwse.
44232         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44233         Reported by Ian Beckwith <ianb@erislabs.net>.
44234
44235 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44236
44237         * users.txt: Update references for gnuit package.
44238
44239 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44240
44241         * m4/getdelim.m4: Fix typo in copyright line.
44242
44243 2009-09-17  Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/atoll.c: Use the standard header with GPL copyright.
44246         * lib/argz.in.h: Likewise.
44247         * lib/glob.c: Likewise.
44248         * lib/glob-libc.h: Likewise.
44249         * lib/random_r.c: Likewise.
44250         * lib/siglist.h: Likewise.
44251         * lib/strsignal.c: Likewise.
44252         Reported by Ian Beckwith <ianb@erislabs.net>.
44253
44254 2009-09-17  Eric Blake  <ebb9@byu.net>
44255
44256         rmdir: ensure correct dependency order
44257         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44258
44259 2009-09-17  Bruno Haible  <bruno@clisp.org>
44260
44261         Disable assertion that fails on NetBSD 5 / i386.
44262         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44263         Reported by Sam Steingold <sds@gnu.org>
44264         and Hasso Tepper <hasso@netbsd.org>.
44265
44266 2009-09-16  Eric Blake  <ebb9@byu.net>
44267
44268         unlinkdir: port to mingw
44269         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44270         on which no one can unlink a directory.
44271
44272         stdlib: sort witness names
44273         * modules/stdlib (Makefile.am): Sort replacements.
44274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44275         * lib/stdlib.in.h: Likewise.
44276
44277         parse-duration-tests: avoid link failure
44278         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44279         LIBINTL.
44280         Reported by Tom G. Christensen.
44281
44282         openat-tests: ensure unlinkat behaves like rmdir
44283         * tests/test-rmdir.c (main): Factor guts...
44284         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44285         * modules/rmdir-tests (Files): Ship new file.
44286         * modules/openat-tests: New test.
44287         * tests/test-unlinkat.c: Likewise.
44288
44289         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44290         * modules/rmdir-errno (Status, Notice): Now obsolete.
44291
44292         rmdir: work around cygwin 1.5.x and mingw bugs
44293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44294         * lib/rmdir.c (rmdir): Work around it.
44295         * modules/rmdir (Status, Notice): No longer obsolete.
44296         (Files): Add dos.m4.
44297         (Depends-on): Add unistd.
44298         (configure.ac): Set witnesses.
44299         (License): Relax to LGPLv2+.
44300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44301         * modules/unistd (Makefile.am): Substitute witnesses.
44302         * lib/unistd.in.h (rmdir): Declare replacement.
44303         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44304         * modules/rmdir-tests: New tests.
44305         * tests/test-rmdir.c: Likewise.
44306
44307 2009-09-15  Eric Blake  <ebb9@byu.net>
44308
44309         fchdir: improve use of replacement functions
44310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44312         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44313         REPLACE_CLOSEDIR.
44314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44315         * modules/sys_stat (Makefile.am): Substitute correct witness.
44316         * modules/dirent (Makefile.am): Likewise.
44317         * modules/unistd (Makefile.am): Likewise.
44318         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44319         * lib/unistd.in.h (dup): Likewise.
44320         * lib/sys_stat.in.h (fstat): Likewise.
44321
44322         maint: ignore gnulib-tool temp files
44323         * .gitignore: Ignore files created during gnulib-tool --test.
44324
44325 2009-09-13  Jim Meyering  <meyering@redhat.com>
44326
44327         posixtm: don't reject a time that specify "60" as the number of seconds
44328         * lib/posixtm.c (posixtime): The code to reject invalid dates
44329         would also reject a time specified with the .60 suffix.
44330         But POSIX allows that, in order to accommodate leap seconds.
44331         So don't reject it.
44332         (main): Adjust tests accordingly.
44333         * modules/posixtm (Depends-on): Add stpcpy.
44334
44335 2009-09-11  Jim Meyering  <meyering@redhat.com>
44336
44337         announce-gen: include [$release_type] in emitted Subject:
44338         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44339         e.g., [stable] in the emitted Subject: line.
44340
44341 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44342
44343         Remove obsolete macros from several modules.
44344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44345         obsolete Autoconf macros with their modern counterparts.
44346         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44347         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44349         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44351         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44353         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44354         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44355         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44356         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44358         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44359         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44360         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44361         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44362         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44363         * m4/time_r.m4 (gl_TIME_R): Likewise.
44364         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44365         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44366         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44367
44368         Fix copyright header in build-aux scripts.
44369         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44370         recommendation.
44371         * build-aux/ncftpput-ftp: Likewise.
44372         * build-aux/update-copyright: Likewise.
44373
44374 2009-09-09  Eric Blake  <ebb9@byu.net>
44375
44376         test-link: allow Linux choice of errno
44377         * tests/test-link.c (main): Relax test for alternate error.
44378
44379         strndup: fix improper m4 caching
44380         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44381         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44382         (gl_PREREQ_STRNDUP): Delete.
44383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44384         * modules/string (Makefile.am): Substitute it.
44385         * lib/string.in.h (strndup): Modernize prototype.
44386
44387         getcwd: port to mingw
44388         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44389         different from the POSIX assumptions made throughout the getcwd
44390         module; fortunately, the mingw getcwd does not need replacement.
44391         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44392         * modules/getcwd-tests: New test.
44393         * tests/test-getcwd.c: Likewise.
44394
44395         link: fix platform bugs
44396         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44397         * lib/link.c (link): Work around them.  Fix related mingw bug.
44398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44399         * modules/unistd (Makefile.am): Substitute it.
44400         * lib/unistd.in.h (link): Declare replacement.
44401         * doc/posix-functions/link.texi (link): Document this.
44402         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44403
44404         test-link: consolidate into single C program, test more cases
44405         * tests/test-link.sh: Delete.
44406         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44407         at least Cygwin and Solaris.
44408         * modules/link-tests (Files): Remove unused file.
44409         (Depends-on): Add errno, sys_stat.
44410         (Makefile.am): Simplify.
44411
44412 2009-09-08  Bruno Haible  <bruno@clisp.org>
44413
44414         Work around towlower, towupper bug on mingw.
44415         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44416         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44417         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44418         * doc/posix-functions/towupper.texi: Likewise.
44419         Reported by Eric Blake.
44420
44421 2009-09-08  Jim Meyering  <meyering@redhat.com>
44422
44423         build: don't try to run autoheader if we don't use it
44424         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44425         is not used in configure.ac.
44426
44427 2009-09-08  Eric Blake  <ebb9@byu.net>
44428
44429         euidaccess: fix compilation error
44430         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44431
44432         rawmemchr: relax license
44433         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44434         okay.
44435         Reported by Jim Meyering.
44436
44437         mkfifoat: new module
44438         * modules/mkfifoat: New file.
44439         * lib/mkfifoat.c: Likewise.
44440         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44442         * modules/sys_stat (Makefile.am): Use them.
44443         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44444         * MODULES.html.sh (File system functions): Mention module.
44445         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44446         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44447         * modules/mkfifoat-tests: New test.
44448         * tests/test-mkfifoat.c: Likewise.
44449
44450         strchrnul: relax license
44451         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44452         okay.
44453         Reported by Jim Meyering.
44454
44455 2009-09-08  Eric Blake  <ebb9@byu.net>
44456
44457         fstatat: fix compilation on Solaris
44458         * lib/fstatat.c (includes): Add fcntl.h.
44459         Reported by Pádraig Brady.
44460
44461 2009-09-07  Eric Blake  <ebb9@byu.net>
44462
44463         rename: modernize replacement
44464         * modules/rename (Depends-on): Add stdio.
44465         (configure.ac): Declare witness.
44466         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44467         stdio take care of replacement.
44468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44469         * modules/stdio (Makefile.am): Substitute them.
44470         * lib/stdio.in.h (rename): Declare replacement.
44471         * lib/rename.c (includes): Allow cross-compilation to non-windows
44472         machines.
44473         * doc/posix-functions/rename.texi (rename): Improve
44474         documentation.
44475
44476         stdio: sort witness names
44477         * modules/stdio (Makefile.am): Sort replacements.
44478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44479         * lib/stdio.in.h: Likewise.
44480
44481         getcwd: minor cleanups
44482         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44483         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44484
44485         openat: provide more convenience names
44486         * modules/faccessat (configure.ac): Add C witness.
44487         * lib/unistd.in.h (readlinkat): Fix typo.
44488         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44489         convenience wrappers.
44490         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44491         wrappers in syntax checks.
44492
44493 2009-09-06  Eric Blake  <ebb9@byu.net>
44494
44495         doc: fix comments in recent patches
44496         * lib/faccessat.c: Mention correct function.
44497         * lib/fchmodat.c: Likewise.
44498         * lib/fchownat.c: Likewise.
44499         * lib/symlinkat.c: Likewise.
44500         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44501         constants.
44502
44503         faccessat, symlinkat: continue cleanup of previous patch
44504         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44505         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44506         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44508         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44509         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44510         set.
44511
44512 2009-09-06  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44515         (fstatat): Declare if GNULIB_FSTATAT is set.
44516         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44517         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44518         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44519         * modules/fcntl-h (Files): Remove m4/openat.m4.
44520         * modules/sys_stat (Files): Remove m4/openat.m4.
44521         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44522         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44523         * modules/unistd (Files): Remove m4/openat.m4.
44524         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44525         GNULIB_OPENAT.
44526         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44527         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44529         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44530         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44531         gl_OPENAT_DEFAULTS.
44532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44533         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44534         Don't require gl_OPENAT_DEFAULTS.
44535         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44536         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44537         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44538         (gl_OPENAT_DEFAULTS): Remove macro.
44539
44540 2009-09-06  Bruno Haible  <bruno@clisp.org>
44541
44542         * modules/openat (configure.ac): Remove unneeded witness.
44543
44544 2009-09-06  Bruno Haible  <bruno@clisp.org>
44545
44546         Set errno to ENOSYS when a function is entirely unsupported.
44547         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44548         EOPNOTSUPP.
44549         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44550         * modules/chown (Depends-on): Remove errno.
44551
44552 2009-09-06  Bruno Haible  <bruno@clisp.org>
44553
44554         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44555
44556 2009-09-06  Bruno Haible  <bruno@clisp.org>
44557
44558         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44559
44560 2009-09-06  Ben Pfaff  <blp@gnu.org>
44561             Bruno Haible  <bruno@clisp.org>
44562
44563         Work around a glibc bug in strtok_r.
44564         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44565         Undefine if UNDEFINE_STRTOK_R is set.
44566         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44568         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44570         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44571         UNDEFINE_STRTOK_R.
44572         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44573
44574 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44575
44576         exclude: minor fix
44577         * lib/exclude.c: Include wctype.h
44578
44579 2009-09-06  Akim Demaille  <demaille@gostai.com>
44580
44581         bootstrap: improve error message
44582         * build-aux/bootstrap (find_tool): Upon failure, report the list
44583         of candidates.
44584         Honor the initial value of the envvar.
44585
44586 2009-09-05  Eric Blake  <ebb9@byu.net>
44587
44588         symlinkat: new module
44589         * modules/symlinkat: New file.
44590         * lib/symlinkat.c: Likewise.
44591         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44593         * modules/unistd (Makefile.am): Use them.
44594         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44595         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44596         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44597         * MODULES.html.sh (File system functions): Mention module.
44598         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44599         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44600         * modules/symlinkat-tests: New test.
44601         * tests/test-symlinkat.c: Likewise.
44602
44603         test-openat-safer: add more checks
44604         * tests/test-openat-safer.c (main): Check more code paths.
44605
44606 2009-09-05  Jim Meyering  <meyering@redhat.com>
44607
44608         syntax-check: detect unnecessary inclusion of openat.h
44609         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44610
44611 2009-09-05  Bruno Haible  <bruno@clisp.org>
44612
44613         Support towlower, towupper.
44614         * doc/posix-functions/towlower.texi: Mention module wctype.
44615         * doc/posix-functions/towupper.texi: Likewise.
44616         * lib/wctype.in.h (towlower, towupper): New functions.
44617         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44618         (ASSERT): New macro.
44619         (e): New variable.
44620         (main): Test also towlower, towupper. Test WEOF argument.
44621         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44622
44623 2009-09-05  Bruno Haible  <bruno@clisp.org>
44624
44625         Fix conversion behaviour when the input is invalid.
44626         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44627         mark occurring in first pass of indirect conversion.
44628         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44629         input.
44630         Found by clang's static analyzer.
44631
44632 2009-09-05  Bruno Haible  <bruno@clisp.org>
44633
44634         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44635         where direct conversion is possible.
44636
44637 2009-09-04  Eric Blake  <ebb9@byu.net>
44638
44639         openat: fail with ENOENT on empty name
44640         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44641         buffer.
44642
44643         link-follow: fix logic bug in prior patch
44644         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44645         reversed sense of yes and no in prior patch.  Avoid confusing
44646         compilation failure with desired semantics.
44647
44648         link-follow: accommodate mingw and cross-compilation
44649         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44650         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44651         cross-compilation results to -1, to make linkat easier to
44652         implement when cross-compiling.  Trivially support mingw.
44653         * modules/link-follow (configure.ac): Call new name.
44654         * NEWS: Mention this.
44655
44656 2009-09-03  Eric Blake  <ebb9@byu.net>
44657
44658         faccessat: compile replacement
44659         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44660         needed.
44661
44662         fts: fix compilation error
44663         * lib/fts.c (includes): Re-add "openat.h", for
44664         openat_needs_fchdir.
44665
44666         faccessat: new module
44667         * modules/faccessat: New file.
44668         * lib/faccessat.c: Likewise.
44669         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44671         * modules/unistd (Makefile.am): Use it.
44672         * lib/unistd.in.h (faccessat): Declare it.
44673         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44674         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44675         * MODULES.html.sh (File system functions): Mention it.
44676         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44677         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44678
44679         euidaccess: prefer POSIX over non-standard implementation
44680         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44681         * lib/euidaccess.c (euidaccess): Use it if available.
44682
44683         openat: make template easier to use
44684         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44685         AT_FUNC_F2 to be undefined.
44686         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44687         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44688         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44689         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44690         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44691         Likewise.
44692         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44693         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44694         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44695         Likewise.
44696
44697         openat: declare in POSIX headers
44698         * NEWS: Mention this.
44699         * modules/openat (configure.ac): Declare witnesses.
44700         (Depends-on): Add fcntl-h, sys_stat, unistd.
44701         (Include): Mention correct headers.
44702         * modules/fcntl-h (Depends-on): Add link-warning.
44703         (Files): Add openat.m4.
44704         (Makefile.am): Substitute witnesses.
44705         * modules/sys_stat (Files, Makefile.am): Likewise.
44706         * modules/unistd (Files, Makefile.am): Likewise.
44707         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44708         (gl_OPENAT_DEFAULTS): New macro.
44709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44712         (SYS_STAT_H): Remove unused variable.
44713         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44714         * lib/fcntl--.h (includes): Remove unneeded header.
44715         * lib/openat-safer.c (includes): Likewise.
44716         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44717         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44718         appropriate headers.
44719         (__OPENAT_PREFIX): Delete.
44720         * lib/fcntl.in.h (openat): Provide declaration.
44721         (AT_FDCWD): Fix Solaris bug.
44722         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44723         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44724         * lib/fchmodat.c (includes):  Adjust to find declaration.
44725         * lib/fchownat.c (includes): Likewise.
44726         * lib/mkdirat.c (includes): Likewise.
44727         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44728         still visible.
44729
44730 2009-09-02  Eric Blake  <ebb9@byu.net>
44731
44732         errno: use consistently
44733         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44734         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44735         * lib/canonicalize.c (ELOOP): Likewise.
44736         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44737         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44738         * lib/lchown.c (EOPNOTSUPP): Likewise.
44739         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44740         * lib/savewd.c (ESTALE): Likewise.
44741         * lib/settime.c (ENOSYS): Likewise.
44742         * lib/utimens.c (ENOSYS): Likewise.
44743         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44744         * lib/chdir-safer.c (ELOOP): Likewise.
44745         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44746         * modules/c-stack (Depends-on): Add errno.
44747         * modules/canonicalize (Depends-on): Likewise.
44748         * modules/chdir-safer (Depends-on): Likewise.
44749         * modules/fdopendir (Depends-on): Likewise.
44750         * modules/inet_ntop (Depends-on): Likewise.
44751         * modules/inet_pton (Depends-on): Likewise.
44752         * modules/lchown (Depends-on): Likewise.
44753         * modules/openat (Depends-on): Likewise.
44754         * modules/savewd (Depends-on): Likewise.
44755         * modules/settime (Depends-on): Likewise.
44756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44757
44758         fts: avoid leaking fds
44759         * modules/fts (Depends-on): Add cloexec.
44760         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44761         flag.
44762
44763         fts: make directory fds more robust
44764         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44765         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44766
44767         backupfile, chdir-long, fts, savedir: make safer
44768         * lib/backupfile.c (includes): Use "dirent--.h", since
44769         numbered_backup can write to stderr during readdir.
44770         * lib/savedir.c (includes): Likewise.
44771         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44772         emulation can write to stderr on failure.
44773         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44774         * lib/getcwd.c: Document why opendir_safer is unused.
44775         * lib/glob.c: Likewise.
44776         * lib/scandir.c: Likewise.
44777         * lib/openat-proc.c: Likewise, for open_safer.
44778         * modules/backupfile (Depends-on): Add dirent-safer.
44779         * modules/savedir (Depends-on): Likewise.
44780         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44781         * modules/chdir-long (Depends-on): Add openat-safer.
44782
44783         openat-safer: new module
44784         * modules/openat-safer: New file.
44785         * lib/openat-safer.c: Likewise.
44786         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44787         * lib/fcntl-safer.h (openat_safer): Declare.
44788         * lib/fcntl--.h (openat): Override.
44789         * MODULES.html.sh (File descriptor based I/O): Mention it.
44790         * lib/openat.h: Add double-inclusion guards.
44791         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44792         "fcntl--.h", so we can implement openat.
44793         * modules/openat-safer-tests: New test.
44794         * tests/test-openat-safer.c: New file.
44795
44796         dirent-safer: new module
44797         * modules/dirent-safer: New file.
44798         * lib/dirent--.h: Likewise.
44799         * lib/dirent-safer.h: Likewise.
44800         * lib/opendir-safer.c: Likewise.
44801         * m4/dirent-safer.m4: Likewise.
44802         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44803         * modules/dirent-safer-tests: New test.
44804         * tests/test-dirent-safer.c: New file.
44805         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44806
44807         fdopendir: optimize on mingw
44808         * lib/unistd.in.h (_gl_directory_name): New prototype.
44809         * lib/fchdir.c (_gl_directory_name): Implement it.
44810         (fchdir): Use it to simplify implementation.
44811         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44812         fchdir, when available, to avoid calling [f]chdir().
44813
44814         fdopendir: split into its own module
44815         * lib/openat.c (fdopendir): Move...
44816         * lib/fdopendir.c: ...into new file.
44817         * modules/fdopendir: New module.
44818         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44819         * modules/openat (Depends-on): Add fdopendir.
44820         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44821         fdopendir here.
44822         * modules/savedir (Depends-on): Only need fdopendir, not full
44823         openat.
44824         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44825         * lib/openat.h (fdopendir): Drop prototype.
44826         * lib/dirent.in.h (fdopendir): Provide prototype.
44827         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44828         * modules/dirent (Makefile.am): Substitute them.
44829         * MODULES.html.sh (File system functions): Mention it.
44830         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44831         * modules/fdopendir-tests: New file.
44832         * tests/test-fdopendir.c: Likewise.
44833
44834         fchdir: use more consistent macro convention
44835         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44836         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44837         REPLACE_FCHDIR, rather than relying on config.h macros.
44838         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44839         inside a single make-time REPLACE_FCHDIR block, rather than using
44840         the config.h FCHDIR_REPLACEMENT.
44841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44842         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44843         Manage fstat replacement.
44844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44845         REPLACE_FCHDIR.
44846         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44847         (Makefile.am): Substitute REPLACE_FCHDIR.
44848         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44849         FCHDIR_REPLACEMENT.
44850         * lib/dup-safer.c (dup_safer): Likewise.
44851         * lib/dup2.c (rpl_dup2): Likewise.
44852         * lib/dup3.c (rpl_dup3): Likewise.
44853         * lib/open.c (rpl_open): Likewise.
44854
44855         fchdir: simplify error handling, and support dup3
44856         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44857         stdbool, malloc-posix, realloc-posix.
44858         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44859         (ensure_dirs_slot): Return false on allocation failure.
44860         (rpl_dup2): Delete.
44861         (_gl_register_dup): New function.
44862         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44863         (_gl_register_fd): Close fd on allocation failure.
44864         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44865         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44866         prototype.
44867         (rpl_dup2_fchdir): Delete prototype.
44868         * lib/open.c (open): Update caller.
44869         * lib/dup2.c (dup2): Track fchdir metadata.
44870         * lib/dup3.c (dup3): Likewise.
44871         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44873
44874 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44875
44876         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44877         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44878         don't pass arguments to AC_OUTPUT.
44879
44880 2009-09-02  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/mkdtemp (License): Relicense under LGPLv2+.
44883         Reported by Paolo Bonzini.
44884
44885 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44886
44887         Replace uses of obsolete autoconf macros in Jim's modules.
44888         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44889         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44890         can evoke a warning from autoconf when run with -Wobsolete
44891         enabled.  They were declared obsolete for good reasons (see
44892         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44893         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44894         should not continue using the deprecated macros.
44895         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44896         obsolete Autoconf macros with modern counterparts.
44897         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44898         * m4/dos.m4 (gl_AC_DOS): Likewise.
44899         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44901         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44902         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44903         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44904         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44905         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44906         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44907         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44908         Likewise.
44909         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44911         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44912         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44913         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44914         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44915
44916 2009-09-01  Eric Blake  <ebb9@byu.net>
44917
44918         fchdir: fix off-by-one bug in previous patch
44919         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44920         (_gl_unregister_fd): Delete useless if.
44921
44922 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44923
44924         maint.mk: sort the list of syntax-check rules
44925         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44926         easier to get a sense of progress when the rules are run sequentially
44927         and take a long time.
44928
44929 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44930
44931         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44932         * modules/netinet_in: Likewise.
44933         * modules/sys_file: Likewise.
44934         * modules/sys_ioctl: Likewise.
44935         * modules/sys_select: Likewise.
44936         * modules/sys_socket: Likewise.
44937         * modules/sys_stat: Likewise.
44938         * modules/sys_time: Likewise.
44939         * modules/sys_times: Likewise.
44940         * modules/sys_utsname: Likewise.
44941         * modules/sys_wait: Likewise.
44942
44943 2009-09-01  Jim Meyering  <meyering@redhat.com>
44944
44945         fts: help ensure that return values are not ignored
44946         * lib/fts_.h (__GNUC_PREREQ): Define.
44947         (__attribute_warn_unused_result__): Define.
44948         (fts_children, fts_close, fts_open, fts_read): Declare with
44949         __attribute_warn_unused_result__.
44950
44951         fts: fts_close now fails also when closing a dir file descriptor fails
44952         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44953         and propagate to caller, along with errno.
44954
44955         announce-gen: correct formatting in --help output
44956         * build-aux/announce-gen (usage): Move the one-line description in
44957         --help output "up", to where it belongs, just after Usage:.
44958
44959 2009-08-31  Eric Blake  <ebb9@byu.net>
44960
44961         fchdir: port to mingw
44962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44963         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44964         opened, then use a substitute.
44965         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44966         replacement.
44967         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44968         (_gl_register_fd): No need to check stat if open already filters
44969         all directories.
44970         (fchdir): Fix error condition to match POSIX.
44971         * modules/fchdir (Depends-on): Add sys_stat.
44972         * doc/posix-functions/open.texi (open): Document the limitation.
44973         * modules/fchdir-tests: New file.
44974         * tests/test-fchdir.c: Likewise.
44975
44976         canonicalize: allow cross-testing from cygwin to mingw
44977         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44978         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44979         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44980         Likewise.
44981         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44982         target does not support symlinks.
44983         * tests/test-canonicalize-lgpl.sh: Likewise.
44984
44985         chown: avoid compilation warning on mingw
44986         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44987         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44988         mingw.
44989         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44990         * modules/chown (Depends-on): Add errno.
44991
44992 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44993
44994         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44995         command.
44996
44997 2009-08-31  Jim Meyering  <meyering@redhat.com>
44998
44999         canonicalize: remove useless initialization
45000         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45001         initialization of local, "end".
45002
45003 2009-08-30  Bruno Haible  <bruno@clisp.org>
45004
45005         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45006         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45007         ENOSYS.
45008
45009 2009-08-30  Bruno Haible  <bruno@clisp.org>
45010
45011         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45012         /usr/xpg4/bin/tr when it exists.
45013         * tests/test-pipe-filter-gi1.sh: Likewise.
45014
45015 2009-08-30  Bruno Haible  <bruno@clisp.org>
45016
45017         Work around deficient /usr/bin/id program on Solaris.
45018         * tests/test-file-has-acl.sh (ID): New variable.
45019         * tests/test-set-mode-acl.sh (ID): Likewise.
45020         * tests/test-copy-acl.sh (ID): Likewise.
45021         * tests/test-copy-file.sh (ID): Likewise.
45022
45023 2009-08-30  Bruno Haible  <bruno@clisp.org>
45024
45025         New module 'xstriconveh'.
45026         * lib/xstriconveh.h: New file.
45027         * lib/xstriconveh.c: New file.
45028         * modules/xstriconveh: New file.
45029
45030 2009-08-30  Bruno Haible  <bruno@clisp.org>
45031
45032         Make it easier to use mem_cd_iconveh.
45033         * lib/striconveh.h (iconveh_t): New type.
45034         (iconveh_open, iconveh_close): New declarations.
45035         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45036         with a single 'const iconveh_t *' argument.
45037         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45038         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45039         with a single 'const iconveh_t *' argument.
45040         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45041         * tests/test-striconveh.c (main): Update.
45042         * NEWS: Mention the change.
45043
45044 2009-08-30  Bruno Haible  <bruno@clisp.org>
45045
45046         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45047         problem.
45048
45049 2009-08-30  Bruno Haible  <bruno@clisp.org>
45050
45051         Work around iconv_open problem on Solaris.
45052         * lib/iconv_open-solaris.gperf: New file.
45053         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45054         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45055         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45056         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45057         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45058         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45059
45060 2009-08-29  Jim Meyering  <meyering@redhat.com>
45061
45062         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45063         * top/maint.mk (cvs-check): Remove target; it was just an alias
45064         to the better-named vc-diff-check.
45065         (maintainer-distcheck): Remove rule.  It was used only from
45066         the (alpha/beta/major) target, and all of its commands but one
45067         were coreutils-specific.
45068         (vc-dist): Remove rule.
45069         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45070         Run vc-diff-check, not vc-dist.
45071         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45072
45073 2009-08-27  Bruno Haible  <bruno@clisp.org>
45074
45075         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45076         of 0.
45077
45078 2009-08-27  Bruno Haible  <bruno@clisp.org>
45079
45080         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45081         compilers.
45082         * doc/func.texi: Document the SunPRO C bug.
45083
45084 2009-08-27  Bruno Haible  <bruno@clisp.org>
45085
45086         Fix link error on Solaris.
45087         * tests/test-parse-duration.c (xstrdup): Remove function.
45088
45089 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45090
45091         ignore-value: handle pointer types, too
45092         * lib/ignore-value.h (__attribute__): Remove definition.
45093         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45094         of a more concise and more-often effective "(void) i" statement.
45095         (ignore_ptr): New function to suppress warnings from functions that
45096         return pointers, and to make it explicit that one function doesn't
45097         handle all cases.
45098
45099 2009-08-25  Bruno Haible  <bruno@clisp.org>
45100
45101         dup2: work around a Linux bug.
45102         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45103         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45104         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45105         Reported by Simon Josefsson.
45106
45107 2009-08-25  Jim Meyering  <meyering@redhat.com>
45108
45109         libguestfs uses gnulib
45110         * users.txt: Add libguestfs.
45111
45112 2009-08-24  Eric Blake  <ebb9@byu.net>
45113
45114         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45115         * lib/pipe2.c (includes): Add binary-io.h.
45116         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45117
45118 2009-08-24  Bruno Haible  <bruno@clisp.org>
45119
45120         Tolerate declared but missing accept4 syscall.
45121         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45122         available.
45123         * lib/sys_socket.in.h (accept4): If the function is already present,
45124         override it.
45125         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45126         * modules/accept4 (Makefile.am): Compile accept4.c always.
45127         Reported by Paolo Bonzini and Eric Blake.
45128
45129 2009-08-23  Bruno Haible  <bruno@clisp.org>
45130
45131         New module 'accept4'.
45132         * lib/sys_socket.in.h (accept4): New declaration.
45133         * lib/accept4.c: New file.
45134         * m4/accept4.m4: New file.
45135         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45136         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45137         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45138         HAVE_ACCEPT4.
45139         * modules/accept4: New file.
45140         * doc/glibc-functions/accept4.texi: Mention the new module.
45141
45142 2009-08-24  Jim Meyering  <meyering@redhat.com>
45143
45144         progname: also set global program_invocation_name, when possible
45145         Before this change, a libtool-enabled program that calls glibc's
45146         error function would report the program name as
45147         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45148         * modules/progname (configure.ac): Check for a declaration of
45149         program_invocation_name.
45150         * lib/progname.c:  Include <errno.h>.
45151         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45152         Set program_invocation_name.
45153
45154 2009-08-23  Bruno Haible  <bruno@clisp.org>
45155
45156         * lib/dup3.c: Include <string.h>.
45157
45158 2009-08-23  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45161         * lib/pipe2.c (pipe2): Likewise.
45162         Suggested by Eric Blake.
45163
45164 2009-08-23  Bruno Haible  <bruno@clisp.org>
45165
45166         Tolerate declared but missing dup3 syscall.
45167         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45168         * lib/unistd.in.h (dup3): If the function is already present,
45169         override it.
45170         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45171         * modules/dup3 (Makefile.am): Compile dup3.c always.
45172         Reported by Paolo Bonzini.
45173
45174 2009-08-23  Bruno Haible  <bruno@clisp.org>
45175
45176         Tolerate declared but missing pipe2 syscall.
45177         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45178         available.
45179         * lib/unistd.in.h (pipe2): If the function is already present,
45180         override it.
45181         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45182         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45183         Reported by Paolo Bonzini.
45184
45185 2009-08-23  Bruno Haible  <bruno@clisp.org>
45186
45187         * lib/pipe2.c (pipe2): Move #ifs inside function.
45188
45189 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45190
45191         quotearg: document limitations of quote_these_too
45192         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45193         those limitations are created.
45194         * lib/quotearg.h (set_char_quoting): Document that digits and
45195         letters that are special after backslash are not permitted.
45196         (quotearg_char): Cross-reference set_char_quoting documentation.
45197
45198 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45199
45200         quotearg: implement custom_quoting_style
45201         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45202         right_quote fields.
45203         (set_custom_quoting): New public function.
45204         (quotearg_buffer_restyled): Add left_quote and right_quote
45205         arguments, handle them very much like locale quoting, and update
45206         all uses.
45207         (quotearg_n_custom): New public function.
45208         (quotearg_n_custom_mem): New public function.
45209         (quotearg_custom): New public function.
45210         (quotearg_custom_mem): New public function.
45211         * lib/quotearg.h: Prototype and document new public functions.
45212         (enum quoting_style): For escape_quoting_style and
45213         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45214         ignored even though they're otherwise like c_quoting_style.
45215         Add custom_quoting_style member and document with comparison to
45216         clocale_quoting_style.
45217         * tests/test-quotearg.c (custom_quotes): New array.
45218         (custom_results): New array.
45219         (main): Extend to test custom quoting.
45220
45221 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45222
45223         quotearg: fix right quote escaping when it's in quote_these_too
45224         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45225         quote, be sure to prepend only one backslash.
45226         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45227         (main): Test it.
45228
45229 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45230
45231         quotearg-tests: test escaping of embedded locale quotes
45232         * tests/test-quotearg.c (struct result_strings): Add member for
45233         new input.
45234         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45235         (inputs): Add new input.
45236         (results_g): Add expected results.
45237         (flag_results): Likewise.
45238         (locale_results): Likewise.
45239         (compare_strings): Check those.
45240
45241 2009-08-23  Bruno Haible  <bruno@clisp.org>
45242
45243         Tests for module 'dup3'.
45244         * modules/dup3-tests: New file.
45245         * tests/test-dup3.c: New file.
45246
45247         New module 'dup3'.
45248         * lib/unistd.in.h (dup3): New declaration.
45249         * lib/dup3.c: New file.
45250         * m4/dup3.m4: New file.
45251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45252         HAVE_DUP3.
45253         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45254         * modules/dup3: New file.
45255         * doc/glibc-functions/dup3.texi: Mention the new module.
45256
45257 2009-08-23  Bruno Haible  <bruno@clisp.org>
45258
45259         Tweak the dup2 test.
45260         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45261         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45262         the test file is still empty. Fix argument order of lseek.
45263
45264 2009-08-23  Bruno Haible  <bruno@clisp.org>
45265
45266         Avoid test link errors when the modules getopt-gnu, gettext are used.
45267         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45269
45270 2009-08-23  Bruno Haible  <bruno@clisp.org>
45271
45272         Fix getdtablesize() on mingw.
45273         * lib/getdtablesize.c (getdtablesize): Implement differently.
45274         * lib/unistd.in.h (getdtablesize): Improve comment.
45275
45276 2009-08-23  Bruno Haible  <bruno@clisp.org>
45277
45278         New module 'mkostemp'.
45279         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45280         * lib/stdlib.in.h (mksotemp): New declaration.
45281         * lib/mkostemp.c: New file, from glibc with modifications.
45282         * lib/tempname.h (GT_FILE): Remove outdated comment.
45283         (gen_tempname): Add flags argument.
45284         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45285         (__GT_FILE): Map to 1.
45286         (small_open, large_open): Remove macros.
45287         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45288         * lib/mkstemp.c (mkstemp): Update.
45289         * lib/mkdtemp.c (mkdtemp): Likewise.
45290         * m4/mkostemp.m4: New file.
45291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45292         HAVE_MKOSTEMP.
45293         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45294         HAVE_MKOSTEMP.
45295         * modules/mkostemp: New file, based on modules/mkstemp.
45296         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45297         * NEWS: Mention the change.
45298
45299 2009-08-23  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45302         Reported by Eric Blake.
45303
45304 2009-08-23  Bruno Haible  <bruno@clisp.org>
45305
45306         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45307         Reported by Eric Blake.
45308
45309 2009-08-23  Bruno Haible  <bruno@clisp.org>
45310
45311         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45312         * modules/pipe2 (Depends-on): Likewise.
45313
45314 2009-08-23  Eric Blake  <ebb9@byu.net>
45315
45316         fcntl-h: add O_TTY_INIT support
45317         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45318         * tests/test-fcntl-h.c (o): Test it.
45319         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45320
45321         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45322         * modules/fcntl: Move <fcntl.h> header replacement...
45323         * modules/fcntl-h: ...to new name, so as not to collide with
45324         like-named function.
45325         * tests/test-fcntl.c: Rename...
45326         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45327         * modules/fcntl-tests: Rename...
45328         * modules/fcntl-h-tests: ...to this.  Update test file name.
45329         * modules/chdir-long (Depends-on): Update clients.
45330         * modules/chdir-safer (Depends-on): Likewise.
45331         * modules/fcntl-safer (Depends-on): Likewise.
45332         * modules/fts (Depends-on): Likewise.
45333         * modules/mkancesdirs (Depends-on): Likewise.
45334         * modules/mkdir-p (Depends-on): Likewise.
45335         * modules/open (Depends-on): Likewise.
45336         * modules/savewd (Depends-on): Likewise.
45337         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45338         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45339
45340 2009-08-22  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/binary-io (License): Relicense under LGPL.
45343         * modules/pipe2 (License): Likewise.
45344
45345 2009-08-22  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45348         return value.
45349         * lib/pipe-filter-gi.c (filter_init): Likewise.
45350         Reported by Eric Blake.
45351
45352 2009-08-22  Bruno Haible  <bruno@clisp.org>
45353
45354         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45355         * modules/pipe (Depends-on): Add pipe2.
45356
45357 2009-08-22  Bruno Haible  <bruno@clisp.org>
45358
45359         Tests for module 'pipe2'.
45360         * modules/pipe2-tests: New file.
45361         * tests/test-pipe2.c: New file.
45362
45363         New module 'pipe2'.
45364         * lib/unistd.in.h (pipe2): New declaration.
45365         * lib/pipe2.c: New file.
45366         * m4/pipe2.m4: New file.
45367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45368         HAVE_PIPE2.
45369         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45370         * modules/pipe2: New file.
45371         * doc/glibc-functions/pipe2.texi: Mention the new module.
45372
45373 2009-08-22  Bruno Haible  <bruno@clisp.org>
45374
45375         Reference some new glibc functions.
45376         * doc/glibc-functions/accept4.texi: New file.
45377         * doc/glibc-functions/dup3.texi: New file.
45378         * doc/glibc-functions/mkostemp.texi: New file.
45379         * doc/glibc-functions/pipe2.texi: New file.
45380         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45381         (Glibc sys/socket.h): Refer to accept4.
45382         (Glibc unistd.h): Refer to dup3, pipe2.
45383         Reported by Eric Blake.
45384
45385 2009-08-22  Jim Meyering  <meyering@redhat.com>
45386             Bruno Haible  <bruno@clisp.org>
45387
45388         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45389         This makes it so packages using automake-1.11's silent-rules option
45390         can print e.g., a single "GEN    configmake.h" line, rather than
45391         the 30+ statements that perform the job.  If you want to see the
45392         actual commands, you can still run "make V=1".
45393         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45394         so that make output is abbreviated when those variables are defined
45395         appropriately.
45396         * modules/argz: Likewise.
45397         * modules/arpa_inet: Likewise.
45398         * modules/byteswap: Likewise.
45399         * modules/configmake: Likewise.
45400         * modules/dirent: Likewise.
45401         * modules/errno: Likewise.
45402         * modules/fcntl: Likewise.
45403         * modules/float: Likewise.
45404         * modules/fnmatch: Likewise.
45405         * modules/getopt-posix: Likewise.
45406         * modules/glob: Likewise.
45407         * modules/iconv_open: Likewise.
45408         * modules/inttypes: Likewise.
45409         * modules/localcharset: Likewise.
45410         * modules/locale: Likewise.
45411         * modules/math: Likewise.
45412         * modules/netdb: Likewise.
45413         * modules/netinet_in: Likewise.
45414         * modules/poll: Likewise.
45415         * modules/posix_spawnp-tests: Likewise.
45416         * modules/sched: Likewise.
45417         * modules/search: Likewise.
45418         * modules/selinux-h: Likewise.
45419         * modules/signal: Likewise.
45420         * modules/spawn: Likewise.
45421         * modules/stdarg: Likewise.
45422         * modules/stdbool: Likewise.
45423         * modules/stddef: Likewise.
45424         * modules/stdint: Likewise.
45425         * modules/stdio: Likewise.
45426         * modules/stdlib: Likewise.
45427         * modules/string: Likewise.
45428         * modules/strings: Likewise.
45429         * modules/sys_file: Likewise.
45430         * modules/sys_ioctl: Likewise.
45431         * modules/sys_select: Likewise.
45432         * modules/sys_socket: Likewise.
45433         * modules/sys_stat: Likewise.
45434         * modules/sys_time: Likewise.
45435         * modules/sys_times: Likewise.
45436         * modules/sys_utsname: Likewise.
45437         * modules/sys_wait: Likewise.
45438         * modules/sysexits: Likewise.
45439         * modules/time: Likewise.
45440         * modules/unistd: Likewise.
45441         * modules/wchar: Likewise.
45442         * modules/wctype: Likewise.
45443
45444 2009-08-22  Jim Meyering  <meyering@redhat.com>
45445
45446         announce-gen: detect write failure
45447         * build-aux/announce-gen: Add Coda at end.
45448         Remove equivalent-but-more-verbose block at top.
45449
45450 2009-08-19  Akim Demaille  <demaille@gostai.com>
45451
45452         bootstrap: --help to stdout.
45453         * bootstrap (usage): Don't send --help to stderr.
45454         Use a here doc instead of a long string.
45455
45456 2009-08-21  Eric Blake  <ebb9@byu.net>
45457
45458         test-popen-safer: split from test-popen
45459         * tests/test-popen.c (main): Move...
45460         * tests/test-popen.h: ...into new file.
45461         * tests/test-popen-safer2.c: New file.
45462         * modules/popen-tests (Files): Add test-popen.h.
45463         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45464         Suggested by Bruno Haible.
45465
45466         test-fcntl-safer: split from test-open
45467         * tests/test-open.c (main): Move...
45468         * tests/test-open.h: ...into new file.
45469         * tests/test-fcntl-safer.c: New file.
45470         * modules/open-tests (Files): Add test-open.h.
45471         * modules/fcntl-safer-tests: New file.
45472         Suggested by Bruno Haible.
45473
45474         test-fopen-safer: split from test-fopen
45475         * tests/test-fopen.c (main): Move...
45476         * tests/test-fopen.h: ...into new file.
45477         * tests/test-fopen-safer.c: New file.
45478         * modules/fopen-tests (Files): Add test-fopen.h.
45479         * modules/fopen-safer-tests: New file.
45480         Suggested by Bruno Haible.
45481
45482 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45483
45484         popen-safer: test O_CLOEXEC at run-time.
45485         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45486
45487 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45488
45489         fcntl: move more flags to the header
45490         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45491         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45492         * lib/fcntl.in.h: Do both things here.
45493
45494 2009-08-21  Jim Meyering  <meyering@redhat.com>
45495
45496         consistently remove $@-t before redirecting to it
45497         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45498         * modules/alloca-opt: Likewise.
45499         * modules/byteswap: Likewise.
45500         * modules/fnmatch: Likewise.
45501         * modules/getopt-posix: Likewise.
45502         * modules/glob: Likewise.
45503         * modules/poll: Likewise.
45504         * modules/posix_spawnp-tests: Likewise.
45505         * modules/sys_socket: Likewise.
45506         * modules/sysexits: Likewise.
45507
45508 2009-08-21  Eric Blake  <ebb9@byu.net>
45509
45510         popen: simplify access to original popen
45511         * lib/popen.c (rpl_popen): No need to worry about popen being a
45512         macro.
45513         Reported by Bruno Haible.
45514
45515 2009-08-20  Eric Blake  <ebb9@byu.net>
45516
45517         build: avoid some compiler warnings
45518         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45519         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45520         type.
45521         (new_exclude_segment, excluded_file_pattern_p)
45522         (excluded_file_name_p): Reduce scope.
45523         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45524         old-style declaration.
45525
45526 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45527
45528         * tests/test-exclude1.sh: Handle Windows EOL.
45529         * tests/test-exclude2.sh: Likewise.
45530         * tests/test-exclude3.sh: Likewise.
45531         * tests/test-exclude4.sh: Likewise.
45532         * tests/test-exclude5.sh: Likewise.
45533         * tests/test-exclude6.sh: Likewise.
45534         * tests/test-exclude7.sh: Likewise.
45535
45536 2009-08-19  Akim Demaille  <demaille@gostai.com>
45537
45538         bootstrap: find sha1sum when named gsha1sum.
45539         * bootstrap (find_tool): New.
45540         ($SHA1SUM): New.
45541         Use it.
45542
45543 2009-08-20  Jim Meyering  <meyering@redhat.com>
45544
45545         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45546         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45547         expression that converts "." in a file name to "\." in the resulting
45548         regexp.  Start with a dummy statement, so that prior shell variable
45549         definitions are expanded portably.  Reported by Simon Josefsson.
45550
45551 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45552
45553         Fix polling for writeability of a screen buffer.
45554         * lib/poll.c: Distinguish input and screen buffers for the
45555         Win32 implementation.
45556         * lib/select.c: Likewise.
45557
45558 2009-08-19  Eric Blake  <ebb9@byu.net>
45559
45560         popen-safer: prevent popen from clobbering std descriptors
45561         * modules/popen-safer: New file.
45562         * lib/popen-safer.c: Likewise.
45563         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45564         * lib/stdio--.h (popen): Provide override.
45565         * lib/stdio-safer.h (popen_safer): Provide declaration.
45566         * tests/test-popen.c (includes): Partially test this.
45567         * modules/popen-safer-tests: New file, for more tests.
45568         * tests/test-popen-safer.c: Likewise.
45569         * MODULES.html.sh (file stream based Input/Output): Mention it.
45570
45571         tests: test some of the *-safer modules
45572         * modules/fopen-safer (Depends-on): Add fopen.
45573         * modules/fcntl-safer (Depends-on): Add fcntl.
45574         * modules/stdlib-safer (Depends-on): Add stdlib.
45575         (configure.ac): Set indicator.
45576         * modules/unistd-safer (configure.ac): Likewise.
45577         * modules/tmpfile-safer (configure.ac): Likewise.
45578         (Depends-on): Add tmpfile.
45579         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45580         active.
45581         * tests/test-fopen.c (includes): Test safer versions when they are
45582         in use.
45583         * tests/test-open.c (includes): Likewise.
45584
45585         popen: fix cygwin 1.5 bug when stdin closed
45586         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45587         * modules/popen: New file.
45588         * modules/popen-tests: Likewise.
45589         * tests/test-popen.c: Likewise.
45590         * m4/popen.m4: Likewise.
45591         * lib/popen.c: Likewise.
45592         * lib/stdio.in.h (popen): New declaration.
45593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45594         * modules/stdio (Makefile.am): Likewise.
45595         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45596
45597 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45598
45599         maint.mk: give full control over update-copyright exclusions
45600         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45601         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45602         (update-copyright): Don't force inclusion of top-level
45603         ChangeLog.  Don't force exclusion of all COPYING files, but make
45604         them the default exclusion instead.
45605
45606 2009-08-16  Bruno Haible  <bruno@clisp.org>
45607
45608         Fix test failures on Solaris 10.
45609         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45610         tests when Solaris iconv() is used.
45611         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45612         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45613         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45614         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45615         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45616
45617 2009-08-16  Bruno Haible  <bruno@clisp.org>
45618
45619         Fix test failures on Solaris 10.
45620         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45621         'tr' program and pass it as first argument.
45622         * tests/test-pipe-filter-gi1.sh: Likewise.
45623         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45624         program as first argument.
45625         * tests/test-pipe-filter-gi1.c (main): Likewise.
45626
45627 2009-08-16  Eric Blake  <ebb9@byu.net>
45628
45629         fpurge: fix previous commits
45630         * modules/fpurge (Makefile.am): Make replacement conditional,
45631         partially reverting 2007-04-29 change; missed in previous
45632         attempt.
45633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45634         is missing.
45635
45636 2009-08-16  Bruno Haible  <bruno@clisp.org>
45637
45638         Clarify fpurge's effect on the file position.
45639         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45640         * tests/test-fpurge.c (main): Make a second pass for checking the file
45641         position.
45642
45643 2009-08-16  Bruno Haible  <bruno@clisp.org>
45644
45645         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45646         declaration of fpurge is missing.
45647         * tests/test-fpurge.c (main): Check that the file has not more contents
45648         than expected. Close the file before removing it.
45649
45650 2009-08-15  Eric Blake  <ebb9@byu.net>
45651
45652         fpurge: don't wrap working cygwin implementation
45653         * lib/fpurge.c (fpurge): Fix comment typo.
45654         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45655         1.7 to avoid replacement.
45656         * tests/test-fpurge.c (main): Enhance test.
45657
45658 2009-08-15  Eric Blake  <ebb9@byu.net>
45659         and Jim Meyering  <meyering@redhat.com>
45660
45661         test-update-copyright: skip if perl is insufficient
45662         * tests/test-update-copyright.sh: Failure to run maintainer tool
45663         should not cause testsuite failure on cygwin 1.5.
45664
45665 2009-08-14  Eric Blake  <ebb9@byu.net>
45666
45667         doc: mention more functions added in cygwin 1.7.0
45668         * doc/posix-headers/limits.texi (limits.h): Update for recent
45669         cygwin additions.
45670         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45671         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45672         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45673         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45674         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45675
45676 2009-08-14  Eric Blake  <ebb9@byu.net>
45677
45678         maint.mk: simplify update-copyright rule
45679         * top/maint.mk (update-copyright-local): Delete, and document how
45680         to do it in cfg.mk instead.
45681         (update-copyright-exclude-regexp): Delete, and document how to do
45682         it in .x-update-copyright instead.
45683         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45684         exclude ChangeLog.
45685
45686 2009-08-14  Bruno Haible  <bruno@clisp.org>
45687
45688         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45689
45690 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45691
45692         maint.mk: support update-copyright-env
45693         * top/maint.mk (update-copyright-env): Define place-holder.
45694         (update-copyright): Expand $(update-copyright-env) before
45695         invoking update-copyright.
45696
45697 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45698
45699         update-copyright: implement forced reformatting
45700         * build-aux/update-copyright: Implement and document
45701         UPDATE_COPYRIGHT_FORCE.
45702         * tests/test-update-copyright.sh: Test it.
45703
45704 2009-08-14  Eric Blake  <ebb9@byu.net>
45705         and Bruno Haible  <bruno@clisp.org>
45706
45707         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45708         * tests/test-locale.c: Revert previous patch related to NULL.
45709         * tests/test-stdio.c: Likewise.
45710         * tests/test-stdlib.c: Likewise.
45711         * tests/test-string.c: Likewise.
45712         * tests/test-unistd.c: Likewise.
45713         * modules/time-tests (Depends-on): Add verify.
45714         * modules/wchar-tests (Depends-on): Likewise.
45715         * tests/test-time.c: Test for NULL compliance.
45716         * tests/test-wchar.c: Likewise.
45717         * modules/locale (Depends-on): Add stddef.
45718         * modules/stdio (Depends-on): Likewise.
45719         * modules/stdlib (Depends-on): Likewise.
45720         * modules/string (Depends-on): Likewise.
45721         * modules/time (Depends-on): Likewise.
45722         * modules/unistd (Depends-on): Likewise.
45723         * modules/wchar (Depends-on): Likewise.
45724         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45725         * lib/stdlib.in.h (includes): Likewise.
45726         * lib/string.in.h (includes): Likewise.
45727         * lib/time.in.h (includes): Likewise.
45728         * lib/unistd.in.h (includes): Likewise.
45729         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45730         replaced.
45731         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45732         * m4/stddef_h.m4: New file.
45733         * modules/stddef: Likewise.
45734         * lib/stddef.in.h: Likewise.
45735         * modules/stddef-tests: Likewise.
45736         * tests/test-stddef.c: Likewise.
45737         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45738         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45739         * doc/posix-headers/locale.texi (locale.h): Likewise.
45740         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45741         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45742         * doc/posix-headers/string.texi (string.h): Likewise.
45743         * doc/posix-headers/time.texi (time.h): Likewise.
45744         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45745         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45746
45747 2009-08-14  Eric Blake  <ebb9@byu.net>
45748
45749         doc: improve git diff of texinfo files
45750         * .gitattributes: Add rule for *.texi files, with hint on how to
45751         use it.
45752         Copied from m4, and based on a report by Bruno Haible.
45753
45754 2009-08-14  Bruno Haible  <bruno@clisp.org>
45755
45756         Disable multithread support by default on Cygwin 1.5.x for real.
45757         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45758
45759 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45760
45761         update-copyright: much ado about intervals
45762         * build-aux/update-copyright: Implement and document
45763         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45764         of copyright year intervals.
45765         Also, document UPDATE_COPYRIGHT_YEAR.
45766         * tests/test-update-copyright.sh: Test it.
45767
45768         update-copyright: convert 2-digit to 4-digit years
45769         * build-aux/update-copyright: Implement and document.
45770         * tests/test-update-copyright.sh: Update.
45771
45772 2009-08-14  Jim Meyering  <meyering@redhat.com>
45773
45774         test-exclude: avoid coreutils "make check" failure
45775         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45776         just as in test-argmatch.c.
45777
45778 2009-08-13  Eric Blake  <ebb9@byu.net>
45779
45780         test-dup2: fix bad assumption
45781         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45782         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45783
45784         test-version-etc: fix CRLF portability issue
45785         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45786         recognize \r.
45787         * tests/test-argp-version-etc-1.sh: Likewise.
45788
45789         getopt: update client modules
45790         * modules/argp (Depends-on): Use getopt-gnu.
45791         * modules/git-merge-changelog (Depends-on): Likewise.
45792         * modules/long-options (Depends-on): Likewise.
45793         * modules/xstrtol (Depends-on): Likewise.
45794
45795 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45796
45797         * tests/test-version-etc.sh: Don't fail on different
45798         project/version.  Don't fail on CRLF differences.  Rewrite to use
45799         multiple -e instead of multiple sed forks, suggested by Eric Blake
45800         <ebb9@byu.net>.
45801         * tests/test-argp-version-etc-1.sh: Likewise.
45802
45803 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45804
45805         * tests/test-version-etc.sh: Don't fail on different
45806         project/version.
45807
45808 2009-08-12  Bruno Haible  <bruno@clisp.org>
45809
45810         Tests for modules 'getopt-posix', 'getopt-gnu'.
45811         * modules/getopt-posix-tests: New file.
45812         * tests/test-getopt.c: New file.
45813         * tests/test-getopt.h: New file.
45814         * tests/test-getopt_long.h: New file.
45815
45816         New modules 'getopt-posix', 'getopt-gnu'.
45817         * modules/getopt-gnu: New file, renamed from modules/getopt.
45818         * modules/getopt-posix: New file.
45819         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45820         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45821         (gl_GETOPT): Remove macro.
45822         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45823         Disable the test against BSD systems that declare optreset. Test
45824         against mingw bug. Test against lack of support of optional arguments
45825         on many platforms.
45826         * doc/glibc-headers/getopt.texi: Update module name and list of
45827         relevant platforms.
45828         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45829         'getopt-gnu' and more portability problems.
45830         * NEWS: Mention the changes.
45831
45832 2009-08-12  Bruno Haible  <bruno@clisp.org>
45833
45834         Ensure that optarg etc. get declared by <unistd.h>.
45835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45836         AC_USE_SYSTEM_EXTENSIONS.
45837         * modules/getopt (Depends-on): Add 'extensions'.
45838
45839 2009-08-12  Bruno Haible  <bruno@clisp.org>
45840
45841         Avoid test link errors.
45842         * modules/pipe-filter-ii-tests (Makefile.am): Define
45843         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45844         * modules/pipe-filter-gi-tests (Makefile.am): Define
45845         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45847
45848 2009-08-12  Bruno Haible  <bruno@clisp.org>
45849
45850         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45851         gl_GETOPT_SUBSTITUTE before.
45852         (gl_GETOPT): Use it.
45853         * m4/argp.m4 (gl_ARGP): Update.
45854         Reported by Sergey Poznyakoff.
45855
45856         * m4/getopt.m4: Reorder macros.
45857         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45858         (gl_GETOPT_SUBSTITUTE): Remove macro.
45859
45860 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45861
45862         Minor improvement in gitlog-to-changelog
45863
45864         * build-aux/gitlog-to-changelog: New option `--format' makes
45865         output format string configurable.
45866
45867 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45868
45869         Optimize exclude: use hash tables for non-wildcard patterns.
45870
45871         * lib/exclude.c: Include hash.h and mbuiter.h
45872         (struct exclude_pattern, exclude_segment): New data types.
45873         (struct exclude): Rewrite.
45874         (fnmatch_pattern_has_wildcards): New function.
45875         (new_exclude_segment, free_exclude_segment): New functions.
45876         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45877         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45878         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45879         * modules/exclude: Depend on hash and mbuiter.
45880
45881         * modules/exclude-tests: New file.
45882         * tests/test-exclude.c: New file.
45883         * tests/test-exclude1.sh: New file.
45884         * tests/test-exclude2.sh: New file.
45885         * tests/test-exclude3.sh: New file.
45886         * tests/test-exclude4.sh: New file.
45887         * tests/test-exclude5.sh: New file.
45888         * tests/test-exclude6.sh: New file.
45889         * tests/test-exclude7.sh: New file.
45890
45891 2009-08-12  Bruno Haible  <bruno@clisp.org>
45892
45893         Ensure that getopt() gets declared by <unistd.h>.
45894         * lib/unistd.in.h: Conditionally include getopt.h.
45895         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45896         Set GNULIB_UNISTD_H_GETOPT.
45897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45898         GNULIB_UNISTD_H_GETOPT.
45899         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45900
45901 2009-08-12  Bruno Haible  <bruno@clisp.org>
45902
45903         Clarify logic.
45904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45905         gl_replace_getopt instead of GETOPT_H.
45906
45907 2009-08-12  Bruno Haible  <bruno@clisp.org>
45908
45909         * m4/getopt.m4: Add comments.
45910
45911 2009-08-12  Bruno Haible  <bruno@clisp.org>
45912
45913         Disable multithread support by default on Cygwin 1.5.x.
45914         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45915         set gl_use_threads=no if not specified otherwise.
45916
45917 2009-08-11  Bruno Haible  <bruno@clisp.org>
45918
45919         Avoid compilation error on NetBSD 5.0.
45920         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45921         * tests/test-stdio.c: Likewise.
45922         * tests/test-stdlib.c: Likewise.
45923         * tests/test-string.c: Likewise.
45924         * tests/test-unistd.c: Likewise.
45925         Reported by Greg Troxel <gdt@ir.bbn.com>
45926         at <https://savannah.gnu.org/support/?106973>.
45927
45928 2009-08-11  Bruno Haible  <bruno@clisp.org>
45929
45930         * modules/dup2-tests (Depends-on): Remove close.
45931
45932         Undo 2009-07-19 commit.
45933         * modules/acl-tests (Depends-on): Remove close.
45934         * modules/binary-io-tests (Depends-on): Likewise.
45935         * modules/closein-tests (Depends-on): Likewise.
45936         * modules/flock-tests (Depends-on): Likewise.
45937         * modules/fsync-tests (Depends-on): Likewise.
45938         * modules/lseek-tests (Depends-on): Likewise.
45939         * modules/pipe-tests (Depends-on): Likewise.
45940         * modules/posix_spawn-tests (Depends-on): Likewise.
45941         * modules/posix_spawnp-tests (Depends-on): Likewise.
45942         * modules/stat-time-tests (Depends-on): Likewise.
45943         * modules/yesno-tests (Depends-on): Likewise.
45944
45945 2009-08-10  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45948
45949 2009-08-10  Bruno Haible  <bruno@clisp.org>
45950
45951         Fix a gcc warning.
45952         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45953
45954 2009-08-10  Bruno Haible  <bruno@clisp.org>
45955
45956         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45957         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45958         not only the first time.
45959         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45960         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45961         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45962         is 1, not only the the first time.
45963
45964 2009-08-10  Bruno Haible  <bruno@clisp.org>
45965
45966         Make it possible to use module 'gethostname' without module 'close'.
45967         * lib/unistd.in.h (close): Evoke a link error only if
45968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45970         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45971         * modules/unistd (Makefile.am): Substitute
45972         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45973         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45974         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45976         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45977         * modules/sys_ioctl (Makefile.am): Substitute
45978         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45979         * modules/socket (configure.ac): On native Windows, set
45980         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45981         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45982         Reported by Sam Steingold <sds@gnu.org>.
45983
45984 2009-08-10  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45987         * modules/ioctl (configure.ac): Likewise.
45988
45989 2009-08-10  Bruno Haible  <bruno@clisp.org>
45990
45991         Avoid collision between gnulib wrapper and libintl wrapper.
45992         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45993         already defined in intl/printf.c.
45994         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45995         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45996
45997 2009-08-09  Bruno Haible  <bruno@clisp.org>
45998
45999         Make <sys/select.h> really self-contained, also on Solaris 10.
46000         * lib/sys_select.in.h: Include <string.h>.
46001         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46002         Solaris 10 problem.
46003         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46004         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46005         Reported by Jim Meyering.
46006
46007 2009-08-09  Bruno Haible  <bruno@clisp.org>
46008
46009         Avoid warnings from 'aclocal' that are due to a use of macro name
46010         AM_XGETTEXT_OPTION that is not defined in automake.
46011         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46012         automake.
46013         * modules/error (configure.ac): Likewise.
46014         * modules/propername (configure.ac): Likewise.
46015         * modules/vasprintf (configure.ac): Likewise.
46016         * modules/verror (configure.ac): Likewise.
46017         * modules/xprintf (configure.ac): Likewise.
46018         * modules/xvasprintf (configure.ac): Likewise.
46019
46020 2009-08-08  Bruno Haible  <bruno@clisp.org>
46021
46022         Avoid compilation error in C++ mode.
46023         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46024         Reported by Sam Steingold <sds@gnu.org>.
46025
46026 2009-08-08  Bruno Haible  <bruno@clisp.org>
46027
46028         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46029         for the various Unix platforms.
46030         * doc/posix-headers/limits.texi: Update platforms list regarding
46031         HOST_NAME_MAX.
46032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46033
46034 2009-08-07  Jim Meyering  <meyering@redhat.com>
46035
46036         selinux-at: fix typo in a comment
46037         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46038         Spotted by Paolo Bonzini.
46039
46040         selinux-at: remove redundant m4 code, add documentation
46041         * modules/selinux-at (configure.ac): Remove redundant code.
46042         LIB_SELINUX is already set via the dependent module, selinux-h.
46043         (Include): Add quotes around selinux-at.h.
46044         * lib/selinux-at.h: Add documentation.
46045         Reported by Bruno Haible in
46046         http://marc.info/?l=gnulib-bug&m=124958988300749
46047
46048 2009-08-07  Bruno Haible  <bruno@clisp.org>
46049
46050         Avoid link error on MacOS X 10.3 and 10.4.
46051         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46052         on non-ELF systems.
46053         * lib/argp-pv.c (argp_program_version): Likewise.
46054         Reported by Simon Josefsson.
46055
46056 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46057
46058         * tests/test-version-etc.sh: Use $EXEEXT.
46059
46060 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46061
46062         update-copyright: update documentation to point to maint.mk
46063         * build-aux/update-copyright: Here.
46064
46065 2009-08-06  Jim Meyering  <meyering@redhat.com>
46066
46067         maint.mk: support update-copyright-local
46068         * top/maint.mk (update-copyright-local): Define place-holder.
46069         (update-copyright): Depend on $(update-copyright-local).
46070
46071 2009-08-06  Jim Meyering  <meyering@redhat.com>
46072
46073         selinux-at: new module
46074         Initially written for coreutils, this module will soon be
46075         used by findutils, too.
46076         * MODULES.html.sh [Misc]: Add selinux-at.
46077         * lib/selinux-at.h: New file, from coreutils.
46078         * lib/selinux-at.c: Likewise.
46079         * modules/selinux-at: Likewise.
46080         (License): Change from LGPL to GPL, since it depends
46081         on the GPL'd openat module.
46082
46083         doc: update README
46084         * README: Remove references to cogito.
46085         Remove cvs-repo-updating instructions from 2007.
46086         Don't imply that CVS is better if you have limited disk space.
46087
46088 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46089
46090         update-copyright: support C-style comments
46091         * build-aux/update-copyright: Implement and document.
46092         * tests/test-update-copyright.sh: Test.
46093
46094 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46095
46096         update-copyright: support omitted "(C)"
46097         * build-aux/update-copyright: Implement and document.  Also,
46098         allow variable whitespace before "(C)".
46099         * tests/test-update-copyright.sh: Test.
46100
46101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46102
46103         update-copyright: don't trip on non-FSF copyright statements
46104         * build-aux/update-copyright: Fix so that the first correctly
46105         formatted FSF copyright statement is recognized no matter what
46106         appears before it.  Update documentation.
46107         * tests/test-update-copyright.sh: Test that.
46108
46109 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46110
46111         update-copyright: clean up code a little
46112         * build-aux/update-copyright: Append "_re" to the name of any
46113         variable holding a regular expression.
46114         Replace "old" and "new" with "stmt" in variable names.
46115         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46116         handled correctly.
46117         Format code more consistently.
46118
46119 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46120
46121         update-copyright-tests: improve portability
46122         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46123         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46124
46125 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46126
46127         update-copyright: support @copyright{} and &copy;
46128         * build-aux/update-copyright: Implement and document.
46129         * tests/test-update-copyright.sh: Test.
46130
46131 2009-08-04  Jim Meyering  <meyering@redhat.com>
46132
46133         update-copyright-tests: correctly test EOL=\r\n handling
46134         * tests/test-update-copyright.sh: Put \r at the end of some lines
46135         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46136
46137         maint.mk: make update-copyright exclusion list more configurable
46138         * top/maint.mk (update-copyright): Default to excluding COPYING,
46139         but allow an override, in case someone does want to update that file.
46140
46141         maint.mk: don't update copyright date in COPYING
46142         * top/maint.mk (update-copyright): Exclude COPYING.
46143
46144         maint.mk: add a copyright-updating rule
46145         * top/maint.mk (update-copyright): New rule.
46146         Derived from coreutils/Makefile.am.
46147
46148         update-copyright: rename some variables
46149         * build-aux/update-copyright: Rename a few variables for clarity.
46150         Tweak syntax.  List Joel E. Denny as coauthor.
46151
46152 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46153
46154         update-copyright: fix bug for 2-digit last year and add tests
46155         * build-aux/update-copyright: Fix bug.
46156         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46157         specified.
46158         * modules/update-copyright-tests: New
46159         * tests/test-update-copyright.sh: New.
46160
46161 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46162
46163         update-copyright: handle leading tabs in line prefix
46164         * build-aux/update-copyright: Count leading tabs as 8 spaces
46165         when computing margin.  This helps with the formatting of
46166         ChangeLogs, for example.
46167         Fix documentation a little.
46168
46169 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46170
46171         update-copyright: support EOL=\r\n
46172         * build-aux/update-copyright: Implement that.
46173
46174 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46175
46176         update-copyright: automatically format copyright statements
46177         * build-aux/update-copyright: Implement that.
46178         Also, be a little more predictable and safer by always failing
46179         when the full copyright format is not perfectly recognized as an
46180         unbroken whole.  Discussed at
46181         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46182         Rewrite documentation.
46183
46184 2009-08-03  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46187
46188 2009-08-02  Bruno Haible  <bruno@clisp.org>
46189
46190         Tests for module 'uname'.
46191         * modules/uname-tests: New file.
46192         * tests/test-uname.c: New file.
46193
46194         New module 'uname'.
46195         * lib/uname.c: New file.
46196         * m4/uname.m4: New file.
46197         * modules/uname: New file.
46198         * doc/posix-functions/uname.texi: Mention the new module.
46199
46200 2009-08-02  Bruno Haible  <bruno@clisp.org>
46201
46202         Tests for module 'sys_utsname'.
46203         * modules/sys_utsname-tests: New file.
46204         * tests/test-sys_utsname.c: New file.
46205
46206         New module 'sys_utsname'.
46207         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46208         * m4/sys_utsname_h.m4: New file.
46209         * modules/sys_utsname: New file.
46210         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46211
46212 2009-08-02  Bruno Haible  <bruno@clisp.org>
46213
46214         Implicitly initialize the sockets library.
46215         * lib/gethostname.c: Include sockets.h.
46216         (rpl_gethostname): Invoke gl_sockets_startup.
46217         * lib/socket.c: Include sockets.h.
46218         (rpl_socket): Invoke gl_sockets_startup.
46219         * modules/gethostname (Depends-on): Add sockets.
46220         * modules/socket (Depends-on): Likewise.
46221         * tests/test-poll.c: Don't include sockets.h.
46222         (main): Don't invoke gl_sockets_startup.
46223         * tests/test-select.c: Don't include sockets.h.
46224         (main): Don't invoke gl_sockets_startup.
46225
46226 2009-08-02  Bruno Haible  <bruno@clisp.org>
46227
46228         Allow multiple calls to gl_sockets_startup.
46229         * lib/sockets.c (initialized_sockets_version): New variable.
46230         (gl_sockets_startup): Do nothing if already called for this or a higher
46231         version.
46232         (gl_sockets_cleanup): Reset initialized_sockets_version.
46233
46234 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46235
46236         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46237         different project/version.
46238
46239 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46240             Bruno Haible  <bruno@clisp.org>
46241
46242         Tests for module 'pipe-filter-gi'.
46243         * modules/pipe-filter-gi-tests: New file.
46244         * tests/test-pipe-filter-gi1.sh: New file.
46245         * tests/test-pipe-filter-gi1.c: New file.
46246         * tests/test-pipe-filter-gi2.sh: New file.
46247         * tests/test-pipe-filter-gi2-main.c: New file.
46248         * tests/test-pipe-filter-gi2-child.c: New file.
46249
46250         New module 'pipe-filter-gi'.
46251         * lib/pipe-filter-gi.c: New file.
46252         * modules/pipe-filter-gi: New file.
46253
46254 2009-08-02  Bruno Haible  <bruno@clisp.org>
46255             Paolo Bonzini  <bonzini@gnu.org>
46256
46257         Tests for module 'pipe-filter-ii'.
46258         * modules/pipe-filter-ii-tests: New file.
46259         * tests/test-pipe-filter-ii1.sh: New file.
46260         * tests/test-pipe-filter-ii1.c: New file.
46261         * tests/test-pipe-filter-ii2.sh: New file.
46262         * tests/test-pipe-filter-ii2-main.c: New file.
46263         * tests/test-pipe-filter-ii2-child.c: New file.
46264
46265         New module 'pipe-filter-ii'.
46266         * lib/pipe-filter.h: New file.
46267         * lib/pipe-filter-ii.c: New file.
46268         * lib/pipe-filter-aux.h: New file.
46269         * modules/pipe-filter-ii: New file.
46270
46271 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46272
46273         * lib/gc-libgcrypt.c: Change copyright to FSF.
46274         * lib/gc-gnulib.c: Likewise.
46275
46276 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46277
46278         * lib/gethostname.c: Include limits.h.
46279
46280 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46281             Bruno Haible  <bruno@clisp.org>
46282
46283         Ensure HOST_NAME_MAX as part of the gethostname module.
46284         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46285         define also HOST_NAME_MAX.
46286         * tests/test-gethostname.c: Include <limits.h>.
46287         (main): Check also HOST_NAME_MAX.
46288         * doc/posix-headers/limits.texi: Document the mingw problem.
46289
46290 2009-08-02  Bruno Haible  <bruno@clisp.org>
46291
46292         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46293         Add comments.
46294
46295 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46296
46297         * lib/gethostname.c: Add Windows wrapper.
46298         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46299         * modules/gethostname: Depend on sys_socket & errno, for also
46300         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46301         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46302
46303 2009-07-31  Jim Meyering  <meyering@redhat.com>
46304
46305         getloadavg: fix symbol name in comment
46306         * lib/getloadavg.c: Correct a typo I introduced when adding
46307         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46308         Matt Kraai spotted the problem.
46309
46310 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46311
46312         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46313         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46314         code also if ! defined N_NAME_POINTER.
46315         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46316         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46317         but the n_name member is a 12-byte array.
46318
46319 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46320
46321         update-copyright: generalize comment handling
46322         * build-aux/update-copyright: Handle copyright statements
46323         within more comment styles.
46324         Document usage.
46325         Report any file with an external copyright holder or parse failure.
46326
46327 2009-07-29  Jim Meyering  <meyering@redhat.com>
46328
46329         mktime: correct setting of REPLACE_MKTIME
46330         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46331
46332         update-copyright: new module
46333         * modules/update-copyright: New file.
46334         * build-aux/update-copyright: New file.
46335         * MODULES.html.sh (maint+release support): Add update-copyright.
46336
46337 2009-07-27  Bruno Haible  <bruno@clisp.org>
46338
46339         Fix compilation error when <ctime> is used and mktime is replaced.
46340         * lib/time.in.h (mktime): New declaration.
46341         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46342         REPLACE_MKTIME instead of defining mktime in config.h.
46343         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46344         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46345         Reported by Ross McFarland <rwmcfa1@neces.com>.
46346
46347 2009-07-27  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46350         Reported by Matt Kraai <mkraai@beckman.com>.
46351
46352 2009-07-25  Jim Meyering  <meyering@redhat.com>
46353
46354         maint.mk: avoid warnings about missing files
46355         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46356         diagnostic when .prev-version does not exist.
46357         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46358         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46359         nonexistent cfg.mk.
46360         Suggestions from Simon Josefsson.
46361
46362 2009-07-25  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46365         defined as macros. Needed on QNX 6.4.1.
46366         Reported by Matt Kraai <mkraai@beckman.com>.
46367
46368 2009-07-23  Jim Meyering  <meyering@redhat.com>
46369
46370         maint.mk: invoke "make dist" with a working value of XZ_OPT
46371         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46372
46373 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46374
46375         Make fseeko.c compile on QNX.
46376         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46377
46378 2009-07-22  Peter Simons  <simons@cryp.to>
46379
46380         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46381         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46382         * lib/md4.h: Likewise.
46383         * lib/md5.h: Likewise.
46384         * lib/sha1.h: Likewise.
46385         * lib/sha256.h: Likewise.
46386         * lib/sha512.h: Likewise.
46387
46388         tests-sha1: don't assign literal string to 'char *' variable
46389         * tests/test-sha1.c (main): Declare locals with "const" to match
46390         attributes of the right hand side.
46391
46392 2009-07-21  Eric Blake  <ebb9@byu.net>
46393
46394         dup2: fix more mingw problems
46395         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46396         fd to itself.
46397         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46398         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46399         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46400         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46401         care of mingw bugs.
46402
46403 2009-07-21  Jim Meyering  <meyering@redhat.com>
46404
46405         vc-list-files: avoid failure when /bin/sh is dash
46406         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46407         On some Debian based systems, /bin/sh is a symlink to dash, and running
46408         this command would omit the "/" following each 'tests' prefix:
46409           dash -x build-aux/vc-list-files -C . tests
46410         That is because bash and dash work differently:
46411           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46412           bash ok
46413           dash odd
46414
46415 2009-07-21  Eric Blake  <ebb9@byu.net>
46416
46417         dup2-tests: test previous patch
46418         * modules/dup2-tests: New file.
46419         * tests/test-dup2.c: Likewise.
46420         * tests/test-open.c (main): Avoid unspecified behavior.
46421         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46422         test.
46423
46424         dup2: work around mingw and cygwin 1.5 bug
46425         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46427         * modules/unistd (Makefile.am): Substitute it.
46428         * lib/unistd.in.h (dup2): Declare the replacement.
46429         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46430         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46431         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46432         * modules/execute (Depends-on): Add dup2.
46433         * modules/fseterr (Depends-on): Likewise.
46434         * modules/pipe (Depends-on): Likewise.
46435         * modules/posix_spawn-internal (Depends-on): Likewise.
46436
46437 2009-07-21  Bruno Haible  <bruno@clisp.org>
46438
46439         * modules/.gitattributes: New file.
46440
46441 2009-07-20  Bruno Haible  <bruno@clisp.org>
46442
46443         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46444         (main): Use it.
46445
46446 2009-07-20  Eric Blake  <ebb9@byu.net>
46447
46448         test-pipe: make a bit more robust.
46449         * tests/test-pipe.c (myerr): Allow error messages regardless of
46450         what we do to stderr.
46451         (test_pipe): Rearrange to avoid deadlock.
46452         (child_main): Try a larger read, to ensure we avoided deadlock.
46453         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46454         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46455         if misused.
46456
46457 2009-07-19  Jim Meyering  <meyering@redhat.com>
46458
46459         fts: avoid false-positive cycle-detection
46460         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46461         for each new command line argument.
46462
46463 2009-07-19  Bruno Haible  <bruno@clisp.org>
46464
46465         Fix build error on mingw with the modules sys_select and unistd.
46466         * modules/acl-tests (Depends-on): Add close.
46467         * modules/binary-io-tests (Depends-on): Likewise.
46468         * modules/closein-tests (Depends-on): Likewise.
46469         * modules/flock-tests (Depends-on): Likewise.
46470         * modules/fsync-tests (Depends-on): Likewise.
46471         * modules/lseek-tests (Depends-on): Likewise.
46472         * modules/pipe-tests (Depends-on): Likewise.
46473         * modules/posix_spawn-tests (Depends-on): Likewise.
46474         * modules/posix_spawnp-tests (Depends-on): Likewise.
46475         * modules/stat-time-tests (Depends-on): Likewise.
46476         * modules/yesno-tests (Depends-on): Likewise.
46477
46478 2009-07-19  Bruno Haible  <bruno@clisp.org>
46479
46480         Unify conditionals.
46481         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46482         macros, not at the compiler macros.
46483         * lib/pipe.c: Likewise.
46484         * lib/execute.c: Likewise.
46485         * lib/spawni.c: Likewise.
46486
46487 2009-07-19  Bruno Haible  <bruno@clisp.org>
46488
46489         Fix handling of closed stdin/stdout/stderr on mingw.
46490         * lib/w32spawn.h: Include unistd.h.
46491         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46492         file descriptor with O_NOINHERIT flag.
46493         (fd_safer_noinherit): New function, based on fd-safer.c.
46494         (dup_safer_noinherit): New function, based on dup-safer.c.
46495         (undup_safer_noinherit): New function.
46496         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46497         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46498         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46499         instead of fd_safer.
46500         * tests/test-pipe.c: Include <windows.h>.
46501         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46502         result.
46503
46504         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46505         from main.
46506         (test_pipe): Pass an extra argument for disambiguation.
46507         (main): Invoke parent_main or child_main.
46508
46509         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46510         consistently.
46511
46512 2009-07-18  Eric Blake  <ebb9@byu.net>
46513
46514         test-pipe: fix mingw build
46515         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46516
46517 2009-07-18  Bruno Haible  <bruno@clisp.org>
46518
46519         * modules/pipe-tests (Makefile.am): Fix typo.
46520
46521 2009-07-18  Eric Blake  <ebb9@byu.net>
46522
46523         error: fix mingw build
46524         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46525         Reported by Bruno Haible.
46526
46527         error: avoid undefined use of stdout
46528         * lib/error.c (error, error_at_line): Check that fd 1 is open
46529         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46530         is handling faults and the close_stdout module wants to report the
46531         detection of closed stdout as an error.
46532
46533 2009-07-17  Eric Blake  <ebb9@byu.net>
46534
46535         pipe: be robust in face of closed fds
46536         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46537         should cause child to misbehave.
46538         * modules/pipe-tests: New module.
46539         * tests/test-pipe.c: New file.
46540         * tests/test-pipe.sh: New file.
46541         Reported by Akim Demaille.
46542
46543 2009-07-14  Bruno Haible  <bruno@clisp.org>
46544
46545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46546         Reported by anonymous kc.
46547
46548 2009-07-07  Jim Meyering  <meyering@redhat.com>
46549
46550         maint.mk: don't look for translatable strings in *.m4 or *.mk
46551         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46552         when searching for translatable strings.
46553
46554 2009-07-05  Jim Meyering  <meyering@redhat.com>
46555
46556         remove superfluous parentheses in STREQ definition
46557         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46558         * lib/getugroups.c (STREQ): Likewise.
46559         * lib/fnmatch.c (STREQ): Likewise.
46560         Spotted by Bruno Haible.
46561
46562 2009-07-04  Jim Meyering  <meyering@redhat.com>
46563
46564         argv-iter: new module
46565         * MODULES.html.sh: Add argv-iter.
46566         * lib/argv-iter.c, lib/argv-iter.h: New files.
46567         * modules/argv-iter: New file.
46568         * modules/argv-iter-tests: New file.
46569         * tests/test-argv-iter.c: Test it.
46570
46571 2009-07-04  Bruno Haible  <bruno@clisp.org>
46572
46573         Fix assertion.
46574         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46575         contains more exact copies of a given entry than file2, leave the extra
46576         copies unpaired rather than aborting.
46577         Reported by Eric Blake.
46578
46579 2009-07-02  Bruno Haible  <bruno@clisp.org>
46580
46581         Speedup git-merge-changelog for git cherry-pick.
46582         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46583         (entries_mapping_get): New function, extracted from compute_mapping.
46584         (entries_mapping_reverse_get): New function.
46585         (compute_mapping): Add a 'full' argument. Return the result in a
46586         'struct entries_mapping'.
46587         (main): Update. Access the mappings through entries_mapping_get.
46588         Reported by Eric Blake.
46589
46590 2009-07-02  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46593         best_i.
46594
46595 2009-07-02  Bruno Haible  <bruno@clisp.org>
46596
46597         Speed up approximate search for matching ChangeLog entries.
46598         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46599         argument. Call fstrcmp_bounded instead of fstrcmp.
46600         (compute_mapping, try_split_merged_entry, main): Update callers.
46601
46602 2009-07-02  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46605
46606 2009-06-30  Bruno Haible  <bruno@clisp.org>
46607
46608         Reduce the number of uc_is_cased calls.
46609         * lib/unicase.h (casing_suffix_context_t): Add
46610         'first_char_except_ignorable' field.
46611         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46612         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46613         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46614         Update initializer.
46615         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46616         case-ignorable characters.
46617         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46618         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46619         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46620         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46621         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46622
46623 2009-06-30  Bruno Haible  <bruno@clisp.org>
46624
46625         Tests for module 'unicase/ignorable'.
46626         * modules/unicase/ignorable-tests: New file.
46627         * tests/unicase/test-ignorable.c: New file, generated by
46628         gen-uni-tables.
46629
46630         Tests for module 'unicase/cased'.
46631         * modules/unicase/cased-tests: New file.
46632         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46633         * tests/unicase/test-predicate-part1.h: New file, derived from
46634         tests/unictype/test-predicate-part1.h.
46635         * tests/unicase/test-predicate-part2.h: New file, same as
46636         tests/unictype/test-predicate-part2.h.
46637
46638         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46639         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46640         (output_casing_properties): New function.
46641         (main): Call it.
46642         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46643         * lib/unicase/cased.c: Include unictype/bitmap.h.
46644         (uc_is_cased): Define through a bitmap lookup.
46645         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46646         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46647         (uc_is_case_ignorable): Define through a bitmap lookup.
46648         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46649         lib/unictype/bitmap.h.
46650         (Depends-on): Add inline. Clean up.
46651         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46652         lib/unictype/bitmap.h.
46653         (Depends-on): Add inline. Clean up.
46654         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46655         recognition.
46656         * tests/unicase/test-u16-tolower.c (main): Likewise.
46657         * tests/unicase/test-u32-tolower.c (main): Likewise.
46658
46659 2009-06-30  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46662         * lib/unicase/u16-casemap.c: Likewise.
46663         * lib/unicase/u32-casemap.c: Likewise.
46664
46665 2009-06-29  Bruno Haible  <bruno@clisp.org>
46666
46667         Define u32_casefold as a wrapper around u32_ct_casefold.
46668         * lib/unicase/u32-casefold.c: Update.
46669         * modules/unicase/u32-casefold (Depends-on): Add
46670         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46671         unicase/empty-suffix-context. Clean up.
46672
46673         Define u16_casefold as a wrapper around u16_ct_casefold.
46674         * lib/unicase/u16-casefold.c: Update.
46675         * modules/unicase/u16-casefold (Depends-on): Add
46676         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46677         unicase/empty-suffix-context. Clean up.
46678
46679         Define u8_casefold as a wrapper around u8_ct_casefold.
46680         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46681         * lib/unicase/u8-casefold.c: Update.
46682         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46683         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46684
46685         Define u32_totitle as a wrapper around u32_ct_totitle.
46686         * lib/unicase/u32-totitle.c: Update.
46687         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46688         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46689
46690         Define u16_totitle as a wrapper around u16_ct_totitle.
46691         * lib/unicase/u16-totitle.c: Update.
46692         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46693         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46694
46695         Define u8_totitle as a wrapper around u8_ct_totitle.
46696         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46697         functions.
46698         (FUNC): Delegate to U_CT_TOTITLE.
46699         * lib/unicase/u8-totitle.c: Update.
46700         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46701         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46702
46703         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46704         invocation.
46705         * modules/unicase/u32-tolower (Depends-on): Add
46706         unicase/empty-prefix-context, unicase/empty-suffix-context.
46707
46708         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46709         invocation.
46710         * modules/unicase/u16-tolower (Depends-on): Add
46711         unicase/empty-prefix-context, unicase/empty-suffix-context.
46712
46713         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46714         * modules/unicase/u8-tolower (Depends-on): Add
46715         unicase/empty-prefix-context, unicase/empty-suffix-context.
46716
46717         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46718         invocation.
46719         * modules/unicase/u32-toupper (Depends-on): Add
46720         unicase/empty-prefix-context, unicase/empty-suffix-context.
46721
46722         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46723         invocation.
46724         * modules/unicase/u16-toupper (Depends-on): Add
46725         unicase/empty-prefix-context, unicase/empty-suffix-context.
46726
46727         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46728         * modules/unicase/u8-toupper (Depends-on): Add
46729         unicase/empty-prefix-context, unicase/empty-suffix-context.
46730
46731         New module 'unicase/u32-ct-casefold'.
46732         * lib/unicase/u32-ct-casefold.c: New file.
46733         * modules/unicase/u32-ct-casefold: New file.
46734
46735         New module 'unicase/u16-ct-casefold'.
46736         * lib/unicase/u16-ct-casefold.c: New file.
46737         * modules/unicase/u16-ct-casefold: New file.
46738
46739         New module 'unicase/u8-ct-casefold'.
46740         * lib/unicase/u8-ct-casefold.c: New file.
46741         * lib/unicase/u-ct-casefold.h: New file, derived from
46742         lib/unicase/u-casefold.h.
46743         * modules/unicase/u8-ct-casefold: New file.
46744
46745         New module 'unicase/u32-ct-totitle'.
46746         * lib/unicase/u32-ct-totitle.c: New file.
46747         * modules/unicase/u32-ct-totitle: New file.
46748
46749         New module 'unicase/u16-ct-totitle'.
46750         * lib/unicase/u16-ct-totitle.c: New file.
46751         * modules/unicase/u16-ct-totitle: New file.
46752
46753         New module 'unicase/u8-ct-totitle'.
46754         * lib/unicase/u8-ct-totitle.c: New file.
46755         * lib/unicase/u-ct-totitle.h: New file, derived from
46756         lib/unicase/u-totitle.h.
46757         * modules/unicase/u8-ct-totitle: New file.
46758
46759         New module 'unicase/u32-ct-tolower'.
46760         * lib/unicase/u32-ct-tolower.c: New file.
46761         * modules/unicase/u32-ct-tolower: New file.
46762
46763         New module 'unicase/u16-ct-tolower'.
46764         * lib/unicase/u16-ct-tolower.c: New file.
46765         * modules/unicase/u16-ct-tolower: New file.
46766
46767         New module 'unicase/u8-ct-tolower'.
46768         * lib/unicase/u8-ct-tolower.c: New file.
46769         * modules/unicase/u8-ct-tolower: New file.
46770
46771         New module 'unicase/u32-ct-toupper'.
46772         * lib/unicase/u32-ct-toupper.c: New file.
46773         * modules/unicase/u32-ct-toupper: New file.
46774
46775         New module 'unicase/u16-ct-toupper'.
46776         * lib/unicase/u16-ct-toupper.c: New file.
46777         * modules/unicase/u16-ct-toupper: New file.
46778
46779         New module 'unicase/u8-ct-toupper'.
46780         * lib/unicase/u8-ct-toupper.c: New file.
46781         * modules/unicase/u8-ct-toupper: New file.
46782
46783         Add context arguments to u*_casemap functions.
46784         * lib/unicase/unicasemap.h: Include unicase.h.
46785         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46786         suffix_context arguments.
46787         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46788         functions.
46789         (FUNC): Add prefix_context and suffix_context arguments. Use
46790         uc_is_cased and uc_is_case_ignorable.
46791         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46792         * lib/unicase/u16-casemap.c: Likewise.
46793         * lib/unicase/u32-casemap.c: Likewise.
46794         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46795         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46796         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46797         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46798         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46799         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46800
46801         New module 'unicase/u32-suffix-context'.
46802         * lib/unicase/u32-suffix-context.c: New file.
46803         * modules/unicase/u32-suffix-context: New file.
46804
46805         New module 'unicase/u16-suffix-context'.
46806         * lib/unicase/u16-suffix-context.c: New file.
46807         * modules/unicase/u16-suffix-context: New file.
46808
46809         New module 'unicase/u8-suffix-context'.
46810         * lib/unicase/u8-suffix-context.c: New file.
46811         * lib/unicase/u-suffix-context.h: New file.
46812         * modules/unicase/u8-suffix-context: New file.
46813
46814         New module 'unicase/empty-suffix-context'.
46815         * lib/unicase/empty-suffix-context.c: New file.
46816         * modules/unicase/empty-suffix-context: New file.
46817
46818         New module 'unicase/u32-prefix-context'.
46819         * lib/unicase/u32-prefix-context.c: New file.
46820         * modules/unicase/u32-prefix-context: New file.
46821
46822         New module 'unicase/u16-prefix-context'.
46823         * lib/unicase/u16-prefix-context.c: New file.
46824         * modules/unicase/u16-prefix-context: New file.
46825
46826         New module 'unicase/u8-prefix-context'.
46827         * lib/unicase/u8-prefix-context.c: New file.
46828         * lib/unicase/u-prefix-context.h: New file.
46829         * lib/unicase/context.h: New file.
46830         * modules/unicase/u8-prefix-context: New file.
46831
46832         New module 'unicase/empty-prefix-context'.
46833         * lib/unicase/empty-prefix-context.c: New file.
46834         * modules/unicase/empty-prefix-context: New file.
46835
46836         New module 'unicase/ignorable'.
46837         * lib/unicase/ignorable.c: New file.
46838         * modules/unicase/ignorable: New file.
46839
46840         New module 'unicase/cased'.
46841         * lib/unicase/caseprop.h: New file.
46842         * lib/unicase/cased.c: New file.
46843         * modules/unicase/cased: New file.
46844
46845         New functions for case mapping of substrings.
46846         * lib/unicase.h (casing_prefix_context_t): New type.
46847         (unicase_empty_prefix_context): New variable.
46848         (u8_casing_prefix_context, u16_casing_prefix_context,
46849         u32_casing_prefix_context, u8_casing_prefixes_context,
46850         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46851         declarations.
46852         (casing_suffix_context_t): New type.
46853         (unicase_empty_suffix_context): New variable.
46854         (u8_casing_suffix_context, u16_casing_suffix_context,
46855         u32_casing_suffix_context, u8_casing_suffixes_context,
46856         u16_casing_suffixes_context, u32_casing_suffixes_context,
46857         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46858         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46859         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46860         declarations.
46861
46862 2009-06-28  Jim Meyering  <meyering@redhat.com>
46863
46864         boostrap: indent only with spaces
46865         * build-aux/bootstrap: Indent only with spaces, never TABs.
46866
46867         bootstrap: split long lines
46868         * build-aux/bootstrap: Keep line length < 80.
46869
46870         bootstrap: sync from coreutils
46871         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46872         just as autoreconf does.  Verify a list of prerequisite
46873         package-name,version-number pairs if defined in bootstrap.conf.
46874         Refer to README-prereq, if prerequisites are not satisfied.
46875
46876 2009-06-27  Eric Blake  <ebb9@byu.net>
46877
46878         tests: add test for bogus NULL definition
46879         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46880         * tests/test-stdlib.c: Likewise.
46881         * tests/test-string.c: Likewise.
46882         * tests/test-locale.c: Likewise.
46883         * tests/test-unistd.c: Likewise.
46884         * modules/stdio-tests (Depends-on): Add verify.
46885         * modules/stdlib-tests (Depends-on): Likewise.
46886         * modules/string-tests (Depends-on): Likewise.
46887         * modules/locale-tests (Depends-on): Likewise.
46888         * modules/unistd-tests (Depends-on): Likewise.
46889
46890 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46891
46892         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46893         self-explaining comment.
46894         * m4/selinux-selinux-h: Update serial.
46895         (gl_LIBSELINUX): New macro, adding a warning for missing development
46896         packages to code extracted from...
46897         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46898         Add warning for missing development packages here, too.
46899
46900 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46901
46902         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46903
46904 2009-06-25  Eric Blake  <ebb9@byu.net>
46905
46906         version-etc: fix regression
46907         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46908         gcc.
46909         (version_etc): Use it, to catch bugs with trailing NULL.
46910         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46911         (version_etc_va): Fix logic bug.
46912         * modules/version-etc-tests: Add test.
46913         * tests/test-version-etc.c: New file.
46914         * tests/test-version-etc.sh: Likewise.
46915
46916 2009-06-25  Sam Steingold  <sds@gnu.org>
46917
46918         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46919         mbtowc declaration.
46920
46921 2009-06-25  Eric Blake  <ebb9@byu.net>
46922
46923         fpurge: migrate into <stdio.h>
46924         * lib/fpurge.h: Delete...
46925         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46926         * lib/fpurge.c (fpurge): Change declaring header.
46927         * modules/fpurge (Files): Drop deleted file.
46928         (Depends-on): Add stdio.
46929         (configure.ac): Set witness.
46930         * modules/stdio (Makefile.am): Support fpurge macros.
46931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46932         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46933         * lib/fflush.c: Update client.
46934         * tests/test-fpurge.c: Likewise.
46935         * NEWS: Mention the change.
46936
46937 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46938
46939         * lib/argp-version-etc.c (program_authors): Add const
46940         qualifier.
46941         * lib/version-etc.c: Fix typos in the comments.
46942         * modules/argp-version-etc: Depends on version-etc.
46943
46944 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46945
46946         argp-version-etc: new module.
46947
46948         * lib/argp-version-etc.c: New file.
46949         * lib/argp-version-etc.h: New file.
46950         * modules/argp-version-etc: New file.
46951         * modules/argp-version-etc-tests: New file.
46952         * tests/test-argp-version-etc.c: New test.
46953         * tests/test-argp-version-etc-1.sh: New test.
46954
46955 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46956
46957         Provide additional interfaces and documentation for version-etc
46958         module.
46959
46960         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46961         interfaces.
46962         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46963         prototypes.
46964
46965 2009-06-24  Bruno Haible  <bruno@clisp.org>
46966
46967         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46968         HAVE_LIB${NAME} macro.
46969         Reported by Sam Steingold <sds@gnu.org>.
46970
46971 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46972
46973         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46974         needed.
46975
46976 2009-06-21  Bruno Haible  <bruno@clisp.org>
46977
46978         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46979         work.
46980         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46981         together with LIB${NAME}, LTLIB${NAME}.
46982         Reported by Sam Steingold <sds@gnu.org>.
46983
46984 2009-06-20  Jim Meyering  <meyering@redhat.com>
46985
46986         tests: make sc_require_test_exit_idiom more generic
46987         * top/maint.mk (Exit_witness_file): New overridable variable.
46988         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46989         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46990
46991 2009-06-19  Jim Meyering  <meyering@redhat.com>
46992
46993         hash: reverse order of src/dst parameters in an internal interface
46994         * lib/hash.c (transfer_entries): Reverse order of parameters to
46995         put DST before SRC.  Adjust callers.
46996
46997         tests: test-hash: avoid wholesale duplication
46998         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46999         Instead, use a loop and add a single conditional.
47000
47001         tests: test-hash: allow seed selection via a command line argument
47002         * tests/test-hash.c (get_seed): New function.
47003         (main): Use it.
47004
47005 2009-06-19  Eric Blake  <ebb9@byu.net>
47006
47007         hash: avoid memory leak on allocation failure
47008         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47009         failure.  Factor repeated algorithm...
47010         (transfer_entries): ...into new helper routine.
47011         (hash_delete): React to hash_rehash return value.
47012
47013         hash: reduce memory pressure in hash_rehash no-op case
47014         * lib/hash.c (next_prime): Avoid overflow.
47015         (hash_initialize): Factor bucket size computation...
47016         (compute_bucket_size): ...into new helper function.
47017         (hash_rehash): Use new function and open coding to reduce memory
47018         pressure, and avoid a memory leak in USE_OBSTACK code.
47019         Reported by Jim Meyering.
47020
47021 2009-06-18  Eric Blake  <ebb9@byu.net>
47022
47023         hash: make rotation more obvious
47024         * modules/hash (Depends-on): Add bitrotate and stdint.
47025         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47026         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47027         (SIZE_MAX): Rely on headers for definition.
47028         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47029         (raw_hasher): Use rotr_sz.
47030         Suggested by Jim Meyering.
47031
47032         hash: fix memory leak in last patch
47033         * lib/hash.c (hash_rehash): Avoid memory leak.
47034
47035         hash: avoid no-op rehashing
47036         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47037
47038         hash: provide default callback functions
47039         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47040         (hash_initialize): Use them as defaults.
47041         * tests/test-hash.c (main): Test this.
47042
47043         hash: minor optimization
47044         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47045         when possible.
47046         (hash_initialize): Document this promise.
47047         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47048         * tests/test-hash.c (hash_compare_strings): Test this.
47049
47050 2009-06-18  Bruno Haible  <bruno@clisp.org>
47051
47052         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47053         going to be replaced anyway.
47054
47055 2009-06-18  Bruno Haible  <bruno@clisp.org>
47056
47057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47058         in one place.
47059         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47060         be replaced anyway.
47061
47062 2009-06-18  Eric Blake  <ebb9@byu.net>
47063
47064         hash: check for resize before insertion
47065         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47066         threshold before insertion, so that a pathological hash_rehash
47067         that fills every bucket can still trigger another rehash.
47068
47069 2009-06-18  Jim Meyering  <meyering@redhat.com>
47070
47071         hash-tests: add a loop around the small tests
47072         * tests/test-hash.c (main): Repeat small tests with selected
47073         small initial table sizes.
47074
47075 2009-06-17  Eric Blake  <ebb9@byu.net>
47076
47077         hash: minor cleanups
47078         * lib/hash.h (hash_entry): Make opaque, by moving...
47079         * lib/hash.c (hash_entry): ...here.
47080         (hash_insert): Clarify restrictions on what can be inserted.
47081         (hash_get_next): Clarify when it is safe to remove an element
47082         during traversal.
47083         (check_tuning): Skip verification when tuning is known safe.
47084         (hash_initialize): Clarify restrictions on tuning.
47085
47086 2009-06-17  Jim Meyering  <jim@meyering.net>
47087         and Eric Blake  <ebb9@byu.net>
47088
47089         hash-tests: new module
47090         * modules/hash-tests: New file.
47091         * tests/test-hash.c: New file.
47092
47093 2009-06-17  Eric Blake  <ebb9@byu.net>
47094
47095         strstr-simple: document new module
47096         * MODULES.html.sh: Document new module.
47097
47098         strstr, strcasestr: replace on platforms with broken memchr
47099         * modules/strstr: Split into...
47100         * modules/strstr-simple: ...new module that does not care about
47101         performance, but does care about glibc bug.
47102         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47103         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47104         if platform memchr is broken, per Debian bug 521737.
47105         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47106         memchr.
47107         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47108         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47109         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47110         * modules/mountlist (Depends-on): Add strstr-simple.
47111         * modules/gen-uni-tables (Depends-on): Likewise.
47112         * modules/argz (Depends-on): Add strstr.
47113
47114 2009-06-17  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/posix_spawn-internal (Depends-on): Add errno.
47117
47118 2009-06-17  Bruno Haible  <bruno@clisp.org>
47119
47120         Define missing ESTALE on Interix 3.5.
47121         * lib/errno.in.h (ESTALE): Assign a value if missing.
47122         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47124         missing.
47125         * doc/posix-headers/errno.texi: Mention the Interix bug.
47126         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47127
47128 2009-06-15  Eric Blake  <ebb9@byu.net>
47129
47130         memchr, memchr2: add valgrind exception
47131         * lib/memchr.valgrind: New file.
47132         * lib/memchr2.valgrind: New file.
47133         * modules/memchr (Files): Distribute valgrind file.
47134         * modules/memchr2 (Files): Likewise.
47135
47136         docs: memchr is no longer obsolete
47137         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47138         * lib/string.in.h (memchr): Simplify logic.
47139
47140 2009-06-14  Jim Meyering  <meyering@redhat.com>
47141
47142         link-follow: fix the "checking..." message to not mention trailing slash
47143         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47144         never considered trailing slashes.
47145
47146 2009-06-14  Bruno Haible  <bruno@clisp.org>
47147
47148         * m4/memchr.m4: Mention also the bug on IA-64.
47149         * doc/posix-functions/memchr.texi: Likewise.
47150
47151 2009-06-12  Eric Blake  <ebb9@byu.net>
47152
47153         memchr: detect broken x86_64 and alpha implementations
47154         * modules/memchr-tests (Depends-on): Move mmap detection...
47155         * modules/memchr (Depends-on): ...here.
47156         (configure.ac): Set indicator.
47157         * lib/string.in.h (memchr): Declare replacement.
47158         * modules/string (Makefile.am): Trigger replacement.
47159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47160         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47161         bugs.
47162         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47163         * modules/getpagesize (License): Relax license.
47164
47165 2009-06-11  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/idpriv.h: Add more references.
47168
47169 2009-06-08  Bruno Haible  <bruno@clisp.org>
47170
47171         Tests for module 'idpriv-droptemp'.
47172         * modules/idpriv-droptemp-tests: New file.
47173         * tests/test-idpriv-droptemp.sh: New file.
47174         * tests/test-idpriv-droptemp.su.sh: New file.
47175         * tests/test-idpriv-droptemp.c: New file.
47176
47177         New module 'idpriv-droptemp'.
47178         * lib/idpriv-droptemp.c: New file.
47179         * modules/idpriv-droptemp: New file.
47180
47181 2009-06-08  Bruno Haible  <bruno@clisp.org>
47182
47183         Tests for module 'idpriv-drop'.
47184         * modules/idpriv-drop-tests: New file.
47185         * tests/test-idpriv-drop.sh: New file.
47186         * tests/test-idpriv-drop.su.sh: New file.
47187         * tests/test-idpriv-drop.c: New file.
47188
47189         New module 'idpriv-drop'.
47190         * lib/idpriv.h: New file.
47191         * lib-idpriv-drop.c: New file.
47192         * m4/idpriv.m4: New file.
47193         * modules/idpriv-drop: New file.
47194
47195 2009-06-08  Bruno Haible  <bruno@clisp.org>
47196
47197         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47198         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47199         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47200         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47201         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47202         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47203         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47204
47205 2009-06-08  Eric Blake  <ebb9@byu.net>
47206
47207         test-strstr: use memory fence, when possible
47208         * tests/test-strstr.c (main): Use memory fence, in order to be
47209         more likely to trigger Debian bug 521737.
47210         * modules/strstr-tests (Files): Pull in additional files.
47211
47212         memchr: no longer obsolete, for wider field testing
47213         * modules/memchr (Status, Notice): Delete, this module is no
47214         longer obsolete.
47215         * modules/vasnprintf (Depends-on): Add memchr.
47216
47217 2009-06-07  Jim Meyering  <meyering@redhat.com>
47218
47219         hash: declare some functions with the warn_unused_result attribute
47220         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47221
47222 2009-06-07  Bruno Haible  <bruno@clisp.org>
47223
47224         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47225         Reported by Eric Blake.
47226
47227 2009-06-06  Eric Blake  <ebb9@byu.net>
47228
47229         test-alignof: fix typo with long double
47230         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47231         compiler error.
47232
47233 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47234
47235         Escape non-texinfo { and }s.
47236         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47237         markup error.
47238
47239 2009-06-04  Jim Meyering  <meyering@redhat.com>
47240
47241         gitlog-to-changelog: don't infloop on an empty commit log
47242         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47243         Reported by Boris Petersen <transacid@centerim.org>.
47244
47245 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47246
47247         version-etc: extend for packagers
47248         Add three new configure options, intended for packagers:
47249           --with-packager="packager name"
47250           --with-packager-version="packager-specific version"
47251           --with-packager-bug-reports="packager bug reporting"
47252         An example with coreutils:
47253           $ ./configure \
47254             --with-packager=Gentoo \
47255             --with-packager-bug-report=http://bugs.gentoo.org/ \
47256             --with-packager-version="patchset 1.6"
47257           $ ./src/ls --version | head -n2
47258           ls (GNU coreutils) 7.1-dirty
47259           Packaged by Gentoo (patchset 1.6)
47260         Note that the bug reporting info via --help doesn't show up because
47261         coreutils uses its own custom emit_bug_reporting_address() implementation
47262         in src/system.h.  If it didn't, it'd look like:
47263           $ ./src/ls --help | tail -n4
47264           Report bugs to <bug-coreutils@gnu.org>.
47265           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47266           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47267           General help using GNU software: <http://www.gnu.org/gethelp/>.
47268         * lib/version-etc.c: Print new information, if provided.
47269         * m4/version-etc.m4: New file.
47270         * modules/version-etc (Files): Add m4/version-etc.m4.
47271         (configure.ac): Add gl_VERSION_ETC.
47272
47273 2009-05-31  Bruno Haible  <bruno@clisp.org>
47274
47275         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47276         and 'int64_t'.
47277         * modules/alignof-tests (Dependencies): Add stdint.
47278         Reported by Eric Blake.
47279
47280 2009-05-31  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47283         restriction due to compiler bugs.
47284         Reported by Eric Blake.
47285
47286 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47287             Bruno Haible  <bruno@clisp.org>
47288
47289         Fix test-alignof failure.
47290         * lib/alignof.h (alignof_slot): New macro.
47291         (alignof_type): New macro, with the same semantics as the previous
47292         'alignof'.
47293         (alignof): Alias to alignof_slot.
47294         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47295         check that the results are usable as constant expressions.
47296
47297 2009-05-31  Bruno Haible  <bruno@clisp.org>
47298
47299         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47300         * tests/test-memchr.c (main): Check that memchr does not read past the
47301         first occurrence of the byte.
47302         * tests/test-strstr.c (main): Update comment.
47303         Suggested by Eric Blake.
47304
47305 2009-05-30  Bruno Haible  <bruno@clisp.org>
47306
47307         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47308         detail how to use dumpbin.
47309         Reported by David Byron <dbyron@dbyron.com>.
47310
47311 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47312
47313         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47314
47315 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47316
47317         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47318
47319 2009-05-28  Bruno Haible  <bruno@clisp.org>
47320
47321         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47322         build-aux/ files.
47323
47324 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47325
47326         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47327
47328 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47329
47330         * gnulib-tool (sed_transform_main_lib_file)
47331         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47332         regexps.
47333
47334 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47335
47336         * tests/test-strstr.c: Add another self-test.
47337         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47338         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47339
47340 2009-05-23  Bruno Haible  <bruno@clisp.org>
47341
47342         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47343         change.
47344
47345 2009-05-21  Bruno Haible  <bruno@clisp.org>
47346
47347         Simplify use of mode_t varargs.
47348         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47349         uses 'mode_t' or 'int'.
47350         * lib/openat.c (openat): Likewise.
47351         * lib/open-safer.c (open_safer): Likewise.
47352         * m4/mode_t.m4: New file.
47353         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47354         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47355         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47356         * modules/open (Files): Add m4/mode_t.m4.
47357         * modules/openat (Files): Likewise.
47358         * modules/fcntl-safer (Files): Likewise.
47359         Suggested by Eric Blake.
47360
47361 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47362
47363         * doc/glibc-functions/fallocate.texi: New file.
47364         * doc/gnulib.texi: Include it.
47365
47366 2009-05-21  Eric Blake  <ebb9@byu.net>
47367             Bruno Haible  <bruno@clisp.org>
47368
47369         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47370         invocations.
47371         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47372
47373 2009-05-21  Eric Blake  <ebb9@byu.net>
47374             Bruno Haible  <bruno@clisp.org>
47375
47376         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47377         include_next. Fix of 2008-11-20 commit.
47378         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47379         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47380         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47381         NEXT_MATH_H.
47382         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47383         instead of NEXT_MATH_H.
47384
47385 2009-05-21  Bruno Haible  <bruno@clisp.org>
47386
47387         Avoid redefinition warnings for SIZE_MAX.
47388         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47389         Reported by Simon Josefsson.
47390
47391 2009-05-21  Bruno Haible  <bruno@clisp.org>
47392
47393         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47394         AC_CACHE_VAL.
47395
47396 2009-05-20  Bruno Haible  <bruno@clisp.org>
47397
47398         Make zeroptr.h work on mingw.
47399         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47400         mprotect.
47401         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47402         * modules/memchr2-tests (configure.ac): Likewise.
47403         * modules/memcmp-tests (configure.ac): Likewise.
47404         * modules/memmem-tests (configure.ac): Likewise.
47405         * modules/memrchr-tests (configure.ac): Likewise.
47406         Reported by Simon Josefsson.
47407
47408 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47409
47410         * tests/test-glob.c: Include string.h for strcmp prototype.
47411
47412 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47413
47414         * modules/getdelim (Depends-on): Add explicit stdint, although it
47415         was implicitly already pulled in via realloc-posix.
47416         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47417
47418 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47419
47420         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47421         G. Christensen" <tgc@jupiterrise.com>.
47422         * m4/sys_socket_h.m4: Check for sa_family_t.
47423         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47424         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47425         * tests/test-sys_socket.c: Check that sa_family_t works.
47426
47427 2009-05-18  Eric Blake  <ebb9@byu.net>
47428
47429         maint.mk: allow gnulib_dir in VPATH build
47430         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47431
47432 2009-05-15  Jim Meyering  <meyering@redhat.com>
47433
47434         maint.mk: Give gnulib_dir a default definition.
47435         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47436         Thus, most packages no longer need to specify this variable in cfg.mk
47437
47438 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47439
47440         rename.m4: fix typos that would make non-mingw cross-configure fail
47441         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47442
47443 2009-05-13  Eric Blake  <ebb9@byu.net>
47444
47445         mmap-anon: avoid out-of-order autoconf expansion
47446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47447         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47448         * modules/memchr-tests (Depends-on): Add extensions.
47449         * modules/memchr2-tests (Depends-on): Add extensions.
47450         * modules/memcmp-tests (Depends-on): Add extensions.
47451         * modules/memmem-tests (Depends-on): Add extensions.
47452         * modules/memrchr-tests (Depends-on): Add extensions.
47453
47454 2009-05-13  Bruno Haible  <bruno@clisp.org>
47455
47456         Make some tests ISO C 99 compliant.
47457         * tests/zerosize-ptr.h: New file.
47458         * tests/test-memchr.c: Include zerosize-ptr.h.
47459         (main): Use a zero-size object pointer instead of NULL.
47460         * tests/test-memchr2.c: Include zerosize-ptr.h.
47461         (main): Use a zero-size object pointer instead of NULL.
47462         * tests/test-memcmp.c: Include zerosize-ptr.h.
47463         (main): Use a zero-size object pointer instead of NULL.
47464         * tests/test-memmem.c: Include zerosize-ptr.h.
47465         (main): Use a zero-size object pointer instead of NULL.
47466         * tests/test-memrchr.c: Include zerosize-ptr.h.
47467         (main): Use a zero-size object pointer instead of NULL.
47468         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47469         m4/mmap-anon.m4.
47470         (Depends-on): Add getpagesize.
47471         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47472         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47473         m4/mmap-anon.m4.
47474         (Depends-on): Add getpagesize.
47475         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47476         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47477         m4/mmap-anon.m4.
47478         (Depends-on): Add getpagesize.
47479         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47480         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47481         m4/mmap-anon.m4.
47482         (Depends-on): Add getpagesize.
47483         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47484         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47485         m4/mmap-anon.m4.
47486         (Depends-on): Add getpagesize.
47487         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47488
47489 2009-05-12  Bruno Haible  <bruno@clisp.org>
47490
47491         Tests for module 'alignof'.
47492         * modules/alignof-tests: New file.
47493         * tests/test-alignof.c: New file.
47494
47495 2009-05-12  Bruno Haible  <bruno@clisp.org>
47496
47497         Fix alignof macro.
47498         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47499         vendor compilers that are always correct.
47500
47501 2009-05-12  Bruno Haible  <bruno@clisp.org>
47502
47503         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47504         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47505         not whether its fully works.
47506
47507 2009-05-12  Bruno Haible  <bruno@clisp.org>
47508
47509         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47510
47511 2009-05-12  Jim Meyering  <meyering@redhat.com>
47512
47513         * top/maint.mk: Adjust backslash alignment.
47514
47515 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47516
47517         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47518
47519 2009-05-11  Eric Blake  <ebb9@byu.net>
47520
47521         argp: avoid undefined behavior
47522         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47523         macros.
47524
47525 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47526
47527         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47528         user.name to prevent git commit from complaining.
47529
47530 2009-05-10  Bruno Haible  <bruno@clisp.org>
47531
47532         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47533         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47534         it rewrites every file name only once.
47535         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47536
47537 2009-05-08  Bruno Haible  <bruno@clisp.org>
47538
47539         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47540         instead of 'max'.
47541
47542 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47543
47544         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47545         sockaddr_storage test.
47546
47547 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47548
47549         * modules/sys_socket (Makefile.am): Substitute
47550         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47551         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47552         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47553         * tests/test-sys_socket.c: Check sockaddr_storage.
47554
47555 2009-05-08  Bruno Haible  <bruno@clisp.org>
47556
47557         New module 'alignof'.
47558         * lib/alignof.h: New file.
47559         * modules/alignof: New file.
47560
47561 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47562             Bruno Haible  <bruno@clisp.org>
47563
47564         Fix test-file-has-acl on FreeBSD.
47565         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47566         mask is implicitly added.
47567         * tests/test-file-has-acl.c: Include <signal.h>.
47568         (main): Terminate the test after 5 seconds.
47569         * modules/acl-tests (configure.ac): Check for alarm function.
47570
47571 2009-05-04  Bruno Haible  <bruno@clisp.org>
47572
47573         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47574         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47575         * modules/errno (configure.ac): Drop AC_REQUIRE.
47576         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47577         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47578
47579 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47580
47581         * modules/glob-tests: New module.
47582         * tests/test-glob.c: Add.
47583
47584 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47585
47586         * modules/fnmatch-tests: New module.
47587         * tests/test-fnmatch.c: Add.
47588
47589 2009-05-04  Eric Blake  <ebb9@byu.net>
47590
47591         maint: make the new no-submodule-changes rule VPATH-safe
47592         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47593
47594 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47595             Bruno Haible  <bruno@clisp.org>
47596
47597         acl: Fix infinite loop on FreeBSD.
47598         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47599         of return value from acl_get_entry.
47600         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47601         Likewise.
47602
47603 2009-05-03  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/acl-internal.h (acl_entries): Clarify return value.
47606         * lib/acl_entries.c (acl_entries): Likewise.
47607
47608 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47609
47610         Bug fix in acl module.
47611         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47612
47613 2009-05-03  Bruno Haible  <bruno@clisp.org>
47614
47615         Create gperf-generated file in the source dir, not in the build dir.
47616         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47617         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47618         * modules/unicase/locale-language (unicase/locale-languages.h):
47619         Likewise.
47620         * modules/unicase/special-casing (unicase/special-casing-table.h):
47621         Likewise.
47622         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47623         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47624         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47625         Reported by Ralf Wildenhues.
47626
47627 2009-05-03  Bruno Haible  <bruno@clisp.org>
47628
47629         * modules/fnmatch (Description, configure.ac): Taken from
47630         fnmatch-posix.
47631         * modules/fnmatch-posix: Turn into a symbolic reference to the
47632         'fnmatch' module, and deprecate.
47633         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47634
47635 2009-05-03  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47638         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47639         Reported by Ralf Wildenhues.
47640
47641 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47642
47643         * m4/fnmatch.m4: Fix fnmatch re-define.
47644
47645 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47646
47647         priv-set: new module and tests; adapt write-any-file
47648         * lib/priv-set.c: New file.
47649         * lib/priv-set.h: New file.
47650         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47651         * lib/write-any-file.c: Simplify by using priv-set module.
47652         * m4/priv-set.m4: New file.
47653         * modules/priv-set: New file.
47654         * modules/unlinkdir: Add dependency on priv-set module.
47655         * modules/write-any-file: Likewise.
47656
47657         Tests for module 'priv-set'.
47658         * modules/priv-set-tests: New file.
47659         * tests/test-priv-set.c: New file.
47660
47661 2009-05-03  Jim Meyering  <meyering@redhat.com>
47662             Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47665         use the converted UTF-8 variant of the name instead.
47666
47667 2009-05-03  Jim Meyering  <meyering@redhat.com>
47668
47669         tests: tighten some getdate tests
47670         * tests/test-getdate.c (main): Tighten tests: require equality,
47671         not just greater than.  Set TZ envvar to UTC0.
47672
47673 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47674
47675         getdate: correctly interpret "next monday" when run on a Monday
47676         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47677         that e.g., "next tues" (when run on a tuesday) results in a date
47678         that is one week in the future, and not today's date.
47679         I.e., add a week when the wday is the same as the current one.
47680         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47681         and earlier by Martin Bernreuther and Jan Minář.
47682         * tests/test-getdate.c (main): Check that "next DAY" is always in
47683         the future and that "last DAY" is always in the past.
47684
47685 2009-05-02  Jim Meyering  <meyering@redhat.com>
47686
47687         build: ensure that a release build fails when a submodule is unclean
47688         * top/maint.mk (no-submodule-changes): New rule.
47689         (alpha beta major): Depend on it.
47690
47691 2009-05-02  Bruno Haible  <bruno@clisp.org>
47692
47693         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47694         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47695         shell variable gl_fnmatch_required to detect which variant is
47696         requested.
47697         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47698         gl_FUNC_FNMATCH_POSIX.
47699         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47700         exclude fnmatch-posix.
47701
47702 2009-05-02  Bruno Haible  <bruno@clisp.org>
47703
47704         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47705         * modules/mbsrtowcs (License): Change to LGPLv2+.
47706         * modules/strnlen1 (License): Likewise.
47707         Reported by Simon Josefsson.
47708
47709 2009-05-02  Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47712         "cross".
47713         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47714         gnulib-tool was called with option --source-base=lib.
47715
47716 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47717
47718         Use automake *-local hooks without commands, for extensibility.
47719         * modules/localcharset (Makefile.am): Rename install-exec-local
47720         rule to install-exec-localcharset, and make it a prerequisite of
47721         install-exec-local.  Likewise, rename the uninstall-local rule to
47722         uninstall-localcharset, and make it a prerequisite of the former.
47723
47724 2009-05-01  Bruno Haible  <bruno@clisp.org>
47725
47726         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47727         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47728         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47730         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47731         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47732         m4/locale-zh.m4, m4/codeset.m4.
47733
47734         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47735         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47736         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47737         m4/locale-zh.m4.
47738
47739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47740         REPLACE_WCRTOMB if mbstate_t must be replaced.
47741         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47742         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47743
47744 2009-05-01  Bruno Haible  <bruno@clisp.org>
47745
47746         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47747         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47748         dngettext, dcngettext, textdomain, bindtextdomain,
47749         bind_textdomain_codeset): Undefine before redefining.
47750
47751 2009-04-30  Bruno Haible  <bruno@clisp.org>
47752
47753         Fix bug introduced on 2009-04-25.
47754         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47755         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47756         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47757         is defined.
47758         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47759         is defined.
47760         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47761         is defined.
47762         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47763
47764 2009-04-28  Bruno Haible  <bruno@clisp.org>
47765
47766         Comment tweaks.
47767         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47768         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47769         * lib/unicase.h (u*_casexfrm): Likewise.
47770         Reported by Paolo Bonzini.
47771
47772 2009-04-28  Bruno Haible  <bruno@clisp.org>
47773
47774         Fix a compilation error.
47775         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47776         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47777         Reported by Jim Meyering.
47778
47779 2009-04-27  Bruno Haible  <bruno@clisp.org>
47780
47781         New module 'libunistring'.
47782         * modules/libunistring: New file.
47783         * m4/libunistring.m4: New file.
47784         * MODULES.html.sh (Unicode string functions): Add it.
47785
47786 2009-04-27  Eric Blake  <ebb9@byu.net>
47787
47788         maint.mk: allow package-specific header to provide <config.h>
47789         * top/maint.mk (sc_require_config_h): New variable.
47790         (sc_require_config_h, sc_require_config_h_first): Use it.
47791
47792 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47793
47794         * top/maint.mk (sc_avoid_if_before_free): Except
47795         useless-if-before-free script.
47796
47797 2009-04-27  Eric Blake  <ebb9@byu.net>
47798
47799         maintainer-makefile: depend on all required helper scripts
47800         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47801         useless-if-before-free.
47802         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47803         version, rather than assuming gnulib checkout is available.
47804         Reported by Simen Josefsson.
47805
47806 2009-04-26  Bruno Haible  <bruno@clisp.org>
47807
47808         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47809         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47810         "../" or "..".
47811
47812 2009-04-26  Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47815         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47816         AC_LIB_HAVE_LINKFLAGS.
47817
47818 2009-04-26  Bruno Haible  <bruno@clisp.org>
47819
47820         Simplify calling convention of u*_conv_from_encoding.
47821         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47822         u32_conv_from_encoding): Expect a resultbuf argument and return the
47823         result directly as a pointer.
47824         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47825         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47826         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47827         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47828         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47829         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47830         Update.
47831         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47832         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47833         * lib/vasnprintf.c (VASNPRINTF): Update.
47834         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47835         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47836         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47837         * NEWS: Mention the change.
47838
47839 2009-04-26  Bruno Haible  <bruno@clisp.org>
47840
47841         Simplify calling convention of u*_conv_to_encoding.
47842         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47843         u32_conv_to_encoding): Expect a resultbuf argument and return the
47844         result directly as a pointer.
47845         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47846         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47847         freeing scaled_offsets if mem_iconveha failed.
47848         * lib/unicase/u-casexfrm.h (FUNC): Update.
47849         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47850         * lib/vasnprintf.c (VASNPRINTF): Update.
47851         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47852         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47853         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47854         * NEWS: Mention the change.
47855
47856 2009-04-26  Bruno Haible  <bruno@clisp.org>
47857
47858         Avoid test failures on AIX and OSF/1.
47859         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47860         malloc(0).
47861         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47862         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47863         Likewise.
47864         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47865         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47866         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47867         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47868         * doc/posix-functions/malloc.texi: Document the portability problem
47869         related to malloc(0).
47870
47871 2009-04-26  Bruno Haible  <bruno@clisp.org>
47872
47873         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47874         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47875         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47876
47877 2009-04-25  Bruno Haible  <bruno@clisp.org>
47878
47879         Avoid link error when creating a namespace clean library.
47880         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47881         as macro with arguments if already defined as an alias.
47882         * lib/signbitf.c (gl_signbitf): Don't undefine.
47883         * lib/signbitd.c (gl_signbitd): Don't undefine.
47884         * lib/signbitl.c (gl_signbitl): Don't undefine.
47885
47886 2009-04-25  Jim Meyering  <meyering@redhat.com>
47887
47888         vc-list-files: fix another quoting bug
47889         * build-aux/vc-list-files: Avoid sed backslash expansion
47890         of pathological directory names.
47891
47892 2009-04-25  Eric Blake  <ebb9@byu.net>
47893
47894         vc-list-files: fix shell quoting error
47895         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47896         timestamp.
47897
47898 2009-04-25  Jim Meyering  <meyering@redhat.com>
47899
47900         vc-list-files: restore lost functionality with subdir argument
47901         * build-aux/vc-list-files: When given a non-"." sub-directory
47902         argument, substitute the $dir/ prefix back onto each resulting name.
47903         Otherwise, coreutils' root_tests check would fail.
47904
47905 2009-04-24  Eric Blake  <ebb9@byu.net>
47906
47907         vc-list-files: ignore git symlinks
47908         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47909         than ls-files, to ignore git symlinks.
47910
47911         maint.mk: import improvements from m4
47912         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47913         (move_if_change): Delete unused macro.
47914         (news-date-check, vc-diff-check): Support VPATH builds.
47915         (announcement): Likewise.  Split --bootstrap-tools list...
47916         (boostrap-tools): ...into separate list, which can be overridden
47917         in cfg.mk.
47918         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47919         requiring dependency on useless-if-before-free module.
47920         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47921         Support VPATH builds.
47922
47923 2009-04-24  Jim Meyering  <meyering@redhat.com>
47924
47925         maint.mk: remove coreutils-specific rules and variables
47926         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47927         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47928         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47929
47930         maint.mk: remove obsolete rule
47931         * top/maint.mk (rel-check): Remove rule.
47932         (WGET, WGETFLAGS): Remove now-unused variables.
47933
47934 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47935
47936         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47937         consistency.
47938
47939         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47940         '$(PATH_SEPARATOR)' instead of ':'.
47941
47942 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47943
47944         * lib/getopt1.c (main): Use 'const' for static array.
47945
47946 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47947
47948         * top/maint.mk: Sync with coreutils.
47949         * NEWS: Explain incompatibilities.
47950
47951 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47952             Bruno Haible  <bruno@clisp.org>
47953
47954         Fix cross-compilation results.
47955         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47956         statement, as third argument of AC_TRY_RUN.
47957         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47958         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47959         Likewise.
47960         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47961         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47962         Likewise.
47963         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47964         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47965         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47966
47967 2009-04-20  Bruno Haible  <bruno@clisp.org>
47968
47969         Avoid test failure on mingw.
47970         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47971
47972 2009-04-20  Bruno Haible  <bruno@clisp.org>
47973
47974         Avoid compilation error on mingw.
47975         * modules/localename-tests (Depends-on): Add locale.
47976
47977 2009-04-19  Bruno Haible  <bruno@clisp.org>
47978
47979         Support for building a shared library on Windows platforms.
47980         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47981         (main): Test the presence of UNINORM_NFC here.
47982         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47983         (main): Test the presence of UNINORM_NFD here.
47984         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47985         (main): Test the presence of UNINORM_NFKC here.
47986         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47987         (main): Test the presence of UNINORM_NFKD here.
47988
47989 2009-04-19  Bruno Haible  <bruno@clisp.org>
47990
47991         Avoid a compiler warning.
47992         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47993         Change type of variable 'sequence'.
47994
47995 2009-04-19  Bruno Haible  <bruno@clisp.org>
47996
47997         * modules/configmake (Makefile.am): When the contents of configmake.h
47998         does not change, arrange to preserve its modification time.
47999
48000 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48001
48002         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48003         gettext domain.
48004
48005 2009-04-16  Jim Meyering  <meyering@redhat.com>
48006
48007         useless-if-before-free: improve conversion code
48008         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48009         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48010
48011 2009-04-14  Bruno Haible  <bruno@clisp.org>
48012
48013         * modules/fcntl (Depends-on): Add extensions.
48014         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48015
48016 2009-04-12  Ben Pfaff  <blp@gnu.org>
48017
48018         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48019         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48020
48021 2009-03-20  Ben Pfaff  <blp@gnu.org>
48022
48023         Make rename replace existing destinations on Windows.
48024         * m4/rename.m4: Add test for Mingw.
48025         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48026         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48027         * doc/posix-functions/rename.texi: Document.
48028
48029 2009-04-10  Bruno Haible  <bruno@clisp.org>
48030
48031         New include file "iconveh.h".
48032         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48033         * lib/striconveh.h: Include it.
48034         (enum iconv_ilseq_handler): Remove definition.
48035         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48036         striconveh.h.
48037         * lib/striconveha.c: Include striconveh.h.
48038         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48039         * modules/striconveh (Files): Add lib/iconveh.h.
48040         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48041         lib/striconveh.h.
48042
48043 2009-04-10  Bruno Haible  <bruno@clisp.org>
48044
48045         * lib/uniconv.h: Update comment.
48046
48047 2009-04-10  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48050         always.
48051         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48052         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48053         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48054         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48055         "unistring-notinline.h", so that the function gets defined always.
48056         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48057         * lib/unistr/u8-uctomb.c: Likewise.
48058         * lib/unistr/u16-mbtouc.c: Likewise.
48059         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48060         * lib/unistr/u16-uctomb.c: Likewise.
48061         * lib/unistr/u32-mbtouc.c: Likewise.
48062         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48063         * lib/unistr/u32-uctomb.c: Likewise.
48064
48065 2009-04-10  Bruno Haible  <bruno@clisp.org>
48066
48067         Mark 'utime' obsolete.
48068         * modules/utime (Status, Notice): New sections.
48069         Suggested by Jim Meyering.
48070
48071         Fix cross-compile guess for utime test.
48072         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48073         autoconf.
48074         * doc/posix-functions/utime.texi: Give more precisions.
48075         Reported by Jan <ipif@ymail.com>.
48076
48077 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48078
48079         filevercmp: correct today's change
48080         * lib/filevercmp.c: Also handle coreutils' test inputs.
48081         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48082
48083         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48084         for reporting it.
48085         * lib/filevercmp.c: Special handle for "", "." and "..".
48086         * tests/test-filevercmp.c: Enlarge the set suite.
48087
48088 2009-04-07  Jim Meyering  <meyering@redhat.com>
48089
48090         useless-if-before-free: show how to remove braced useless free, too
48091         * build-aux/useless-if-before-free: still only in a comment, though.
48092
48093 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48094
48095         maint.mk: import changes to syntax-check macros from coreutils
48096         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48097         Use them in the relevant macros.
48098
48099 2009-04-06  Bruno Haible  <bruno@clisp.org>
48100
48101         Fix unportable use of bit-fields.
48102         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48103         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48104         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48105
48106 2009-04-06  Bruno Haible  <bruno@clisp.org>
48107
48108         Avoid test failures on AIX and OSF/1.
48109         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48110         that malloc(0) = NULL.
48111         * tests/unicase/test-u8-tolower.c (check): Likewise.
48112         * tests/unicase/test-u8-totitle.c (check): Likewise.
48113         * tests/unicase/test-u8-toupper.c (check): Likewise.
48114         * tests/unicase/test-u16-casefold.c (check): Likewise.
48115         * tests/unicase/test-u16-tolower.c (check): Likewise.
48116         * tests/unicase/test-u16-totitle.c (check): Likewise.
48117         * tests/unicase/test-u16-toupper.c (check): Likewise.
48118         * tests/unicase/test-u32-casefold.c (check): Likewise.
48119         * tests/unicase/test-u32-tolower.c (check): Likewise.
48120         * tests/unicase/test-u32-totitle.c (check): Likewise.
48121         * tests/unicase/test-u32-toupper.c (check): Likewise.
48122         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48123         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48124         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48125         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48126         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48127         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48128         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48129         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48130         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48131         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48132         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48133         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48134
48135 2009-04-05  Bruno Haible  <bruno@clisp.org>
48136
48137         Work around an autoconf limitation.
48138         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48139         comment line if it would be longer than 3 KB.
48140
48141 2009-04-05  Bruno Haible  <bruno@clisp.org>
48142
48143         Avoid test failure with libiconv-1.13.
48144         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48145         of the expected test results.
48146
48147 2009-04-05  Bruno Haible  <bruno@clisp.org>
48148
48149         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48150         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48151         that it should be installed.
48152
48153 2009-04-05  Bruno Haible  <bruno@clisp.org>
48154
48155         * gnulib-tool: New option --copy-file.
48156         (func_usage): Document it.
48157         (func_dest_tmpfilename): Moved out of func_import.
48158         (func_add_file, func_update_file): New functions, extracted from
48159         func_import.
48160         (func_import): Update.
48161
48162 2009-04-05  Karl Berry  <karl@gnu.org>
48163
48164         * README: prominently mention gnulib-tool.
48165         Rearrange sections so getting the code is near the top.
48166
48167 2009-04-05  Bruno Haible  <bruno@clisp.org>
48168
48169         * lib/unicase.h: Mention u*_cmp2.
48170         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48171         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48172         * lib/unicase/ulc-casecmp.c: Likewise.
48173         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48174         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48175         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48176         unistr/u8-cmp.
48177         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48178         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48179         unistr/u16-cmp.
48180         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48181         unistr/u32-cmp.
48182
48183         * lib/uninorm.h: Mention u*_cmp2.
48184         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48185         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48186         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48187         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48188         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48189         unistr/u8-cmp.
48190         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48191         unistr/u16-cmp.
48192         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48193         unistr/u32-cmp.
48194
48195         New module 'unistr/u32-cmp2'.
48196         * lib/unistr/u32-cmp2.c: New file.
48197         * modules/unistr/u32-cmp2: New file.
48198
48199         New module 'unistr/u16-cmp2'.
48200         * lib/unistr/u16-cmp2.c: New file.
48201         * modules/unistr/u16-cmp2: New file.
48202
48203         New module 'unistr/u8-cmp2'.
48204         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48205         * lib/unistr/u8-cmp2.c: New file.
48206         * lib/unistr/u-cmp2.h: New file.
48207         * modules/unistr/u8-cmp2: New file.
48208
48209 2009-04-05  Bruno Haible  <bruno@clisp.org>
48210
48211         * lib/unictype.h (uc_property_is_valid): New macro.
48212         * tests/unictype/test-pr_byname.c (main): Use it.
48213
48214         * lib/unistr.h: Doc fixes.
48215         * lib/uniconv.h: Doc fixes.
48216         * lib/unictype.h: Doc fixes.
48217
48218 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         Port coreutils 7.2 to Solaris 8.
48221
48222         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48223         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48224         for Solaris 8.  This is a bit of a hack, as it means it's the
48225         caller's responsibility to add -lnsl if needed, but most likely it
48226         won't be needed since only getaddrinfo uses this and getaddrinfo
48227         isn't needed on Solaris 8.
48228
48229         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48230         problem to Solaris 8 encountered with coreutils 7.2, which
48231         resulted in a message "fnmatch.c:292: warning: passing argument 4
48232         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48233         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48234
48235 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48236
48237         * m4/ld-version-script.m4: Add FIXME comment.
48238
48239 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48240
48241         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48242         SOVERSION variable.
48243
48244 2009-04-02  Bruno Haible  <bruno@clisp.org>
48245
48246         * Makefile (info, html, dvi, pdf): Combine the rules.
48247         Suggested by Jim Meyering.
48248
48249 2009-04-01  Bruno Haible  <bruno@clisp.org>
48250
48251         * Makefile (info, html, dvi, pdf): New targets.
48252         Reported by Reuben Thomas <rrt@sc3d.org>.
48253
48254 2009-04-01  Bruno Haible  <bruno@clisp.org>
48255
48256         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48257         can be put into PATH.
48258         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48259
48260 2009-04-01  Bruno Haible  <bruno@clisp.org>
48261
48262         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48263
48264 2009-04-01  Bruno Haible  <bruno@clisp.org>
48265
48266         Rename module 'visibility'.
48267         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48268         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48269         * doc/gnulib.texi: Update.
48270         * MODULES.html.sh (Misc): Update.
48271         * NEWS: Mention the change.
48272
48273 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48274
48275         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48276         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48277         Eric Blake <ebb9@byu.net> for review.
48278         * MODULES.html.sh: Add lib-msvc-compat.
48279         * doc/gnulib.texi: Link to new section.
48280         * m4/ld-output-def.m4: New file.
48281         * doc/ld-output-def.texi: New file.
48282
48283 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48284
48285         Rename ld-version-script to lib-symbol-versions.  Suggested by
48286         Bruno Haible <bruno@clisp.org>.
48287         * modules/ld-version-script: Renamed to lib-symbol-versions.
48288         * doc/ld-version-script.texi: Fix module name.
48289         * MODULES.html.sh: Add lib-symbol-versions.
48290
48291 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48292
48293         * modules/u64-tests: New file.
48294         * tests/test-u64.c: New file.
48295
48296 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48297
48298         * MODULES.html.sh: Mention u64.
48299         * modules/u64: New module.
48300         * modules/crypto/sha512: Depend on u64 module instead of providing
48301         u64.h.
48302
48303 2009-03-27  Eric Blake  <ebb9@byu.net>
48304
48305         test-strerror: make debugging EAI_SYSTEM easier
48306         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48307         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48308         failure was EAI_SYSTEM.
48309
48310 2009-03-25  Bruno Haible  <bruno@clisp.org>
48311
48312         Fix a problem with --enable-relocatable on Solaris 7.
48313         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48314         since 2008-02-24.
48315
48316 2009-03-25  Eric Blake  <ebb9@byu.net>
48317
48318         test-sockets: avoid gcc warning
48319         * tests/test-sockets.c (main): Silence compiler warning.
48320
48321 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48322
48323         New modules nproc, pthread, contributed by Glen Lenker.
48324
48325         * MODULES.html.sh: Add pthread, nproc.
48326         * lib/nproc.c: New file.
48327         * lib/nproc.h: New file.
48328         * lib/pthread.in.h: New file.
48329         * m4/pthread.m4: New file.
48330         * modules/nproc: New file.
48331         * modules/pthread: New file.
48332
48333 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48334
48335         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48336         New variable.
48337
48338 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48339
48340         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48341         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48342         * tests/test-filevercmp.c: Add tests for backup suffixes.
48343
48344 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48345
48346         * modules/stdlib (Depends-on): Add stdint, needed when defining
48347         struct random_data on, for example, HP-UX 10.20.  Reported by
48348         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48349
48350 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48351
48352         * lib/readline.c (readline): Call fflush on stdout after printing
48353         prompt.
48354
48355 2009-03-20  Bruno Haible  <bruno@clisp.org>
48356
48357         Remove dependency from 'close' module to -lws2_32 on native Windows.
48358         * lib/close-hook.h: New file.
48359         * lib/close-hook.c: New file.
48360         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48361         w32sock.h.
48362         (_gl_close_fd_maybe_socket): Remove function.
48363         (rpl_close): Invoke execute_all_close_hooks instead of
48364         _gl_close_fd_maybe_socket.
48365         * lib/sockets.c: Include close-hook.h, w32sock.h.
48366         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48367         (close_sockets_hook): New variable.
48368         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48369         (gl_sockets_cleanup): Unregister it.
48370         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48371         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48372         * modules/close-hook: New file.
48373         * modules/close (Files): Remove lib/w32sock.h.
48374         (Depends-on): Add close-hook.
48375         (Link): Remove section.
48376         * modules/sockets (Files): Add lib/w32sock.h.
48377         (Depends-on): Add close-hook.
48378         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48379         invocation.
48380         * NEWS: Mention that LIB_CLOSE is gone.
48381
48382 2009-03-23  Eric Blake  <ebb9@byu.net>
48383
48384         signal-tests: test previous patch
48385         * tests/test-signal.c: New file.
48386         * modules/signal-tests: Likewise.
48387
48388         signal.h: always support 'volatile sig_atomic_t'
48389         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48390         (gl_SIGNAL_H_DEFAULTS): Add a default.
48391         * modules/signal (Makefile.am): Substitute if needed.
48392         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48393         users can blindly add volatile.
48394         * doc/posix-headers/signal.texi (signal.h): Document it.
48395         Reported by Matthew Woehlke.
48396
48397 2009-03-23  Jim Meyering  <meyering@redhat.com>
48398
48399         pathmax: PATH_MAX: use pathconf only when available
48400         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48401         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48402         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48403         This avoids a link failure in a PSP cross-compilation environment
48404         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48405
48406         * lib/vasnprintf.c (divide): Fix typo in comment.
48407
48408 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48409
48410         * gnulib-tool (func_filter_filelist): Fix comment.
48411
48412 2009-03-20  Bruno Haible  <bruno@clisp.org>
48413
48414         Make sockets.h self-contained.
48415         * lib/sockets.c: Include sockets.h first.
48416         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48417
48418 2009-03-19  Eric Blake  <ebb9@byu.net>
48419
48420         doc: mention more functions added in cygwin 1.7.0
48421         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48422         addition.
48423         * doc/posix-functions/log2f.texi: Likewise.
48424
48425 2009-03-19  Jim Meyering  <meyering@redhat.com>
48426
48427         fsusage: avoid syntax error due to statement-before-declaration
48428         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48429         after all declarations.  Reported by Matthew Woehlke in
48430         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48431
48432 2009-03-18  Eric Blake  <ebb9@byu.net>
48433
48434         build-aux/compile: sync from automake
48435         * build-aux/compile: New file, from automake.
48436         * config/srclist.txt: Mention build-aux/compile.
48437
48438 2009-03-17  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/git-merge-changelog.c: Fix typo in comment.
48441         Reported by Reuben Thomas <rrt@sc3d.org>.
48442
48443 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48444
48445         * m4/regex.m4: update and improve help for
48446         --without-included-regex.
48447
48448 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48449
48450         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48451         failure on missing include files.
48452
48453 2009-03-17  Eric Blake  <ebb9@byu.net>
48454
48455         doc: mention more functions added in cygwin 1.7.0
48456         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48457         addition.
48458         * doc/posix-functions/fwscanf.texi: Likewise.
48459         * doc/posix-functions/swprintf.texi: Likewise.
48460         * doc/posix-functions/swscanf.texi: Likewise.
48461         * doc/posix-functions/vfwprintf.texi: Likewise.
48462         * doc/posix-functions/vfwscanf.texi: Likewise.
48463         * doc/posix-functions/vswprintf.texi: Likewise.
48464         * doc/posix-functions/vswscanf.texi: Likewise.
48465         * doc/posix-functions/vwprintf.texi: Likewise.
48466         * doc/posix-functions/vwscanf.texi: Likewise.
48467         * doc/posix-functions/wcscasecmp.texi: Likewise.
48468         * doc/posix-functions/wcsdup.texi: Likewise.
48469         * doc/posix-functions/wcsftime.texi: Likewise.
48470         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48471         * doc/posix-functions/wprintf.texi: Likewise.
48472         * doc/posix-functions/wscanf.texi: Likewise.
48473         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48474
48475 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48476
48477         maint.mk: really add $(AM_MAKEFLAGS)
48478         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48479         was inadvertently omitted in the last commit.
48480         Spotted by Bruno Haible.
48481
48482         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48483         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48484         $(AM_MAKEFLAGS)' rather than plain `make'.
48485
48486         gnulib-tool: execute $MAKE not make
48487         * gnulib-tool: Default $MAKE to 'make'.
48488         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48489         than make.  Initialize $MAKE in the do-autobuild script.
48490
48491         gnulib-tool: use $MAKE not make in generated files
48492         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48493         make, in generated files.  Initialize $MAKE in the do-autobuild
48494         script.
48495
48496         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48497
48498         GNUmakefile: disable parallelism only for multiple, recursive targets
48499         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48500         additions in the Makefile.
48501         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48502         by Automake.
48503         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48504         are listed on the command line and at least one of them is
48505         listed in $(ALL_RECURSIVE_TARGETS).
48506
48507 2009-03-14  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48510         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48511         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48512         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48513         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48514         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48515         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48516         unistr/u8-uctomb.
48517         * modules/unistr/u8-strchr (Depends-on): Likewise.
48518         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48519         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48520         unistr/u16-uctomb.
48521         * modules/unistr/u16-strchr (Depends-on): Likewise.
48522         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48523
48524 2009-03-12  Bruno Haible  <bruno@clisp.org>
48525
48526         Work around select() bug on Interix 3.5.
48527         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48528         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48529         * m4/select.m4: New file.
48530         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48531         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48532         * modules/select (Files): Add m4/select.m4.
48533         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48534         * modules/nanosleep (Depends-on): Add select.
48535         * modules/poll (Depends-on): Likewise.
48536         * doc/posix-functions/select.texi: Mention the Interix bug.
48537         Reported by Markus Duft <mduft@gentoo.org>.
48538
48539         * lib/select.c: Renamed from lib/winsock-select.c.
48540         * modules/select (Files): Add lib/select.c, remove
48541         lib/winsock-select.c.
48542         (configure.ac): Update.
48543
48544 2009-03-12  Jim Meyering  <meyering@redhat.com>
48545
48546         avoid gcc warnings about unused macro definitions
48547         * lib/readtokens.c (STREQ): Remove unused definition.
48548         * lib/xmalloc.c (SIZE_MAX): Likewise.
48549         * lib/openat-die.c (N_): Likewise.
48550         * lib/mountlist.c (SIZE_MAX): Remove definition.
48551         Instead, include <stdint.h>.
48552         * lib/readutmp.c: Likewise.
48553         * modules/readutmp (Depends-on): Add stdint.
48554         * modules/mountlist (Depends-on): Add stdint.
48555         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48556
48557 2009-03-10  Bruno Haible  <bruno@clisp.org>
48558
48559         Tests for module 'mbmemcasecoll'.
48560         * modules/mbmemcasecoll-tests: New file.
48561         * tests/test-mbmemcasecoll1.sh: New file.
48562         * tests/test-mbmemcasecoll2.sh: New file.
48563         * tests/test-mbmemcasecoll3.sh: New file.
48564         * tests/test-mbmemcasecoll.c: New file.
48565
48566         New module 'mbmemcasecoll'.
48567         * lib/mbmemcasecoll.h: New file.
48568         * lib/mbmemcasecoll.c: New file.
48569         * modules/mbmemcasecoll: New file.
48570
48571         * tests/test-mbmemcasecmp.h: New file, extracted from
48572         tests/test-mbmemcasecmp.c.
48573         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48574         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48575         (main): Update.
48576         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48577
48578 2009-03-09  Bruno Haible  <bruno@clisp.org>
48579
48580         Tests for module 'mbmemcasecmp'.
48581         * modules/mbmemcasecmp-tests: New file.
48582         * tests/test-mbmemcasecmp1.sh: New file.
48583         * tests/test-mbmemcasecmp2.sh: New file.
48584         * tests/test-mbmemcasecmp3.sh: New file.
48585         * tests/test-mbmemcasecmp.c: New file.
48586
48587         New module 'mbmemcasecmp'.
48588         * lib/mbmemcasecmp.h: New file.
48589         * lib/mbmemcasecmp.c: New file.
48590         * modules/mbmemcasecmp: New file.
48591
48592 2009-03-09  Bruno Haible  <bruno@clisp.org>
48593
48594         Tests for module 'unicase/ulc-casecoll'.
48595         * modules/unicase/ulc-casecoll-tests: New file.
48596         * tests/unicase/test-ulc-casecoll1.sh: New file.
48597         * tests/unicase/test-ulc-casecoll2.sh: New file.
48598         * tests/unicase/test-ulc-casecoll.c: New file.
48599
48600         New module 'unicase/ulc-casecoll'.
48601         * lib/unicase.h (ulc_casecoll): New declaration.
48602         * lib/unicase/ulc-casecoll.c: New file.
48603         * modules/unicase/ulc-casecoll: New file.
48604
48605         New module 'unicase/ulc-casexfrm'.
48606         * lib/unicase.h (ulc_casexfrm): New declaration.
48607         * lib/unicase/ulc-casexfrm.c: New file.
48608         * modules/unicase/ulc-casexfrm: New file.
48609
48610 2009-03-09  Bruno Haible  <bruno@clisp.org>
48611
48612         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48613         invocations.
48614
48615         * m4/mbscasecmp.m4: Remove file.
48616         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48617         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48618
48619         * m4/mbscasestr.m4: Remove file.
48620         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48621         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48622
48623         * m4/mbschr.m4: Remove file.
48624         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48625         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48626
48627         * m4/mbscspn.m4: Remove file.
48628         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48629         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48630
48631         * m4/mbslen.m4: Remove file.
48632         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48633         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48634
48635         * m4/mbsncasecmp.m4: Remove file.
48636         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48637         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48638
48639         * m4/mbsnlen.m4: Remove file.
48640         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48641         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48642
48643         * m4/mbspbrk.m4: Remove file.
48644         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48645         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48646
48647         * m4/mbspcasecmp.m4: Remove file.
48648         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48649         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48650
48651         * m4/mbsrchr.m4: Remove file.
48652         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48653         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48654
48655         * m4/mbssep.m4: Remove file.
48656         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48657         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48658
48659         * m4/mbsspn.m4: Remove file.
48660         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48661         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48662
48663         * m4/mbsstr.m4: Remove file.
48664         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48665         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48666
48667         * m4/mbstok_r.m4: Remove file.
48668         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48669         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48670
48671         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48672
48673         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48674         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48675
48676         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48677
48678 2009-03-08  Bruno Haible  <bruno@clisp.org>
48679
48680         Tests for module 'unicase/ulc-casecmp'.
48681         * modules/unicase/ulc-casecmp-tests: New file.
48682         * tests/unicase/test-ulc-casecmp1.sh: New file.
48683         * tests/unicase/test-ulc-casecmp2.sh: New file.
48684         * tests/unicase/test-ulc-casecmp.c: New file.
48685
48686         New module 'unicase/ulc-casecmp'.
48687         * lib/unicase.h (ulc_casecmp): New declaration.
48688         * lib/unicase/ulc-casecmp.c: New file.
48689         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48690         'const SRC_UNIT *'.
48691         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48692         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48693         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48694         * modules/unicase/ulc-casecmp: New file.
48695
48696         Tests for module 'unicase/u32-is-cased'.
48697         * modules/unicase/u32-is-cased-tests: New file.
48698         * tests/unicase/test-u32-is-cased.c: New file.
48699
48700         Tests for module 'unicase/u16-is-cased'.
48701         * modules/unicase/u16-is-cased-tests: New file.
48702         * tests/unicase/test-u16-is-cased.c: New file.
48703
48704         Tests for module 'unicase/u8-is-cased'.
48705         * modules/unicase/u8-is-cased-tests: New file.
48706         * tests/unicase/test-u8-is-cased.c: New file.
48707         * tests/unicase/test-is-cased.h: New file.
48708
48709         New module 'unicase/u32-is-cased'.
48710         * lib/unicase/u32-is-cased.c: New file.
48711         * modules/unicase/u32-is-cased: New file.
48712
48713         New module 'unicase/u16-is-cased'.
48714         * lib/unicase/u16-is-cased.c: New file.
48715         * modules/unicase/u16-is-cased: New file.
48716
48717         New module 'unicase/u8-is-cased'.
48718         * lib/unicase/u8-is-cased.c: New file.
48719         * lib/unicase/u-is-cased.h: New file.
48720         * modules/unicase/u8-is-cased: New file.
48721
48722         Tests for module 'unicase/u32-is-casefolded'.
48723         * modules/unicase/u32-is-casefolded-tests: New file.
48724         * tests/unicase/test-u32-is-casefolded.c: New file.
48725
48726         Tests for module 'unicase/u16-is-casefolded'.
48727         * modules/unicase/u16-is-casefolded-tests: New file.
48728         * tests/unicase/test-u16-is-casefolded.c: New file.
48729
48730         Tests for module 'unicase/u8-is-casefolded'.
48731         * modules/unicase/u8-is-casefolded-tests: New file.
48732         * tests/unicase/test-u8-is-casefolded.c: New file.
48733         * tests/unicase/test-is-casefolded.h: New file.
48734
48735         New module 'unicase/u32-is-casefolded'.
48736         * lib/unicase/u32-is-casefolded.c: New file.
48737         * modules/unicase/u32-is-casefolded: New file.
48738
48739         New module 'unicase/u16-is-casefolded'.
48740         * lib/unicase/u16-is-casefolded.c: New file.
48741         * modules/unicase/u16-is-casefolded: New file.
48742
48743         New module 'unicase/u8-is-casefolded'.
48744         * lib/unicase/u8-is-casefolded.c: New file.
48745         * modules/unicase/u8-is-casefolded: New file.
48746
48747         Tests for module 'unicase/u32-is-titlecase'.
48748         * modules/unicase/u32-is-titlecase-tests: New file.
48749         * tests/unicase/test-u32-is-titlecase.c: New file.
48750
48751         Tests for module 'unicase/u16-is-titlecase'.
48752         * modules/unicase/u16-is-titlecase-tests: New file.
48753         * tests/unicase/test-u16-is-titlecase.c: New file.
48754
48755         Tests for module 'unicase/u8-is-titlecase'.
48756         * modules/unicase/u8-is-titlecase-tests: New file.
48757         * tests/unicase/test-u8-is-titlecase.c: New file.
48758         * tests/unicase/test-is-titlecase.h: New file.
48759
48760         New module 'unicase/u32-is-titlecase'.
48761         * lib/unicase/u32-is-titlecase.c: New file.
48762         * modules/unicase/u32-is-titlecase: New file.
48763
48764         New module 'unicase/u16-is-titlecase'.
48765         * lib/unicase/u16-is-titlecase.c: New file.
48766         * modules/unicase/u16-is-titlecase: New file.
48767
48768         New module 'unicase/u8-is-titlecase'.
48769         * lib/unicase/u8-is-titlecase.c: New file.
48770         * modules/unicase/u8-is-titlecase: New file.
48771
48772         Tests for module 'unicase/u32-is-lowercase'.
48773         * modules/unicase/u32-is-lowercase-tests: New file.
48774         * tests/unicase/test-u32-is-lowercase.c: New file.
48775
48776         Tests for module 'unicase/u16-is-lowercase'.
48777         * modules/unicase/u16-is-lowercase-tests: New file.
48778         * tests/unicase/test-u16-is-lowercase.c: New file.
48779
48780         Tests for module 'unicase/u8-is-lowercase'.
48781         * modules/unicase/u8-is-lowercase-tests: New file.
48782         * tests/unicase/test-u8-is-lowercase.c: New file.
48783         * tests/unicase/test-is-lowercase.h: New file.
48784
48785         New module 'unicase/u32-is-lowercase'.
48786         * lib/unicase/u32-is-lowercase.c: New file.
48787         * modules/unicase/u32-is-lowercase: New file.
48788
48789         New module 'unicase/u16-is-lowercase'.
48790         * lib/unicase/u16-is-lowercase.c: New file.
48791         * modules/unicase/u16-is-lowercase: New file.
48792
48793         New module 'unicase/u8-is-lowercase'.
48794         * lib/unicase/u8-is-lowercase.c: New file.
48795         * modules/unicase/u8-is-lowercase: New file.
48796
48797         Tests for module 'unicase/u32-is-uppercase'.
48798         * modules/unicase/u32-is-uppercase-tests: New file.
48799         * tests/unicase/test-u32-is-uppercase.c: New file.
48800
48801         Tests for module 'unicase/u16-is-uppercase'.
48802         * modules/unicase/u16-is-uppercase-tests: New file.
48803         * tests/unicase/test-u16-is-uppercase.c: New file.
48804
48805         Tests for module 'unicase/u8-is-uppercase'.
48806         * modules/unicase/u8-is-uppercase-tests: New file.
48807         * tests/unicase/test-u8-is-uppercase.c: New file.
48808         * tests/unicase/test-is-uppercase.h: New file.
48809
48810         New module 'unicase/u32-is-uppercase'.
48811         * lib/unicase/u32-is-uppercase.c: New file.
48812         * modules/unicase/u32-is-uppercase: New file.
48813
48814         New module 'unicase/u16-is-uppercase'.
48815         * lib/unicase/u16-is-uppercase.c: New file.
48816         * modules/unicase/u16-is-uppercase: New file.
48817
48818         New module 'unicase/u8-is-uppercase'.
48819         * lib/unicase/u8-is-uppercase.c: New file.
48820         * modules/unicase/u8-is-uppercase: New file.
48821
48822         New module 'unicase/u32-is-invariant'.
48823         * lib/unicase/u32-is-invariant.c: New file.
48824         * modules/unicase/u32-is-invariant: New file.
48825
48826         New module 'unicase/u16-is-invariant'.
48827         * lib/unicase/u16-is-invariant.c: New file.
48828         * modules/unicase/u16-is-invariant: New file.
48829
48830         New module 'unicase/u8-is-invariant'.
48831         * lib/unicase/u8-is-invariant.c: New file.
48832         * lib/unicase/invariant.h: New file.
48833         * lib/unicase/u-is-invariant.h: New file.
48834         * modules/unicase/u8-is-invariant: New file.
48835
48836         Tests for module 'unicase/u32-casecoll'.
48837         * modules/unicase/u32-casecoll-tests: New file.
48838         * tests/unicase/test-u32-casecoll.c: New file.
48839
48840         Tests for module 'unicase/u16-casecoll'.
48841         * modules/unicase/u16-casecoll-tests: New file.
48842         * tests/unicase/test-u16-casecoll.c: New file.
48843
48844         Tests for module 'unicase/u8-casecoll'.
48845         * modules/unicase/u8-casecoll-tests: New file.
48846         * tests/unicase/test-u8-casecoll.c: New file.
48847
48848         New module 'unicase/u32-casecoll'.
48849         * lib/unicase/u32-casecoll.c: New file.
48850         * modules/unicase/u32-casecoll: New file.
48851
48852         New module 'unicase/u16-casecoll'.
48853         * lib/unicase/u16-casecoll.c: New file.
48854         * modules/unicase/u16-casecoll: New file.
48855
48856         New module 'unicase/u8-casecoll'.
48857         * lib/unicase/u8-casecoll.c: New file.
48858         * lib/unicase/u-casecoll.h: New file.
48859         * modules/unicase/u8-casecoll: New file.
48860
48861         New module 'unicase/u32-casexfrm'.
48862         * lib/unicase/u32-casexfrm.c: New file.
48863         * modules/unicase/u32-casexfrm: New file.
48864
48865         New module 'unicase/u16-casexfrm'.
48866         * lib/unicase/u16-casexfrm.c: New file.
48867         * modules/unicase/u16-casexfrm: New file.
48868
48869         New module 'unicase/u8-casexfrm'.
48870         * lib/unicase/u8-casexfrm.c: New file.
48871         * lib/unicase/u-casexfrm.h: New file.
48872         * modules/unicase/u8-casexfrm: New file.
48873
48874         Tests for module 'unicase/u32-casecmp'.
48875         * modules/unicase/u32-casecmp-tests: New file.
48876         * tests/unicase/test-u32-casecmp.c: New file.
48877
48878         Tests for module 'unicase/u16-casecmp'.
48879         * modules/unicase/u16-casecmp-tests: New file.
48880         * tests/unicase/test-u16-casecmp.c: New file.
48881
48882         Tests for module 'unicase/u8-casecmp'.
48883         * modules/unicase/u8-casecmp-tests: New file.
48884         * tests/unicase/test-u8-casecmp.c: New file.
48885         * tests/unicase/test-casecmp.h: New file.
48886
48887         New module 'unicase/u32-casecmp'.
48888         * lib/unicase/u32-casecmp.c: New file.
48889         * modules/unicase/u32-casecmp: New file.
48890
48891         New module 'unicase/u16-casecmp'.
48892         * lib/unicase/u16-casecmp.c: New file.
48893         * modules/unicase/u16-casecmp: New file.
48894
48895         New module 'unicase/u8-casecmp'.
48896         * lib/unicase/u8-casecmp.c: New file.
48897         * lib/unicase/u-casecmp.h: New file.
48898         * modules/unicase/u8-casecmp: New file.
48899
48900         Tests for module 'unicase/u32-casefold'.
48901         * modules/unicase/u32-casefold-tests: New file.
48902         * tests/unicase/test-u32-casefold.c: New file.
48903
48904         Tests for module 'unicase/u16-casefold'.
48905         * modules/unicase/u16-casefold-tests: New file.
48906         * tests/unicase/test-u16-casefold.c: New file.
48907
48908         Tests for module 'unicase/u8-casefold'.
48909         * modules/unicase/u8-casefold-tests: New file.
48910         * tests/unicase/test-u8-casefold.c: New file.
48911
48912         New module 'unicase/u32-casefold'.
48913         * lib/unicase/u32-casefold.c: New file.
48914         * modules/unicase/u32-casefold: New file.
48915
48916         New module 'unicase/u16-casefold'.
48917         * lib/unicase/u16-casefold.c: New file.
48918         * modules/unicase/u16-casefold: New file.
48919
48920         New module 'unicase/u8-casefold'.
48921         * lib/unicase/u8-casefold.c: New file.
48922         * lib/unicase/u-casefold.h: New file.
48923         * modules/unicase/u8-casefold: New file.
48924
48925         New module 'unicase/tocasefold'.
48926         * lib/unicase/casefold.h: New file.
48927         * lib/unicase/tocasefold.c: New file.
48928         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48929         * modules/unicase/tocasefold: New file.
48930
48931         Tests for module 'unicase/u32-totitle'.
48932         * modules/unicase/u32-totitle-tests: New file.
48933         * tests/unicase/test-u32-totitle.c: New file.
48934
48935         Tests for module 'unicase/u16-totitle'.
48936         * modules/unicase/u16-totitle-tests: New file.
48937         * tests/unicase/test-u16-totitle.c: New file.
48938
48939         Tests for module 'unicase/u8-totitle'.
48940         * modules/unicase/u8-totitle-tests: New file.
48941         * tests/unicase/test-u8-totitle.c: New file.
48942
48943         New module 'unicase/u32-totitle'.
48944         * lib/unicase/u32-totitle.c: New file.
48945         * modules/unicase/u32-totitle: New file.
48946
48947         New module 'unicase/u16-totitle'.
48948         * lib/unicase/u16-totitle.c: New file.
48949         * modules/unicase/u16-totitle: New file.
48950
48951         New module 'unicase/u8-totitle'.
48952         * lib/unicase/u8-totitle.c: New file.
48953         * lib/unicase/u-totitle.h: New file.
48954         * modules/unicase/u8-totitle: New file.
48955
48956         Tests for module 'unicase/u32-tolower'.
48957         * modules/unicase/u32-tolower-tests: New file.
48958         * tests/unicase/test-u32-tolower.c: New file.
48959
48960         Tests for module 'unicase/u16-tolower'.
48961         * modules/unicase/u16-tolower-tests: New file.
48962         * tests/unicase/test-u16-tolower.c: New file.
48963
48964         Tests for module 'unicase/u8-tolower'.
48965         * modules/unicase/u8-tolower-tests: New file.
48966         * tests/unicase/test-u8-tolower.c: New file.
48967
48968         New module 'unicase/u32-tolower'.
48969         * lib/unicase/u32-tolower.c: New file.
48970         * modules/unicase/u32-tolower: New file.
48971
48972         New module 'unicase/u16-tolower'.
48973         * lib/unicase/u16-tolower.c: New file.
48974         * modules/unicase/u16-tolower: New file.
48975
48976         New module 'unicase/u8-tolower'.
48977         * lib/unicase/u8-tolower.c: New file.
48978         * modules/unicase/u8-tolower: New file.
48979
48980         Tests for module 'unicase/u32-toupper'.
48981         * modules/unicase/u32-toupper-tests: New file.
48982         * tests/unicase/test-u32-toupper.c: New file.
48983
48984         Tests for module 'unicase/u16-toupper'.
48985         * modules/unicase/u16-toupper-tests: New file.
48986         * tests/unicase/test-u16-toupper.c: New file.
48987
48988         Tests for module 'unicase/u8-toupper'.
48989         * modules/unicase/u8-toupper-tests: New file.
48990         * tests/unicase/test-u8-toupper.c: New file.
48991
48992         New module 'unicase/u32-toupper'.
48993         * lib/unicase/u32-toupper.c: New file.
48994         * modules/unicase/u32-toupper: New file.
48995
48996         New module 'unicase/u16-toupper'.
48997         * lib/unicase/u16-toupper.c: New file.
48998         * modules/unicase/u16-toupper: New file.
48999
49000         New module 'unicase/u8-toupper'.
49001         * lib/unicase/u8-toupper.c: New file.
49002         * modules/unicase/u8-toupper: New file.
49003
49004         New module 'unicase/u32-casemap'.
49005         * lib/unicase/u32-casemap.c: New file.
49006         * modules/unicase/u32-casemap: New file.
49007
49008         New module 'unicase/u16-casemap'.
49009         * lib/unicase/u16-casemap.c: New file.
49010         * modules/unicase/u16-casemap: New file.
49011
49012         New module 'unicase/u8-casemap'.
49013         * lib/unicase/unicasemap.h: New file.
49014         * lib/unicase/u8-casemap.c: New file.
49015         * lib/unicase/u-casemap.h: New file.
49016         * modules/unicase/u8-casemap: New file.
49017
49018         New module 'unicase/special-casing'.
49019         * lib/unicase/special-casing.h: New file.
49020         * lib/unicase/special-casing.c: New file.
49021         * lib/unicase/special-casing-table.gperf: New file, generated by
49022         gen-uni-tables.c.
49023         * modules/unicase/special-casing: New file.
49024
49025         Tests for module 'unicase/locale-language'.
49026         * modules/unicase/locale-language-tests: New file.
49027         * tests/unicase/test-locale-language.sh: New file.
49028         * tests/unicase/test-locale-language.c: New file.
49029
49030         New module 'unicase/locale-language'.
49031         * lib/unicase/locale-language.c: New file.
49032         * lib/unicase/locale-languages.gperf: New file.
49033         * modules/unicase/locale-language: New file.
49034
49035         Generate more tables for case conversion and case folding.
49036         * lib/gen-uni-tables.c (SCC_*): New enum items.
49037         (struct special_casing_rule): New type.
49038         (casing_rules, num_casing_rules, allocated_casing_rules): New
49039         variables.
49040         (add_casing_rule, fill_casing_rules): New functions.
49041         (struct casefold_rule): New type.
49042         (casefolding_rules, num_casefolding_rules,
49043         allocated_casefolding_rules): New variables.
49044         (fill_casefolding_rules): New function.
49045         (unicode_casefold): New variable.
49046         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49047         sort_casing_rules, output_casing_rules): New functions.
49048         (main): Accept to more arguments: SpecialCasing.txt and
49049         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49050         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49051         Output mapping for casefolding.
49052
49053         * lib/unicase.h: Include stdbool.h, uninorm.h.
49054         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49055         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49056         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49057         arguments.
49058         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49059         resultp arguments.
49060         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49061         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49062         resultp arguments.
49063         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49064         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49065         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49066         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49067         declarations.
49068         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49069
49070 2009-03-08  Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49073         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49074         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49075         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49076
49077 2009-03-07  Bruno Haible  <bruno@clisp.org>
49078
49079         Adjust u*_normcmp, u*_normcoll API.
49080         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49081         u16_normcoll, u32_normcoll): Change failure conventions.
49082         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49083         errno and return -1.
49084         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49085
49086 2009-03-07  Bruno Haible  <bruno@clisp.org>
49087
49088         Tests for module 'uninorm/u32-normcoll'.
49089         * modules/uninorm/u32-normcoll-tests: New file.
49090         * tests/uninorm/test-u32-normcoll.c: New file.
49091
49092         Tests for module 'uninorm/u16-normcoll'.
49093         * modules/uninorm/u16-normcoll-tests: New file.
49094         * tests/uninorm/test-u16-normcoll.c: New file.
49095
49096         Tests for module 'uninorm/u8-normcoll'.
49097         * modules/uninorm/u8-normcoll-tests: New file.
49098         * tests/uninorm/test-u8-normcoll.c: New file.
49099
49100 2009-03-07  Bruno Haible  <bruno@clisp.org>
49101
49102         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49103         tests/uninorm/test-u32-normcmp.c.
49104         * tests/uninorm/test-u32-normcmp.c: Include it.
49105         (test_nonascii): New function, extracted from main. Add some more
49106         tests.
49107         (main): Invoke test_ascii and test_nonascii.
49108         * modules/uninorm/u32-normcmp-tests (Files): Add
49109         tests/uninorm/test-u32-normcmp.h.
49110         (Depends-on): Remove uninorm/u32-normcmp.
49111
49112         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49113         tests/uninorm/test-u16-normcmp.c.
49114         * tests/uninorm/test-u16-normcmp.c: Include it.
49115         (test_nonascii): New function, extracted from main. Add some more
49116         tests.
49117         (main): Invoke test_ascii and test_nonascii.
49118         * modules/uninorm/u16-normcmp-tests (Files): Add
49119         tests/uninorm/test-u16-normcmp.h.
49120         (Depends-on): Remove uninorm/u16-normcmp.
49121
49122         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49123         tests/uninorm/test-u8-normcmp.c.
49124         * tests/uninorm/test-u8-normcmp.c: Include it.
49125         (test_nonascii): New function, extracted from main. Add some more
49126         tests.
49127         (main): Invoke test_ascii and test_nonascii.
49128         * modules/uninorm/u8-normcmp-tests (Files): Add
49129         tests/uninorm/test-u8-normcmp.h.
49130         (Depends-on): Remove uninorm/u8-normcmp.
49131
49132 2009-03-07  Bruno Haible  <bruno@clisp.org>
49133
49134         New module 'uninorm/u32-normcoll'.
49135         * lib/uninorm/u32-normcoll.c: New file.
49136         * modules/uninorm/u32-normcoll: New file.
49137
49138         New module 'uninorm/u16-normcoll'.
49139         * lib/uninorm/u16-normcoll.c: New file.
49140         * modules/uninorm/u16-normcoll: New file.
49141
49142         New module 'uninorm/u8-normcoll'.
49143         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49144         declarations.
49145         * lib/uninorm/u8-normcoll.c: New file.
49146         * lib/uninorm/u-normcoll.h: New file.
49147         * modules/uninorm/u8-normcoll: New file.
49148
49149         New module 'uninorm/u32-normxfrm'.
49150         * lib/uninorm/u32-normxfrm.c: New file.
49151         * modules/uninorm/u32-normxfrm: New file.
49152
49153         New module 'uninorm/u16-normxfrm'.
49154         * lib/uninorm/u16-normxfrm.c: New file.
49155         * modules/uninorm/u16-normxfrm: New file.
49156
49157         New module 'uninorm/u8-normxfrm'.
49158         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49159         declarations.
49160         * lib/uninorm/u8-normxfrm.c: New file.
49161         * lib/uninorm/u-normxfrm.h: New file.
49162         * modules/uninorm/u8-normxfrm: New file.
49163
49164 2009-03-07  Bruno Haible  <bruno@clisp.org>
49165
49166         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49167         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49168         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49169
49170 2009-03-07  Bruno Haible  <bruno@clisp.org>
49171
49172         New module 'memxfrm'.
49173         * lib/memxfrm.h: New file.
49174         * lib/memxfrm.c: New file.
49175         * modules/memxfrm: New file.
49176
49177 2009-03-07  Bruno Haible  <bruno@clisp.org>
49178
49179         New module 'memcmp2'.
49180         * lib/memcmp2.h: New file.
49181         * lib/memcmp2.c: New file.
49182         * modules/memcmp2: New file.
49183
49184 2009-03-07  Bruno Haible  <bruno@clisp.org>
49185
49186         Tests for module 'uninorm/decomposing-form'.
49187         * modules/uninorm/decomposing-form-tests: New file.
49188         * tests/uninorm/test-decomposing-form.c: New file.
49189
49190         New module 'uninorm/decomposing-form'.
49191         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49192         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49193         Add 'decomposing_variant' field.
49194         * lib/uninorm/decomposing-form.c: New file.
49195         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49196         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49197         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49198         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49199         * modules/uninorm/decomposing-form: New file.
49200         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49201         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49202
49203 2009-03-07  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49206         strings.
49207
49208 2009-03-06  Bruno Haible  <bruno@clisp.org>
49209
49210         Tests for module 'uninorm/u32-normcmp'.
49211         * tests/uninorm/test-u32-normcmp.c: New file.
49212         * modules/uninorm/u32-normcmp-tests: New file.
49213
49214         Tests for module 'uninorm/u16-normcmp'.
49215         * tests/uninorm/test-u16-normcmp.c: New file.
49216         * modules/uninorm/u16-normcmp-tests: New file.
49217
49218         Tests for module 'uninorm/u8-normcmp'.
49219         * tests/uninorm/test-u8-normcmp.c: New file.
49220         * modules/uninorm/u8-normcmp-tests: New file.
49221
49222         New module 'uninorm/u32-normcmp'.
49223         * lib/uninorm/u32-normcmp.c: New file.
49224         * modules/uninorm/u32-normcmp: New file.
49225
49226         New module 'uninorm/u16-normcmp'.
49227         * lib/uninorm/u16-normcmp.c: New file.
49228         * modules/uninorm/u16-normcmp: New file.
49229
49230         New module 'uninorm/u8-normcmp'.
49231         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49232         declarations.
49233         * lib/uninorm/u8-normcmp.c: New file.
49234         * lib/uninorm/u-normcmp.h: New file.
49235         * modules/uninorm/u8-normcmp: New file.
49236
49237 2009-03-06  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49240         Reported by Eric Blake.
49241
49242 2009-03-06  Eric Blake  <ebb9@byu.net>
49243             Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49246         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49247         condition.
49248         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49249         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49250         condition.
49251         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49252
49253 2009-03-06  Eric Blake  <ebb9@byu.net>
49254
49255         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49256         to avoid compiler warnings.
49257         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49258
49259 2009-03-05  Bruno Haible  <bruno@clisp.org>
49260
49261         * tests/test-ftell.c (main): Disable test beyond end of file on
49262         FreeMiNT.
49263         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49264
49265 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49266
49267         * lib/filevercmp.c: Move hidden files up in ordering.
49268         * tests/test-filevercmp.c: Add tests for hidden files.
49269
49270 2009-03-04  Bruno Haible  <bruno@clisp.org>
49271
49272         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49273         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49274         AM_CFLAGS.
49275         Reported by Simon Josefsson.
49276
49277 2009-03-03  Bruno Haible  <bruno@clisp.org>
49278
49279         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49280         Reported by Simon Josefsson.
49281
49282         * doc/ld-version-script.texi: Update node reference.
49283
49284 2009-03-03  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/visibility (License): Change to 'unlimited'.
49287         Suggested by Simon Josefsson.
49288
49289 2009-03-03  Jim Meyering  <meyering@redhat.com>
49290
49291         unlinkdir: cannot_unlink_dir may modify process state
49292         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49293         it's neither thread-safe nor appropriate for use in a library.
49294
49295 2009-03-03  Eric Blake  <ebb9@byu.net>
49296
49297         test-closein: silence test under Darwin
49298         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49299         care if it dies from EPIPE or EBADF.
49300
49301 2009-03-03  Bruno Haible  <bruno@clisp.org>
49302
49303         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49304         earlier.
49305         * doc/visibility.texi: Fix @node and @section.
49306
49307 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49308
49309         * doc/gnulib.texi: Link to sections for ld version script and
49310         visibility.
49311         * doc/visibility.texi: Add @node and @section.
49312         * modules/ld-version-script: New module.
49313         * m4/ld-version-script.m4: New file.
49314         * doc/ld-version-script.texi: New file.
49315
49316 2009-03-02  David Lutterkort  <lutter@redhat.com>
49317
49318         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49320
49321 2009-03-02  Bruno Haible  <bruno@clisp.org>
49322
49323         * doc/visibility.texi: Mention libtool's -export-symbols option.
49324
49325 2009-03-02  Jim Meyering  <meyering@redhat.com>
49326
49327         announce-gen: new option: --no-print-checksums
49328         * build-aux/announce-gen (usage): Describe it.
49329         (print_checksums): Print a newline here, not in the [*] footnote.
49330         (main): Honor it.
49331
49332 2009-03-01  Bruno Haible  <bruno@clisp.org>
49333
49334         Use socklen_t in the native Windows replacements prototypes.
49335         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49336         instead of 'int'.
49337         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49338         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49339         * modules/getsockopt (Depends-on): Add socklen.
49340         * modules/setsockopt (Depends-on): Add socklen.
49341
49342 2009-03-01  Bruno Haible  <bruno@clisp.org>
49343
49344         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49345         least 4.2.
49346
49347 2009-03-01  Eric Blake  <ebb9@byu.net>
49348             Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49351         error messages.
49352         * lib/wait-process.c (wait_subprocess): Omit error message about
49353         deadly signal sent to the child of termsigp != NULL.
49354
49355 2009-03-01  Eric Blake  <ebb9@byu.net>
49356
49357         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49358
49359 2009-03-01  Bruno Haible  <bruno@clisp.org>
49360
49361         Avoid a gcc warning.
49362         * tests/test-sched.c (b): Make global.
49363         Reported by Eric Blake.
49364
49365 2009-01-19  Martin Lambers  <marlam@marlam.de>
49366
49367         Provide POSIX semantics for socket timeout options on W32.
49368         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49369         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49370         * modules/setsockopt: Depend on sys_time module for struct timeval.
49371         * modules/getsockopt: Depend on sys_time module for struct timeval.
49372
49373 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49374
49375         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49376         __USE_GNU, for consistency with netdb.in.h.
49377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49378
49379 2009-03-01  Bruno Haible  <bruno@clisp.org>
49380
49381         More support for FreeMiNT.
49382         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49383         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49384
49385 2009-03-01  Bruno Haible  <bruno@clisp.org>
49386
49387         More support for FreeMiNT.
49388         * lib/fpurge.c (fpurge): Correct last commit.
49389         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49390
49391 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49392
49393         Fix unportable awk script in vc-list-files.
49394         * build-aux/vc-list-files: In the replacement awk script, use
49395         substr with a second argument of 1, not zero.
49396         Report by Simon Josefsson.
49397
49398 2009-02-28  Bruno Haible  <bruno@clisp.org>
49399
49400         More support for FreeMiNT.
49401         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49402         to FreeMiNT today.
49403         * lib/fwriting.c (fwriting): Likewise.
49404         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49405
49406 2009-02-28  Bruno Haible  <bruno@clisp.org>
49407
49408         * tests/test-freadseek.c (main): Disable test beyond end of file on
49409         FreeMiNT.
49410         * tests/test-ftello.c (main): Likewise.
49411         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49412
49413 2009-02-28  Bruno Haible  <bruno@clisp.org>
49414
49415         Add tentative support for FreeMiNT.
49416         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49417         * lib/fpurge.c (fpurge): Likewise.
49418         * lib/freadable.c (freadable): Likewise.
49419         * lib/freading.c (freading): Likewise.
49420         * lib/freadptr.c (freadptr): Likewise.
49421         * lib/freadseek.c (freadptrinc): Likewise.
49422         * lib/fseeko.c (rpl_fseeko): Likewise.
49423         * lib/fseterr.c (fseterr): Likewise.
49424         * lib/fwritable.c (fwritable): Likewise.
49425         * lib/fwriting.c (fwriting): Likewise.
49426         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49427         Hourihane.
49428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49429
49430 2009-02-28  Bruno Haible  <bruno@clisp.org>
49431
49432         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49433         SIGCHLD.
49434         Reported by Jim Meyering.
49435
49436 2009-02-28  Bruno Haible  <bruno@clisp.org>
49437
49438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49439         Mention the results of these tests on various platforms.
49440         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49441         order.
49442         * doc/posix-functions/printf.texi: Likewise.
49443         * doc/posix-functions/snprintf.texi: Likewise.
49444         * doc/posix-functions/sprintf.texi: Likewise.
49445         * doc/posix-functions/vfprintf.texi: Likewise.
49446         * doc/posix-functions/vprintf.texi: Likewise.
49447         * doc/posix-functions/vsnprintf.texi: Likewise.
49448         * doc/posix-functions/vsprintf.texi: Likewise.
49449         * doc/glibc-functions/obstack_printf.texi: Likewise.
49450         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49451
49452 2009-02-28  Bruno Haible  <bruno@clisp.org>
49453
49454         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49455         Reported by Loïc Minier <lool@dooz.org>.
49456
49457 2009-02-27  Bruno Haible  <bruno@clisp.org>
49458
49459         * gnulib-tool (func_import): Make the sed expression used to create the
49460         sed script for updating the .gitignore file POSIX compliant.
49461         Reported by Eric Blake.
49462
49463 2009-02-27  Bruno Haible  <bruno@clisp.org>
49464
49465         * gnulib-tool (sed): Don't alias as "sed --posix".
49466         Reported by Eric Blake.
49467
49468 2009-02-27  Bruno Haible  <bruno@clisp.org>
49469
49470         Avoid test link errors.
49471         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49472         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49473         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49474         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49476
49477 2009-02-27  Bruno Haible  <bruno@clisp.org>
49478
49479         Avoid spurious "(cached)" in configure output.
49480         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49481         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49482         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49483         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49484         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49485         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49486         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49487         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49488         Reported by Eric Blake.
49489
49490 2009-02-27  Eric Blake  <ebb9@byu.net>
49491
49492         printf: fix regression in previous patch
49493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49494
49495 2009-02-27  Bruno Haible  <bruno@clisp.org>
49496
49497         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49498         value.
49499         * lib/stdint.in.h: Likewise.
49500         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49501
49502 2009-02-27  Eric Blake  <ebb9@byu.net>
49503
49504         doc: mention more functions added in cygwin 1.7.0
49505         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49506         addition.
49507         * doc/posix-functions/open_wmemstream.texi: Likewise.
49508         * doc/posix-functions/wcsnlen.texi: Likewise.
49509         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49510         * doc/posix-functions/wcstod.texi: Likewise.
49511         * doc/posix-functions/wcstof.texi: Likewise.
49512         * doc/posix-functions/wcstoimax.texi: Likewise.
49513         * doc/posix-functions/wcstok.texi: Likewise.
49514         * doc/posix-functions/wcstoumax.texi: Likewise.
49515
49516         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49518         * doc/posix-functions/fprintf.texi: Update.
49519         * doc/posix-functions/printf.texi: Update.
49520         * doc/posix-functions/snprintf.texi: Update.
49521         * doc/posix-functions/sprintf.texi: Update.
49522         * doc/posix-functions/vfprintf.texi: Update.
49523         * doc/posix-functions/vprintf.texi: Update.
49524         * doc/posix-functions/vsnprintf.texi: Update.
49525         * doc/posix-functions/vsprintf.texi: Update.
49526         * doc/glibc-functions/obstack_printf.texi: Update.
49527         * doc/glibc-functions/obstack_vprintf.texi: Update.
49528
49529 2009-02-26  Eric Blake  <ebb9@byu.net>
49530
49531         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49532         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49533         compilation bug by using runtime conversion.
49534         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49535         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49536         * modules/ceill-tests (Files): Use nan.h.
49537         * modules/floorl-tests (Files): Likewise.
49538         * modules/frexpl-tests (Files): Likewise.
49539         * modules/isnanl-tests (Files): Likewise.
49540         * modules/ldexpl-tests (Files): Likewise.
49541         * modules/roundl-tests (Files): Likewise.
49542         * modules/truncl-tests (Files): Likewise.
49543         * tests/test-ceill.c (main): Use a working NaN.
49544         * tests/test-floorl.c (main): Likewise.
49545         * tests/test-frexpl.c (main): Likewise.
49546         * tests/test-isnan.c (test_long_double): Likewise.
49547         * tests/test-isnanl.h (main): Likewise.
49548         * tests/test-ldexpl.h (main): Likewise.
49549         * tests/test-roundl.h (main): Likewise.
49550         * tests/test-truncl.h (main): Likewise.
49551         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49552
49553 2009-02-26  Eric Blake  <ebb9@byu.net>
49554             Bruno Haible  <bruno@clisp.org>
49555
49556         Work around a *printf bug with %ls on Solaris.
49557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49558         precision is specified, sprintf stops converting the wide string
49559         argument when the number of bytes that have been produced by this
49560         conversion equals or exceeds the precision.
49561         * doc/posix-functions/fprintf.texi: Update.
49562         * doc/posix-functions/printf.texi: Update.
49563         * doc/posix-functions/snprintf.texi: Update.
49564         * doc/posix-functions/sprintf.texi: Update.
49565         * doc/posix-functions/vfprintf.texi: Update.
49566         * doc/posix-functions/vprintf.texi: Update.
49567         * doc/posix-functions/vsnprintf.texi: Update.
49568         * doc/posix-functions/vsprintf.texi: Update.
49569         * doc/glibc-functions/obstack_printf.texi: Update.
49570         * doc/glibc-functions/obstack_vprintf.texi: Update.
49571
49572 2009-02-26  Eric Blake  <ebb9@byu.net>
49573
49574         stdlib: favor compiler check of random.h
49575         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49576         to avoid an ObjC random.h installed by Swarm.
49577
49578 2009-02-26  Bruno Haible  <bruno@clisp.org>
49579
49580         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49581         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49582         Reported by Gary V. Vaughan <gary@gnu.org>.
49583
49584 2009-02-26  Bruno Haible  <bruno@clisp.org>
49585
49586         Fix *printf behaviour regarding the %ls directive.
49587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49588         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49589         NEED_PRINTF_DIRECTIVE_LS.
49590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49591         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49593         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49594         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49595         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49596         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49601         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49605         * doc/posix-functions/fprintf.texi: Update.
49606         * doc/posix-functions/printf.texi: Update.
49607         * doc/posix-functions/snprintf.texi: Update.
49608         * doc/posix-functions/sprintf.texi: Update.
49609         * doc/posix-functions/vfprintf.texi: Update.
49610         * doc/posix-functions/vprintf.texi: Update.
49611         * doc/posix-functions/vsnprintf.texi: Update.
49612         * doc/posix-functions/vsprintf.texi: Update.
49613         * doc/glibc-functions/obstack_printf.texi: Update.
49614         * doc/glibc-functions/obstack_vprintf.texi: Update.
49615         Reported by Eric Blake.
49616
49617 2009-02-25  Bruno Haible  <bruno@clisp.org>
49618
49619         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49620         with known value.
49621         Reported by Gary V. Vaughan <gary@gnu.org>.
49622
49623 2009-02-25  Bruno Haible  <bruno@clisp.org>
49624
49625         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49626         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49627         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49628         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49629         Reported by Gary V. Vaughan <gary@gnu.org>.
49630
49631 2009-02-25  Bruno Haible  <bruno@clisp.org>
49632
49633         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49634         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49635         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49636         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49637         Reported by Gary V. Vaughan <gary@gnu.org>.
49638
49639 2009-02-25  Eric Blake  <ebb9@byu.net>
49640
49641         tests: skip fseek/ftell tests if ungetc is broken
49642         * m4/ungetc.m4: New file.
49643         * modules/fseek-tests: Split test, so ungetc dependency is
49644         separate from rest of test.
49645         * modules/fseeko-tests: Likewise.
49646         * modules/ftell-tests: Likewise.
49647         * modules/ftello-tests: Likewise.
49648         * tests/test-fseek.c (main): Isolate ungetc dependency.
49649         * tests/test-fseeko.c (main): Likewise.
49650         * tests/test-ftell.c (main): Likewise.
49651         * tests/test-ftello.c (main): Likewise.
49652         * tests/test-fseek2.sh: New file.
49653         * tests/test-fseeko2.sh: Likewise.
49654         * tests/test-ftell2.sh: Likewise.
49655         * tests/test-ftello2.sh: Likewise.
49656
49657 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49658
49659         test-getaddrinfo: fix usage of skip return code 77
49660         * tests/test-gettaddrinfo.c: Return skip code 77 only
49661         for first occurrence of skip (4x77 is not 77)
49662
49663 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49664
49665         strtod: avoid C99 decl-after-statement
49666         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49667
49668 2009-02-24  Eric Blake  <ebb9@byu.net>
49669
49670         strtod: detect HP-UX 11.31 bug
49671         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49672         Reported by Gary V. Vaughan.
49673
49674 2009-02-23  Bruno Haible  <bruno@clisp.org>
49675
49676         Fix invalid read past end of memory block.
49677         * lib/vasnprintf.c (DCHAR_SET): Define.
49678         (local_wcslen): Define only when needed.
49679         (local_strnlen, local_wcsnlen): New functions.
49680         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49681         directives that involve a conversion ourselves.
49682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49683         wcsnlen, mbrtowc, wcrtomb.
49684         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49685         * tests/test-vasprintf-posix.c (test_function): Likewise.
49686         * tests/test-snprintf-posix.h (test_function): Likewise.
49687         * tests/test-sprintf-posix.h (test_function): Likewise.
49688         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49689
49690 2009-02-22  Bruno Haible  <bruno@clisp.org>
49691
49692         Implement new clarified decomposition of Hangul syllables.
49693         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49694         of type LTV, return only a pairwise decomposition.
49695         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49696         Likewise.
49697         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49698         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49699         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49700
49701 2009-02-22  Bruno Haible  <bruno@clisp.org>
49702
49703         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49704         zero-length results and shrink excess allocated memory.
49705         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49706         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49707         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49708         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49709         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49710         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49711         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49712         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49713         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49714         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49715         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49716         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49717
49718 2009-02-21  Bruno Haible  <bruno@clisp.org>
49719
49720         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49721         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49722         spaces after a period. Put a space between a macro name and its
49723         argument list. Trivial rewordings.
49724         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49725         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49726         (main): Return 0 explicitly.
49727
49728 2009-02-21  Bruno Haible  <bruno@clisp.org>
49729
49730         Tests for module 'uninorm/filter'.
49731         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49732         * modules/uninorm/filter-tests: New file.
49733
49734         New module 'uninorm/filter'.
49735         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49736         uninorm_filter_flush, uninorm_filter_free): New declarations.
49737         * lib/uninorm/uninorm-filter.c: New file.
49738         * modules/uninorm/filter: New file.
49739
49740 2009-02-21  Bruno Haible  <bruno@clisp.org>
49741
49742         Tests for module 'uninorm/nfkc'.
49743         * tests/uninorm/test-nfkc.c: New file.
49744         * tests/uninorm/test-u8-nfkc.c: New file.
49745         * tests/uninorm/test-u16-nfkc.c: New file.
49746         * tests/uninorm/test-u32-nfkc.c: New file.
49747         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49748         * tests/uninorm/test-u32-nfkc-big.c: New file.
49749         * modules/uninorm/nfkc-tests: New file.
49750
49751         New module 'uninorm/nfkc'.
49752         * lib/uninorm/nfkc.c: New file.
49753         * modules/uninorm/nfkc: New file.
49754
49755         Tests for module 'uninorm/nfkd'.
49756         * tests/uninorm/test-nfkd.c: New file.
49757         * tests/uninorm/test-u8-nfkd.c: New file.
49758         * tests/uninorm/test-u16-nfkd.c: New file.
49759         * tests/uninorm/test-u32-nfkd.c: New file.
49760         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49761         * tests/uninorm/test-u32-nfkd-big.c: New file.
49762         * modules/uninorm/nfkd-tests: New file.
49763
49764         New module 'uninorm/nfkd'.
49765         * lib/uninorm/nfkd.c: New file.
49766         * modules/uninorm/nfkd: New file.
49767
49768         Tests for module 'uninorm/nfc'.
49769         * tests/uninorm/test-nfc.c: New file.
49770         * tests/uninorm/test-u8-nfc.c: New file.
49771         * tests/uninorm/test-u16-nfc.c: New file.
49772         * tests/uninorm/test-u32-nfc.c: New file.
49773         * tests/uninorm/test-u32-nfc-big.sh: New file.
49774         * tests/uninorm/test-u32-nfc-big.c: New file.
49775         * modules/uninorm/nfc-tests: New file.
49776
49777         New module 'uninorm/nfc'.
49778         * lib/uninorm/nfc.c: New file.
49779         * modules/uninorm/nfc: New file.
49780
49781         Tests for module 'uninorm/nfd'.
49782         * tests/uninorm/test-nfd.c: New file.
49783         * tests/uninorm/test-u8-nfd.c: New file.
49784         * tests/uninorm/test-u16-nfd.c: New file.
49785         * tests/uninorm/test-u32-nfd.c: New file.
49786         * tests/uninorm/test-u32-nfd-big.sh: New file.
49787         * tests/uninorm/test-u32-nfd-big.c: New file.
49788         * tests/uninorm/test-u32-normalize-big.h: New file.
49789         * tests/uninorm/test-u32-normalize-big.c: New file.
49790         * tests/uninorm/NormalizationTest.txt: New file, created from
49791         Unicode 5.1.0 NormalizationTest.txt.
49792         * modules/uninorm/nfd-tests: New file.
49793
49794         New module 'uninorm/nfd'.
49795         * lib/uninorm/nfd.c: New file.
49796         * modules/uninorm/nfd: New file.
49797
49798         New module 'uninorm/u32-normalize'.
49799         * lib/uninorm/u32-normalize.c: New file.
49800         * modules/uninorm/u32-normalize: New file.
49801
49802         New module 'uninorm/u16-normalize'.
49803         * lib/uninorm/u16-normalize.c: New file.
49804         * modules/uninorm/u16-normalize: New file.
49805
49806         New module 'uninorm/u8-normalize'.
49807         * lib/uninorm/u8-normalize.c: New file.
49808         * lib/uninorm/normalize-internal.h: New file.
49809         * lib/uninorm/u-normalize-internal.h: New file.
49810         * modules/uninorm/u8-normalize: New file.
49811
49812         New module 'uninorm/decompose-internal'.
49813         * lib/uninorm/decompose-internal.c: New file.
49814         * modules/uninorm/decompose-internal: New file.
49815
49816         Tests for module 'uninorm/composition'.
49817         * tests/uninorm/test-composition.c: New file.
49818         * modules/uninorm/composition-tests: New file.
49819
49820         New module 'uninorm/composition'.
49821         * lib/uninorm/composition.c: New file.
49822         * lib/uninorm/composition-table.gperf: New file, generated by
49823         gen-uni-tables.
49824         * modules/uninorm/composition: New file.
49825
49826         Tests for module 'uninorm/compat-decomposition'.
49827         * tests/uninorm/test-compat-decomposition.c: New file.
49828         * modules/uninorm/compat-decomposition-tests: New file.
49829
49830         New module 'uninorm/compat-decomposition'.
49831         * lib/uninorm/decompose-internal.h: New file.
49832         * lib/uninorm/compat-decomposition.c: New file.
49833         * modules/uninorm/compat-decomposition: New file.
49834
49835         Tests for module 'uninorm/canonical-decomposition'.
49836         * tests/uninorm/test-canonical-decomposition.c: New file.
49837         * modules/uninorm/canonical-decomposition-tests: New file.
49838
49839         New module 'uninorm/canonical-decomposition'.
49840         * lib/uninorm/canonical-decomposition.c: New file.
49841         * modules/uninorm/canonical-decomposition: New file.
49842
49843         Tests for module 'uninorm/decomposition'.
49844         * tests/uninorm/test-decomposition.c: New file.
49845         * modules/uninorm/decomposition-tests: New file.
49846
49847         New module 'uninorm/decomposition'.
49848         * lib/uninorm/decomposition.c: New file.
49849         * modules/uninorm/decomposition: New file.
49850
49851         New module 'uninorm/decomposition-table'.
49852         * lib/uninorm/decomposition-table.h: New file.
49853         * lib/uninorm/decomposition-table.c: New file.
49854         * lib/uninorm/decomposition-table1.h: New file, generated by
49855         gen-uni-tables.
49856         * lib/uninorm/decomposition-table2.h: New file, generated by
49857         gen-uni-tables.
49858         * modules/uninorm/decomposition-table: New file.
49859
49860         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49861         (UC_DECOMP_*): New enumeration items.
49862         (get_decomposition): New function.
49863         (struct decomp_table): New type.
49864         (output_decomposition, output_decomposition_tables): New functions.
49865         (unicode_composition_exclusions): New variable.
49866         (fill_composition_exclusions, debug_output_composition_tables): New
49867         functions.
49868         (main): Accept one more argument. Invoke fill_composition_exclusions.
49869         Output decomposition and composition tables.
49870
49871         New module 'uninorm/base'.
49872         * lib/uninorm.h: New file.
49873         * lib/unictype.h: Update comment.
49874         * modules/uninorm/base: New file.
49875
49876 2009-02-21  David Lutterkort  <lutter@redhat.com>
49877
49878         Tests for module 'safe-alloc'.
49879         * tests/test-safe-alloc.c: New file.
49880         * modules/safe-alloc-tests: New file.
49881
49882         New module 'safe-alloc'.
49883         * lib/safe-alloc.h: New file.
49884         * lib/safe-alloc.c: New file.
49885         * m4/safe-alloc.m4: New file.
49886         * modules/safe-alloc: New file.
49887         * doc/safe-alloc.texi: New file.
49888         * doc/gnulib.texi: Include it.
49889         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49890         safe-alloc.
49891
49892 2009-02-18  Bruno Haible  <bruno@clisp.org>
49893
49894         Fix link error on non-glibc systems.
49895         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49896         variable.
49897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49898
49899 2009-02-18  Jim Meyering  <meyering@redhat.com>
49900
49901         fts: avoid used-uninitialized error due to recent change
49902         * lib/fts.c (fts_read): Guard uses of the new member,
49903         parent->fts_n_dirs_remaining, since it's not relevant for
49904         the parent of a directory specified on the command-line.
49905
49906 2009-02-17  James Youngman  <jay@gnu.org>
49907             Bruno Haible  <bruno@clisp.org>
49908
49909         * m4/include_next.m4: Reformulate comment.
49910
49911 2009-02-16  Jim Meyering  <meyering@redhat.com>
49912
49913         fts: add #if guards so that the fts_lgpl module still builds
49914         * lib/fts.c: Guard just-added hash-table-using parts with
49915         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49916         Reported by Simon Josefsson.
49917
49918 2009-02-15  Bruno Haible  <bruno@clisp.org>
49919
49920         * modules/array-mergesort-tests: New file.
49921         * tests/test-array-mergesort.c: New file.
49922
49923         New module 'array-mergesort'.
49924         * modules/array-mergesort: New file.
49925         * lib/array-mergesort.h: New file.
49926
49927 2009-02-15  Bruno Haible  <bruno@clisp.org>
49928
49929         Fix 2009-02-07 commit.
49930         * lib/gen-uni-tables.c (output_predicate, output_category,
49931         output_combclass, output_bidi_category, output_decimal_digit,
49932         output_digit, output_numeric, output_mirror, output_scripts,
49933         output_ident_category, output_simple_mapping): Fix format directives.
49934         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49935
49936 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49937
49938         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49939         fixes are available from IBM.
49940
49941 2009-02-13  Jim Meyering  <meyering@redhat.com>
49942
49943         fts: arrange not to stat non-directories in more cases
49944         This makes GNU find (when it doesn't need to stat each file)
49945         *much* more efficient at traversing reiserfs file systems.
49946         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49947         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49948         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49949         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49950         (leaf_optimization_applies): New function.
49951         (LCO_hash, LCO_compare): New helper functions.
49952         (link_count_optimize_ok): New function.
49953         (fts_stat): Initialize new member (if dir).
49954         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49955         we've just stat'ed a directory.  Skip the stat call when possible.
49956         ---
49957         Note this AFS-related exchange:
49958         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49959         and note find's pioctl call in find/fstype.c.
49960         But that is necessary only if you want to enable the
49961         optimization for AFS, and for now, I don't.
49962
49963         fts: move a function definition "up" (no semantic change)
49964         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49965         "up" to precede upcoming use of a related function.
49966
49967 2009-02-11  Jim Meyering  <meyering@redhat.com>
49968
49969         fts: correct internal computation of nlinks (optimization-related)
49970         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49971         whether the current entry is a directory, so don't test it.
49972
49973 2009-02-10  Bruno Haible  <bruno@clisp.org>
49974
49975         Tests for module 'uniwbrk/ulc-wordbreaks'.
49976         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49977         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49978         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49979
49980         Tests for module 'uniwbrk/u32-wordbreaks'.
49981         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49982         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49983
49984         Tests for module 'uniwbrk/u16-wordbreaks'.
49985         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49986         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49987
49988         Tests for module 'uniwbrk/u8-wordbreaks'.
49989         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49990         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49991
49992 2009-02-10  Bruno Haible  <bruno@clisp.org>
49993
49994         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49995         property.
49996         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49997         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49998         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49999
50000 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50001
50002         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50003         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50004
50005 2009-02-10  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50008         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50009         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50010         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50011         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50012         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50013
50014 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50015
50016         * lib/sockets.h (gl_fd_to_handle): New function.
50017
50018         * tests/test-sockets.c: Call gl_fd_to_handle.
50019
50020 2009-02-09  Bruno Haible  <bruno@clisp.org>
50021
50022         * doc/havelib.texi: Document the conventions on bi-arch systems.
50023
50024 2009-02-08  Bruno Haible  <bruno@clisp.org>
50025
50026         Document the AC_LIB_LINKFLAGS macro.
50027         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50028         * doc/gnulib.texi: Include it.
50029
50030 2009-02-08  Bruno Haible  <bruno@clisp.org>
50031
50032         Fix wrong order of sections, compared to TOC.
50033         * doc/gnulib.texi: Include relocatable-maint.texi after the
50034         "Regular expressions" node, not before.
50035
50036 2009-02-08  Bruno Haible  <bruno@clisp.org>
50037
50038         Tests for module 'unicase/totitle'.
50039         * modules/unicase/totitle-tests: New file.
50040
50041         Tests for module 'unicase/tolower'.
50042         * modules/unicase/tolower-tests: New file.
50043
50044         Tests for module 'unicase/toupper'.
50045         * modules/unicase/toupper-tests: New file.
50046         * tests/unicase/test-mapping-part1.h: New file.
50047         * tests/unicase/test-mapping-part2.h: New file.
50048
50049         New module 'unicase/totitle'.
50050         * modules/unicase/totitle: New file.
50051         * lib/unicase/totitle.c: New file.
50052
50053         New module 'unicase/tolower'.
50054         * modules/unicase/tolower: New file.
50055         * lib/unicase/tolower.c: New file.
50056
50057         New module 'unicase/toupper'.
50058         * modules/unicase/toupper: New file.
50059         * lib/unicase/toupper.c: New file.
50060         * lib/unicase/simple-mapping.h: New file.
50061
50062         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50063         (mapping_table): New structure.
50064         (output_simple_mapping): New function.
50065         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50066         * modules/gen-uni-tables (Description): Update.
50067         * lib/unicase/toupper.h: New file, automatically generated by
50068         gen-uni-tables.
50069         * lib/unicase/tolower.h: New file, automatically generated by
50070         gen-uni-tables.
50071         * lib/unicase/totitle.h: New file, automatically generated by
50072         gen-uni-tables.
50073         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50074         gen-uni-tables.
50075         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50076         gen-uni-tables.
50077         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50078         gen-uni-tables.
50079
50080         New module 'unicase/base'.
50081         * modules/unicase/base: New file.
50082         * lib/unicase.h: New file.
50083
50084 2009-02-08  Bruno Haible  <bruno@clisp.org>
50085
50086         New module 'uniwbrk/ulc-wordbreaks'.
50087         * modules/uniwbrk/ulc-wordbreaks: New file.
50088         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50089
50090         New module 'uniwbrk/u32-wordbreaks'.
50091         * modules/uniwbrk/u32-wordbreaks: New file.
50092         * lib/uniwbrk/u32-wordbreaks.c: New file.
50093
50094         New module 'uniwbrk/u16-wordbreaks'.
50095         * modules/uniwbrk/u16-wordbreaks: New file.
50096         * lib/uniwbrk/u16-wordbreaks.c: New file.
50097
50098         New module 'uniwbrk/u8-wordbreaks'.
50099         * modules/uniwbrk/u8-wordbreaks: New file.
50100         * lib/uniwbrk/u8-wordbreaks.c: New file.
50101         * lib/uniwbrk/u-wordbreaks.h: New file.
50102
50103         New module 'uniwbrk/table'.
50104         * modules/uniwbrk/table: New file.
50105         * lib/uniwbrk/wbrktable.h: New file.
50106         * lib/uniwbrk/wbrktable.c: New file.
50107
50108         New module 'uniwbrk/wordbreak-property'.
50109         * modules/uniwbrk/wordbreak-property: New file.
50110         * lib/uniwbrk/wordbreak-property.c: New file.
50111
50112         * lib/gen-uni-tables.c (WBP_*): New enum items.
50113         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50114         (unicode_org_wbp): New variable.
50115         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50116         New functions.
50117         (wbp_table): New structure.
50118         (output_wbp, output_wbrk_tables): New functions.
50119         (main): Accept additional argument. Invoke fill_org_wbp,
50120         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50121         output_wbrk_tables.
50122         * modules/gen-uni-tables (Description): Update.
50123         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50124         gen-uni-tables.
50125
50126         New module 'uniwbrk/base'.
50127         * modules/uniwbrk/base: New file.
50128         * lib/uniwbrk.h: New file.
50129
50130 2009-02-08  Bruno Haible  <bruno@clisp.org>
50131
50132         Update to Unicode 5.1.0.
50133         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50134         U+2185..U+2188.
50135         (is_property_default_ignorable_code_point): Don't include characters
50136         of category Cc or Cs and not-a-characters.
50137         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50138         U+0D79, U+109E, U+109F, U+A60C.
50139         * lib/unictype/bidi_of.h: Regenerated.
50140         * lib/unictype/blocks.h: Regenerated.
50141         * lib/unictype/categ_C.h: Regenerated.
50142         * lib/unictype/categ_Cf.h: Regenerated.
50143         * lib/unictype/categ_Cn.h: Regenerated.
50144         * lib/unictype/categ_L.h: Regenerated.
50145         * lib/unictype/categ_Ll.h: Regenerated.
50146         * lib/unictype/categ_Lm.h: Regenerated.
50147         * lib/unictype/categ_Lo.h: Regenerated.
50148         * lib/unictype/categ_Lu.h: Regenerated.
50149         * lib/unictype/categ_M.h: Regenerated.
50150         * lib/unictype/categ_Mc.h: Regenerated.
50151         * lib/unictype/categ_Me.h: Regenerated.
50152         * lib/unictype/categ_Mn.h: Regenerated.
50153         * lib/unictype/categ_N.h: Regenerated.
50154         * lib/unictype/categ_Nd.h: Regenerated.
50155         * lib/unictype/categ_Nl.h: Regenerated.
50156         * lib/unictype/categ_No.h: Regenerated.
50157         * lib/unictype/categ_P.h: Regenerated.
50158         * lib/unictype/categ_Pd.h: Regenerated.
50159         * lib/unictype/categ_Pe.h: Regenerated.
50160         * lib/unictype/categ_Pf.h: Regenerated.
50161         * lib/unictype/categ_Pi.h: Regenerated.
50162         * lib/unictype/categ_Po.h: Regenerated.
50163         * lib/unictype/categ_Ps.h: Regenerated.
50164         * lib/unictype/categ_S.h: Regenerated.
50165         * lib/unictype/categ_Sk.h: Regenerated.
50166         * lib/unictype/categ_Sm.h: Regenerated.
50167         * lib/unictype/categ_So.h: Regenerated.
50168         * lib/unictype/categ_of.h: Regenerated.
50169         * lib/unictype/combining.h: Regenerated.
50170         * lib/unictype/ctype_alnum.h: Regenerated.
50171         * lib/unictype/ctype_alpha.h: Regenerated.
50172         * lib/unictype/ctype_graph.h: Regenerated.
50173         * lib/unictype/ctype_lower.h: Regenerated.
50174         * lib/unictype/ctype_print.h: Regenerated.
50175         * lib/unictype/ctype_punct.h: Regenerated.
50176         * lib/unictype/ctype_upper.h: Regenerated.
50177         * lib/unictype/decdigit.h: Regenerated.
50178         * lib/unictype/digit.h: Regenerated.
50179         * lib/unictype/mirror.h: Regenerated.
50180         * lib/unictype/numeric.h: Regenerated.
50181         * lib/unictype/pr_alphabetic.h: Regenerated.
50182         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50183         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50184         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50185         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50186         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50187         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50188         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50189         * lib/unictype/pr_combining.h: Regenerated.
50190         * lib/unictype/pr_dash.h: Regenerated.
50191         * lib/unictype/pr_decimal_digit.h: Regenerated.
50192         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50193         * lib/unictype/pr_deprecated.h: Regenerated.
50194         * lib/unictype/pr_diacritic.h: Regenerated.
50195         * lib/unictype/pr_extender.h: Regenerated.
50196         * lib/unictype/pr_format_control.h: Regenerated.
50197         * lib/unictype/pr_grapheme_base.h: Regenerated.
50198         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50199         * lib/unictype/pr_grapheme_link.h: Regenerated.
50200         * lib/unictype/pr_id_continue.h: Regenerated.
50201         * lib/unictype/pr_id_start.h: Regenerated.
50202         * lib/unictype/pr_ideographic.h: Regenerated.
50203         * lib/unictype/pr_ignorable_control.h: Regenerated.
50204         * lib/unictype/pr_lowercase.h: Regenerated.
50205         * lib/unictype/pr_math.h: Regenerated.
50206         * lib/unictype/pr_numeric.h: Regenerated.
50207         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50208         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50209         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50210         * lib/unictype/pr_other_id_continue.h: Regenerated.
50211         * lib/unictype/pr_other_lowercase.h: Regenerated.
50212         * lib/unictype/pr_other_math.h: Regenerated.
50213         * lib/unictype/pr_punctuation.h: Regenerated.
50214         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50215         * lib/unictype/pr_soft_dotted.h: Regenerated.
50216         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50217         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50218         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50219         * lib/unictype/pr_uppercase.h: Regenerated.
50220         * lib/unictype/pr_xid_continue.h: Regenerated.
50221         * lib/unictype/pr_xid_start.h: Regenerated.
50222         * lib/unictype/pr_zero_width.h: Regenerated.
50223         * lib/unictype/scripts.h: Regenerated.
50224         * lib/unictype/scripts_byname.gperf: Regenerated.
50225         * lib/unictype/sy_java_ident.h: Regenerated.
50226         * lib/unilbrk/lbrkprop1.h: Regenerated.
50227         * lib/unilbrk/lbrkprop2.h: Regenerated.
50228         * tests/unictype/test-categ_C.c: Regenerated.
50229         * tests/unictype/test-categ_Cf.c: Regenerated.
50230         * tests/unictype/test-categ_Cn.c: Regenerated.
50231         * tests/unictype/test-categ_L.c: Regenerated.
50232         * tests/unictype/test-categ_Ll.c: Regenerated.
50233         * tests/unictype/test-categ_Lm.c: Regenerated.
50234         * tests/unictype/test-categ_Lo.c: Regenerated.
50235         * tests/unictype/test-categ_Lu.c: Regenerated.
50236         * tests/unictype/test-categ_M.c: Regenerated.
50237         * tests/unictype/test-categ_Mc.c: Regenerated.
50238         * tests/unictype/test-categ_Me.c: Regenerated.
50239         * tests/unictype/test-categ_Mn.c: Regenerated.
50240         * tests/unictype/test-categ_N.c: Regenerated.
50241         * tests/unictype/test-categ_Nd.c: Regenerated.
50242         * tests/unictype/test-categ_Nl.c: Regenerated.
50243         * tests/unictype/test-categ_No.c: Regenerated.
50244         * tests/unictype/test-categ_P.c: Regenerated.
50245         * tests/unictype/test-categ_Pd.c: Regenerated.
50246         * tests/unictype/test-categ_Pe.c: Regenerated.
50247         * tests/unictype/test-categ_Pf.c: Regenerated.
50248         * tests/unictype/test-categ_Pi.c: Regenerated.
50249         * tests/unictype/test-categ_Po.c: Regenerated.
50250         * tests/unictype/test-categ_Ps.c: Regenerated.
50251         * tests/unictype/test-categ_S.c: Regenerated.
50252         * tests/unictype/test-categ_Sk.c: Regenerated.
50253         * tests/unictype/test-categ_Sm.c: Regenerated.
50254         * tests/unictype/test-categ_So.c: Regenerated.
50255         * tests/unictype/test-ctype_alnum.c: Regenerated.
50256         * tests/unictype/test-ctype_alpha.c: Regenerated.
50257         * tests/unictype/test-ctype_graph.c: Regenerated.
50258         * tests/unictype/test-ctype_lower.c: Regenerated.
50259         * tests/unictype/test-ctype_print.c: Regenerated.
50260         * tests/unictype/test-ctype_punct.c: Regenerated.
50261         * tests/unictype/test-ctype_upper.c: Regenerated.
50262         * tests/unictype/test-decdigit.h: Regenerated.
50263         * tests/unictype/test-digit.h: Regenerated.
50264         * tests/unictype/test-numeric.h: Regenerated.
50265         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50266         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50267         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50268         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50269         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50270         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50271         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50272         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50273         * tests/unictype/test-pr_combining.c: Regenerated.
50274         * tests/unictype/test-pr_dash.c: Regenerated.
50275         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50276         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50277         * tests/unictype/test-pr_deprecated.c: Regenerated.
50278         * tests/unictype/test-pr_diacritic.c: Regenerated.
50279         * tests/unictype/test-pr_extender.c: Regenerated.
50280         * tests/unictype/test-pr_format_control.c: Regenerated.
50281         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50282         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50283         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50284         * tests/unictype/test-pr_id_continue.c: Regenerated.
50285         * tests/unictype/test-pr_id_start.c: Regenerated.
50286         * tests/unictype/test-pr_ideographic.c: Regenerated.
50287         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50288         * tests/unictype/test-pr_lowercase.c: Regenerated.
50289         * tests/unictype/test-pr_math.c: Regenerated.
50290         * tests/unictype/test-pr_numeric.c: Regenerated.
50291         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50292         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50293         Regenerated.
50294         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50295         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50296         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50297         * tests/unictype/test-pr_other_math.c: Regenerated.
50298         * tests/unictype/test-pr_punctuation.c: Regenerated.
50299         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50300         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50301         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50302         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50303         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50304         * tests/unictype/test-pr_uppercase.c: Regenerated.
50305         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50306         * tests/unictype/test-pr_xid_start.c: Regenerated.
50307         * tests/unictype/test-pr_zero_width.c: Regenerated.
50308
50309         Update to Unicode 5.1.0.
50310         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50311         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50312         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50313         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50314         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50315         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50316         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50317         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50318         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50319         (nonspacing_table_ind): Update.
50320         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50321
50322         Update to Unicode 5.1.0.
50323         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50324         code transform.
50325         * lib/uniname/uniname.c (unicode_character_name,
50326         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50327         * lib/uniname/uninames.h: Regenerated.
50328         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50329
50330 2009-02-07  Bruno Haible  <bruno@clisp.org>
50331
50332         Merge gen-ctype and gen-lbrk into a single program.
50333         * lib/gen-uni-tables.c: New file, incorporating
50334         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50335         Add directory prefixes to the names of the generated files.
50336         * lib/unictype/gen-ctype.c: Remove file.
50337         * lib/unilbrk/gen-lbrk.c: Remove file.
50338         * modules/gen-uni-tables: New file.
50339         * modules/unictype/gen-ctype: Remove file.
50340         * modules/unilbrk/gen-lbrk: Remove file.
50341
50342 2009-02-07  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50345
50346         New module 'unistr/u32-strcoll'.
50347         * modules/unistr/u32-strcoll: New file.
50348         * lib/unistr/u32-strcoll.c: New file.
50349
50350         New module 'unistr/u16-strcoll'.
50351         * modules/unistr/u16-strcoll: New file.
50352         * lib/unistr/u16-strcoll.c: New file.
50353
50354         New module 'unistr/u8-strcoll'.
50355         * modules/unistr/u8-strcoll: New file.
50356         * lib/unistr/u8-strcoll.c: New file.
50357         * lib/unistr/u-strcoll.h: New file.
50358
50359 2009-02-07  Bruno Haible  <bruno@clisp.org>
50360
50361         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50362         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50363         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50364         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50365         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50366         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50367
50368 2009-02-07  Bruno Haible  <bruno@clisp.org>
50369
50370         Make 64-bit clean.
50371         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50372         output_combclass, output_bidi_category, output_decimal_digit,
50373         output_digit, output_numeric, output_mirror, output_scripts,
50374         output_ident_category): Use proper width specifier in format strings.
50375
50376 2009-02-07  Bruno Haible  <bruno@clisp.org>
50377
50378         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50379         failure behaviour.
50380
50381 2009-02-07  Jim Meyering  <meyering@redhat.com>
50382
50383         regex: avoid compilation failure with upcoming gcc-4.4
50384         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50385         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50386         "... error: integer overflow in preprocessor expression".
50387
50388 2009-02-05  Ben Pfaff  <blp@gnu.org>
50389
50390         Fix link errors on Windows when close module is used.
50391         * modules/close: Add $(LIB_CLOSE) to Link section.
50392         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50393         $(LIB_CLOSE) on Windows.
50394
50395 2009-02-05  Jim Meyering  <meyering@redhat.com>
50396
50397         still avoid unused-parameter warnings, but do it cleanly
50398         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50399         (get_fs_usage): Cast to void instead.
50400         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50401         (dev_from_mount_options, read_file_system_list): Cast to void.
50402         Prompted by Bruno Haible.
50403
50404 2009-02-04  Jim Meyering  <meyering@redhat.com>
50405
50406         fsusage.c: correct copyright year
50407         * lib/fsusage.c: Reflect year in which the change is pushed into
50408
50409         avoid misc. warnings
50410         * lib/fsusage.c (UNUSED_PARAM): Define.
50411         (get_fs_usage): Mark parameter "disk" as unused.
50412         * lib/getugroups.c (getgrent): Use "void" in prototype.
50413         * lib/mountlist.c: Mark unused parameters.
50414         (read_file_system_list): Declare a local with "const".
50415         * lib/nanosleep.c (getnow): Declare static.
50416         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50417
50418         dirfd: set errno upon failure
50419         * lib/dirfd.c: Include <errno.h>.
50420         Set errno to ENOTSUP when returning -1.
50421         * modules/dirfd (Depends-on): Add errno.
50422         Suggested by John Kodis <kodis@comcast.net>.
50423
50424 2009-02-01  Bruno Haible  <bruno@clisp.org>
50425
50426         Don't assume sizeof (long) >= sizeof (void *).
50427         * lib/memcmp.c: Include stdint.h.
50428         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50429         srcp2 to 'const byte *'.
50430         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50431         types to uintptr_t.
50432         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50433         * modules/memcmp (Depends-on): Add stdint.
50434         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50435
50436 2009-01-30  Eric Blake  <ebb9@byu.net>
50437
50438         fix more require-before-expand issues
50439         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50440         expand, AC_PROG_AWK.
50441         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50442
50443 2009-01-28  Eric Blake  <ebb9@byu.net>
50444
50445         version-etc: use consistent URL formatting
50446         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50447         Improve formatting.  Use fputs for string without %.
50448
50449 2009-01-28  Jim Meyering  <meyering@redhat.com>
50450
50451         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50452         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50453         "underquoted definition of NAME" from autoconf-2.59.
50454
50455 2009-01-28  Bruno Haible  <bruno@clisp.org>
50456
50457         * doc/gnulib.texi: Add "Obsolete modules" to index.
50458
50459 2009-01-28  Jim Meyering  <meyering@redhat.com>
50460
50461         useless-if-before-free: recognize more variants
50462         * build-aux/useless-if-before-free: Also recognize e.g.,
50463         if (NULL != p) free (p);
50464
50465 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50466
50467         test-getaddrinfo: skip (don't fail) this test when there's no network
50468         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50469         on the presumption that it means you lack network access.
50470
50471 2009-01-26  Jim Meyering  <meyering@redhat.com>
50472
50473         fflush: avoid warnings on modern systems
50474         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50475         pos and result, into scopes where they're used.
50476
50477 2009-01-26  Eric Blake  <ebb9@byu.net>
50478
50479         Silence warning reintroduced by recent extensions patch.
50480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50481         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50482         autoconf.
50483
50484         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50485         * m4/00gnulib.m4: New file.
50486         * gnulib-tool (func_get_filelist): Always use it.
50487         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50488         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50489
50490 2009-01-25  Bruno Haible  <bruno@clisp.org>
50491
50492         Make test-quotearg work on MacOS X and AIX.
50493         * tests/test-quotearg.sh: New file.
50494         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50495         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50496         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50497         include <libintl.h>.
50498         (fake_locale): Remove variable.
50499         (gettext, dgettext, dcgettext): Remove functions.
50500         (main): Instead of setting a fake locale, set a real locale. Call
50501         textdomain and bindtextdomain.
50502         * modules/quotearg-tests (Files): Add the new files.
50503         (Depends-on): Add gettext, setenv, unsetenv.
50504         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50505         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50506         Augment TESTS_ENVIRONMENT.
50507
50508 2009-01-25  Bruno Haible  <bruno@clisp.org>
50509
50510         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50511         fr_FR.ISO8859-1 locale on MacOS X.
50512         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50513         ja_JP.eucJP locale on MacOS X.
50514         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50515         zh_CN.GB18030 locale on MacOS X.
50516
50517 2009-01-25  Bruno Haible  <bruno@clisp.org>
50518
50519         Avoid link errors on MacOS X 10.3.
50520         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50521         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50522
50523 2009-01-25  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50526         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50527         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50528         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50529         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50530         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50531         posix_spawnattr_init, posix_spawnattr_setsigmask,
50532         posix_spawnattr_setflags, posix_spawnattr_destroy.
50533
50534         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50535         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50536         * modules/execute (Files): Remove m4/posix_spawn.m4.
50537         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50538         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50539         posix_spawnattr_init, posix_spawnattr_setsigmask,
50540         posix_spawnattr_setflags, posix_spawnattr_destroy.
50541
50542 2009-01-25  Bruno Haible  <bruno@clisp.org>
50543
50544         * lib/glthread/threadlib.c: Include <stdlib.h>.
50545
50546 2009-01-25  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/glthread/threadlib.c (dummy): New declaration.
50549
50550 2009-01-25  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50553         multibyte characters also for the GB18030 encoding. Don't crash when
50554         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50555
50556 2009-01-25  Bruno Haible  <bruno@clisp.org>
50557
50558         Avoid redefining 'struct random_data' on OSF/1 5.1.
50559         * lib/stdlib.in.h: Include <random.h> if it exists.
50560         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50561         HAVE_RANDOM_H. Include <random.h> when testing whether
50562         'struct random_data' exists.
50563         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50564
50565 2009-01-25  Bruno Haible  <bruno@clisp.org>
50566
50567         Don't install charset.alias on MacOS X >= 10.3.
50568         * lib/localcharset.c (DARWIN7): New macro.
50569         (get_charset_aliases): Hardcode the result for Darwin7.
50570         * modules/localcharset (install-exec-local): Don't install
50571         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50572
50573 2009-01-25  Bruno Haible  <bruno@clisp.org>
50574
50575         Don't install charset.alias on mingw and Cygwin.
50576         * modules/localcharset (install-exec-local): Don't install
50577         charset.alias on mingw and Cygwin, if the file does not yet exist.
50578         The result for these platforms is hardcoded in localcharset.c.
50579
50580 2009-01-25  Bruno Haible  <bruno@clisp.org>
50581
50582         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50583         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50584         before requiring AC_USE_SYSTEM_EXTENSIONS.
50585
50586 2009-01-25  Jim Meyering  <meyering@redhat.com>
50587
50588         c-strtod: avoid warnings
50589         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50590         "assignment discards qualifiers from pointer target type" warnings.
50591
50592 2009-01-24  Bruno Haible  <bruno@clisp.org>
50593
50594         Add support for non-UTF-8 locales on MacOS X.
50595         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50596         canonical encodings. For Darwin 7 and newer, don't map traditional
50597         encodings to UTF-8.
50598         Reported by Vincent Lefevre <vincent@vinc17.org>
50599         at <http://savannah.gnu.org/bugs/?25235>.
50600
50601 2009-01-24  Bruno Haible  <bruno@clisp.org>
50602
50603         * doc/gnulib.texi (Obsolete modules): New section.
50604         Reported by Mike Frysinger <vapier@gentoo.org>.
50605
50606 2009-01-24  Bruno Haible  <bruno@clisp.org>
50607
50608         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50609         (%.dvi): New rule.
50610
50611 2009-01-24  Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50614         Reported by Eric Blake.
50615
50616 2009-01-24  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50619         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50620         Reported by Gary V. Vaughan <gary@gnu.org>.
50621
50622 2009-01-24  Bruno Haible  <bruno@clisp.org>
50623
50624         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50625
50626 2009-01-23  Bruno Haible  <bruno@clisp.org>
50627
50628         Make c-strtod, c-strtold usable in libraries.
50629         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50630         (C_STRTOD): Call strdup instead of xstrdup.
50631         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50632         * modules/c-strtold (Depends-on): Likewise.
50633         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50634         * NEWS: Mention the change.
50635         Reported by Michael Gold <mgold@ncf.ca>.
50636
50637 2009-01-23  Jim Meyering  <meyering@redhat.com>
50638
50639         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50640         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50641         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50642
50643 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50644
50645         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50646         GNU CoreUtils.
50647         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50648         * modules/version-etc (Description): Update.
50649
50650 2009-01-22  Bruno Haible  <bruno@clisp.org>
50651
50652         Cache the C locale object.
50653         * lib/c-strtod.c (c_locale_cache): New variable.
50654         (c_locale): New function.
50655         (C_STRTOD): Use it, and don't call freelocale.
50656         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50657         Suggested by Paolo Bonzini.
50658
50659 2009-01-21  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50662         conditions other than overflow.
50663
50664 2009-01-21  Bruno Haible  <bruno@clisp.org>
50665
50666         * lib/c-strtod.c: Include errno.h.
50667         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50668         value from STRTOD_L and STRTOD.
50669
50670 2009-01-21  Bruno Haible  <bruno@clisp.org>
50671         and Jim Meyering  <meyering@redhat.com>
50672
50673         nanosleep: skip configure test (fail it) for apple universal builds
50674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50675         universal builds, assume that nanosleep does not work.
50676         * modules/nanosleep (Depends-on): Add multiarch.
50677
50678         mktime: skip configure test (fail it) for apple universal builds
50679         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50680         universal builds, assume that mktime does not work.
50681         * modules/mktime (Depends-on): Add multiarch.
50682
50683 2009-01-21  Eric Blake  <ebb9@byu.net>
50684
50685         multiarch: avoid expand-before-require warning
50686         * modules/multiarch (configure.ac): Require, rather than expand,
50687         gl_MULTIARCH.
50688         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50689         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50690         enforce that all clients require it.  Partial reversion of
50691         2008-12-29 patch.
50692
50693         error: avoid expand-before-require warning
50694         * modules/errno (configure.ac): Require, rather than expand,
50695         gl_HEADER_ERRNO_H.
50696         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50697         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50698         enforce that all clients require it.
50699
50700         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50701         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50702         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50703         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50704
50705 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50706
50707         Revert:
50708         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50709
50710         regex: do not depend on obsolete modules.
50711         * modules/regex: Remove memcmp and memmove.
50712
50713 2009-01-20  Bruno Haible  <bruno@clisp.org>
50714
50715         Make the 'link' module link on Windows NT 4.
50716         * lib/link.c (_WIN32_WINNT): Don't define.
50717         (CreateHardLinkFuncType): New type.
50718         (CreateHardLinkFunc, initialized): New variables.
50719         (initialize): New function.
50720         (link): Invoke CreateHardLink indirectly through the function pointer.
50721
50722 2009-01-20  Bruno Haible  <bruno@clisp.org>
50723
50724         Fix compilation failure on mingw.
50725         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50726
50727 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50728
50729         * doc/c-strtod.texi: Mention a couple of restrictions.
50730
50731 2009-01-20  Jim Meyering  <meyering@redhat.com>
50732
50733         gettimeofday: move more declarations out of functions
50734         * lib/gettimeofday.c: Move extern declarations of tzset and
50735         gmtime out of containing functions.  Prompted by Bruno Haible.
50736
50737 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50738
50739         regex: do not depend on obsolete modules.
50740         * modules/regex: Remove memcmp and memmove.
50741
50742 2009-01-19  Bruno Haible  <bruno@clisp.org>
50743
50744         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50745         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50746         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50747         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50748         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50749
50750 2009-01-19  Bruno Haible  <bruno@clisp.org>
50751
50752         * tests/test-link.c: Include <errno.h>.
50753         (main): Exit with code 77 when a hard link cannot be created due to
50754         the file system.
50755         * tests/test-link.sh: Skip test when a hard link cannot be created due
50756         to the file system.
50757         Suggested by Eric Blake.
50758
50759 2009-01-19  Martin Lambers  <marlam@marlam.de>
50760
50761         * modules/link-tests: New file.
50762         * tests/test-link.sh: New file.
50763         * tests/test-link.c: New file.
50764
50765 2009-01-19  Eric Blake  <ebb9@byu.net>
50766
50767         doc: mention another function added in cygwin 1.7.0
50768         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50769         Another new function in cygwin 1.7.
50770
50771 2009-01-19  Bruno Haible  <bruno@clisp.org>
50772
50773         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50774         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50775         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50776         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50778         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50779         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50780         * m4/md4.m4 (gl_MD4): Likewise.
50781         * m4/md5.m4 (gl_MD5): Likewise.
50782         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50783         * m4/sha1.m4 (gl_SHA1): Likewise.
50784         * m4/sha256.m4 (gl_SHA256): Likewise.
50785         * m4/sha512.m4 (gl_SHA512): Likewise.
50786
50787 2009-01-19  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/uniname/uniname-tests (Depends-on): Add progname.
50790         * tests/uniname/test-uninames.c: Include progname.h.
50791         (main): Call set_program_name.
50792
50793         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50794         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50795         (main): Call set_program_name.
50796
50797         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50798         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50799         (main): Call set_program_name.
50800
50801         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50802         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50803         (main): Call set_program_name.
50804
50805         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50806         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50807         (main): Call set_program_name.
50808
50809         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50810         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50811         (main): Call set_program_name.
50812
50813         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50814         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50815         (main): Call set_program_name.
50816
50817         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50818         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50819         (main): Call set_program_name.
50820
50821         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50822         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50823         (main): Call set_program_name.
50824
50825 2009-01-19  Eric Blake  <ebb9@byu.net>
50826
50827         test-unistd: test previous patch
50828         * tests/test-unistd.c: Test *_FILENO macros.
50829
50830         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50831         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50832         Guarantee a definition.
50833         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50834         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50835         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50836         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50837         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50838         Likewise.
50839         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50840         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50841         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50842         Likewise.
50843         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50844         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50845         (STDERR_FILENO): Likewise.
50846         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50847         (STDERR_FILENO): Likewise.
50848         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50849         (STDERR_FILENO): Likewise.
50850         Reported by Elbert Pol.
50851
50852 2009-01-19  Eric Blake  <ebb9@byu.net>
50853
50854         doc: mention more functions added in cygwin 1.7.0
50855         * doc/posix-functions/abort.texi (abort): Update wording related
50856         to cygwin.
50857         * doc/posix-functions/daylight.texi (daylight): Likewise.
50858         * doc/posix-functions/optarg.texi (optarg): Likewise.
50859         * doc/posix-functions/optarg.texi (opterr): Likewise.
50860         * doc/posix-functions/optarg.texi (optind): Likewise.
50861         * doc/posix-functions/optarg.texi (optopt): Likewise.
50862         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50863         worked in 1.5.x, and was withdrawn in 1.7.
50864         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50865         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50866         cygwin versions.
50867         * doc/posix-functions/perror.texi (perror): Likewise.
50868         * doc/posix-functions/printf.texi (printf): Likewise.
50869         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50870         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50871         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50872         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50873         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50874         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50875         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50876         Likewise.
50877         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50878         Likewise.
50879         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50880         this function.
50881         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50882         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50883         Likewise.
50884         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50885         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50886         * doc/posix-functions/confstr.texi (confstr): Likewise.
50887         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50888         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50889         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50890         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50891         * doc/posix-functions/fputws.texi (fputws): Likewise.
50892         * doc/posix-functions/fwide.texi (fwide): Likewise.
50893         * doc/posix-functions/getwc.texi (getwc): Likewise.
50894         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50895         * doc/posix-functions/putwc.texi (putwc): Likewise.
50896         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50897         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50898         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50899         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50900         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50901         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50902         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50903         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50904         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50905         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50906         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50907
50908 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50909
50910         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50911         * lib/ioctl.c: Include <sys/ioctl.h>.
50912
50913 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50914
50915         * modules/getdate-tests (Depends-on): Add progname.
50916         * tests/test-getdate.c: Use progname module, to avoid link errors
50917         on non-glibc systems.
50918
50919 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50920
50921         * modules/filenamecat-tests (Depends-on): Add progname.
50922         * modules/fstrcmp-tests (Depends-on): Likewise.
50923
50924         * tests/test-filenamecat.c: Use progname module, to avoid link
50925         errors on non-glibc systems.
50926         * tests/test-fstrcmp.c: Likewise.
50927
50928 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50929
50930         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50931         * lib/gettimeofday.c: Move extern declaration out of function.
50932
50933 2009-01-18  Bruno Haible  <bruno@clisp.org>
50934
50935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50936         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50937         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50938
50939 2009-01-18  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/strftime.c (MEMPCPY): Remove unused macro.
50942         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50943
50944 2009-01-18  Martin Lambers  <marlam@marlam.de>
50945
50946         New module 'link'.
50947         * lib/unistd.in.h (link): New declaration.
50948         * lib/link.c: New file.
50949         * m4/link.m4: New file.
50950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50951         HAVE_LINK.
50952         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50953         * modules/link: New file.
50954         * doc/posix-functions/link.texi: Mention the new module.
50955
50956 2009-01-18  Bruno Haible  <bruno@clisp.org>
50957
50958         * tests/test-avltree_list.c (main): Call set_program_name.
50959         * tests/test-avltree_oset.c (main): Likewise.
50960         * tests/test-obstack-printf.c: Include progname.h.
50961         (main): Call set_program_name.
50962         * tests/test-quotearg.c: Include progname.h.
50963         (main): Call set_program_name.
50964         * tests/test-xmemdup0.c: Include progname.h.
50965         (main): Call set_program_name.
50966
50967 2009-01-18  Bruno Haible  <bruno@clisp.org>
50968
50969         New module 'alphasort'.
50970         * lib/dirent.in.h (alphasort): New declaration.
50971         * lib/alphasort.c: New file, from glibc with modifications.
50972         * m4/alphasort.m4: New file.
50973         * modules/alphasort: New file.
50974         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50975         HAVE_ALPHASORT.
50976         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50977         HAVE_ALPHASORT.
50978         * doc/posix-functions/alphasort.texi: Mention the new module and the
50979         portability problems.
50980
50981 2009-01-18  Bruno Haible  <bruno@clisp.org>
50982
50983         New module 'scandir'.
50984         * lib/dirent.in.h (scandir): New declaration.
50985         * lib/scandir.c: New file, from glibc with modifications.
50986         * m4/scandir.m4: New file.
50987         * modules/scandir: New file.
50988         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50989         HAVE_SCANDIR.
50990         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50991         HAVE_SCANDIR.
50992         * doc/posix-functions/scandir.texi: Mention the new module and the
50993         portability problems.
50994
50995 2009-01-17  Bruno Haible  <bruno@clisp.org>
50996
50997         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50998         Update documentation.
50999         (func_remove_suffix): Escape all dots in the suffix. Update
51000         documentation.
51001         (func_filter_filelist): Update documentation.
51002         Reported by Ralf Wildenhues.
51003
51004 2009-01-17  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/dprintf-posix-tests: New file.
51007         * tests/test-dprintf-posix.sh: New file.
51008         * tests/test-dprintf-posix.c: New file.
51009
51010         New modules 'dprintf', 'dprintf-posix'.
51011         * lib/stdio.in.h (dprintf): New declaration.
51012         * lib/dprintf.c: New file.
51013         * m4/dprintf.m4: New file.
51014         * m4/dprintf-posix.m4: New file.
51015         * modules/dprintf: New file.
51016         * modules/dprintf-posix: New file.
51017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51018         HAVE_DPRINTF, REPLACE_DPRINTF.
51019         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51020         HAVE_DPRINTF, REPLACE_DPRINTF.
51021         * doc/posix-functions/dprintf.texi: Mention the new modules.
51022
51023 2009-01-17  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/vdprintf-posix-tests: New file.
51026         * tests/test-vdprintf-posix.sh: New file.
51027         * tests/test-vdprintf-posix.c: New file.
51028
51029         New modules 'vdprintf', 'vdprintf-posix'.
51030         * lib/stdio.in.h (vdprintf): New declaration.
51031         * lib/vdprintf.c: New file.
51032         * m4/vdprintf.m4: New file.
51033         * m4/vdprintf-posix.m4: New file.
51034         * modules/vdprintf: New file.
51035         * modules/vdprintf-posix: New file.
51036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51037         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51038         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51039         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51040         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51041
51042 2009-01-17  Bruno Haible  <bruno@clisp.org>
51043
51044         Fix replacement of fopen on mingw.
51045         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51046         mingw.
51047
51048 2009-01-17  Bruno Haible  <bruno@clisp.org>
51049
51050         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51051         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51052
51053 2009-01-17  Bruno Haible  <bruno@clisp.org>
51054
51055         Avoid test-fflush2.sh failure on mingw.
51056         * tests/test-fflush2.c: Include binary-io.h.
51057         (main): Put standard input into binary mode.
51058         * modules/fflush-tests (Depends-on): Add binary-io.
51059
51060 2009-01-17  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/wchar.in.h: In another particular situation, include only the
51063         system's <wchar.h> file.
51064         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51065         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51066         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51067
51068 2009-01-17  Bruno Haible  <bruno@clisp.org>
51069
51070         Support for stripping executables in --enable-relocatable.
51071         * build-aux/install-reloc: Expect one more argument, or an environment
51072         variable RELOC_STRIP_PROG. If set, strip the destination program and
51073         its wrapper.
51074         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51075         RELOC_STRIP_PROG.
51076         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51077         to set RELOCATABLE_STRIP.
51078         * NEWS: Mention the new Makefile requirement.
51079
51080 2009-01-17  Bruno Haible  <bruno@clisp.org>
51081
51082         * build-aux/install-reloc: Remove debugging information left over by
51083         C compiler on MacOS X.
51084
51085 2009-01-17  Bruno Haible  <bruno@clisp.org>
51086
51087         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51088         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51089         _NSGetExecutablePath.
51090
51091 2009-01-16  Jim Meyering  <meyering@redhat.com>
51092
51093         strerror: avoid warnings about discarding "const"
51094         * lib/strerror.c (rpl_strerror): Instead of returning a const
51095         string from each and every "case", use a variable, and add a single
51096         cast after the switch.
51097
51098 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51099
51100         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51101
51102 2009-01-16  Bruno Haible  <bruno@clisp.org>
51103
51104         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51105         array initializer syntax that also works in C++ mode.
51106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51107
51108 2009-01-16  Jim Meyering  <meyering@redhat.com>
51109
51110         poll: suppress a warning
51111         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51112         to ignore "...unsigned expression < 0 is always false" warnings.
51113
51114 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51115
51116         poll: remove declarations of unused variables
51117         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51118         sockbuf and optlen.
51119
51120 2009-01-15  Bruno Haible  <bruno@clisp.org>
51121
51122         Make fflush-after-ungetc POSIX compliant on BSD systems.
51123         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51124         (clear_ungetc_buffer): Implement also for other systems.
51125         (rpl_fflush): On glibc systems, invoke
51126         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51127         clear_ungetc_buffer after fetching the stream's position, not before.
51128
51129 2009-01-15  Bruno Haible  <bruno@clisp.org>
51130
51131         Make fflush-after-ungetc POSIX compliant on glibc systems.
51132         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51133         after ungetc.
51134         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51135         (rpl_fflush): On glibc systems, simply call the system's fflush
51136         function after clearing the ungetc buffer.
51137         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51138         Instead, lseek only to the end of file, then use the system's fseeko
51139         for the rest. On glibc systems, reset the EOF indicator bit.
51140
51141 2009-01-15  Jim Meyering  <meyering@redhat.com>
51142
51143         openmp.m4: revert quote-adding change, for portability to older autoconf
51144         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51145         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51146         Simon Josefsson noticed the problem when using autoconf-2.61.
51147
51148 2009-01-15  Bruno Haible  <bruno@clisp.org>
51149
51150         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51151         * tests/test-fflush2.c (ASSERT): Always fail.
51152         (main): Add two tests for fflush() after ungetc(), taking into account
51153         the Austin Group's clarification.
51154         Suggested by Eric Blake.
51155
51156 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51157
51158         mktime.m4: remove K&R-style function prototypes
51159         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51160         for the Sun C++ compiler.
51161
51162 2009-01-14  Bruno Haible  <bruno@clisp.org>
51163
51164         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51165         while including <wchar.h>.
51166         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51167         the system's <wchar.h> file.
51168         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51169
51170 2009-01-14  Bruno Haible  <bruno@clisp.org>
51171
51172         * m4/csharp.m4: Don't mention gettext on the serial number line.
51173         * m4/csharpexec.m4: Likewise.
51174         * m4/eaccess.m4: Likewise.
51175         * m4/javaexec.m4: Likewise.
51176         * m4/sig_atomic_t.m4: Likewise.
51177         * m4/tmpdir.m4: Likewise.
51178         * m4/intldir.m4: Bump gettext version.
51179         * m4/lib-ld.m4: Likewise.
51180
51181 2009-01-14  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/progname.c (set_program_name): Add more comments.
51184         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51185
51186 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51187
51188         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51189         were sys/stat.h does not define it.
51190
51191 2009-01-14  Jim Meyering  <meyering@redhat.com>
51192
51193         many *.m4 files: improve m4 quoting
51194         99% of this change was performed by running the following commands:
51195         git ls-files | grep '\.m4$' | xargs perl -pi \
51196           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51197           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51198           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51199           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51200         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51201         The remainder were to add Copyright dates, increment serial numbers,
51202         undo some changes in comments, exclude m4/intl.m4, and add quotes
51203         around the "1" in ",1" where the unusual spacing prohibited the
51204         above regexps from doing the job.  For more details, see
51205         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51206         * m4/acl.m4: Modified.
51207         * m4/afs.m4: Likewise.
51208         * m4/alloca.m4: Likewise.
51209         * m4/argp.m4: Likewise.
51210         * m4/argz.m4: Likewise.
51211         * m4/atexit.m4: Likewise.
51212         * m4/bison-i18n.m4: Likewise.
51213         * m4/bison.m4: Likewise.
51214         * m4/byteswap.m4: Likewise.
51215         * m4/c-stack.m4: Likewise.
51216         * m4/c-strtod.m4: Likewise.
51217         * m4/calloc.m4: Likewise.
51218         * m4/canonicalize-lgpl.m4: Likewise.
51219         * m4/chown.m4: Likewise.
51220         * m4/clock_time.m4: Likewise.
51221         * m4/codeset.m4: Likewise.
51222         * m4/copy-file.m4: Likewise.
51223         * m4/csharp.m4: Likewise.
51224         * m4/csharpcomp.m4: Likewise.
51225         * m4/csharpexec.m4: Likewise.
51226         * m4/d-ino.m4: Likewise.
51227         * m4/d-type.m4: Likewise.
51228         * m4/dirfd.m4: Likewise.
51229         * m4/double-slash-root.m4: Likewise.
51230         * m4/eaccess.m4: Likewise.
51231         * m4/eealloc.m4: Likewise.
51232         * m4/environ.m4: Likewise.
51233         * m4/errno_h.m4: Likewise.
51234         * m4/euidaccess.m4: Likewise.
51235         * m4/execute.m4: Likewise.
51236         * m4/fatal-signal.m4: Likewise.
51237         * m4/fchdir.m4: Likewise.
51238         * m4/fcntl_h.m4: Likewise.
51239         * m4/fileblocks.m4: Likewise.
51240         * m4/filenamecat.m4: Likewise.
51241         * m4/findprog.m4: Likewise.
51242         * m4/flexmember.m4: Likewise.
51243         * m4/fnmatch.m4: Likewise.
51244         * m4/fopen.m4: Likewise.
51245         * m4/fpending.m4: Likewise.
51246         * m4/fprintf-posix.m4: Likewise.
51247         * m4/free.m4: Likewise.
51248         * m4/frexp.m4: Likewise.
51249         * m4/frexpl.m4: Likewise.
51250         * m4/fsusage.m4: Likewise.
51251         * m4/ftruncate.m4: Likewise.
51252         * m4/gc-camellia.m4: Likewise.
51253         * m4/gc-random.m4: Likewise.
51254         * m4/gc.m4: Likewise.
51255         * m4/getaddrinfo.m4: Likewise.
51256         * m4/getcwd-abort-bug.m4: Likewise.
51257         * m4/getcwd-path-max.m4: Likewise.
51258         * m4/getdate.m4: Likewise.
51259         * m4/getdomainname.m4: Likewise.
51260         * m4/getgroups.m4: Likewise.
51261         * m4/gethostname.m4: Likewise.
51262         * m4/gethrxtime.m4: Likewise.
51263         * m4/getline.m4: Likewise.
51264         * m4/getloadavg.m4: Likewise.
51265         * m4/getndelim2.m4: Likewise.
51266         * m4/getpass.m4: Likewise.
51267         * m4/gettext.m4: Likewise.
51268         * m4/gettime.m4: Likewise.
51269         * m4/gettimeofday.m4: Likewise.
51270         * m4/gnulib-common.m4: Likewise.
51271         * m4/group-member.m4: Likewise.
51272         * m4/host-os.m4: Likewise.
51273         * m4/iconv.m4: Likewise.
51274         * m4/iconv_open.m4: Likewise.
51275         * m4/inet_ntop.m4: Likewise.
51276         * m4/inet_pton.m4: Likewise.
51277         * m4/inline.m4: Likewise.
51278         * m4/intldir.m4: Likewise.
51279         * m4/intlmacosx.m4: Likewise.
51280         * m4/intmax.m4: Likewise.
51281         * m4/intmax_t.m4: Likewise.
51282         * m4/inttypes.m4: Likewise.
51283         * m4/inttypes_h.m4: Likewise.
51284         * m4/inttypes-pri.m4: Likewise.
51285         * m4/isapipe.m4: Likewise.
51286         * m4/isnand.m4: Likewise.
51287         * m4/isnanf.m4: Likewise.
51288         * m4/isnanl.m4: Likewise.
51289         * m4/javacomp.m4: Likewise.
51290         * m4/javaexec.m4: Likewise.
51291         * m4/jm-winsz1.m4: Likewise.
51292         * m4/jm-winsz2.m4: Likewise.
51293         * m4/lchown.m4: Likewise.
51294         * m4/lcmessage.m4: Likewise.
51295         * m4/ldexpl.m4: Likewise.
51296         * m4/lib-ld.m4: Likewise.
51297         * m4/lib-link.m4: Likewise.
51298         * m4/libsigsegv.m4: Likewise.
51299         * m4/link-follow.m4: Likewise.
51300         * m4/localcharset.m4: Likewise.
51301         * m4/locale-fr.m4: Likewise.
51302         * m4/locale-ja.m4: Likewise.
51303         * m4/locale-tr.m4: Likewise.
51304         * m4/locale-zh.m4: Likewise.
51305         * m4/lock.m4: Likewise.
51306         * m4/longlong.m4: Likewise.
51307         * m4/ls-mntd-fs.m4: Likewise.
51308         * m4/lstat.m4: Likewise.
51309         * m4/malloc.m4: Likewise.
51310         * m4/mathl.m4: Likewise.
51311         * m4/mbrtowc.m4: Likewise.
51312         * m4/mbstate_t.m4: Likewise.
51313         * m4/mbswidth.m4: Likewise.
51314         * m4/memchr.m4: Likewise.
51315         * m4/memcmp.m4: Likewise.
51316         * m4/memcpy.m4: Likewise.
51317         * m4/memmem.m4: Likewise.
51318         * m4/memmove.m4: Likewise.
51319         * m4/mempcpy.m4: Likewise.
51320         * m4/memrchr.m4: Likewise.
51321         * m4/memset.m4: Likewise.
51322         * m4/minmax.m4: Likewise.
51323         * m4/mkdir-slash.m4: Likewise.
51324         * m4/mkdtemp.m4: Likewise.
51325         * m4/mktime.m4: Likewise.
51326         * m4/mmap-anon.m4: Likewise.
51327         * m4/mountlist.m4: Likewise.
51328         * m4/nanosleep.m4: Likewise.
51329         * m4/nls.m4: Likewise.
51330         * m4/nocrash.m4: Likewise.
51331         * m4/open.m4: Likewise.
51332         * m4/openat.m4: Likewise.
51333         * m4/openmp.m4: Likewise.
51334         * m4/pathmax.m4: Likewise.
51335         * m4/perl.m4: Likewise.
51336         * m4/physmem.m4: Likewise.
51337         * m4/pipe.m4: Likewise.
51338         * m4/po.m4: Likewise.
51339         * m4/poll.m4: Likewise.
51340         * m4/posixtm.m4: Likewise.
51341         * m4/posixver.m4: Likewise.
51342         * m4/printf-frexp.m4: Likewise.
51343         * m4/printf-frexpl.m4: Likewise.
51344         * m4/printf-posix.m4: Likewise.
51345         * m4/printf-posix-rpl.m4: Likewise.
51346         * m4/printf.m4: Likewise.
51347         * m4/progtest.m4: Likewise.
51348         * m4/putenv.m4: Likewise.
51349         * m4/readline.m4: Likewise.
51350         * m4/readlink.m4: Likewise.
51351         * m4/readutmp.m4: Likewise.
51352         * m4/realloc.m4: Likewise.
51353         * m4/regex.m4: Likewise.
51354         * m4/relocatable.m4: Likewise.
51355         * m4/relocatable-lib.m4: Likewise.
51356         * m4/rename-dest-slash.m4: Likewise.
51357         * m4/rename.m4: Likewise.
51358         * m4/rmdir-errno.m4: Likewise.
51359         * m4/rmdir.m4: Likewise.
51360         * m4/roundf.m4: Likewise.
51361         * m4/roundl.m4: Likewise.
51362         * m4/rpmatch.m4: Likewise.
51363         * m4/save-cwd.m4: Likewise.
51364         * m4/selinux-selinux-h.m4: Likewise.
51365         * m4/setenv.m4: Likewise.
51366         * m4/settime.m4: Likewise.
51367         * m4/sig2str.m4: Likewise.
51368         * m4/sig_atomic_t.m4: Likewise.
51369         * m4/signalblocking.m4: Likewise.
51370         * m4/signbit.m4: Likewise.
51371         * m4/sigpipe.m4: Likewise.
51372         * m4/sockets.m4: Likewise.
51373         * m4/sockpfaf.m4: Likewise.
51374         * m4/st_dm_mode.m4: Likewise.
51375         * m4/stat-time.m4: Likewise.
51376         * m4/stdbool.m4: Likewise.
51377         * m4/stdint.m4: Likewise.
51378         * m4/stdint_h.m4: Likewise.
51379         * m4/stpcpy.m4: Likewise.
51380         * m4/stpncpy.m4: Likewise.
51381         * m4/strcase.m4: Likewise.
51382         * m4/strchrnul.m4: Likewise.
51383         * m4/strcspn.m4: Likewise.
51384         * m4/strdup.m4: Likewise.
51385         * m4/strftime.m4: Likewise.
51386         * m4/strndup.m4: Likewise.
51387         * m4/strnlen.m4: Likewise.
51388         * m4/strpbrk.m4: Likewise.
51389         * m4/strptime.m4: Likewise.
51390         * m4/strsep.m4: Likewise.
51391         * m4/strtod.m4: Likewise.
51392         * m4/strtoimax.m4: Likewise.
51393         * m4/strtok_r.m4: Likewise.
51394         * m4/strtol.m4: Likewise.
51395         * m4/strtoll.m4: Likewise.
51396         * m4/strtoul.m4: Likewise.
51397         * m4/strtoull.m4: Likewise.
51398         * m4/strtoumax.m4: Likewise.
51399         * m4/strverscmp.m4: Likewise.
51400         * m4/threadlib.m4: Likewise.
51401         * m4/timegm.m4: Likewise.
51402         * m4/tm_gmtoff.m4: Likewise.
51403         * m4/tmpdir.m4: Likewise.
51404         * m4/tmpfile.m4: Likewise.
51405         * m4/tzset.m4: Likewise.
51406         * m4/uintmax_t.m4: Likewise.
51407         * m4/unlinkdir.m4: Likewise.
51408         * m4/unlocked-io.m4: Likewise.
51409         * m4/uptime.m4: Likewise.
51410         * m4/userspec.m4: Likewise.
51411         * m4/utimbuf.m4: Likewise.
51412         * m4/utime.m4: Likewise.
51413         * m4/utimes-null.m4: Likewise.
51414         * m4/utimes.m4: Likewise.
51415         * m4/vararrays.m4: Likewise.
51416         * m4/vasnprintf.m4: Likewise.
51417         * m4/vfprintf-posix.m4: Likewise.
51418         * m4/vprintf-posix.m4: Likewise.
51419         * m4/wait-process.m4: Likewise.
51420         * m4/wchar_t.m4: Likewise.
51421         * m4/wint_t.m4: Likewise.
51422         * m4/write-any-file.m4: Likewise.
51423         * m4/yield.m4: Likewise.
51424
51425 2009-01-13  Bruno Haible  <bruno@clisp.org>
51426
51427         Avoid test-copy-file.sh failures when ACL support insufficient.
51428         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51429         TESTS_ENVIRONMENT.
51430         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51431         Reported by Jim Meyering.
51432
51433 2009-01-13  Bruno Haible  <bruno@clisp.org>
51434
51435         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51436         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51437         * modules/unistdio/u8-printf-parse (Files): Likewise.
51438         * modules/unistdio/u32-printf-parse (Files): Likewise.
51439         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51440
51441 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51442
51443         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51444         and m4/inttypes_h.m4 too.
51445
51446 2009-01-12  Eric Blake  <ebb9@byu.net>
51447
51448         tests: IRIX 6.2 cc can't compile -0.0 into .data
51449         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51450         rather than at compile-time.
51451         * tests/test-floorl.c (minus_zero): Likewise.
51452         * tests/test-frexpl.c (minus_zero): Likewise.
51453         * tests/test-isnan.c (minus_zerol): Likewise.
51454         * tests/test-isnanl.h (minus_zero): Likewise.
51455         * tests/test-ldexpl.c (minus_zero): Likewise.
51456         * tests/test-roundl.c (minus_zero): Likewise.
51457         * tests/test-signbit.c (minus_zerol): Likewise.
51458         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51459         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51460         * tests/test-truncl.c (minus_zero): Likewise.
51461         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51462         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51463         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51464
51465 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51466
51467         regex: fix glibc bug 9697
51468         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51469         handling.
51470
51471 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51472
51473         regex: fix glibc bug 697
51474         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51475         being NULL also if there are no backreferences.
51476
51477 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51478
51479         regex: merge glibc changes
51480         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51481         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51482         re_string_skip_chars, re_string_reconstruct): Likewise.
51483         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51484
51485 2009-01-07  Jim Meyering  <meyering@redhat.com>
51486
51487         poll: filter through cppi
51488         * lib/poll.c: Indent cpp directives to reflect nesting.
51489
51490 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51491
51492         poll: don't return uninitialized
51493         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51494
51495 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51496
51497         avoid compile failure on AIX 6.1
51498         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51499         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51500
51501 2009-01-04  Jim Meyering  <meyering@redhat.com>
51502
51503         remove duplicate inclusion of <stdio.h>
51504         * tests/test-fprintf-posix.c: Likewise.
51505         * tests/test-printf-posix.c: Likewise.
51506         * tests/test-snprintf-posix.c: Likewise.
51507         * tests/test-sprintf-posix.c: Likewise.
51508         * tests/test-vasprintf-posix.c: Likewise.
51509         * tests/test-vfprintf-posix.c: Likewise.
51510         * tests/test-vprintf-posix.c: Likewise.
51511         * tests/test-vsnprintf-posix.c: Likewise.
51512         * tests/test-vsprintf-posix.c: Likewise.
51513
51514 2009-01-03  Jim Meyering  <meyering@redhat.com>
51515
51516         gnulib-tool: fix sed-based filtering
51517         * gnulib-tool (func_filter_filelist): Remove extra backslash
51518         in sed_fff_filter definition.
51519
51520 2009-01-02  Jim Meyering  <meyering@redhat.com>
51521
51522         strftime: avoid compilation failure on Solaris 2.6
51523         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51524         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51525         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51526         be available.  Reported by Tom G. Christensen.  Details in
51527         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51528
51529 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51530             Bruno Haible  <bruno@clisp.org>
51531
51532         Speed up gnulib-tool by doing more string processing through shell
51533         built-ins.
51534         * gnulib-tool (fast_func_append): New variable.
51535         (func_remove_prefix, func_remove_suffix): New functions.
51536         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51537         (func_filter_filelist): New function.
51538         (func_get_dependencies): Use func_remove_suffix instead of sed.
51539         (func_get_automake_snippet): Use func_filter_filelist instead of a
51540         subshell and sed invocation.
51541
51542 2009-01-01  Bruno Haible  <bruno@clisp.org>
51543
51544         Fix a security bug.
51545         * gnulib-tool (func_import, import, update): Don't allow the characters
51546         '"', '$', '`', '\' in macro arguments that become part of commands that
51547         are evaluated.
51548
51549 2009-01-01  Bruno Haible  <bruno@clisp.org>
51550
51551         * gnulib-tool (func_reset_sigpipe): Add more comments.
51552
51553 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51554
51555         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51556         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51557         already know the answer.
51558
51559 2009-01-01  Jim Meyering  <meyering@redhat.com>
51560
51561         * lib/version-etc.c (version_etc_va): Update copyright year.
51562
51563 2008-12-30  Bruno Haible  <bruno@clisp.org>
51564
51565         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51566         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51567         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51568
51569 2008-12-29  Eric Blake  <ebb9@byu.net>
51570
51571         multiarch: avoid autoconf AC_REQUIRE bug
51572         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51573         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51574         2.63 and older.
51575         Reported by Bruno Haible, and analyzed in
51576         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51577
51578 2008-12-29  Bruno Haible  <bruno@clisp.org>
51579
51580         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51581         files in subdirectories correctly.
51582         Reported by Ralf Wildenhues.
51583
51584 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51585
51586         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51587         rather than 'join FILE -', for Solaris join.
51588
51589 2008-12-29  Bruno Haible  <bruno@clisp.org>
51590
51591         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51592         quoting.
51593         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51594         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51595         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51596         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51597         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51598         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51599         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51600         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51601         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51602         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51603         * m4/nls.m4 (AM_NLS): Likewise.
51604         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51605         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51606         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51607         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51608         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51609         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51610         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51611         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51612         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51613         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51614         * m4/xsize.m4 (gl_XSIZE): Likewise.
51615         Suggested by Jim Meyering.
51616
51617 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51618
51619         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51620         * lib/parse-duration.c: use a switch instead of cascading if's.
51621
51622 2008-12-29  Eric Blake  <ebb9@byu.net>
51623
51624         wchar.h: supply WEOF on Irix 5.3
51625         * lib/wchar.in.h (wint_t): Also supply WEOF.
51626         * lib/wctype.in.h (wint_t): Likewise.
51627         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51628         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51629         Reported by Tom G. Christensen.
51630
51631 2008-12-26  Bruno Haible  <bruno@clisp.org>
51632
51633         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51634         i486, i586, i686.
51635
51636 2008-12-26  Bruno Haible  <bruno@clisp.org>
51637
51638         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51639
51640 2008-12-26  Bruno Haible  <bruno@clisp.org>
51641
51642         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51643         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51644         not __STDC_CONSTANT_MACROS.
51645         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51646
51647 2008-12-25  Bruno Haible  <bruno@clisp.org>
51648
51649         Add support for universal builds to vasnprintf.
51650         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51651         universal builds, guess no.
51652         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51653         * modules/vasprintf-posix (Depends-on): Likewise.
51654         * modules/fprintf-posix (Depends-on): Likewise.
51655         * modules/vfprintf-posix (Depends-on): Likewise.
51656         * modules/snprintf-posix (Depends-on): Likewise.
51657         * modules/vsnprintf-posix (Depends-on): Likewise.
51658         * modules/sprintf-posix (Depends-on): Likewise.
51659         * modules/vsprintf-posix (Depends-on): Likewise.
51660         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51661         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51662         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51663         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51664         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51665         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51666         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51667
51668         Add support for universal builds to <inttypes.h>.
51669         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51670         _SCNu64_PREFIX): In Apple
51671         universal builds, define directly, using _LP64.
51672         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51673         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51674         * modules/inttypes (Depends-on): Add multiarch.
51675         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51676
51677         Add support for universal builds to <stdint.h>.
51678         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51679         universal builds, define directly, using _LP64.
51680         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51681         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51682         and size_t.
51683         * modules/stdint (Depends-on): Add multiarch.
51684         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51685
51686         New module 'multiarch'.
51687         * modules/multiarch: New file.
51688         * m4/multiarch.m4: New file.
51689
51690 2008-12-25  Bruno Haible  <bruno@clisp.org>
51691
51692         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51693
51694 2008-12-25  Bruno Haible  <bruno@clisp.org>
51695
51696         * modules/btowc (License): Relicense under LGPLv2+.
51697         * modules/mbsinit (License): Likewise.
51698         * modules/mbrtowc (License): Likewise.
51699         * modules/wcrtomb (License): Likewise.
51700         * modules/streq (License): Likewise.
51701         Reported by David Lutterkort <lutter@redhat.com>.
51702
51703 2008-12-23  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51706
51707 2008-12-23  Bruno Haible  <bruno@clisp.org>
51708
51709         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51711         GETADDRINFO_LIB, not in LIBS.
51712         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51713         * modules/canon-host (Link): Likewise.
51714         * NEWS: Mention the change.
51715         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51716         GETADDRINFO_LIB.
51717
51718 2008-12-22  Bruno Haible  <bruno@clisp.org>
51719
51720         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51721         * doc/posix-functions/iswalpha_l.texi: Likewise.
51722         * doc/posix-functions/iswblank_l.texi: Likewise.
51723         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51724         * doc/posix-functions/iswctype_l.texi: Likewise.
51725         * doc/posix-functions/iswdigit_l.texi: Likewise.
51726         * doc/posix-functions/iswgraph_l.texi: Likewise.
51727         * doc/posix-functions/iswlower_l.texi: Likewise.
51728         * doc/posix-functions/iswprint_l.texi: Likewise.
51729         * doc/posix-functions/iswpunct_l.texi: Likewise.
51730         * doc/posix-functions/iswspace_l.texi: Likewise.
51731         * doc/posix-functions/iswupper_l.texi: Likewise.
51732         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51733         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51734         * doc/posix-functions/open_wmemstream.texi: Likewise.
51735         * doc/posix-functions/swscanf.texi: Likewise.
51736         * doc/posix-functions/towctrans_l.texi: Likewise.
51737         * doc/posix-functions/towlower.texi: Likewise.
51738         * doc/posix-functions/towlower_l.texi: Likewise.
51739         * doc/posix-functions/towupper.texi: Likewise.
51740         * doc/posix-functions/towupper_l.texi: Likewise.
51741         * doc/posix-functions/vfwprintf.texi: Likewise.
51742         * doc/posix-functions/vfwscanf.texi: Likewise.
51743         * doc/posix-functions/vswscanf.texi: Likewise.
51744         * doc/posix-functions/vwprintf.texi: Likewise.
51745         * doc/posix-functions/vwscanf.texi: Likewise.
51746         * doc/posix-functions/wcpcpy.texi: Likewise.
51747         * doc/posix-functions/wcpncpy.texi: Likewise.
51748         * doc/posix-functions/wcscasecmp.texi: Likewise.
51749         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51750         * doc/posix-functions/wcscoll_l.texi: Likewise.
51751         * doc/posix-functions/wcsdup.texi: Likewise.
51752         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51753         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51754         * doc/posix-functions/wcsnlen.texi: Likewise.
51755         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51756         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51757         * doc/posix-functions/wctrans_l.texi: Likewise.
51758         * doc/posix-functions/wctype_l.texi: Likewise.
51759         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51760         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51761         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51762         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51763         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51764         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51765         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51766         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51767         * doc/glibc-functions/wcschrnul.texi: Likewise.
51768         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51769         * doc/glibc-functions/wcstod_l.texi: Likewise.
51770         * doc/glibc-functions/wcstof_l.texi: Likewise.
51771         * doc/glibc-functions/wcstol_l.texi: Likewise.
51772         * doc/glibc-functions/wcstold_l.texi: Likewise.
51773         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51774         * doc/glibc-functions/wcstoq.texi: Likewise.
51775         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51776         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51777         * doc/glibc-functions/wcstouq.texi: Likewise.
51778         * doc/glibc-functions/wmempcpy.texi: Likewise.
51779
51780 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51781             Eric Blake  <ebb9@byu.net>
51782             Paolo Bonzini  <bonzini@gnu.org>
51783             Bruno Haible  <bruno@clisp.org>
51784
51785         Make c-stack work on Haiku.
51786         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51787         (c_stack_action): Use SA_ONSTACK flag.
51788
51789 2008-12-22  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51792
51793 2008-12-22  Bruno Haible  <bruno@clisp.org>
51794
51795         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51796         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51797         being overridden.
51798         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51799         New macros.
51800         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51802         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51803         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51804
51805 2008-12-22  Bruno Haible  <bruno@clisp.org>
51806
51807         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51808         from test code.
51809
51810 2008-12-22  Eric Blake  <ebb9@byu.net>
51811
51812         Avoid gcc warnings on cygwin.
51813         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51814         Avoid unused variable.
51815         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51816         Likewise.
51817
51818 2008-12-22  Bruno Haible  <bruno@clisp.org>
51819
51820         Remove HAVE_MBRTOWC conditionals.
51821         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51822         (mbscasecmp): Assume mbrtowc function.
51823         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51824         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51825         * lib/mbschr.c: Include mbuiter.h unconditionally.
51826         (mbschr): Assume mbrtowc function.
51827         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51828         (mbscspn): Assume mbrtowc function.
51829         * lib/mbslen.c: Include mbuiter.h unconditionally.
51830         (mbslen): Assume mbrtowc function.
51831         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51832         (mbsncasecmp): Assume mbrtowc function.
51833         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51834         (mbsnlen): Assume mbrtowc function.
51835         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51836         (mbspbrk): Assume mbrtowc function.
51837         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51838         (mbspcasecmp): Assume mbrtowc function.
51839         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51840         (mbsrchr): Assume mbrtowc function.
51841         * lib/mbssep.c: Include mbuiter.h unconditionally.
51842         (mbssep): Assume mbrtowc function.
51843         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51844         (mbsspn): Assume mbrtowc function.
51845         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51846         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51847         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51848         (mbstok_r): Assume mbrtowc function.
51849         * lib/propername.c: Include mbuiter.h unconditionally.
51850         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51851         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51852         (trim2): Assume mbrtowc function.
51853         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51854         (mbsnwidth): Assume mbrtowc function.
51855         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51856         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51857         fallback definitions.
51858         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51859
51860 2008-12-22  Bruno Haible  <bruno@clisp.org>
51861
51862         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51863
51864 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51865
51866         * modules/regex: Request emulations for the mb*/wc* functions we need.
51867         * m4/regex.m4: Don't look for those functions here.
51868         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51869
51870 2008-12-22  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51873
51874 2008-12-21  Bruno Haible  <bruno@clisp.org>
51875
51876         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51877         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51878         (Include): Remove conditionalization.
51879         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51880         (Include): Remove conditionalization.
51881         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51882         (Include): Remove conditionalization.
51883         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51884         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51885         * NEWS: Mention the change.
51886         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51887         via Sergey Poznyakoff <gray@gnu.org.ua>.
51888
51889 2008-12-21  Bruno Haible  <bruno@clisp.org>
51890
51891         * MODULES.html.sh (Extended multibyte and wide character utilities
51892         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51893         wcrtomb, wcsrtombs.
51894         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51895         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51896         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51897         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51898
51899 2008-12-21  Bruno Haible  <bruno@clisp.org>
51900
51901         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51902
51903 2008-12-21  Bruno Haible  <bruno@clisp.org>
51904
51905         * modules/wcsnrtombs-tests: New file.
51906         * tests/test-wcsnrtombs1.sh: New file.
51907         * tests/test-wcsnrtombs2.sh: New file.
51908         * tests/test-wcsnrtombs3.sh: New file.
51909         * tests/test-wcsnrtombs4.sh: New file.
51910         * tests/test-wcsnrtombs.c: New file.
51911
51912         New module 'wcsnrtombs'.
51913         * lib/wchar.in.h (wcsnrtombs): New declaration.
51914         * lib/wcsnrtombs.c: New file.
51915         * lib/wcsrtombs-state.c: New file.
51916         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51917         (internal_state): Remove variable.
51918         * m4/wcsnrtombs.m4: New file.
51919         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51920         compilation units.
51921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51922         HAVE_WCSNRTOMBS.
51923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51924         HAVE_WCSNRTOMBS.
51925         * modules/wcsnrtombs: New file.
51926         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51927         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51928
51929 2008-12-21  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/wcsrtombs-tests: New file.
51932         * tests/test-wcsrtombs1.sh: New file.
51933         * tests/test-wcsrtombs2.sh: New file.
51934         * tests/test-wcsrtombs3.sh: New file.
51935         * tests/test-wcsrtombs4.sh: New file.
51936         * tests/test-wcsrtombs.c: New file.
51937
51938         New module 'wcsrtombs'.
51939         * lib/wchar.in.h (wcsrtombs): New declaration.
51940         * lib/wcsrtombs.c: New file.
51941         * m4/wcsrtombs.m4: New file.
51942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51943         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51945         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51946         * modules/wcsrtombs: New file.
51947         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51948         bugs.
51949
51950 2008-12-21  Bruno Haible  <bruno@clisp.org>
51951
51952         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51953         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51954         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51955         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51956         if not correct.
51957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51958         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51959         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51960         m4/locale-zh.m4, m4/codeset.m4.
51961         * doc/posix-functions/wcrtomb.texi: Document the bug.
51962
51963 2008-12-21  Bruno Haible  <bruno@clisp.org>
51964
51965         Work around a btowc() bug on IRIX 6.5.
51966         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51967         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51968         REPLACE_WTOBC if not.
51969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51970         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51971         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51972
51973 2008-12-21  Bruno Haible  <bruno@clisp.org>
51974
51975         * modules/wcrtomb-tests: New file.
51976         * tests/test-wcrtomb.sh: New file.
51977         * tests/test-wcrtomb.c: New file.
51978
51979         New module 'wcrtomb'.
51980         * lib/wchar.in.h (wcrtomb): New declaration.
51981         * lib/wcrtomb.c: New file.
51982         * m4/wcrtomb.m4: New file.
51983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51984         HAVE_WCRTOMB.
51985         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51986         HAVE_WCRTOMB.
51987         * modules/wcrtomb: New file.
51988         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51989
51990 2008-12-21  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51993         * modules/mbsrtowcs (Files): Likewise.
51994         * modules/wctob (Files): Likewise.
51995         * modules/c-strcase-tests (Files): Likewise.
51996         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51997         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51998         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51999         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52000         * modules/vasnprintf-posix-tests (Files): Likewise.
52001
52002 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52003
52004         gitlog-to-changelog: pass all command-line arguments to git-log
52005         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52006         it is sometimes convenient to filter the commits in various ways.
52007         gitlog-to-changelog only allows --since to specify a start date,
52008         but git-log itself supports many other filtering mechanisms.
52009         At the moment, I want to filter by branch name.  Rather than
52010         adding a --branch option to gitlog-to-changelog, it seems more
52011         flexible to simply pass all options directly to git-log and let
52012         git do the work.  Notice that this effectively makes --since a
52013         redundant option for gitlog-to-changelog, but removing it would
52014         require current usage to change since calls would then require
52015         an additional '--'.
52016
52017 2008-12-21  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/mbsnrtowcs-tests: New file.
52020         * tests/test-mbsnrtowcs1.sh: New file.
52021         * tests/test-mbsnrtowcs2.sh: New file.
52022         * tests/test-mbsnrtowcs3.sh: New file.
52023         * tests/test-mbsnrtowcs4.sh: New file.
52024         * tests/test-mbsnrtowcs.c: New file.
52025
52026         New module 'mbsnrtowcs'.
52027         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52028         * lib/mbsnrtowcs.c: New file.
52029         * lib/mbsrtowcs-state.c: New file.
52030         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52031         (internal_state): Remove variable.
52032         * m4/mbsnrtowcs.m4: New file.
52033         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52034         compilation units.
52035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52036         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52037         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52038         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52039         * modules/mbsnrtowcs: New file.
52040         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52041         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52042         portability problem.
52043
52044 2008-12-21  Bruno Haible  <bruno@clisp.org>
52045
52046         Work around mbsrtowcs bug.
52047         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52048         (gl_FUNC_MBSRTOWCS): Invoke it.
52049         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52050         m4/locale-zh.m4.
52051         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52052
52053 2008-12-21  Bruno Haible  <bruno@clisp.org>
52054
52055         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52056
52057 2008-12-21  Bruno Haible  <bruno@clisp.org>
52058
52059         Update doc for AIX.
52060         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52061         16-bit wchar_t type.
52062         * doc/posix-functions/btowc.texi: Likewise.
52063         * doc/posix-functions/fgetwc.texi: Likewise.
52064         * doc/posix-functions/fgetws.texi: Likewise.
52065         * doc/posix-functions/fputwc.texi: Likewise.
52066         * doc/posix-functions/fputws.texi: Likewise.
52067         * doc/posix-functions/fwide.texi: Likewise.
52068         * doc/posix-functions/fwprintf.texi: Likewise.
52069         * doc/posix-functions/fwscanf.texi: Likewise.
52070         * doc/posix-functions/getwchar.texi: Likewise.
52071         * doc/posix-functions/getwc.texi: Likewise.
52072         * doc/posix-functions/iswalnum.texi: Likewise.
52073         * doc/posix-functions/iswalpha.texi: Likewise.
52074         * doc/posix-functions/iswblank.texi: Likewise.
52075         * doc/posix-functions/iswcntrl.texi: Likewise.
52076         * doc/posix-functions/iswctype.texi: Likewise.
52077         * doc/posix-functions/iswdigit.texi: Likewise.
52078         * doc/posix-functions/iswgraph.texi: Likewise.
52079         * doc/posix-functions/iswlower.texi: Likewise.
52080         * doc/posix-functions/iswprint.texi: Likewise.
52081         * doc/posix-functions/iswpunct.texi: Likewise.
52082         * doc/posix-functions/iswspace.texi: Likewise.
52083         * doc/posix-functions/iswupper.texi: Likewise.
52084         * doc/posix-functions/iswxdigit.texi: Likewise.
52085         * doc/posix-functions/mbrtowc.texi: Likewise.
52086         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52087         * doc/posix-functions/mbstowcs.texi: Likewise.
52088         * doc/posix-functions/mbtowc.texi: Likewise.
52089         * doc/posix-functions/putwchar.texi: Likewise.
52090         * doc/posix-functions/putwc.texi: Likewise.
52091         * doc/posix-functions/swprintf.texi: Likewise.
52092         * doc/posix-functions/tolower.texi: Likewise.
52093         * doc/posix-functions/toupper.texi: Likewise.
52094         * doc/posix-functions/towctrans.texi: Likewise.
52095         * doc/posix-functions/ungetwc.texi: Likewise.
52096         * doc/posix-functions/vswprintf.texi: Likewise.
52097         * doc/posix-functions/wcrtomb.texi: Likewise.
52098         * doc/posix-functions/wcscat.texi: Likewise.
52099         * doc/posix-functions/wcschr.texi: Likewise.
52100         * doc/posix-functions/wcscmp.texi: Likewise.
52101         * doc/posix-functions/wcscoll.texi: Likewise.
52102         * doc/posix-functions/wcscpy.texi: Likewise.
52103         * doc/posix-functions/wcscspn.texi: Likewise.
52104         * doc/posix-functions/wcsftime.texi: Likewise.
52105         * doc/posix-functions/wcslen.texi: Likewise.
52106         * doc/posix-functions/wcsncat.texi: Likewise.
52107         * doc/posix-functions/wcsncmp.texi: Likewise.
52108         * doc/posix-functions/wcsncpy.texi: Likewise.
52109         * doc/posix-functions/wcspbrk.texi: Likewise.
52110         * doc/posix-functions/wcsrchr.texi: Likewise.
52111         * doc/posix-functions/wcsrtombs.texi: Likewise.
52112         * doc/posix-functions/wcsspn.texi: Likewise.
52113         * doc/posix-functions/wcsstr.texi: Likewise.
52114         * doc/posix-functions/wcstod.texi: Likewise.
52115         * doc/posix-functions/wcstof.texi: Likewise.
52116         * doc/posix-functions/wcstoimax.texi: Likewise.
52117         * doc/posix-functions/wcstok.texi: Likewise.
52118         * doc/posix-functions/wcstold.texi: Likewise.
52119         * doc/posix-functions/wcstoll.texi: Likewise.
52120         * doc/posix-functions/wcstol.texi: Likewise.
52121         * doc/posix-functions/wcstombs.texi: Likewise.
52122         * doc/posix-functions/wcstoull.texi: Likewise.
52123         * doc/posix-functions/wcstoul.texi: Likewise.
52124         * doc/posix-functions/wcstoumax.texi: Likewise.
52125         * doc/posix-functions/wcswidth.texi: Likewise.
52126         * doc/posix-functions/wcsxfrm.texi: Likewise.
52127         * doc/posix-functions/wctob.texi: Likewise.
52128         * doc/posix-functions/wctomb.texi: Likewise.
52129         * doc/posix-functions/wctrans.texi: Likewise.
52130         * doc/posix-functions/wctype.texi: Likewise.
52131         * doc/posix-functions/wcwidth.texi: Likewise.
52132         * doc/posix-functions/wmemchr.texi: Likewise.
52133         * doc/posix-functions/wmemcmp.texi: Likewise.
52134         * doc/posix-functions/wmemcpy.texi: Likewise.
52135         * doc/posix-functions/wmemmove.texi: Likewise.
52136         * doc/posix-functions/wmemset.texi: Likewise.
52137         * doc/posix-functions/wprintf.texi: Likewise.
52138         * doc/posix-functions/wscanf.texi: Likewise.
52139
52140 2008-12-21  Bruno Haible  <bruno@clisp.org>
52141
52142         Update doc for HP-UX 11.11.
52143         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52144         in HP-UX version 11.00, not in all versions of HP-UX 11.
52145         * doc/posix-functions/fwide.texi: Likewise.
52146         * doc/posix-functions/fwprintf.texi: Likewise.
52147         * doc/posix-functions/fwscanf.texi: Likewise.
52148         * doc/posix-functions/inet_ntop.texi: Likewise.
52149         * doc/posix-functions/inet_pton.texi: Likewise.
52150         * doc/posix-functions/mbrlen.texi: Likewise.
52151         * doc/posix-functions/mbrtowc.texi: Likewise.
52152         * doc/posix-functions/mbsinit.texi: Likewise.
52153         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52154         * doc/posix-functions/swprintf.texi: Likewise.
52155         * doc/posix-functions/swscanf.texi: Likewise.
52156         * doc/posix-functions/towctrans.texi: Likewise.
52157         * doc/posix-functions/vfwprintf.texi: Likewise.
52158         * doc/posix-functions/vswprintf.texi: Likewise.
52159         * doc/posix-functions/vwprintf.texi: Likewise.
52160         * doc/posix-functions/wcrtomb.texi: Likewise.
52161         * doc/posix-functions/wcsrtombs.texi: Likewise.
52162         * doc/posix-functions/wcsstr.texi: Likewise.
52163         * doc/posix-functions/wctob.texi: Likewise.
52164         * doc/posix-functions/wctrans.texi: Likewise.
52165         * doc/posix-functions/wmemchr.texi: Likewise.
52166         * doc/posix-functions/wmemcmp.texi: Likewise.
52167         * doc/posix-functions/wmemcpy.texi: Likewise.
52168         * doc/posix-functions/wmemmove.texi: Likewise.
52169         * doc/posix-functions/wmemset.texi: Likewise.
52170         * doc/posix-functions/wprintf.texi: Likewise.
52171         * doc/posix-functions/wscanf.texi: Likewise.
52172
52173 2008-12-21  Bruno Haible  <bruno@clisp.org>
52174
52175         Work around a portability problem.
52176         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52177         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52178
52179 2008-12-20  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52182         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52183         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52185         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52186
52187         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52188         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52189         set.
52190         (GNULIB_defined_mbstate_t): New macro.
52191         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52192         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52193         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52194         reuses the system's mbrtowc function but works around the bugs.
52195         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52196         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52197         macros.
52198         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52199         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52200         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52202         REPLACE_MBSINIT if mbsinit needs to be overridden.
52203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52204         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52205         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52206         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52207         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52208         m4/locale-zh.m4.
52209         (Depends): Add mbsinit.
52210         * modules/mbsinit (Depends): Add mbrtowc.
52211         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52212
52213 2008-12-20  Bruno Haible  <bruno@clisp.org>
52214
52215         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52216         so that there are no conversion errors on AIX.
52217         * tests/test-mbsrtowcs.c (main): LIkewise.
52218
52219 2008-12-20  Bruno Haible  <bruno@clisp.org>
52220
52221         Work around wctob bug on Solaris <= 9.
52222         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52223         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52225         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52226         * modules/wctob (Files): Add m4/locale-fr.m4.
52227         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52228
52229 2008-12-20  Bruno Haible  <bruno@clisp.org>
52230
52231         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52232         /dev/null.
52233         * tests/test-select-in.sh: Likewise.
52234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52235
52236 2008-12-20  Bruno Haible  <bruno@clisp.org>
52237
52238         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52239         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52240         Cygwin 1.5.x.
52241
52242 2008-12-20  Bruno Haible  <bruno@clisp.org>
52243
52244         Ensure mbstate_t is defined on HP-UX 11.11.
52245         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52246         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52247         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52248         AC_USE_SYSTEM_EXTENSIONS.
52249         * modules/fnmatch (Depends-on): Add extensions.
52250         * modules/mbrlen (Depends-on): Likewise.
52251         * modules/mbrtowc (Depends-on): Likewise.
52252         * modules/mbsinit (Depends-on): Likewise.
52253         * modules/mbsrtowcs (Depends-on): Likewise.
52254         * modules/mbswidth (Depends-on): Likewise.
52255         * modules/quotearg (Depends-on): Likewise.
52256         * modules/strftime (Depends-on): Likewise.
52257
52258 2008-12-20  Bruno Haible  <bruno@clisp.org>
52259
52260         Ensure wctob is declared on IRIX 6.5.
52261         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52262         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52263         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52265         of HAVE_WCTOB.
52266         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52267         HAVE_WCTOB.
52268         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52269
52270 2008-12-19  Bruno Haible  <bruno@clisp.org>
52271
52272         * modules/mbsrtowcs-tests: New file.
52273         * tests/test-mbsrtowcs1.sh: New file.
52274         * tests/test-mbsrtowcs2.sh: New file.
52275         * tests/test-mbsrtowcs3.sh: New file.
52276         * tests/test-mbsrtowcs4.sh: New file.
52277         * tests/test-mbsrtowcs.c: New file.
52278
52279         New module 'mbsrtowcs'.
52280         * lib/wchar.in.h (mbsrtowcs): New declaration.
52281         * lib/mbsrtowcs.c: New file.
52282         * m4/mbsrtowcs.m4: New file.
52283         * modules/mbsrtowcs: New file.
52284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52285         HAVE_MBSRTOWCS.
52286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52287         HAVE_MBSRTOWCS.
52288         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52289
52290 2008-12-19  Bruno Haible  <bruno@clisp.org>
52291
52292         New module 'mbrlen'.
52293         * lib/wchar.in.h (mbrlen): New declaration.
52294         * lib/mbrlen.c: New file.
52295         * m4/mbrlen.m4: New file.
52296         * modules/mbrlen: New file.
52297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52298         HAVE_MBRLEN.
52299         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52300         HAVE_MBRLEN.
52301         * doc/posix-functions/mbrlen.texi: Document the new module.
52302
52303 2008-12-19  Bruno Haible  <bruno@clisp.org>
52304
52305         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52306         * modules/mbrtowc (Depends-on): Add verify.
52307         Suggested by Paul Eggert.
52308
52309 2008-12-18  Bruno Haible  <bruno@clisp.org>
52310
52311         * modules/mbsinit-tests: New file.
52312         * tests/test-mbsinit.sh: New file.
52313         * tests/test-mbsinit.c: New file.
52314
52315 2008-12-18  Bruno Haible  <bruno@clisp.org>
52316
52317         * modules/mbrtowc-tests: New file.
52318         * tests/test-mbrtowc1.sh: New file.
52319         * tests/test-mbrtowc2.sh: New file.
52320         * tests/test-mbrtowc3.sh: New file.
52321         * tests/test-mbrtowc4.sh: New file.
52322         * tests/test-mbrtowc.c: New file.
52323
52324         New module 'mbrtowc'.
52325         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52326         mbsinit and mbrtowc.
52327         (mbrtowc): New declaration.
52328         * lib/mbrtowc.c: New file.
52329         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52330         * modules/mbrtowc: New file.
52331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52332         HAVE_MBRTOWC.
52333         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52334         HAVE_MBRTOWC.
52335         * doc/posix-functions/mbrtowc.texi: Document the new module.
52336
52337 2008-12-18  Bruno Haible  <bruno@clisp.org>
52338
52339         New module 'wctob'.
52340         * lib/wchar.in.h (wctob): New declaration.
52341         * lib/wctob.c: New file.
52342         * m4/wctob.m4: New file.
52343         * modules/wctob: New file.
52344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52345         HAVE_WCTOB.
52346         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52347         * doc/posix-functions/wctob.texi: Document the new module.
52348
52349 2008-12-18  Bruno Haible  <bruno@clisp.org>
52350
52351         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52352         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52353
52354 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52355
52356         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52357         G. Christensen" <tgc@jupiterrise.com>.
52358
52359         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52360         G. Christensen" <tgc@jupiterrise.com>.
52361
52362         * lib/flock.c: Need to include string.h.  Reported by "Tom
52363         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52364         <ebb9@byu.net>.
52365
52366 2008-12-18  Bruno Haible  <bruno@clisp.org>
52367
52368         * m4/locale-ja.m4: New file, from GNU gettext.
52369
52370 2008-12-17  Bruno Haible  <bruno@clisp.org>
52371
52372         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52373         Suggested by Eric Blake.
52374
52375 2008-12-17  Bruno Haible  <bruno@clisp.org>
52376
52377         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52378
52379 2008-12-17  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52382         * modules/mbsinit (Depends-on): Add verify.
52383         Suggested by Paul Eggert.
52384
52385 2008-12-17  Bruno Haible  <bruno@clisp.org>
52386
52387         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52388         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52389         gl_FUNC_MBRTOWC.
52390         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52391         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52392         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52393         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52394         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52395         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52396         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52397         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52398         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52399         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52400         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52401         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52402         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52403         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52404         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52405         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52406         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52407         * modules/trim (configure.ac): Likewise.
52408
52409 2008-12-17  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/btowc-tests: New file.
52412         * tests/test-btowc1.sh: New file.
52413         * tests/test-btowc2.sh: New file.
52414         * tests/test-btowc.c: New file.
52415
52416         New module 'btowc'.
52417         * lib/wchar.in.h (btowc): New declaration.
52418         * lib/btowc.c: New file.
52419         * m4/btowc.m4: New file.
52420         * modules/btowc: New file.
52421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52422         HAVE_BTOWC.
52423         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52424         * doc/posix-functions/btowc.texi: Document the new module.
52425
52426 2008-12-17  Bruno Haible  <bruno@clisp.org>
52427
52428         New module 'mbsinit'.
52429         * lib/wchar.in.h (mbsinit): New declaration.
52430         * lib/mbsinit.c: New file.
52431         * m4/mbsinit.m4: New file.
52432         * modules/mbsinit: New file.
52433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52434         HAVE_MBSINIT.
52435         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52436         HAVE_MBSINIT.
52437         * doc/posix-functions/mbsinit.texi: Document the new module.
52438
52439 2008-12-16  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/unistd.in.h: Add comment.
52442         * tests/test-environ.c: Don't include <stdlib.h>.
52443
52444 2008-12-16  Bruno Haible  <bruno@clisp.org>
52445
52446         * lib/parse-duration.h (parse_duration): Document return value
52447         convention.
52448         * lib/parse-duration.c: Include specification header first. Add
52449         comments.
52450         (_): Remove macro.
52451         (parse_year_month_day, parse_hour_minute_second): Move side effects
52452         outside of strchr call.
52453         (parse_non_iso8601): Move side effects outside of isspace call.
52454         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52455         call.
52456
52457 2008-12-16  Bruno Haible  <bruno@clisp.org>
52458
52459         * tests/test-parse-duration.sh: Produce no output when the test
52460         succeeds.
52461
52462 2008-12-16  Bruno Haible  <bruno@clisp.org>
52463
52464         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52465         expressions.
52466
52467 2008-12-15  Bruno Haible  <bruno@clisp.org>
52468
52469         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52470         * doc/glibc-functions/flistxattr.texi: Likewise.
52471         * doc/glibc-functions/fopencookie.texi: Likewise.
52472         * doc/glibc-functions/fremovexattr.texi: Likewise.
52473         * doc/glibc-functions/fsetxattr.texi: Likewise.
52474         * doc/glibc-functions/getxattr.texi: Likewise.
52475         * doc/glibc-functions/lgetxattr.texi: Likewise.
52476         * doc/glibc-functions/listxattr.texi: Likewise.
52477         * doc/glibc-functions/llistxattr.texi: Likewise.
52478         * doc/glibc-functions/lremovexattr.texi: Likewise.
52479         * doc/glibc-functions/lsetxattr.texi: Likewise.
52480         * doc/glibc-functions/removexattr.texi: Likewise.
52481         * doc/glibc-functions/setxattr.texi: Likewise.
52482         * doc/posix-functions/open_memstream.texi: Likewise.
52483
52484 2008-12-15  Eric Blake  <ebb9@byu.net>
52485
52486         Update doc for cygwin 1.7.
52487         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52488         functions.
52489         * doc/posix-functions/fchmodat.texi: Likewise.
52490         * doc/posix-functions/fchownat.texi: Likewise.
52491         * doc/posix-functions/fdopendir.texi: Likewise.
52492         * doc/posix-functions/fmemopen.texi: Likewise.
52493         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52494         * doc/posix-functions/fstatat.texi: Likewise.
52495         * doc/posix-functions/futimens.texi: Likewise.
52496         * doc/posix-functions/gai_strerror.texi: Likewise.
52497         * doc/posix-functions/getaddrinfo.texi: Likewise.
52498         * doc/posix-functions/getnameinfo.texi: Likewise.
52499         * doc/posix-functions/if_freenameindex.texi: Likewise.
52500         * doc/posix-functions/if_indextoname.texi: Likewise.
52501         * doc/posix-functions/if_nameindex.texi: Likewise.
52502         * doc/posix-functions/if_nametoindex.texi: Likewise.
52503         * doc/posix-functions/insque.texi: Likewise.
52504         * doc/posix-functions/linkat.texi: Likewise.
52505         * doc/posix-functions/llrint.texi: Likewise.
52506         * doc/posix-functions/llrintf.texi: Likewise.
52507         * doc/posix-functions/llrintl.texi: Likewise.
52508         * doc/posix-functions/lockf.texi: Likewise.
52509         * doc/posix-functions/lrintl.texi: Likewise.
52510         * doc/posix-functions/mkdirat.texi: Likewise.
52511         * doc/posix-functions/mkfifoat.texi: Likewise.
52512         * doc/posix-functions/mknodat.texi: Likewise.
52513         * doc/posix-functions/mq_close.texi: Likewise.
52514         * doc/posix-functions/mq_getattr.texi: Likewise.
52515         * doc/posix-functions/mq_notify.texi: Likewise.
52516         * doc/posix-functions/mq_open.texi: Likewise.
52517         * doc/posix-functions/mq_receive.texi: Likewise.
52518         * doc/posix-functions/mq_send.texi: Likewise.
52519         * doc/posix-functions/mq_setattr.texi: Likewise.
52520         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52521         * doc/posix-functions/mq_timedsend.texi: Likewise.
52522         * doc/posix-functions/mq_unlink.texi: Likewise.
52523         * doc/posix-functions/open_memstream.texi: Likewise.
52524         * doc/posix-functions/openat.texi: Likewise.
52525         * doc/posix-functions/posix_fadvise.texi: Likewise.
52526         * doc/posix-functions/posix_fallocate.texi: Likewise.
52527         * doc/posix-functions/posix_madvise.texi: Likewise.
52528         * doc/posix-functions/posix_memalign.texi: Likewise.
52529         * doc/posix-functions/posix_openpt.texi: Likewise.
52530         * doc/posix-functions/readlinkat.texi: Likewise.
52531         * doc/posix-functions/remque.texi: Likewise.
52532         * doc/posix-functions/renameat.texi: Likewise.
52533         * doc/posix-functions/rintl.texi: Likewise.
52534         * doc/posix-functions/sem_unlink.texi: Likewise.
52535         * doc/posix-functions/shm_open.texi: Likewise.
52536         * doc/posix-functions/shm_unlink.texi: Likewise.
52537         * doc/posix-functions/signgam.texi: Likewise.
52538         * doc/posix-functions/sigset.texi: Likewise.
52539         * doc/posix-functions/stpcpy.texi: Likewise.
52540         * doc/posix-functions/stpncpy.texi: Likewise.
52541         * doc/posix-functions/strerror.texi: Likewise.
52542         * doc/posix-functions/strtod.texi: Likewise.
52543         * doc/posix-functions/symlinkat.texi: Likewise.
52544         * doc/posix-functions/unlinkat.texi: Likewise.
52545         * doc/posix-functions/utimensat.texi: Likewise.
52546         * doc/glibc-functions/bindresvport.texi: Likewise.
52547         * doc/glibc-functions/dn_expand.texi: Likewise.
52548         * doc/glibc-functions/exp10.texi: Likewise.
52549         * doc/glibc-functions/exp10f.texi: Likewise.
52550         * doc/glibc-functions/fgetxattr.texi: Likewise.
52551         * doc/glibc-functions/flistxattr.texi: Likewise.
52552         * doc/glibc-functions/fopencookie.texi: Likewise.
52553         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52554         * doc/glibc-functions/fremovexattr.texi: Likewise.
52555         * doc/glibc-functions/fsetxattr.texi: Likewise.
52556         * doc/glibc-functions/getifaddrs.texi: Likewise.
52557         * doc/glibc-functions/getxattr.texi: Likewise.
52558         * doc/glibc-functions/lgetxattr.texi: Likewise.
52559         * doc/glibc-functions/listxattr.texi: Likewise.
52560         * doc/glibc-functions/llistxattr.texi: Likewise.
52561         * doc/glibc-functions/lremovexattr.texi: Likewise.
52562         * doc/glibc-functions/lsetxattr.texi: Likewise.
52563         * doc/glibc-functions/pow10.texi: Likewise.
52564         * doc/glibc-functions/pow10f.texi: Likewise.
52565         * doc/glibc-functions/rcmd_af.texi: Likewise.
52566         * doc/glibc-functions/removexattr.texi: Likewise.
52567         * doc/glibc-functions/res_init.texi: Likewise.
52568         * doc/glibc-functions/res_mkquery.texi: Likewise.
52569         * doc/glibc-functions/res_query.texi: Likewise.
52570         * doc/glibc-functions/res_querydomain.texi: Likewise.
52571         * doc/glibc-functions/res_send.texi: Likewise.
52572         * doc/glibc-functions/rresvport_af.texi: Likewise.
52573         * doc/glibc-functions/setxattr.texi: Likewise.
52574         * doc/glibc-functions/strcasestr.texi: Likewise.
52575
52576 2008-12-15  Bruno Haible  <bruno@clisp.org>
52577
52578         Fix compilation error on OSF/1 4.0.
52579         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52580         <sys/time.h>, simply delegate to the system header.
52581         Reported by Daniel Richard G. <oss@teragram.com>.
52582
52583 2008-12-15  Bruno Haible  <bruno@clisp.org>
52584
52585         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52586         * doc/posix-functions/fchmodat.texi: Likewise.
52587         * doc/posix-functions/fchownat.texi: Likewise.
52588         * doc/posix-functions/fdopendir.texi: Likewise.
52589         * doc/posix-functions/fstatat.texi: Likewise.
52590         * doc/posix-functions/mkdirat.texi: Likewise.
52591         * doc/posix-functions/unlinkat.texi: Likewise.
52592
52593 2008-12-14  Bruno Haible  <bruno@clisp.org>
52594
52595         Update doc for POSIX:2008.
52596         * doc/posix-functions/faccessat.texi: New file.
52597         * doc/posix-functions/fchmodat.texi: New file.
52598         * doc/posix-functions/fchownat.texi: New file.
52599         * doc/posix-functions/fdopendir.texi: New file.
52600         * doc/posix-functions/fstatat.texi: New file.
52601         * doc/posix-functions/futimens.texi: New file.
52602         * doc/posix-functions/linkat.texi: New file.
52603         * doc/posix-functions/mkdirat.texi: New file.
52604         * doc/posix-functions/mkfifoat.texi: New file.
52605         * doc/posix-functions/mknodat.texi: New file.
52606         * doc/posix-functions/open_wmemstream.texi: New file.
52607         * doc/posix-functions/openat.texi: New file.
52608         * doc/posix-functions/psiginfo.texi: New file.
52609         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52610         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52611         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52612         * doc/posix-functions/readlinkat.texi: New file.
52613         * doc/posix-functions/renameat.texi: New file.
52614         * doc/posix-functions/strerror_l.texi: New file.
52615         * doc/posix-functions/symlinkat.texi: New file.
52616         * doc/posix-functions/unlinkat.texi: New file.
52617         * doc/posix-functions/utimensat.texi: New file.
52618         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52619
52620 2008-12-14  Bruno Haible  <bruno@clisp.org>
52621
52622         Update doc for POSIX:2008.
52623         * doc/posix-functions/alphasort.texi: Renamed from
52624         doc/glibc-functions/alphasort.texi.
52625         * doc/posix-functions/dirfd.texi: Renamed from
52626         doc/glibc-functions/dirfd.texi.
52627         * doc/posix-functions/dprintf.texi: Renamed from
52628         doc/glibc-functions/dprintf.texi.
52629         * doc/posix-functions/duplocale.texi: Renamed from
52630         doc/glibc-functions/duplocale.texi.
52631         * doc/posix-functions/fexecve.texi: Renamed from
52632         doc/glibc-functions/fexecve.texi.
52633         * doc/posix-functions/fmemopen.texi: Renamed from
52634         doc/glibc-functions/fmemopen.texi.
52635         * doc/posix-functions/freelocale.texi: Renamed from
52636         doc/glibc-functions/freelocale.texi.
52637         * doc/posix-functions/getdate_err.texi: Renamed from
52638         doc/glibc-functions/getdate_err.texi.
52639         * doc/posix-functions/isalnum_l.texi: Renamed from
52640         doc/glibc-functions/isalnum_l.texi.
52641         * doc/posix-functions/isalpha_l.texi: Renamed from
52642         doc/glibc-functions/isalpha_l.texi.
52643         * doc/posix-functions/isblank_l.texi: Renamed from
52644         doc/glibc-functions/isblank_l.texi.
52645         * doc/posix-functions/iscntrl_l.texi: Renamed from
52646         doc/glibc-functions/iscntrl_l.texi.
52647         * doc/posix-functions/isdigit_l.texi: Renamed from
52648         doc/glibc-functions/isdigit_l.texi.
52649         * doc/posix-functions/isgraph_l.texi: Renamed from
52650         doc/glibc-functions/isgraph_l.texi.
52651         * doc/posix-functions/islower_l.texi: Renamed from
52652         doc/glibc-functions/islower_l.texi.
52653         * doc/posix-functions/isprint_l.texi: Renamed from
52654         doc/glibc-functions/isprint_l.texi.
52655         * doc/posix-functions/ispunct_l.texi: Renamed from
52656         doc/glibc-functions/ispunct_l.texi.
52657         * doc/posix-functions/isspace_l.texi: Renamed from
52658         doc/glibc-functions/isspace_l.texi.
52659         * doc/posix-functions/isupper_l.texi: Renamed from
52660         doc/glibc-functions/isupper_l.texi.
52661         * doc/posix-functions/iswalnum_l.texi: Renamed from
52662         doc/glibc-functions/iswalnum_l.texi.
52663         * doc/posix-functions/iswalpha_l.texi: Renamed from
52664         doc/glibc-functions/iswalpha_l.texi.
52665         * doc/posix-functions/iswblank_l.texi: Renamed from
52666         doc/glibc-functions/iswblank_l.texi.
52667         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52668         doc/glibc-functions/iswcntrl_l.texi.
52669         * doc/posix-functions/iswctype_l.texi: Renamed from
52670         doc/glibc-functions/iswctype_l.texi.
52671         * doc/posix-functions/iswdigit_l.texi: Renamed from
52672         doc/glibc-functions/iswdigit_l.texi.
52673         * doc/posix-functions/iswgraph_l.texi: Renamed from
52674         doc/glibc-functions/iswgraph_l.texi.
52675         * doc/posix-functions/iswlower_l.texi: Renamed from
52676         doc/glibc-functions/iswlower_l.texi.
52677         * doc/posix-functions/iswprint_l.texi: Renamed from
52678         doc/glibc-functions/iswprint_l.texi.
52679         * doc/posix-functions/iswpunct_l.texi: Renamed from
52680         doc/glibc-functions/iswpunct_l.texi.
52681         * doc/posix-functions/iswspace_l.texi: Renamed from
52682         doc/glibc-functions/iswspace_l.texi.
52683         * doc/posix-functions/iswupper_l.texi: Renamed from
52684         doc/glibc-functions/iswupper_l.texi.
52685         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52686         doc/glibc-functions/iswxdigit_l.texi.
52687         * doc/posix-functions/isxdigit_l.texi: Renamed from
52688         doc/glibc-functions/isxdigit_l.texi.
52689         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52690         doc/glibc-functions/mbsnrtowcs.texi.
52691         * doc/posix-functions/mkdtemp.texi: Renamed from
52692         doc/glibc-functions/mkdtemp.texi.
52693         * doc/posix-functions/newlocale.texi: Renamed from
52694         doc/glibc-functions/newlocale.texi.
52695         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52696         doc/glibc-functions/nl_langinfo_l.texi.
52697         * doc/posix-functions/open_memstream.texi: Renamed from
52698         doc/glibc-functions/open_memstream.texi.
52699         * doc/posix-functions/opterr.texi: Renamed from
52700         doc/glibc-functions/opterr.texi.
52701         * doc/posix-functions/optind.texi: Renamed from
52702         doc/glibc-functions/optind.texi.
52703         * doc/posix-functions/optopt.texi: Renamed from
52704         doc/glibc-functions/optopt.texi.
52705         * doc/posix-functions/psignal.texi: Renamed from
52706         doc/glibc-functions/psignal.texi.
52707         * doc/posix-functions/scandir.texi: Renamed from
52708         doc/glibc-functions/scandir.texi.
52709         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52710         doc/glibc-functions/sched_get_priority_min.texi.
52711         * doc/posix-functions/signgam.texi: Renamed from
52712         doc/glibc-functions/signgam.texi.
52713         * doc/posix-functions/stpcpy.texi: Renamed from
52714         doc/glibc-functions/stpcpy.texi.
52715         * doc/posix-functions/stpncpy.texi: Renamed from
52716         doc/glibc-functions/stpncpy.texi.
52717         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52718         doc/glibc-functions/strcasecmp_l.texi.
52719         * doc/posix-functions/strcoll_l.texi: Renamed from
52720         doc/glibc-functions/strcoll_l.texi.
52721         * doc/posix-functions/strfmon_l.texi: Renamed from
52722         doc/glibc-functions/strfmon_l.texi.
52723         * doc/posix-functions/strftime_l.texi: Renamed from
52724         doc/glibc-functions/strftime_l.texi.
52725         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52726         doc/glibc-functions/strncasecmp_l.texi.
52727         * doc/posix-functions/strndup.texi: Renamed from
52728         doc/glibc-functions/strndup.texi.
52729         * doc/posix-functions/strnlen.texi: Renamed from
52730         doc/glibc-functions/strnlen.texi.
52731         * doc/posix-functions/strsignal.texi: Renamed from
52732         doc/glibc-functions/strsignal.texi.
52733         * doc/posix-functions/strxfrm_l.texi: Renamed from
52734         doc/glibc-functions/strxfrm_l.texi.
52735         * doc/posix-functions/timer_gettime.texi: Renamed from
52736         doc/glibc-functions/timer_gettime.texi.
52737         * doc/posix-functions/tolower_l.texi: Renamed from
52738         doc/glibc-functions/tolower_l.texi.
52739         * doc/posix-functions/toupper_l.texi: Renamed from
52740         doc/glibc-functions/toupper_l.texi.
52741         * doc/posix-functions/towctrans_l.texi: Renamed from
52742         doc/glibc-functions/towctrans_l.texi.
52743         * doc/posix-functions/towlower_l.texi: Renamed from
52744         doc/glibc-functions/towlower_l.texi.
52745         * doc/posix-functions/towupper_l.texi: Renamed from
52746         doc/glibc-functions/towupper_l.texi.
52747         * doc/posix-functions/uselocale.texi: Renamed from
52748         doc/glibc-functions/uselocale.texi.
52749         * doc/posix-functions/vdprintf.texi: Renamed from
52750         doc/glibc-functions/vdprintf.texi.
52751         * doc/posix-functions/wcpcpy.texi:
52752         Renamed from doc/glibc-functions/wcpcpy.texi.
52753         * doc/posix-functions/wcpncpy.texi: Renamed from
52754         doc/glibc-functions/wcpncpy.texi.
52755         * doc/posix-functions/wcscasecmp.texi: Renamed from
52756         doc/glibc-functions/wcscasecmp.texi.
52757         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52758         doc/glibc-functions/wcscasecmp_l.texi.
52759         * doc/posix-functions/wcscoll_l.texi: Renamed from
52760         doc/glibc-functions/wcscoll_l.texi.
52761         * doc/posix-functions/wcsdup.texi: Renamed from
52762         doc/glibc-functions/wcsdup.texi.
52763         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52764         doc/glibc-functions/wcsncasecmp.texi.
52765         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52766         doc/glibc-functions/wcsncasecmp_l.texi.
52767         * doc/posix-functions/wcsnlen.texi: Renamed from
52768         doc/glibc-functions/wcsnlen.texi.
52769         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52770         doc/glibc-functions/wcsnrtombs.texi.
52771         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52772         doc/glibc-functions/wcsxfrm_l.texi.
52773         * doc/posix-functions/wctrans_l.texi: Renamed from
52774         doc/glibc-functions/wctrans_l.texi.
52775         * doc/posix-functions/wctype_l.texi: Renamed from
52776         doc/glibc-functions/wctype_l.texi.
52777         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52778         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52779         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52780         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52781         these subsections.
52782         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52783         Remove sections.
52784
52785 2008-12-14  Bruno Haible  <bruno@clisp.org>
52786
52787         Update doc for POSIX:2008.
52788         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52789
52790 2008-12-14  Bruno Haible  <bruno@clisp.org>
52791
52792         Update doc for POSIX:2008.
52793         * doc/pastposix-functions/bcmp.texi: Renamed from
52794         doc/posix-functions/bcmp.texi.
52795         * doc/pastposix-functions/bcopy.texi: Renamed from
52796         doc/posix-functions/bcopy.texi.
52797         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52798         doc/posix-functions/bsd_signal.texi.
52799         * doc/pastposix-functions/bzero.texi: Renamed from
52800         doc/posix-functions/bzero.texi.
52801         * doc/pastposix-functions/ecvt.texi: Renamed from
52802         doc/posix-functions/ecvt.texi.
52803         * doc/pastposix-functions/fcvt.texi: Renamed from
52804         doc/posix-functions/fcvt.texi.
52805         * doc/pastposix-functions/ftime.texi: Renamed from
52806         doc/posix-functions/ftime.texi.
52807         * doc/pastposix-functions/gcvt.texi: Renamed from
52808         doc/posix-functions/gcvt.texi.
52809         * doc/pastposix-functions/getcontext.texi: Renamed from
52810         doc/posix-functions/getcontext.texi.
52811         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52812         doc/posix-functions/gethostbyaddr.texi.
52813         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52814         doc/posix-functions/gethostbyname.texi.
52815         * doc/pastposix-functions/getwd.texi: Renamed from
52816         doc/posix-functions/getwd.texi.
52817         * doc/pastposix-functions/h_errno.texi: Renamed from
52818         doc/posix-functions/h_errno.texi.
52819         * doc/pastposix-functions/index.texi: Renamed from
52820         doc/posix-functions/index.texi.
52821         * doc/pastposix-functions/makecontext.texi: Renamed from
52822         doc/posix-functions/makecontext.texi.
52823         * doc/pastposix-functions/mktemp.texi: Renamed from
52824         doc/posix-functions/mktemp.texi.
52825         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52826         doc/posix-functions/pthread_attr_getstackaddr.texi.
52827         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52828         doc/posix-functions/pthread_attr_setstackaddr.texi.
52829         * doc/pastposix-functions/rindex.texi: Renamed from
52830         doc/posix-functions/rindex.texi.
52831         * doc/pastposix-functions/scalb.texi: Renamed from
52832         doc/posix-functions/scalb.texi.
52833         * doc/pastposix-functions/setcontext.texi: Renamed from
52834         doc/posix-functions/setcontext.texi.
52835         * doc/pastposix-functions/swapcontext.texi: Renamed from
52836         doc/posix-functions/swapcontext.texi.
52837         * doc/pastposix-functions/ualarm.texi: Renamed from
52838         doc/posix-functions/ualarm.texi.
52839         * doc/pastposix-functions/usleep.texi: Renamed from
52840         doc/posix-functions/usleep.texi.
52841         * doc/pastposix-functions/vfork.texi: Renamed from
52842         doc/posix-functions/vfork.texi.
52843         * doc/pastposix-functions/wcswcs.texi: Renamed from
52844         doc/posix-functions/wcswcs.texi.
52845         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52846         (Function Substitutes): Update.
52847
52848 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52849
52850         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52851         m4/strerror.m4.
52852
52853 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52854             Bruno Haible  <bruno@clisp.org>
52855
52856         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52857
52858 2008-12-13  Bruno Haible  <bruno@clisp.org>
52859
52860         * modules/strtoull (Depends-on): Remove unistd.
52861
52862 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52863
52864         * modules/strtoull (Depends-on): Add stdlib.
52865
52866 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52867
52868         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52869
52870 2008-12-10  Jim Meyering  <meyering@redhat.com>
52871
52872         gl_ASSERT: don't say assertions are disabled when they're not
52873         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52874         "checking whether to enable assertions... no", when they are in
52875         fact enabled.  This is solely a bug in the output of configure.
52876         In spite of saying "no", NDEBUG was not defined in that case.
52877         Also, as noted by Eric Blake, leave assertions enabled upon
52878         --enable-assert=INVALID.
52879
52880 2008-12-10  Bruno Haible  <bruno@clisp.org>
52881
52882         Change MODULES.html to refer to POSIX:2008 where possible.
52883         * MODULES.html.sh (POSIX2008_URL): New variable.
52884         (posix_headers): Remove sys/timeb, ucontext.
52885         (posix2001_headers): New variable.
52886         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52887         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52888         index, makecontext, mktemp, pthread_attr_getstackaddr,
52889         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52890         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52891         (posix2001_functions): New variable.
52892         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52893         otherwise.
52894
52895 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52896
52897         add missing include to parse-duration.c
52898         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52899         * modules/parse-duration (Depends-on): Add xalloc.
52900
52901         fix sed script reading maint.mk
52902         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52903         (syntax-check-rules): Use it.
52904
52905 2008-12-09  Bruno Haible  <bruno@clisp.org>
52906
52907         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52908         MacOS X 10.4/PowerPC.
52909         Reported by Simon Josefsson.
52910
52911 2008-12-08  Jim Meyering  <meyering@redhat.com>
52912
52913         work around mingw's lack of some S_IF definitions
52914         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52915         Reported by Simon Josefsson.
52916
52917 2008-12-08  Bruno Haible  <bruno@clisp.org>
52918
52919         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52920         applied to variables. Needed on MacOS X 10.4/PowerPC.
52921         Reported by Simon Josefsson.
52922
52923 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52924         and Eric Blake  <ebb9@byu.net>
52925
52926         assert: honor --enable-assert
52927         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52928         order to honor --enable-assert, rather than treating it as a
52929         synonym for --disable-assert.
52930
52931 2008-12-08  Jim Meyering  <meyering@redhat.com>
52932
52933         * lib/posixtm.c: Remove now-useless declaration of mktime.
52934
52935         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52936
52937 2008-12-07  Bruno Haible  <bruno@clisp.org>
52938
52939         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52940         test_once): Mark functions as static.
52941         * tests/test-tls.c (test_tls): Likewise.
52942
52943 2008-12-07  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52946         iconv_register_autodetect.
52947
52948 2008-12-07  Jim Meyering  <meyering@redhat.com>
52949
52950         posixtm.c: avoid a warning
52951         * lib/posixtm.c (posixtime): Don't initialize tm0.
52952         It's no longer needed to placate gcc4's -Wuninitialized,
52953         and the attempt to placate would elicit a new warning.
52954
52955         unicodeio.c: mark unused parameters
52956         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52957         (fallback_failure_callback): Likewise.
52958
52959 2008-12-07  Bruno Haible  <bruno@clisp.org>
52960
52961         * gnulib-tool (func_create_testdir): When building the tests
52962         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52963         Reported by Simon Josefsson.
52964
52965 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52966
52967         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52968
52969 2008-12-06  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52972         Suggested by Eric Blake.
52973
52974 2008-12-06  Bruno Haible  <bruno@clisp.org>
52975
52976         Fix a c-stack test failure on MacOS X.
52977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52978         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52979         handler for SIGBUS as well.
52980         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52981         install a signal handler for SIGBUS as well.
52982         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52983
52984 2008-12-06  Bruno Haible  <bruno@clisp.org>
52985
52986         Advocacy documentation.
52987         * doc/gnulib-intro.texi (Benefits): New section.
52988         * doc/gnulib.texi: Update.
52989
52990 2008-12-06  Bruno Haible  <bruno@clisp.org>
52991
52992         Document the 'manywarnings' module.
52993         * doc/manywarnings.texi: New file.
52994         * doc/gnulib.texi: Include it.
52995
52996 2008-12-05  Eric Blake  <ebb9@byu.net>
52997
52998         tests: silence some gcc warnings
52999         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53000         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53001         type mismatches.
53002
53003 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53004             Bruno Haible  <bruno@clisp.org>
53005
53006         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53007
53008 2008-11-29  Jim Meyering  <meyering@redhat.com>
53009
53010         unicodeio.c: mark unused parameters
53011         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53012         (fallback_failure_callback): Likewise.
53013
53014         fts: fix a thinko
53015         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53016         (set_stat_type): Return S_IF*-valued "type" directly.
53017         Prompted by James Youngman's spotting a related bug.
53018         Confirmed by further testing through find.
53019
53020         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53021         * lib/fts.c (D_TYPE): Define.
53022         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53023         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53024         (s_ifmt_shift_bits): New function.
53025         (set_stat_type): New function.
53026         (fts_build): When not calling fts_stat, call set_stat_type
53027         to propagate dirent.d_type info to fts_read caller.
53028         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53029         fts_statp->st_mode type information may be valid.
53030
53031 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53032
53033         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53034         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53035         <sds@gnu.org>.
53036
53037 2008-11-20  Bruno Haible  <bruno@clisp.org>
53038
53039         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53040         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53041         INCLUDE_NEXT.
53042         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53043         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53044         * modules/math (Makefile.am): Substitute
53045         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53046         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53047
53048 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53049             Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/stdint.in.h: Define all type macros so that their expansion is
53052         a single typedef'ed token. Fixes a compilation failure in Boost which
53053         does "using ::int8_t;".
53054
53055 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53056
53057         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53058         gl_MANYWARN_ALL_GCC.
53059         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53060         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53061         * modules/manywarnings: New file.
53062         * MODULES.html.sh: Mention manywarnings module.
53063
53064 2008-11-18  Bruno Haible  <bruno@clisp.org>
53065
53066         * doc/gnulib-tool.texi (Unit tests): New section.
53067
53068 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53069
53070         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53071         paths like 'lib/po/foo.po'.
53072
53073 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53074
53075         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53076         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53077
53078 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53079
53080         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53081         parameter works.
53082
53083 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53084
53085         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53086
53087 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53088
53089         * modules/parse-duration-tests: New file.
53090         * tests/test-parse-duration.sh: New file.
53091         * tests/test-parse-duration.c: New file.
53092
53093         New module 'parse-duration'.
53094         * lib/parse-duration.h: New file.
53095         * lib/parse-duration.c: New file.
53096         * modules/parse-duration: New file.
53097
53098 2008-11-17  Bruno Haible  <bruno@clisp.org>
53099
53100         * tests/test-select-out.sh: Comment out the first pipe test.
53101         Reported by Simon Josefsson.
53102
53103 2008-11-17  Bruno Haible  <bruno@clisp.org>
53104
53105         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53106         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53107         gl_HOSTENT.
53108
53109 2008-11-17  Bruno Haible  <bruno@clisp.org>
53110
53111         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53112         -lnetwork and -lnet. Needed for Haiku and BeOS.
53113
53114 2008-11-16  Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53117
53118 2008-11-16  Bruno Haible  <bruno@clisp.org>
53119
53120         Avoid test failure on Haiku.
53121         * tests/test-fsync.c: Include <errno.h>.
53122         (main): Don't require that fsync (0) fails.
53123
53124 2008-11-15  Bruno Haible  <bruno@clisp.org>
53125
53126         New module 'hostent'.
53127         * modules/hostent: New file.
53128         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53129
53130 2008-11-15  Bruno Haible  <bruno@clisp.org>
53131
53132         New module 'servent'.
53133         * modules/servent: New file.
53134         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53135
53136 2008-11-15  Bruno Haible  <bruno@clisp.org>
53137
53138         Avoid generating same test program with two different rules.
53139         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53140         test-frexp to test-frexp-nolibm.
53141         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53142         test-frexpl to test-frexpl-nolibm.
53143
53144 2008-11-15  Bruno Haible  <bruno@clisp.org>
53145
53146         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53147         $(FREXPL_LIBM).
53148
53149 2008-11-15  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/netdb.in.h: Activate the definitions also when the system's
53152         <netdb.h> has 'struct addrinfo'.
53153         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53154         EAI_OVERFLOW or AI_NUMERICSERV.
53155         * doc/posix-headers/netdb.texi: Document the problem.
53156
53157 2008-11-15  Bruno Haible  <bruno@clisp.org>
53158
53159         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53160
53161         Make the 'sched' module work on platforms where <sched.h> exists but
53162         is incomplete (such as Haiku).
53163         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53164         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53165         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53166         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53167         HAVE_STRUCT_SCHED_PARAM.
53168         * modules/sched (Depends-on): Add include_next.
53169         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53170         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53171         * doc/posix-headers/sched.texi: Document the issue.
53172
53173 2008-11-13  Jim Meyering  <meyering@redhat.com>
53174
53175         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53176         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53177         test would fail due to the difference in the Report bugs to ...
53178         line.  The expected address is empty, "<>", while the actual
53179         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53180
53181 2008-11-12  Bruno Haible  <bruno@clisp.org>
53182
53183         lstat: don't compile lstat.c on systems lacking lstat
53184         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53185         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53186         Reported by Daniel P. Berrange via Jim Meyering.
53187
53188 2008-11-12  Jim Meyering  <meyering@redhat.com>
53189
53190         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53191
53192 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53193
53194         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53195         instead.
53196
53197 2008-11-12  Bruno Haible  <bruno@clisp.org>
53198
53199         * lib/unicodeio.c: Include unistr.h.
53200         (utf8_wctomb): Remove function.
53201         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53202
53203 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53204
53205         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53206         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53207         <bruno@clisp.org>.
53208         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53209
53210 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53211
53212         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53213         * doc/gnulib.texi: Add section for warnings.
53214
53215 2008-11-11  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/sockets.h: Add a comment.
53218
53219 2008-11-11  Karl Berry  <karl@gnu.org>
53220
53221         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53222
53223 2008-11-11  Eric Blake  <ebb9@byu.net>
53224
53225         fdl.texi: avoid git symlinks
53226         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53227
53228 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53229
53230         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53231
53232 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53233
53234         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53235         (gl_WARN_ADD): Substitute $2 if literal.
53236
53237 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53238
53239         * m4/warning.m4: Remove.
53240
53241 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53242
53243         * m4/warnings.m4: Almost complete rewrite. :-)
53244
53245 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53246
53247         * modules/warnings: New module.
53248         * m4/warnings.m4: New file.
53249         * MODULES.html.sh: Mention warnings module.
53250         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53251         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53252
53253 2008-11-10  Eric Blake  <ebb9@byu.net>
53254
53255         fdl.texi: make a symlink to the latest version
53256         * doc/standards.texi: Revert today's earlier change.
53257         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53258         * doc/fdl.texi: ...and replace this with a symlink to the newer
53259         fdl-1.3.texi.
53260
53261 2008-11-10  Bruno Haible  <bruno@clisp.org>
53262
53263         * tests/test-select-fd.c (main): Accept the result file name as fourth
53264         argument.
53265         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53266         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53267
53268 2008-11-10  Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53271         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53272         as autoconf-substituted macros.
53273         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53274         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53275         gl_NETDB_H_DEFAULTS. Set these variables.
53276         * modules/netdb (Makefile.am): Substitute these variables.
53277
53278 2008-11-10  Eric Blake  <ebb9@byu.net>
53279
53280         standards.texi: include correct file for FDL 1.3
53281         * doc/standards.texi (GNU Free Documentation License): Change
53282         include file to pull in FDL 1.3, not 1.2.
53283
53284         fdl.texi: revert accidental change to license
53285         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53286
53287 2008-11-10  Bruno Haible  <bruno@clisp.org>
53288
53289         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53290         cross-compiling guesses also when the native compile gives no result.
53291
53292 2008-11-10  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/spawni.c (__spawni): Force variable into the stack.
53295
53296 2008-11-10  Bruno Haible  <bruno@clisp.org>
53297
53298         Add support for Haiku.
53299         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53300         glibc and BeOS, but also on Haiku.
53301         * lib/fpurge.c (fpurge): Likewise.
53302         * lib/freadable.c (freadable): Likewise.
53303         * lib/freadahead.c (freadahead): Likewise.
53304         * lib/freading.c (freading): Likewise.
53305         * lib/freadptr.c (freadptr): Likewise.
53306         * lib/freadseek.c (freadptrinc): Likewise.
53307         * lib/fseeko.c (rpl_fseeko): Likewise.
53308         * lib/fseterr.c (fseterr): Likewise.
53309         * lib/fwritable.c (fwritable): Likewise.
53310         * lib/fwriting.c (fwriting): Likewise.
53311         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53312
53313 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53314
53315         * lib/config.charset: Treat Haiku like BeOS.
53316
53317 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53318
53319         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53320         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53321
53322 2008-11-08  Bruno Haible  <bruno@clisp.org>
53323
53324         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53325         AC_CACHE_CHECK.
53326
53327 2008-11-08  Bruno Haible  <bruno@clisp.org>
53328
53329         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53330
53331 2008-11-08  Bruno Haible  <bruno@clisp.org>
53332
53333         * tests/test-select-fd.c: New file.
53334         * tests/test-select-in.sh: New file.
53335         * tests/test-select-out.sh: New file.
53336         * tests/test-select-stdin.c: New file.
53337         * modules/select-tests (Files): Add the new files.
53338         (Depends-on): Add gettimeofday.
53339         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53340         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53341         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53342
53343 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53344             Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53347
53348 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53349
53350         * build-aux/pmccabe2html: Added support for C++ source files.
53351
53352 2008-11-05  Ben Pfaff  <blp@gnu.org>
53353
53354         Fix lib/close.c build on Windows.
53355         * modules/close (Files): Add lib/w32sock.h.
53356
53357 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53358
53359         Accept Bison's NEWS format.
53360         * build-aux/announce-gen (print_news_deltas): Tweak
53361         $re_prefix.
53362
53363 2008-11-04  Bruno Haible  <bruno@clisp.org>
53364
53365         * modules/random_r (Maintainer): Add glibc.
53366
53367 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53368
53369         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53370         by karl@freefriends.org (Karl Berry).
53371         * doc/alloca.texi: Likewise.
53372         * doc/c-ctype.texi: Likewise.
53373         * doc/c-strcase.texi: Likewise.
53374         * doc/c-strcaseeq.texi: Likewise.
53375         * doc/c-strcasestr.texi: Likewise.
53376         * doc/c-strstr.texi: Likewise.
53377         * doc/c-strtod.texi: Likewise.
53378         * doc/c-strtold.texi: Likewise.
53379         * doc/ctime.texi: Likewise.
53380         * doc/error.texi: Likewise.
53381         * doc/fdl.texi: Likewise.
53382         * doc/gcd.texi: Likewise.
53383         * doc/getdate.texi: Likewise.
53384         * doc/gnulib-intro.texi: Likewise.
53385         * doc/gnulib-tool.texi: Likewise.
53386         * doc/gnulib.texi: Likewise.
53387         * doc/inet_ntoa.texi: Likewise.
53388         * doc/maintain.texi: Likewise.
53389         * doc/make-stds.texi: Likewise.
53390         * doc/quote.texi: Likewise.
53391         * doc/regexprops-generic.texi: Likewise.
53392         * doc/standards.texi: Likewise.
53393         * doc/verify.texi: Likewise.
53394         * doc/visibility.texi: Likewise.
53395         * doc/gnulib.texi (GNU Free Documentation License): Include
53396         fdl-1.3.texi instead of fdl.texi.
53397
53398 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53399
53400         * doc/fdl-1.3.texi: New file, from
53401         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53402         * modules/fdl-1.3: Add.
53403         * MODULES.html.sh: Add fdl-1.3.
53404
53405 2008-11-03  Bruno Haible  <bruno@clisp.org>
53406
53407         Make determination of absolute name of header file work with AIX xlc.
53408         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53409         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53410         preprocessing.
53411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53412         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53413
53414 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53415
53416         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53417         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53418         <ludo@gnu.org>.
53419
53420 2008-11-02  Bruno Haible  <bruno@clisp.org>
53421
53422         Mark 'strpbrk' obsolete.
53423         * modules/strpbrk (Status, Notice): New sections.
53424         * modules/strtok_r (Depends-on): Add strpbrk.
53425
53426 2008-11-02  Bruno Haible  <bruno@clisp.org>
53427
53428         Mark 'strdup' obsolete.
53429         * modules/strdup (Status, Notice): New sections.
53430         * modules/findprog (Depends-on): Add strdup.
53431         * modules/getaddrinfo (Depends-on): Likewise.
53432         * modules/localename (Depends-on): Likewise.
53433         * modules/relocatable-lib (Depends-on): Likewise.
53434         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53435         * modules/relocatable-prog (Depends-on): Likewise.
53436         * modules/trim (Depends-on): Likewise.
53437         * modules/unictype/gen-ctype (Depends-on): Likewise.
53438         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53439
53440 2008-11-02  Bruno Haible  <bruno@clisp.org>
53441
53442         Mark 'strcspn' obsolete.
53443         * modules/strcspn (Status, Notice): New sections.
53444
53445 2008-11-02  Bruno Haible  <bruno@clisp.org>
53446
53447         Mark 'rmdir' obsolete.
53448         * modules/rmdir (Status, Notice): New sections.
53449         * modules/clean-temp (Depends-on): Add rmdir.
53450         * modules/openat (Depends-on): Likewise.
53451
53452 2008-11-02  Bruno Haible  <bruno@clisp.org>
53453
53454         Mark 'raise' obsolete.
53455         * modules/raise (Status, Notice): New sections.
53456         (Include): Specify <signal.h>.
53457         * modules/stdio (Depends-on): Add raise.
53458         * modules/write (Depends-on): Likewise.
53459
53460 2008-11-02  Bruno Haible  <bruno@clisp.org>
53461
53462         Mark 'memset' obsolete.
53463         * modules/memset (Status, Notice): New sections.
53464
53465 2008-11-02  Bruno Haible  <bruno@clisp.org>
53466
53467         Mark 'memmove' obsolete.
53468         * modules/memmove (Status, Notice): New sections.
53469         * modules/argp (Depends-on): Add memmove.
53470         * modules/argz (Depends-on): Likewise.
53471         * modules/canonicalize (Depends-on): Likewise.
53472         * modules/canonicalize-lgpl (Depends-on): Likewise.
53473         * modules/fts (Depends-on): Likewise.
53474         * modules/getcwd (Depends-on): Likewise.
53475         * modules/human (Depends-on): Likewise.
53476         * modules/regex (Depends-on): Likewise.
53477         * modules/striconveh (Depends-on): Likewise.
53478         * modules/trim (Depends-on): Likewise.
53479         * modules/unistr/u8-move (Depends-on): Likewise.
53480         * modules/unistr/u16-move (Depends-on): Likewise.
53481         * modules/unistr/u32-move (Depends-on): Likewise.
53482
53483 2008-11-02  Bruno Haible  <bruno@clisp.org>
53484
53485         Mark 'memcpy' obsolete.
53486         * modules/memcpy (Status, Notice): New sections.
53487
53488 2008-11-02  Bruno Haible  <bruno@clisp.org>
53489
53490         Mark 'memcmp' obsolete.
53491         * modules/memcmp (Status, Notice): New sections.
53492         * modules/argmatch (Depends-on): Add memchr.
53493         * modules/backupfile (Depends-on): Likewise.
53494         * modules/c-strcasestr (Depends-on): Likewise.
53495         * modules/crypto/des (Depends-on): Likewise.
53496         * modules/csharpcomp (Depends-on): Likewise.
53497         * modules/fnmatch (Depends-on): Likewise.
53498         * modules/git-merge-changelog (Depends-on): Likewise.
53499         * modules/isnand (Depends-on): Likewise.
53500         * modules/isnand-nolibm (Depends-on): Likewise.
53501         * modules/isnanf (Depends-on): Likewise.
53502         * modules/isnanf-nolibm (Depends-on): Likewise.
53503         * modules/isnanl (Depends-on): Likewise.
53504         * modules/isnanl-nolibm (Depends-on): Likewise.
53505         * modules/mbchar (Depends-on): Likewise.
53506         * modules/memcoll (Depends-on): Likewise.
53507         * modules/quotearg (Depends-on): Likewise.
53508         * modules/regex (Depends-on): Likewise.
53509         * modules/relocatable-prog (Depends-on): Likewise.
53510         * modules/same (Depends-on): Likewise.
53511         * modules/signbit (Depends-on): Likewise.
53512         * modules/strcasestr-simple (Depends-on): Likewise.
53513         * modules/unictype/gen-ctype (Depends-on): Likewise.
53514         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53515         * modules/uniname/uniname (Depends-on): Likewise.
53516         * modules/unistr/u8-cmp (Depends-on): Likewise.
53517
53518 2008-11-02  Bruno Haible  <bruno@clisp.org>
53519
53520         Mark 'memchr' obsolete.
53521         * modules/memchr (Status, Notice): New sections.
53522         * modules/argp (Depends-on): Add memchr.
53523         * modules/base64 (Depends-on): Likewise.
53524         * modules/c-strcasestr (Depends-on): Likewise.
53525         * modules/chdir-long (Depends-on): Likewise.
53526         * modules/fnmatch (Depends-on): Likewise.
53527         * modules/getsubopt (Depends-on): Likewise.
53528         * modules/git-merge-changelog (Depends-on): Likewise.
53529         * modules/glob (Depends-on): Likewise.
53530         * modules/strcasestr-simple (Depends-on): Likewise.
53531         * modules/strnlen (Depends-on): Likewise.
53532
53533 2008-11-02  Bruno Haible  <bruno@clisp.org>
53534
53535         Mark 'atexit' obsolete.
53536         * modules/atexit (Status, Notice): New sections.
53537         * modules/chdir-long (Depends-on): Add atexit.
53538         * modules/wait-process (Depends-on): Likewise.
53539
53540 2008-11-02  Bruno Haible  <bruno@clisp.org>
53541
53542         * gnulib-tool: New option --with-obsolete.
53543         (func_usage): Document it.
53544         (func_modules_transitive_closure): Drop obsolete dependencies if
53545         incobsolete is not true.
53546         (func_import): Read and save the incobsolete variable to the cache.
53547
53548 2008-11-02  Bruno Haible  <bruno@clisp.org>
53549
53550         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53551         * gnulib-tool: New option --extract-status.
53552         (func_usage): Document it.
53553         (sed_extract_prog): Recognize it.
53554         (func_get_status): New function.
53555
53556 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53557
53558         * modules/sockets (License): Change from LGPL to LGPLv2+.
53559
53560 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53561
53562         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53563
53564 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53565
53566         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53567         Mention times and sys_times.
53568         * modules/sys_times, modules/sys_times-tests: New modules.
53569         * modules/times, modules/times-tests: Likewise
53570         * m4/sys_times_h.m4: New file.
53571         * lib/sys_times.in.h: Likewise
53572         * lib/times.c: Likewise.
53573         * tests/test-sys_times.c: Likewise.
53574         * tests/test-times.c: Likewise.
53575         * doc/posix-headers/sys_times.texi: Update.
53576         * doc/posix-functions/times.texi: Update.
53577
53578 2008-10-28  Jim Meyering  <meyering@redhat.com>
53579
53580         * modules/tempname (Depends-on): Add lstat.
53581
53582         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53583
53584 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53585
53586         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53587         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53588         using idiom used elsewhere in gnulib.
53589
53590 2008-10-27  Jim Meyering  <meyering@redhat.com>
53591
53592         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53593
53594 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53595
53596         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53597         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53598         programs.
53599         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53600
53601 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53602
53603         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53604
53605 2008-10-27  Bruno Haible  <bruno@clisp.org>
53606
53607         * tests/test-lstat.c: Include <stdio.h>.
53608
53609 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53610
53611         * modules/lstat-tests: New module.
53612         * tests/test-lstat.c: New file.
53613
53614 2008-10-26  Jim Meyering  <meyering@redhat.com>
53615
53616         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53617
53618 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53619             Bruno Haible  <bruno@clisp.org>
53620
53621         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53622         * modules/configmake (Include): Add a note that the include must come
53623         after all system headers.
53624         * lib/javaversion.c: Include configmake.h after all other includes.
53625
53626 2008-10-26  Bruno Haible  <bruno@clisp.org>
53627
53628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53629         HAVE_STRUCT_RANDOM_DATA to 1.
53630         (gl_STDLIB_H): Simplify.
53631
53632 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53633
53634         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53635         substitute HAVE_STRUCT_RANDOM_DATA.
53636         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53637         random_data.
53638         * modules/stdlib (Makefile.am): Substitute
53639         HAVE_STRUCT_RANDOM_DATA.
53640
53641 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53642
53643         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53644         * doc/gnulib-intro.texi (Copyright): Likewise.
53645
53646 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53647
53648         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53649         findings.
53650
53651 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53652             Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/unistd.in.h: Include <winsock2.h>.
53655         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53656         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53657         Provide dummy declarations.
53658         (gethostname): Override.
53659         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53660         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53661         gl_PREREQ_SYS_H_WINSOCK2.
53662         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53663         * doc/posix-functions/gethostname.texi: More details.
53664
53665 2008-10-25  Bruno Haible  <bruno@clisp.org>
53666
53667         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53668         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53669         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53670
53671         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53672         here ...
53673         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53674         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53675         gl_UNISTD_H_DEFAULTS.
53676
53677 2008-10-25  Eric Blake  <ebb9@byu.net>
53678
53679         signbit: avoid spurious compiler failure
53680         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53681         declarations inside function.
53682
53683 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53684             Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53687         * modules/random_r (Depends-on): Add stdint.
53688
53689 2008-10-24  Bruno Haible  <bruno@clisp.org>
53690
53691         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53692         Eggert.
53693         * modules/strerror (License): Likewise.
53694
53695 2008-10-24  Jim Meyering  <meyering@redhat.com>
53696
53697         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53698         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53699
53700 2008-10-24  Eric Blake  <ebb9@byu.net>
53701
53702         getgroups: fix compilation when getgroups is available
53703         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53704         but with <config.h> override of getgroups disabled.
53705
53706 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53707
53708         * doc/gnulib.texi (Header files): Add note about C++ problems.
53709         Explained by Bruno Haible <bruno@clisp.org>.
53710
53711 2008-10-23  Bruno Haible  <bruno@clisp.org>
53712
53713         Define a dummy SA_NODEFER macro on Interix.
53714         * lib/signal.in.h (SA_NODEFER): Define fallback.
53715         Reported by Aleksey Cheusov <cheusov@tut.by> via
53716         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53717
53718 2008-10-23  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/freadahead (License): Change to LGPLv2+.
53721         Suggested by Simon Josefsson.
53722
53723 2008-10-23  Jim Meyering  <meyering@redhat.com>
53724
53725         random_r: new module
53726         * modules/random_r: New file.
53727         * m4/random_r.m4: New file.
53728         * lib/random_r.c: New file, from glibc.
53729         * modules/random_r-tests: New file.
53730         * tests/test-random_r.c: New file.
53731         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53732          Declare.
53733         (RAND_MAX): Define.
53734         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53735         * modules/stdlib: Substitute them, too.
53736         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53737         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53738         * doc/glibc-functions/random_r.texi: Likewise.
53739         * doc/glibc-functions/setstate_r.texi: Likewise.
53740         * doc/glibc-functions/srandom_r.texi: Likewise.
53741         * config/srclist.txt: Mention it.
53742
53743 2008-10-23  David Lutterkort  <lutter@redhat.com>
53744
53745         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53746         link requirement
53747
53748 2008-10-23  Jim Meyering  <meyering@redhat.com>
53749
53750         selinux-h: mark parameters of stub functions as intentionally unused
53751         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53752         * lib/se-context.in.h: Likewise.
53753
53754 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53755
53756         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53757
53758 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53759
53760         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53761
53762 2008-10-22  Eric Blake  <ebb9@byu.net>
53763
53764         glthread/thread: avoid compiler warning
53765         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53766         Add unreachable abort to silence compiler.
53767
53768 2008-10-22  Eric Blake  <ebb9@byu.net>
53769
53770         netdb: also supply struct addrinfo for cygwin 1.5.x
53771         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53772         older cygwin.
53773         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53774         cygwin.
53775         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53776
53777 2008-10-22  Bruno Haible  <bruno@clisp.org>
53778
53779         * users.txt: Update entry about pspp.
53780
53781 2008-10-21  Bruno Haible  <bruno@clisp.org>
53782
53783         Simplification.
53784         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53785         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53786
53787         Simplification.
53788         * lib/ioctl.c (ioctl): Don't undefine.
53789         * lib/socket.c (socket): Don't undefine.
53790
53791         Remove unused module indicator macros.
53792         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53793         GNULIB_$1 as a C macro.
53794
53795         * doc/posix-functions/close.texi: Undo last change.
53796         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53797         Windows platforms.
53798
53799 2008-10-21  Bruno Haible  <bruno@clisp.org>
53800
53801         Add gethostname() declaration to <unistd.h>.
53802         * lib/unistd.in.h (gethostname): New declaration.
53803         * lib/gethostname.c: Include <unistd.h>.
53804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53805         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53807         and HAVE_GETHOSTNAME.
53808         * modules/gethostname (Depends-on): Add unistd.
53809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53810         (Include): Specify <unistd.h>.
53811         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53812         HAVE_GETHOSTNAME.
53813         * tests/test-gethostname.c: Include <unistd.h> first.
53814
53815 2008-10-21  Bruno Haible  <bruno@clisp.org>
53816
53817         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53818         * modules/select-tests (Depends-on): Likewise.
53819         Reported by Simon Josefsson.
53820
53821 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53822
53823         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53824         * lib/accept.c: New file, based on winsock.c.
53825         * lib/bind.c: New file, based on winsock.c.
53826         * lib/connect.c: New file, based on winsock.c.
53827         * lib/getpeername.c: New file, based on winsock.c.
53828         * lib/getsockname.c: New file, based on winsock.c.
53829         * lib/getsockopt.c: New file, based on winsock.c.
53830         * lib/ioctl.c: New file, based on winsock.c.
53831         * lib/listen.c: New file, based on winsock.c.
53832         * lib/recv.c: New file, based on winsock.c.
53833         * lib/recvfrom.c: New file, based on winsock.c.
53834         * lib/send.c: New file, based on winsock.c.
53835         * lib/sendto.c: New file, based on winsock.c.
53836         * lib/setsockopt.c: New file, based on winsock.c.
53837         * lib/shutdown.c: New file, based on winsock.c.
53838         * lib/socket.c: New file, based on winsock.c.
53839         * lib/w32sock.h: New file, based on winsock.c.
53840         * lib/winsock.c: Remove file.
53841         * modules/accept: Likewise.
53842         * modules/bind: Likewise.
53843         * modules/connect: Likewise.
53844         * modules/getpeername: Likewise.
53845         * modules/getsockname: Likewise.
53846         * modules/getsockopt: Likewise.
53847         * modules/ioctl: Likewise.
53848         * modules/listen: Likewise.
53849         * modules/recv: Likewise.
53850         * modules/recvfrom: Likewise.
53851         * modules/send: Likewise.
53852         * modules/sendto: Likewise.
53853         * modules/setsockopt: Likewise.
53854         * modules/shutdown: Likewise.
53855         * modules/socket: Use socket.c instead of winsock.c.
53856         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53857         * doc/posix-functions/accept.texi: Doc fix.
53858         * doc/posix-functions/bind.texi: Doc fix.
53859         * doc/posix-functions/close.texi: Doc fix.
53860         * doc/posix-functions/connect.texi: Doc fix.
53861         * doc/posix-functions/getpeername.texi: Doc fix.
53862         * doc/posix-functions/getsockname.texi: Doc fix.
53863         * doc/posix-functions/getsockopt.texi: Doc fix.
53864         * doc/posix-functions/ioctl.texi: Doc fix.
53865         * doc/posix-functions/listen.texi: Doc fix.
53866         * doc/posix-functions/recv.texi: Doc fix.
53867         * doc/posix-functions/recvfrom.texi: Doc fix.
53868         * doc/posix-functions/send.texi: Doc fix.
53869         * doc/posix-functions/sendto.texi: Doc fix.
53870         * doc/posix-functions/setsockopt.texi: Doc fix.
53871         * doc/posix-functions/shutdown.texi: Doc fix.
53872         * doc/posix-functions/socket.texi: Doc fix.
53873
53874 2008-10-20  Bruno Haible  <bruno@clisp.org>
53875
53876         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53877         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53878         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53879         as an alias for SIGABRT.
53880         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53881         (sigaction): Map it to SIGABRT.
53882         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53883
53884 2008-10-20  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/fts.c: Don't include lstat.h.
53887         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53888
53889         Move the lstat() declaration to <sys/stat.h>.
53890         * lib/lstat.h: Remove file.
53891         * lib/sys_stat.in.h: Add special invocation convention.
53892         (lstat): New declaration.
53893         * lib/lstat.c (orig_lstat): New function.
53894         (rpl_lstat): Use orig_lstat instead of lstat.
53895         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53896         AC_C_INLINE. Set REPLACE_LSTAT.
53897         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53898         and REPLACE_LSTAT.
53899         * modules/lstat (Files): Remove lib/lstat.h.
53900         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53901         (Include): Specify <sys/stat.h> instead of lstat.h.
53902         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53903         REPLACE_LSTAT.
53904         * NEWS: Mention the change.
53905
53906 2008-10-20  Bruno Haible  <bruno@clisp.org>
53907
53908         * modules/posix_spawn-tests: New file.
53909         * tests/test-posix_spawn3.c: New file.
53910
53911 2008-10-20  Bruno Haible  <bruno@clisp.org>
53912
53913         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53914         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53915         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53916         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53917         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53918
53919 2008-10-20  Bruno Haible  <bruno@clisp.org>
53920
53921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53922         of posix_spawn on AIX 5.3.
53923
53924 2008-10-20  Bruno Haible  <bruno@clisp.org>
53925
53926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53927
53928 2008-10-20  Bruno Haible  <bruno@clisp.org>
53929
53930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53931         of AC_LANG_PROGRAM.
53932
53933 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53934
53935         * lib/netdb.in.h: Don't define GNU specific constants until they
53936         are supported or needed.  Reported by Bruno Haible
53937         <bruno@clisp.org>.
53938
53939 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53940
53941         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53942
53943 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53944
53945         * lib/getaddrinfo.h: Remove file.
53946         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53947         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53948         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53949         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53950         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53951         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53952         * tests/test-getaddrinfo.c: Likewise.
53953         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53954         * NEWS: Mention change.
53955
53956 2008-10-19  Bruno Haible  <bruno@clisp.org>
53957
53958         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53959
53960 2008-10-19  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/wait-process.c: Include simply <sys/wait.h>.
53963         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53964         WIFSTOPPED): Remove fallback definitions.
53965         * modules/wait-process (Depends-on): Add sys_wait.
53966
53967         New module 'sys_wait'.
53968         * modules/sys_wait: New file.
53969         * lib/sys_wait.in.h: New file, partially copied from
53970         lib/wait-process.c.
53971         * m4/sys_wait_h.m4: New file.
53972         * doc/posix-headers/sys_wait.texi: Mention the new module.
53973
53974 2008-10-19  Bruno Haible  <bruno@clisp.org>
53975
53976         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53977
53978 2008-10-19  Bruno Haible  <bruno@clisp.org>
53979
53980         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53981         * lib/wait-process.c (WAIT_T): Remove type.
53982         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53983         (wait_subprocess): Update.
53984
53985 2008-10-19  Bruno Haible  <bruno@clisp.org>
53986
53987         New module 'atoll'.
53988         * modules/atoll: New file.
53989         * lib/stdlib.in.h (atoll): New declaration.
53990         * lib/atoll.c: New file, from glibc with modifications.
53991         * m4/atoll.m4: New file.
53992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53993         HAVE_ATOLL.
53994         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53995         * doc/posix-functions/atoll.texi: Mention the new module.
53996
53997 2008-10-19  Bruno Haible  <bruno@clisp.org>
53998
53999         Add strtoull() declaration to <stdlib.h>.
54000         * lib/stdlib.in.h (strtoull): New declaration.
54001         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54002         Set HAVE_STRTOULL.
54003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54004         HAVE_STRTOULL.
54005         * modules/strtoull (Depends-on): Add stdlib.
54006         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54007         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54008         HAVE_STRTOULL.
54009
54010 2008-10-19  Bruno Haible  <bruno@clisp.org>
54011
54012         Add strtoll() declaration to <stdlib.h>.
54013         * lib/stdlib.in.h (strtoll): New declaration.
54014         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54015         Set HAVE_STRTOLL.
54016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54017         HAVE_STRTOLL.
54018         * modules/strtoll (Depends-on): Add stdlib.
54019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54020         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54021
54022 2008-10-19  Bruno Haible  <bruno@clisp.org>
54023
54024         * modules/bcopy (Depends-on): Add strings.
54025         (Include): Specify <strings.h>.
54026
54027 2008-10-19  Bruno Haible  <bruno@clisp.org>
54028
54029         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54030
54031 2008-10-19  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54034         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54035         mingw.
54036
54037 2008-10-19  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/atanl.c: Don't include isnanl.h.
54040         * lib/cosl.c: Likewise.
54041         * lib/ldexpl.c: Likewise.
54042         * lib/logl.c: Likewise.
54043         * lib/sinl.c: Likewise.
54044         * lib/sqrtl.c: Likewise.
54045         * lib/tanl.c: Likewise.
54046
54047         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54048         * lib/isnanf.h: Remove file.
54049         * lib/isnand.h: Remove file.
54050         * lib/isnanl.h: Remove file.
54051         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54052         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54053         macros.
54054         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54055         HAVE_ISNANF, don't define it as a C macro.
54056         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54057         HAVE_ISNAND, don't define it as a C macro.
54058         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54059         HAVE_ISNANL, don't define it as a C macro.
54060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54061         HAVE_ISNAN[FDL].
54062         * modules/isnanf (Files): Remove lib/isnanf.h.
54063         (Depends-on): Add math.
54064         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54065         (Include): Specify <math.h> instead of isnanf.h.
54066         * modules/isnand (Files): Remove lib/isnand.h.
54067         (Depends-on): Add math.
54068         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54069         (Include): Specify <math.h> instead of isnand.h.
54070         * modules/isnanl (Files): Remove lib/isnanl.h.
54071         (Depends-on): Add math.
54072         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54073         (Include): Specify <math.h> instead of isnanl.h.
54074         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54075         HAVE_ISNAN[FDL].
54076         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54077         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54078         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54079         * NEWS: Mention the change.
54080
54081 2008-10-18  Bruno Haible  <bruno@clisp.org>
54082
54083         Add getusershell(), setusershell(), endusershell() declarations to
54084         <unistd.h>.
54085         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54086         declarations.
54087         * lib/getusershell.c: Include unistd.h.
54088         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54089         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54090         HAVE_GETUSERSHELL.
54091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54092         and HAVE_GETUSERSHELL.
54093         * modules/getusershell (Depends-on): Add unistd, extensions.
54094         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54095         (Include): Specify <unistd.h>.
54096         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54097         HAVE_GETUSERSHELL.
54098
54099 2008-10-18  Bruno Haible  <bruno@clisp.org>
54100
54101         Add a getloadavg() declaration to <stdlib.h>.
54102         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54103         getloadavg declaration.
54104         (getloadavg): New declaration.
54105         * lib/getloadavg.c: Include <stdlib.h> first.
54106         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54107         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54108         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54110         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54111         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54112         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54113         (Include): Specify <stdlib.h>.
54114         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54115         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54116
54117 2008-10-18  Bruno Haible  <bruno@clisp.org>
54118
54119         * lib/dirchownmod.c: Don't include lchmod.h.
54120
54121         Move the lchmod() declaration to <sys/stat.h>.
54122         * lib/lchmod.h: Remove file.
54123         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54124         (lchmod): New declaration, moved here from lib/lchown.h.
54125         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54126         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54128         and HAVE_LCHMOD.
54129         * modules/lchmod (Files): Remove lib/lchmod.h.
54130         (Depends-on): Add sys_stat, extensions.
54131         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54132         (Include): Specify <sys/stat.h> instead of lchmod.h.
54133         * modules/sys_stat (Depends-on): Add link-warning.
54134         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54135         definition of GL_LINK_WARNING.
54136         * NEWS: Mention the change.
54137
54138 2008-10-18  Bruno Haible  <bruno@clisp.org>
54139
54140         * lib/fchdir.c: Don't include dirfd.h.
54141         * lib/fts.c: Likewise.
54142         * lib/getcwd.c: Likewise.
54143         * lib/glob.c: Likewise.
54144
54145         Move the dirfd() declaration to <dirent.h>.
54146         * lib/dirfd.h: Remove file.
54147         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54148         (dirfd): New declaration.
54149         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54150         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54151         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54152         HAVE_DECL_DIRFD.
54153         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54154         HAVE_DECL_DIRFD.
54155         * modules/dirfd (Files): Remove lib/dirfd.h.
54156         (Depends-on): Add dirent, extensions.
54157         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54158         (Include): Specify <dirent.h> instead of dirfd.h.
54159         * modules/dirent (Depends-on): Add link-warning.
54160         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54161         definition of GL_LINK_WARNING.
54162         * NEWS: Mention the change.
54163
54164 2008-10-18  Bruno Haible  <bruno@clisp.org>
54165
54166         Move the euidaccess() declaration to <unistd.h>.
54167         * lib/euidaccess.h: Remove file.
54168         * lib/unistd.in.h (euidaccess): New declaration.
54169         * lib/euidaccess.c: Don't include euidaccess.h.
54170         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54171         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54173         and HAVE_EUIDACCESS.
54174         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54175         (Depends-on): Add unistd.
54176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54177         (Include): Specify <unistd.h> instead of euidaccess.h.
54178         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54179         HAVE_EUIDACCESS.
54180         * NEWS: Mention the change.
54181
54182 2008-10-18  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54185
54186         Move the getdomainname() declaration to <unistd.h>.
54187         * lib/getdomainname.h: Remove file.
54188         * lib/unistd.in.h (getdomainname): New declaration.
54189         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54190         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54191         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54192         HAVE_GETDOMAINNAME.
54193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54194         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54195         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54196         (Depends-on): Add unistd, extensions.
54197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54198         (Includes): Specify <unistd.h> instead of getdomainname.h.
54199         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54200         HAVE_GETDOMAINNAME.
54201         * NEWS: Mention the change.
54202
54203 2008-10-18  Bruno Haible  <bruno@clisp.org>
54204
54205         * modules/dirent: New file.
54206         * m4/dirent_h.m4: New file.
54207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54208         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54209         * modules/fchdir (Files): Remove lib/dirent.in.h.
54210         (Depends-on): Add dirent.
54211         (Makefile.am): Move rules to modules/dirent.
54212         * doc/posix-headers/dirent.texi: Mention the new module.
54213
54214 2008-10-18  Bruno Haible  <bruno@clisp.org>
54215
54216         Avoid -Wunused-parameter warnings in public gnulib header files.
54217         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54218         macro.
54219         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54220
54221 2008-10-18  Bruno Haible  <bruno@clisp.org>
54222
54223         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54224         * doc/glibc-functions/error.texi: Mention the module 'error'.
54225         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54226         * doc/glibc-functions/getdomainname.texi: Mention the module
54227         'getdomainname'.
54228         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54229         * doc/glibc-functions/getpagesize.texi: Mention the module
54230         'getpagesize'.
54231         * doc/glibc-functions/getusershell.texi: Mention the module
54232         'getusershell'.
54233         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54234         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54235         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54236         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54237         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54238         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54239         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54240         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54241         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54242         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54243         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54244         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54245         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54246         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54247
54248 2008-10-17  Bruno Haible  <bruno@clisp.org>
54249
54250         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54251         HP-UX and IRIX, use -0.0L.
54252         * tests/test-ceill.c (minus_zero): Likewise.
54253         * tests/test-floorl.c (minus_zero): Likewise.
54254         * tests/test-frexpl.c (minus_zero): Likewise.
54255         * tests/test-isnan.c (minus_zerol): Likewise.
54256         * tests/test-isnanl.h (minus_zero): Likewise.
54257         * tests/test-ldexpl.c (minus_zero): Likewise.
54258         * tests/test-roundl.c (minus_zero): Likewise.
54259         * tests/test-signbit.c (minus_zerol): Likewise.
54260         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54261         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54262         * tests/test-truncl.c (minus_zero): Likewise.
54263         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54264         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54265         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54266         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54267
54268 2008-10-17  Bruno Haible  <bruno@clisp.org>
54269
54270         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54271         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54272         that it gets activated only for gcc >= 3.0.
54273         * lib/dirent.in.h: Likewise.
54274         * lib/errno.in.h: Likewise.
54275         * lib/fcntl.in.h: Likewise.
54276         * lib/float.in.h: Likewise.
54277         * lib/iconv.in.h: Likewise.
54278         * lib/inttypes.in.h: Likewise.
54279         * lib/locale.in.h: Likewise.
54280         * lib/math.in.h: Likewise.
54281         * lib/netdb.in.h: Likewise.
54282         * lib/netinet_in.in.h: Likewise.
54283         * lib/search.in.h: Likewise.
54284         * lib/signal.in.h: Likewise.
54285         * lib/spawn.in.h: Likewise.
54286         * lib/stdarg.in.h: Likewise.
54287         * lib/stdint.in.h: Likewise.
54288         * lib/stdio.in.h: Likewise.
54289         * lib/stdlib.in.h: Likewise.
54290         * lib/string.in.h: Likewise.
54291         * lib/strings.in.h: Likewise.
54292         * lib/sys_file.in.h: Likewise.
54293         * lib/sys_ioctl.in.h: Likewise.
54294         * lib/sys_select.in.h: Likewise.
54295         * lib/sys_socket.in.h: Likewise.
54296         * lib/sys_stat.in.h: Likewise.
54297         * lib/sys_time.in.h: Likewise.
54298         * lib/sysexits.in.h: Likewise.
54299         * lib/time.in.h: Likewise.
54300         * lib/unistd.in.h: Likewise.
54301         * lib/wchar.in.h: Likewise.
54302         * lib/wctype.in.h: Likewise.
54303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54304
54305 2008-10-17  Jim Meyering  <meyering@redhat.com>
54306
54307         ignore-value: don't depend on inline module
54308         * modules/ignore-value (Depends-on): Remove 'inline'.
54309         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54310         Suggestion from Bruno Haible.
54311
54312 2008-10-17  Bruno Haible  <bruno@clisp.org>
54313
54314         New implementation of condition variables for Win32.
54315         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54316         (gl_linked_waitqueue_t): New type.
54317         (gl_cond_t): Use it.
54318         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54319         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54320         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54321         (glthread_cond_init_func, glthread_cond_wait_func,
54322         glthread_cond_timedwait_func, glthread_cond_signal_func,
54323         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54324         Reimplemented on the basis of gl_linked_waitqueue_t.
54325         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54326         gl_waitqueue_t.
54327         (gl_rwlock_t): Update.
54328         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54329
54330 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54331
54332         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54333         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54334
54335 2008-10-17  Jim Meyering  <meyering@redhat.com>
54336
54337         ignore-value: new module
54338         * modules/ignore-value: New file.
54339         * lib/ignore-value.h: New file.
54340         * MODULES.html.sh (Compiler warning management): New section,
54341         just for this module.  More to come.
54342
54343 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54346         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54347         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54348
54349 2008-10-16  Jim Meyering  <meyering@redhat.com>
54350
54351         openat-die.c: avoid 'no previous prototype' warning
54352         * lib/openat-die.c: Include "openat.h".
54353         Reported by Reuben Thomas <rrt@sc3d.org>.
54354
54355 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54356
54357         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54358         * lib/netdb.in.h: Fix typo.
54359         Reported by Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/netdb.in.h: Include sys/socket.h for platforms without
54362         netdb.h, to get structures like hostent on MinGW.
54363         * modules/netdb (Depends-on): Add sys_socket.
54364
54365 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54366
54367         * modules/netdb, modules/netdb-tests: New file.
54368         * m4/netdb_h.m4: New file.
54369         * lib/netdb.in.h: Add, currently just an empty file pending
54370         definitions.
54371         * tests/test-netdb.c: New file.
54372         * doc/posix-headers/netdb.texi: Mention that we replace it if
54373         needed.
54374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54375         netdb.
54376
54377 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54378
54379         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54380         with code.
54381
54382 2008-10-13  Bruno Haible  <bruno@clisp.org>
54383
54384         * lib/glthread/cond.c (glthread_cond_wait_func,
54385         glthread_cond_timedwait_func): Add a comment.
54386
54387 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54388
54389         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54390         * tests/test-select.c: Likewise,
54391
54392 2008-10-13  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/glthread/cond.c (glthread_cond_wait_func,
54395         glthread_cond_timedwait_func): Fix variable name.
54396         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54397
54398 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54399
54400         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54402         struct sockaddr.sa_len.
54403         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54404
54405 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54406
54407         * build-aux/pmccabe2html: Add css and css_url parameters.
54408
54409 2008-10-12  Bruno Haible  <bruno@clisp.org>
54410
54411         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54412         calling aclx_get.
54413         Reported by Rainer Tammer <tammer@tammer.net>.
54414
54415 2008-10-12  Bruno Haible  <bruno@clisp.org>
54416
54417         Use msvcrt aware primitives for creation/termination of Win32 threads.
54418         * lib/glthread/thread.c: Include <process.h>.
54419         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54420         (wrapper_func): Update signature.
54421         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54422
54423 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54424             Bruno Haible  <bruno@clisp.org>
54425
54426         Provide a Win32 implementation of the 'cond' module.
54427         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54428         * lib/glthread/cond.c (glthread_cond_init_func,
54429         glthread_cond_wait_func, glthread_cond_timedwait_func,
54430         glthread_cond_signal_func, glthread_cond_broadcast_func,
54431         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54432         * modules/cond (Dependencies): Add gettimeofday.
54433
54434 2008-10-11  Bruno Haible  <bruno@clisp.org>
54435
54436         Make sleep work on older versions of mingw.
54437         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54438         only whether it exists.
54439         * doc/posix-functions/sleep.texi: Mention the problem with older
54440         versions of mingw.
54441
54442 2008-10-11  Bruno Haible  <bruno@clisp.org>
54443
54444         New module 'shutdown'.
54445         * modules/shutdown: New file.
54446         * lib/sys_socket.in.h (shutdown): New declaration.
54447         * lib/winsock.c (shutdown): New function.
54448         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54449         GNULIB_SHUTDOWN.
54450         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54451         * doc/posix-functions/shutdown.texi: Document the new module.
54452
54453 2008-10-11  Jim Meyering  <meyering@redhat.com>
54454
54455         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54456
54457 2008-10-11  Bruno Haible  <bruno@clisp.org>
54458
54459         New module 'fclose'.
54460         * modules/fclose: New file.
54461         * lib/stdio.in.h (fclose): New declaration.
54462         * lib/fclose.c: New file.
54463         * m4/fclose.m4: New file.
54464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54465         REPLACE_FCLOSE.
54466         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54467         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54468         REPLACE_FCLOSE.
54469         * modules/close (Depends-on): fclose.
54470         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54471
54472 2008-10-11  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54475         set errno and don't call _close.
54476
54477 2008-10-10  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54480         ACL, not afterwards. Fixes test failure on Cygwin.
54481
54482 2008-10-09  Ben Pfaff  <blp@gnu.org>
54483
54484         * build-aux/announce-gen: Fix gnulib version related part of usage
54485         message.  Die with a useful error message if no tarballs are
54486         found.
54487
54488 2008-10-10  Jim Meyering  <meyering@redhat.com>
54489
54490         bootstrap: use git's --depth=N option only if it's supported
54491         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54492         recognize the --depth option.  Reported by Pádraig Brady.
54493
54494 2008-10-09  Bruno Haible  <bruno@clisp.org>
54495
54496         New module 'ioctl'.
54497         * modules/ioctl: New file.
54498         * lib/sys_socket.in.h (ioctl): Remove declaration.
54499         * lib/winsock.c: Include <sys/ioctl.h>.
54500         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54501         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54502         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54503         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54504         * doc/posix-functions/ioctl.texi: Mention the new module.
54505
54506 2008-10-09  Bruno Haible  <bruno@clisp.org>
54507
54508         New module 'sys_ioctl'.
54509         * lib/sys_ioctl.in.h: New file.
54510         * m4/sys_ioctl_h.m4: New file.
54511         * modules/sys_ioctl: New file.
54512         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54513
54514 2008-10-09  Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54517         * lib/winsock.c: Include <stdarg.h>.
54518         (rpl_ioctl): Change to second argument 'int' and then varargs.
54519
54520 2008-10-09  Bruno Haible  <bruno@clisp.org>
54521
54522         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54523         when the sys_socket module is present and the system has <winsock2.h>.
54524
54525 2008-10-09  Bruno Haible  <bruno@clisp.org>
54526
54527         * doc/posix-functions/close.texi: Mention module 'close' instead of
54528         module 'sys_socket'.
54529
54530 2008-10-09  Bruno Haible  <bruno@clisp.org>
54531
54532         * doc/glibc-headers/sys_ioctl.texi: New file.
54533         * doc/gnulib.texi: Include it.
54534
54535 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54536             Bruno Haible  <bruno@clisp.org>
54537
54538         Combine the two replacements of 'close'.
54539         * lib/sys_socket.in.h (close): Define to a reminder to include
54540         <unistd.h>.
54541         (_gl_close_fd_maybe_socket): New declaration.
54542         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54543         * lib/winsock.c (close): Remove undefinition.
54544         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54545         needed for the gnulib module 'close'.
54546         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54547         define to an error symbol or to a warning, if suitable.
54548         * lib/close.c: Include <sys/socket.h>.
54549         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54550         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54551         UNISTD_H_HAVE_WINSOCK2_H.
54552         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54554         UNISTD_H_HAVE_WINSOCK2_H.
54555         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54556         (configure.ac): Set a module indicator.
54557         (Makefile.am): Substitute GNULIB_CLOSE.
54558         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54559         * modules/poll-tests (Depends-on): Add close.
54560         * modules/select-tests (Depends-on): Likewise.
54561
54562 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54563             Bruno Haible  <bruno@clisp.org>
54564
54565         New module 'close'.
54566         * modules/close: New file.
54567         * lib/unistd.in.h (close): Move declaration out of the
54568         FCHDIR_REPLACEMENT scope.
54569         (_gl_unregister_fd): New declaration.
54570         * lib/close.c: New file.
54571         * lib/fchdir.c (rpl_close): Remove function.
54572         * m4/close.m4: New file.
54573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54574         close.
54575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54576         REPLACE_CLOSE.
54577         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54578         REPLACE_CLOSE.
54579         * modules/fchdir (Depends-on): Add close.
54580
54581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54582             Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/fcntl.in.h (open): Simplify conditionals.
54585         (_gl_register_fd): New declaration.
54586         * lib/fchdir.c (rpl_open): Remove function.
54587         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54588         also.
54589         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54591         open.
54592
54593 2008-10-09  Jim Meyering  <meyering@redhat.com>
54594
54595         GNUmakefile: use the more name-space-friendly "_version"
54596         * top/GNUmakefile (_dummy): Update.
54597         (_version): Rename from "version".
54598
54599 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54600             Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54603         rpl_close.
54604         (_gl_register_fd): New function, extracted from rpl_open.
54605         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54606         (rpl_open, rpl_opendir): Use _gl_register_fd.
54607
54608 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54609
54610         Fix organization of 'open' replacement.
54611         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54612         (gl_FUNC_OPEN): Use it.
54613         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54614
54615 2008-10-08  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54618
54619 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54620
54621         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54622         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54623         listen).
54624
54625 2008-10-08  Eric Blake  <ebb9@byu.net>
54626
54627         GNUmakefile: add 'make version' target
54628         * top/GNUmakefile (_curr-ver): Split version update rules...
54629         (version): ...into a target.
54630
54631 2008-10-07  Bruno Haible  <bruno@clisp.org>
54632
54633         Use a more portable replacement expression for -0.0L.
54634         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54635         instead of -0.0L. Fix m4 quotation.
54636
54637         * tests/test-signbit.c: Include <float.h>.
54638         (minus_zero): New variable.
54639         (test_signbitl): Use minus_zero instead of -zero.
54640         * modules/signbit-tests (Depends-on): Add float.
54641
54642         * tests/test-ceill.c: Include <float.h>.
54643         (zero): Remove variable.
54644         (minus_zero): New variable.
54645         (main): Use minus_zero instead of -zero.
54646         * modules/ceill-tests (Depends-on): Add float.
54647
54648         * tests/test-floorl.c: Include <float.h>.
54649         (zero): Remove variable.
54650         (minus_zero): New variable.
54651         (main): Use minus_zero instead of -zero.
54652         * modules/floorl-tests (Depends-on): Add float.
54653
54654         * tests/test-roundl.c: Include <float.h>.
54655         (zero): Remove variable.
54656         (minus_zero): New variable.
54657         (main): Use minus_zero instead of -zero.
54658         * modules/roundl-tests (Depends-on): Add float.
54659
54660         * tests/test-truncl.c: Include <float.h>.
54661         (zero): Remove variable.
54662         (minus_zero): New variable.
54663         (main): Use minus_zero instead of -zero.
54664         * modules/truncl-tests (Depends-on): Add float.
54665
54666         * tests/test-frexpl.c (zero): Remove variable.
54667         (minus_zero): New variable.
54668         (main): Use minus_zero instead of -zero.
54669         * modules/frexpl-tests (Depends-on): Add float.
54670
54671         * tests/test-isnan.c (zerol): Remove variable.
54672         (minus_zerol): New variable.
54673         (test_long_double): Use minus_zerol instead of -zerol.
54674         * modules/isnan-tests (Depends-on): Add float.
54675
54676         * tests/test-isnanl.h (zero): Remove variable.
54677         (minus_zero): New variable.
54678         (main): Use minus_zero instead of -zero.
54679         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54680         * modules/isnanl-tests (Depends-on): Add float.
54681
54682         * tests/test-ldexpl.c (zero): Remove variable.
54683         (minus_zero): New variable.
54684         (main): Use minus_zero instead of -zero.
54685         * modules/ldexpl-tests (Depends-on): Add float.
54686
54687         * tests/test-snprintf-posix.h (zerol): Remove variable.
54688         (minus_zerol): New variable.
54689         (test_function): Use minus_zerol instead of -zerol.
54690         * modules/snprintf-posix-tests (Depends-on): Add float.
54691         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54692
54693         * tests/test-sprintf-posix.h (zerol): Remove variable.
54694         (minus_zerol): New variable.
54695         (test_function): Use minus_zerol instead of -zerol.
54696         * modules/sprintf-posix-tests (Depends-on): Add float.
54697         * modules/vsprintf-posix-tests (Depends-on): Add float.
54698
54699         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54700         (minus_zerol): New variable.
54701         (test_function): Use minus_zerol instead of -zerol.
54702         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54703
54704         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54705         (minus_zerol): New variable.
54706         (test_function): Use minus_zerol instead of -zerol.
54707         * modules/vasprintf-posix-tests (Depends-on): Add float.
54708
54709 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54710
54711         * MODULES.html.sh (Support for building documentation): Mention
54712         pmccabe2html.  Sort entries.
54713
54714         Add pmccabe2html module, from gnupdf.
54715         * build-aux/pmccabe.css: New file.
54716         * build-aux/pmccabe2html: New file.
54717         * m4/pmccabe2html.m4: New file.
54718         * modules/pmccabe2html: New file.
54719
54720 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54721
54722         flock: new module
54723         * MODULES.html.sh: Add to list of modules.
54724         * lib/flock.c: flock implementation for Windows and Unix systems
54725         which have fcntl.
54726         * doc/glibc-functions/flock.texi: Update documentation.
54727         * lib/sys_file.in.h: <sys/file.h> header file.
54728         * m4/flock.m4: M4 macros.
54729         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54730         * modules/flock: flock module.
54731         * modules/flock-tests: flock tests module.
54732         * modules/sys_file: sys/file.h module.
54733         * tests/test-flock.c: test suite for flock.
54734
54735 2008-10-06  Jim Meyering  <meyering@redhat.com>
54736
54737         bootstrap: check for LT_INIT more portably still ;-)
54738         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54739         Spotted by Bruno Haible.
54740
54741 2008-10-06  Eric Blake  <ebb9@byu.net>
54742
54743         test-signbit: avoid tripping Irix cc bug on -0.0L
54744         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54745         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54746         entire testsuite consistent and avoids an Irix 6.2 bug.
54747
54748 2008-10-05  Bruno Haible  <bruno@clisp.org>
54749             Jim Meyering  <jim@meyering.net>
54750
54751         Add an option for ignoring EPIPE during close_stdout.
54752         * lib/closeout.h: Include <stdbool.h>.
54753         (close_stdout_set_ignore_EPIPE): New declaration.
54754         * lib/closeout.c: Include <stdbool.h>.
54755         (ignore_EPIPE): New variable.
54756         (close_stdout_set_ignore_EPIPE): New function.
54757         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54758         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54759         failure.
54760         * modules/closeout (Depends-on): Add stdbool.
54761
54762 2008-10-05  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/accept: New file.
54765         * modules/bind: New file.
54766         * modules/connect: New file.
54767         * modules/getpeername: New file.
54768         * modules/getsockname: New file.
54769         * modules/getsockopt: New file.
54770         * modules/listen: New file.
54771         * modules/recv: New file.
54772         * modules/recvfrom: New file.
54773         * modules/send: New file.
54774         * modules/sendto: New file.
54775         * modules/setsockopt: New file.
54776         * modules/socket: New file.
54777         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54778         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54779         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54780         the particular module is requested. Add a link warning when the
54781         particular module is not requested.
54782         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54783         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54784         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54785         the particular module is requested.
54786         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54787         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54788         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54789         * modules/sys_socket (Depends-on): Add link-warning.
54790         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54791         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54792         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54793         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54794         GL_LINK_WARNING.
54795         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54796         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54797         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54798         * doc/posix-functions/getpeername.texi: Mention the new module
54799         'getpeername'.
54800         * doc/posix-functions/getsockname.texi: Mention the new module
54801         'getsockname'.
54802         * doc/posix-functions/getsockopt.texi: Mention the new module
54803         'getsockopt'.
54804         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54805         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54806         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54807         * doc/posix-functions/send.texi: Mention the new module 'send'.
54808         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54809         * doc/posix-functions/setsockopt.texi: Mention the new module
54810         'setsockopt'.
54811         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54812         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54813         listen, connect, accept.
54814         * modules/select-tests (Depends-on): Likewise.
54815
54816 2008-10-05  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/winsock.c (strerror): Remove unused #undef.
54819         (rpl_close): Remove unused local variable.
54820
54821         * modules/sys_socket (Depends-on); Add errno.
54822
54823 2008-10-05  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54826         (select): Add a link warning when the 'select' module is not used.
54827         * modules/sys_select (Depends-on): Add link-warning.
54828         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54829         Suggested by Paolo Bonzini.
54830
54831 2008-10-05  Jim Meyering  <meyering@redhat.com>
54832
54833         bootstrap: check for LT_INIT more portably
54834         * build-aux/bootstrap: Avoid using grep -E, since it's not
54835         portable enough.  Suggestion from Bruno Haible.
54836
54837 2008-10-05  Bruno Haible  <bruno@clisp.org>
54838
54839         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54840         as being fixed by gnulib.
54841
54842 2008-10-05  Bruno Haible  <bruno@clisp.org>
54843
54844         * modules/select-tests: New file, mostly copied from
54845         modules/sys_select-tests.
54846         * tests/test-select.c: New file, mostly copied from
54847         tests/test-sys_select.c.
54848         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54849         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54850         (Makefile.am): Remove test_sys_select_LDADD.
54851
54852         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54853         to an undefined symbol, for an error message.
54854         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54855         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54856         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54857         winsock-select.c here.
54858         * modules/sys_select (Files): Remove lib/winsock-select.c.
54859         (Depends-on): Remove alloca.
54860         (Makefile.am): Substitute GNULIB_SELECT.
54861         * modules/select: New file.
54862         * doc/posix-functions/select.texi: Update.
54863
54864 2008-10-05  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54867         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54868         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54869         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54870         getdtablesize.
54871         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54872         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54873
54874 2008-10-05  Bruno Haible  <bruno@clisp.org>
54875
54876         * modules/getdtablesize-tests: New file.
54877         * tests/test-getdtablesize.c: New file.
54878
54879         New module 'getdtablesize'.
54880         * lib/unistd.in.h (getdtablesize): New declaration.
54881         * lib/getdtablesize.c: New file.
54882         * m4/getdtablesize.m4: New file.
54883         * modules/getdtablesize: New file.
54884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54885         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54886         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54887         HAVE_GETDTABLESIZE.
54888         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54889
54890 2008-10-05  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/sched (Makefile.am): Fix typo.
54893         Reported by Simon Josefsson.
54894
54895 2008-10-05  Jim Meyering  <meyering@redhat.com>
54896
54897         bootstrap: check for LT_INIT, too
54898         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54899         are deprecated.  Suggestion from Ralf Wildenhues.
54900
54901 2008-10-05  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54904         overriding them by ours.
54905         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54906
54907 2008-10-05  Jim Meyering  <meyering@redhat.com>
54908
54909         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54910         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54911         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54912
54913 2008-10-04  Bruno Haible  <bruno@clisp.org>
54914
54915         * modules/dup2 (License): Change to LGPLv2+.
54916         * modules/sleep (License): Likewise.
54917         * modules/perror (License): Likewise.
54918         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54919         Blake.
54920         * modules/signal (License): Likewise.
54921         * modules/sigprocmask (License): Likewise.
54922         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54923         Meyering.
54924
54925 2008-10-04  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54928         Reported by Rainer Tammer <tammer@tammer.net>.
54929
54930 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54931             Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54934         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54935         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54936
54937 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54938
54939         filevercmp: new module
54940         * lib/filevercmp.h: New function filevercmp comparing version strings.
54941         * lib/filevercmp.c: Implementation of filevercmp function.
54942         * modules/filevercmp: Module metadata.
54943         * tests/test-filevercmp.c: Unit test for new module.
54944         * modules/filevercmp-tests: Unit test metadata.
54945         * MODULES.html.sh: Add filevercmp module.
54946
54947 2008-10-03  Bruno Haible  <bruno@clisp.org>
54948
54949         * lib/c-ctype.h: Add comment.
54950         Reported by Jim Meyering.
54951
54952 2008-10-02  Bruno Haible  <bruno@clisp.org>
54953
54954         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54955
54956 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54957
54958         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54959         name of bootstrap.conf accordingly.
54960
54961 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54962
54963         * build-aux/bootstrap: Install git-merge-changelog configuration
54964         items into .gitconfig if needed.
54965
54966 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54967
54968         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54969         git repository, and initialize/update it accordingly.
54970
54971 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54972
54973         * modules/fsync-tests: New file.
54974         * tests/test-fsync.c: New file.
54975
54976         New module 'fsync'.
54977         * lib/fsync.c: New file.
54978         * m4/fsync.m4: New file.
54979         * modules/fsync: New file.
54980         * lib/unistd.in.h (fsync): New declaration.
54981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54982         GNULIB_FSYNC and HAVE_FSYNC.
54983         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54984         * MODULES.html.sh (posix_functions): Add fsync.
54985         * doc/posix-functions/fsync.texi: Mention the new module.
54986
54987 2008-10-02  Jim Meyering  <meyering@redhat.com>
54988
54989         fts.c: sync with similar code from coreutils' remove.c
54990         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54991         Guard also with "#if defined __linux__", since for now at least,
54992         this code is Linux-kernel-specific.
54993
54994 2008-10-02  Jim Meyering  <meyering@redhat.com>
54995
54996         fts: bug fixes
54997         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54998         Include <sys/vfs.h>, not <sys/statfs.h>.
54999
55000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55001         Include <sys/vfs.h>, not <sys/statfs.h>.
55002
55003 2008-10-01  Bruno Haible  <bruno@clisp.org>
55004
55005         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55007         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55008         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55009         * doc/posix-functions/posix_spawnp.texi: Likewise.
55010         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55011         whether posix_spawn actually works.
55012         * m4/pipe.m4 (gl_PIPE): Likewise.
55013         * modules/execute (Files): Add m4/posix_spawn.m4.
55014         * modules/pipe (Files): Add m4/posix_spawn.m4.
55015         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55016
55017 2008-10-01  Jim Meyering  <meyering@redhat.com>
55018
55019         remove trailing spaces
55020         * NEWS: Likewise.
55021         * lib/poll.c (poll): Likewise.
55022         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55023         * lib/winsock.c (rpl_close): Likewise.
55024         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55025         * modules/yield: Likewise.
55026         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55027         * tests/test-sys_select.c (connect_to_socket): Likewise.
55028
55029         fts.c: adjust a new interface to be more generally useful
55030         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55031         (fts_build): Adjust caller.
55032
55033 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55034
55035         * modules/cond-tests: New file.
55036         * tests/test-cond.c: New file.
55037
55038 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55039             Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/cond (Dependencies): Add errno, time.
55042         * lib/glthread/cond.h: Include <time.h>.
55043         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55044         across platforms.
55045
55046 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55047             Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55050
55051 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55052             Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/tls-tests (Depends-on): Add thread, yield.
55055         (configure.ac): Remove all checks.
55056         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55057         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55058         gl_thread_self): Remove definitions. Include glthread/thread.h and
55059         glthread/yield.h instead.
55060         (test_tls): Pass an additional NULL argument to gl_thread_join.
55061
55062 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55063             Bruno Haible  <bruno@clisp.org>
55064
55065         * modules/lock-tests (Depends-on): Add thread, yield.
55066         (configure.ac): Remove all checks.
55067         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55068         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55069         gl_thread_self): Remove definitions. Include glthread/thread.h and
55070         glthread/yield.h instead.
55071         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55072         additional NULL argument to gl_thread_join.
55073
55074 2008-09-30  Bruno Haible  <bruno@clisp.org>
55075
55076         Fix the Win32 implementation of the 'thread' module.
55077         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55078         pointer type.
55079         (gl_thread_self): Invoke gl_thread_self_func.
55080         (gl_thread_self_func): New declaration.
55081         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55082         (do_init_self_key, init_self_key): New functions.
55083         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55084         Remove some fields.
55085         (running_threads, running_lock): Remove variables.
55086         (get_current_thread_handle): New function.
55087         (gl_thread_self_func, wrapper_func, glthread_create_func,
55088         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55089         simplified.
55090
55091 2008-09-30  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55094         files.
55095
55096 2008-09-30  Jim Meyering  <meyering@redhat.com>
55097
55098         fts.m4: correct the test for statfs.f_type
55099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55100         when checking for statfs.f_type.
55101
55102 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55103
55104         tests: avoid some compiler warnings
55105         * tests/test-memchr.c (main): Pass NULL indirectly.
55106         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55107
55108 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55109
55110         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55111         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55112         exactly specified dayshifts.
55113         (dayshift): New rule.
55114         (rel): Add dayshift.
55115         (relative_time_table) [tomorrow, yesterday, today, now]:
55116         Use tDAY_SHIFT in place of tDAY_UNIT.
55117         * tests/test-getdate.c: Add tests for now-disallowed countable
55118         dayshifts, e.g., "4 yesterday ago".
55119
55120 2008-09-29  Bruno Haible  <bruno@clisp.org>
55121
55122         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55123         * tests/test-posix_spawn1.in.sh: Renamed from
55124         tests/test-posix_spawn.in.sh.
55125         * tests/test-posix_spawn2.c: New file.
55126         * tests/test-posix_spawn2.in.sh: New file.
55127         * modules/posix_spawnp-tests (Files): Update.
55128         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55129
55130 2008-09-29  Bruno Haible  <bruno@clisp.org>
55131
55132         Propagate effects of putenv/setenv/unsetenv to child processes.
55133         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55134         * lib/pipe.c (create_pipe): Likewise.
55135
55136 2008-09-29  Bruno Haible  <bruno@clisp.org>
55137
55138         Enable use of shell scripts as executables in mingw.
55139         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55140         run the program as a shell script.
55141         * lib/pipe.c (create_pipe): Likewise.
55142         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55143         resulting array.
55144
55145 2008-09-29  Eric Blake  <ebb9@byu.net>
55146
55147         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55148
55149 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55150
55151         * doc/posix-functions/accept.texi: Update mingw problems.
55152         * doc/posix-functions/bind.texi: Update mingw problems.
55153         * doc/posix-functions/close.texi: Update mingw problems.
55154         * doc/posix-functions/connect.texi: Update mingw problems.
55155         * doc/posix-functions/getpeername.texi: Update mingw problems.
55156         * doc/posix-functions/getsockname.texi: Update mingw problems.
55157         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55158         * doc/posix-functions/ioctl.texi: Update mingw problems.
55159         * doc/posix-functions/listen.texi: Update mingw problems.
55160         * doc/posix-functions/recv.texi: Update mingw problems.
55161         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55162         * doc/posix-functions/select.texi: Update mingw problems.
55163         * doc/posix-functions/send.texi: Update mingw problems.
55164         * doc/posix-functions/sendto.texi: Update mingw problems.
55165         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55166         * doc/posix-functions/socket.texi: Update mingw problems.
55167
55168 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55169             Bruno Haible  <bruno@clisp.org>
55170
55171         * lib/sys_select.in.h: Include sys/time.h.
55172         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55173         * modules/sys_select: Depend on sys_time.
55174         * tests/test-sys_select.c: Test that sys/select.h defines struct
55175         timeval fully.
55176
55177 2008-09-29  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55180         * lib/sys_select.in.h: Likewise.
55181
55182 2008-09-29  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55185
55186 2008-09-29  Bruno Haible  <bruno@clisp.org>
55187
55188         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55189         Set LIBSOCKET instead of augmenting LIBS.
55190         * modules/sockets (Link): New section.
55191         * modules/sockets-tests (test_sockets_LDADD): New variable.
55192         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55193         * modules/poll-tests (test_poll_LDADD): New variable.
55194         * NEWS: Document the change.
55195
55196 2008-09-29  Bruno Haible  <bruno@clisp.org>
55197
55198         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55199         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55200         ARPA_INET_H directly.
55201         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55202
55203 2008-09-28  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55206         from gl_HEADER_SYS_SOCKET.
55207         (gl_HEADER_SYS_SOCKET): Invoke it.
55208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55209
55210 2008-09-28  Bruno Haible  <bruno@clisp.org>
55211
55212         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55213         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55214         Needed on OSF/1 4.0.
55215
55216 2008-09-28  Bruno Haible  <bruno@clisp.org>
55217
55218         Override open more carefully.
55219         * lib/open.c (orig_open): New function.
55220         (rpl_open): Use orig_open instead of open.
55221         * lib/fcntl.in.h: Add special invocation convention.
55222         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55223         (gl_FUNC_OPEN): Invoke it.
55224
55225         Override freopen more carefully.
55226         * lib/freopen.c (orig_freopen): New function.
55227         (rpl_freopen): Use orig_freopen instead of freopen.
55228         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55229         (gl_FUNC_FREOPEN): Invoke it.
55230
55231         Override fopen more carefully.
55232         * lib/fopen.c (orig_fopen): New function.
55233         (rpl_fopen): Use orig_fopen instead of fopen.
55234         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55235         (gl_FUNC_FOPEN): Invoke it.
55236         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55237
55238 2008-09-28  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55241         SIGPIPE.
55242
55243 2008-09-28  Bruno Haible  <bruno@clisp.org>
55244
55245         * tests/test-sigaction.c (handler, main): Disable the check whether
55246         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55247         glibc systems with LinuxThreads.
55248
55249 2008-09-28  Bruno Haible  <bruno@clisp.org>
55250
55251         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55252
55253         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55254         with AIX xlc.
55255         * lib/fcntl.in.h (open): Likewise.
55256         Reported by Rainer Tammer <tammer@tammer.net>.
55257
55258 2008-09-28  Bruno Haible  <bruno@clisp.org>
55259
55260         * modules/posix_spawnp-tests: New file.
55261         * tests/test-posix_spawn.c: New file.
55262         * tests/test-posix_spawn.in.sh: New file.
55263
55264         New module 'posix_spawnp'.
55265         * modules/posix_spawnp: New file.
55266         * lib/spawnp.c: New file, from GNU libc with modifications.
55267         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55268
55269         New module 'posix_spawn'.
55270         * modules/posix_spawn: New file.
55271         * lib/spawn.c: New file, from GNU libc with modifications.
55272         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55273
55274         New module 'posix_spawnattr_destroy'.
55275         * modules/posix_spawnattr_destroy: New file.
55276         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55277         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55278         module.
55279
55280         New module 'posix_spawnattr_setsigmask'.
55281         * modules/posix_spawnattr_setsigmask: New file.
55282         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55283         modifications.
55284         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55285         new module.
55286
55287         New module 'posix_spawnattr_getsigmask'.
55288         * modules/posix_spawnattr_getsigmask: New file.
55289         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55290         modifications.
55291         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55292         new module.
55293
55294         New module 'posix_spawnattr_setsigdefault'.
55295         * modules/posix_spawnattr_setsigdefault: New file.
55296         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55297         modifications.
55298         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55299         new module.
55300
55301         New module 'posix_spawnattr_getsigdefault'.
55302         * modules/posix_spawnattr_getsigdefault: New file.
55303         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55304         modifications.
55305         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55306         new module.
55307
55308         New module 'posix_spawnattr_setschedpolicy'.
55309         * modules/posix_spawnattr_setschedpolicy: New file.
55310         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55311         modifications.
55312         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55313         new module.
55314
55315         New module 'posix_spawnattr_getschedpolicy'.
55316         * modules/posix_spawnattr_getschedpolicy: New file.
55317         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55318         modifications.
55319         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55320         new module.
55321
55322         New module 'posix_spawnattr_setschedparam'.
55323         * modules/posix_spawnattr_setschedparam: New file.
55324         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55325         modifications.
55326         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55327         new module.
55328
55329         New module 'posix_spawnattr_getschedparam'.
55330         * modules/posix_spawnattr_getschedparam: New file.
55331         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55332         modifications.
55333         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55334         new module.
55335
55336         New module 'posix_spawnattr_setpgroup'.
55337         * modules/posix_spawnattr_setpgroup: New file.
55338         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55339         modifications.
55340         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55341         module.
55342
55343         New module 'posix_spawnattr_getpgroup'.
55344         * modules/posix_spawnattr_getpgroup: New file.
55345         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55346         modifications.
55347         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55348         module.
55349
55350         New module 'posix_spawnattr_setflags'.
55351         * modules/posix_spawnattr_setflags: New file.
55352         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55353         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55354         module.
55355
55356         New module 'posix_spawnattr_getflags'.
55357         * modules/posix_spawnattr_getflags: New file.
55358         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55359         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55360         module.
55361
55362         New module 'posix_spawnattr_init'.
55363         * modules/posix_spawnattr_init: New file.
55364         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55365         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55366         module.
55367
55368         New module 'posix_spawn_file_actions_destroy'.
55369         * modules/posix_spawn_file_actions_destroy: New file.
55370         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55371         modifications.
55372         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55373         the new module.
55374
55375         New module 'posix_spawn_file_actions_addopen'.
55376         * modules/posix_spawn_file_actions_addopen: New file.
55377         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55378         modifications.
55379         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55380         the new module.
55381
55382         New module 'posix_spawn_file_actions_adddup2'.
55383         * modules/posix_spawn_file_actions_adddup2: New file.
55384         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55385         modifications.
55386         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55387         the new module.
55388
55389         New module 'posix_spawn_file_actions_addclose'.
55390         * modules/posix_spawn_file_actions_addclose: New file.
55391         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55392         modifications.
55393         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55394         the new module.
55395
55396         New module 'posix_spawn_file_actions_init'.
55397         * modules/posix_spawn_file_actions_init: New file.
55398         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55399         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55400         new module.
55401
55402         New module 'posix_spawn-internal'.
55403         * modules/posix_spawn-internal: New file.
55404         * lib/spawn_int.h: New file, from GNU libc with modifications.
55405         * lib/spawni.c: New file, from GNU libc with modifications.
55406         * m4/posix_spawn.m4: New file.
55407
55408         New module 'spawn'.
55409         * modules/spawn: New file.
55410         * lib/spawn.in.h: New file, from GNU libc with modifications.
55411         * m4/spawn_h.m4: New file.
55412         * doc/posix-headers/spawn.texi: Mention the new module.
55413
55414 2008-09-28  Bruno Haible  <bruno@clisp.org>
55415
55416         * modules/sched-tests: New file.
55417         * tests/test-sched.c: New file.
55418
55419         New module 'sched'.
55420         * modules/sched: New file.
55421         * lib/sched.in.h: New file.
55422         * m4/sched_h.m4: New file.
55423         * doc/posix-headers/sched.texi: Mention the new module.
55424
55425 2008-09-27  Eric Blake  <ebb9@byu.net>
55426
55427         Fix previous patch, and tweak references to $0.
55428         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55429         (func_version, func_gnulib_dir): Don't call this program
55430         gnulib-tool.
55431         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55432         with using $0 in function.
55433         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55434         (func_fatal_error): Reuse the name the user invoked us with.
55435
55436 2008-09-27  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55439         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55440         (gl_ICONV_H): Not here.
55441         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55442         instead of assigning ICONV_H directly.
55443
55444         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55446         WCHAR_H directly.
55447
55448 2008-09-27  Bruno Haible  <bruno@clisp.org>
55449
55450         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55451         * modules/arpa_inet (Depends-on): Add link-warning.
55452         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55453         * modules/unistd (Makefile.am): Likewise.
55454
55455 2008-09-26  Bruno Haible  <bruno@clisp.org>
55456
55457         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55458         variables.
55459         (func_version): Essentially copied from gnulib-tool.
55460         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55461         func_readlink): Copied from gnulib-tool.
55462
55463 2008-09-26  Bruno Haible  <bruno@clisp.org>
55464
55465         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55466         invoking git-version-gen.
55467
55468 2008-09-26  Bruno Haible  <bruno@clisp.org>
55469
55470         * posix-modules: Update to directory names changed on 2008-01-19.
55471         Remove commas in output before splitting into words. No more need to
55472         avoid 'ftruncate' since 2007-02-19.
55473
55474 2008-09-26  Bruno Haible  <bruno@clisp.org>
55475
55476         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55477
55478 2008-09-26  Bruno Haible  <bruno@clisp.org>
55479
55480         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55481         * modules/fwriteerror (Depends-on): Add errno.
55482
55483 2008-09-26  Bruno Haible  <bruno@clisp.org>
55484
55485         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55486         * tests/test-vc-list-files-cvs.sh: Likewise.
55487
55488 2008-09-26  Bruno Haible  <bruno@clisp.org>
55489
55490         * doc/posix-headers/sys_resource.texi: Reorder items.
55491
55492 2008-09-26  Jim Meyering  <meyering@redhat.com>
55493
55494         fts: tweak inode comparison function
55495         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55496         inode numbers, as documented.
55497
55498         fts: sort dirent entries on inode number before traversing
55499         This avoids a quadratic, seek-related performance penalty when
55500         operating on a directory containing many entries (measurable at 10k;
55501         3.5 hours at 2 million entries with a cold cache) on certain types
55502         of file systems, including ext3 and ext4, but not tmpfs.
55503         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55504         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55505         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55506         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55507         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55508         (fts_build): Set the stat.st_ino member from D_INO.
55509         If it is likely to be useful, sort dirent entries on inode number.
55510
55511         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55512         and the struct statfs.f_type member.
55513         * modules/fts (Depends-on): Add d-ino.
55514
55515 2008-09-26  Bruno Haible  <bruno@clisp.org>
55516
55517         * modules/sigpipe-die (Depends-on): Add sigpipe.
55518
55519         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55520         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55521         and GNULIB_STDIO_H_SIGPIPE are set.
55522         * lib/stdio-write.c: New file.
55523         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55524         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55525         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55526         REPLACE_STDIO_WRITE_FUNCS.
55527         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55528         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55529         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55530         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55531         * modules/stdio (Files): Add lib/stdio-write.c.
55532         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55533         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55534         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55535         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55536         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55537         REPLACE_FPRINTF_POSIX.
55538         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55539         REPLACE_PRINTF_POSIX.
55540         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55541         REPLACE_VFPRINTF_POSIX.
55542         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55543         REPLACE_VPRINTF_POSIX.
55544         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55545         SIGPIPE issue.
55546         * doc/posix-functions/fputc.texi: Likewise.
55547         * doc/posix-functions/fputs.texi: Likewise.
55548         * doc/posix-functions/fwrite.texi: Likewise.
55549         * doc/posix-functions/printf.texi: Likewise.
55550         * doc/posix-functions/putc.texi: Likewise.
55551         * doc/posix-functions/putchar.texi: Likewise.
55552         * doc/posix-functions/puts.texi: Likewise.
55553         * doc/posix-functions/vfprintf.texi: Likewise.
55554         * doc/posix-functions/vprintf.texi: Likewise.
55555
55556         * modules/safe-write (Depends-on): Add write.
55557
55558         * modules/sigpipe-tests: New file.
55559         * tests/test-sigpipe.c: New file.
55560         * tests/test-sigpipe.sh: New file.
55561
55562         * modules/write: New file.
55563         * lib/unistd.in.h: Include <sys/types.h>.
55564         (write): New declaration.
55565         * lib/write.c: New file.
55566         * m4/write.m4: New file.
55567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55568         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55569         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55570         GNULIB_WRITE, REPLACE_WRITE.
55571         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55572         and the SIGPIPE issue.
55573
55574         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55575         (raise): New declaration.
55576         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55577         (ext_signal): New function.
55578         (rpl_raise): New function.
55579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55580         GNULIB_SIGNAL_H_SIGPIPE.
55581         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55582         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55583
55584         * modules/sigpipe: New file.
55585         * m4/sigpipe.m4: New file.
55586
55587 2008-09-25  Derek Price  <derek@ximbiot.com>
55588             Bruno Haible  <bruno@clisp.org>
55589
55590         * gnulib-tool (func_import): Report all license incompatibilities, not
55591         just the first one.
55592
55593 2008-09-25  Bruno Haible  <bruno@clisp.org>
55594
55595         * gnulib-tool (func_import): When computing the edits, consider not
55596         only the Makefile.ams that exist but also those that will be generated.
55597
55598 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55599
55600         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55601         fixes gnulib-tool --test warning about duplicate dependency.
55602
55603 2008-09-25  Bruno Haible  <bruno@clisp.org>
55604
55605         * gnulib-tool: Don't ask the user to perform edits in the generated
55606         Makefile.ams.
55607         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55608         apply to the Makefile.am being generated.
55609         (func_emit_tests_Makefile_am): Execute edits that apply to the
55610         Makefile.am being generated.
55611         (func_import): Setup list of Makefile.am edits before emitting the
55612         Makefile.ams, not at the end.
55613         (func_create_testdir): Update.
55614         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55615
55616 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55617
55618         * gnulib-tool (func_import): Store the --tests-base option in the
55619         comment in gnulib-cache.m4.
55620
55621 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55622
55623         * NEWS: Document increased portability that sys_select now provides.
55624
55625         * lib/sys_select.in.h: Install select wrapper.
55626         * lib/sys_socket.in.h: Use more descriptive name when there is no
55627         select wrapper.
55628         * lib/winsock-select.c: New.
55629         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55630         Require gl_HEADER_SYS_SOCKET.
55631         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55632         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55633         * tests/test-sys_select.c: Add functional tests.
55634
55635 2008-09-24  Eric Blake  <ebb9@byu.net>
55636
55637         open, fopen: close fd leak in last patch
55638         * lib/open.c (rpl_open): Close fd before returning error.
55639         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55640         * doc/posix-functions/open.texi (open): Document that Irix also
55641         has the bug.
55642         * doc/posix-functions/fopen.texi (fopen): Likewise.
55643         Reported by Paolo Bonzini.
55644
55645 2008-09-24  Bruno Haible  <bruno@clisp.org>
55646
55647         Ensure that a filename ending in a slash cannot be used to access a
55648         non-directory.
55649         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55650         to check whether it's really a directory.
55651         * lib/fopen.c: Include fcntl.h, unistd.h.
55652         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55653         and fdopen().
55654         * modules/fopen (Depends-on): Add unistd.
55655         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55656         * tests/test-fopen.c (main): Likewise.
55657         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55658         * doc/posix-functions/fopen.texi: Likewise.
55659         Reported by Eric Blake.
55660
55661 2008-09-23  Eric Blake  <ebb9@byu.net>
55662
55663         c-stack: avoid compiler optimizations when provoking overflow
55664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55665         recursion harder to optimize, to ensure a stack overflow occurs.
55666         * tests/test-c-stack.c (recurse): Likewise.
55667         Borrowed from libsigsegv.
55668
55669         c-stack: work around Irix sigaltstack bug
55670         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55671         whether sigaltstack uses wrong end of stack_t (copied in part from
55672         libsigsegv).
55673         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55674         Irix bug, without requiring an over-allocation.
55675         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55676         bug.
55677
55678         fopen: document mingw bug on directories
55679         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55680         not allowing a stream visiting a directory, even though reading
55681         from such a stream is not portable.
55682
55683 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55684
55685         * lib/poll.c: Rewrite.
55686         * modules/poll: Depend on alloca.
55687
55688 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55689
55690         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55691         instead define prototypes for a full set of wrappers.  Ensure
55692         that Cygwin does not use the compatibility code, which is only
55693         for MinGW.
55694         * lib/winsock.c: New.
55695         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55696         * modules/sys_socket: Add lib/winsock.c.
55697
55698         * modules/poll-tests: Add errno and perror.
55699         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55700
55701 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55702
55703         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55704
55705 2008-09-23  Bruno Haible  <bruno@clisp.org>
55706
55707         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55708         * doc/glibc-functions/*: Likewise.
55709
55710 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55711
55712         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55713         success.
55714
55715 2008-09-22  Eric Blake  <ebb9@byu.net>
55716             Bruno Haible  <bruno@clisp.org>
55717
55718         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55719         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55720         supply %A but mishandle pseudo-NaN.
55721         Reported by Simon Josefsson.
55722
55723 2008-09-21  Bruno Haible  <bruno@clisp.org>
55724
55725         * tests/test-lock.c (main): Tweak skip message.
55726         * tests/test-tls.c (main): Likewise.
55727
55728 2008-09-21  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55731         whether 'struct sigaction' has sa_sigaction here...
55732         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55733         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55734
55735 2008-09-21  Bruno Haible  <bruno@clisp.org>
55736
55737         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55738         section.
55739         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55740         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55741         the new section.
55742         (Support for obsolete systems lacking POSIX:2001): New section.
55743         (String handling <string.h>): Move strdup to the new section.
55744         Suggested by Simon Josefsson and Paolo Bonzini.
55745
55746 2008-09-21  Bruno Haible  <bruno@clisp.org>
55747
55748         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55749         exponents in %e and %g results on 'long double'. Needed for mingw's
55750         improved *printf functions.
55751         * tests/test-vasprintf-posix.c (test_function): Likewise.
55752         * tests/test-snprintf-posix.h (test_function): Likewise.
55753         * tests/test-sprintf-posix.h (test_function): Likewise.
55754         Reported by Eric Blake.
55755
55756 2008-09-21  Bruno Haible  <bruno@clisp.org>
55757
55758         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55759         * tests/test-sprintf-posix.h (test_function): Likewise.
55760
55761 2008-09-21  Bruno Haible  <bruno@clisp.org>
55762
55763         * modules/getpass (Depends-on): Add strdup-posix.
55764
55765         New module 'strdup-posix'.
55766         * modules/strdup-posix: New file.
55767         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55768         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55770         REPLACE_STRDUP.
55771         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55772         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55774         strdup-posix.
55775
55776         * modules/strdup (Depends-on): Remove malloc-posix.
55777
55778 2008-09-20  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55781         Wildenhues.
55782
55783 2008-09-20  Bruno Haible  <bruno@clisp.org>
55784
55785         Ensure that wint_t gets defined on IRIX 5.3.
55786         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55787         * lib/wctype.in.h (wint_t): Likewise.
55788         (__wctype_wint_t): Remove type.
55789         (isw*): Use wint_t instead of __wctype_wint_t.
55790         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55791         * modules/wchar (Files): Add m4/wint_t.m4.
55792         (Makefile.am): Substitute HAVE_WINT_T.
55793         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55794         * tests/test-wctype.c: Check that wint_t is defined.
55795         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55796         * doc/posix-headers/wctype.texi: Likewise.
55797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55798
55799 2008-09-18  Bruno Haible  <bruno@clisp.org>
55800
55801         * gnulib-tool (func_exit): Update comment.
55802
55803 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55804
55805         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55806         assumes strdup exists and does not depend on strdup to return
55807         ENOMEM on out of memory conditions.
55808
55809 2008-09-18  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55812         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55813         digits for the exponent.
55814
55815 2008-09-18  Jim Meyering  <meyering@redhat.com>
55816             Bruno Haible  <bruno@clisp.org>
55817
55818         * lib/vasnprintf.c (decimal_point_char): Define also if
55819         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55820
55821 2008-09-16  Bruno Haible  <bruno@clisp.org>
55822         and Eric Blake  <ebb9@byu.net>
55823
55824         vasnprintf: support Irix 5.3
55825         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55826         that mishandle long double infinity.
55827         Reported by Tom G. Christensen.
55828
55829 2008-09-16  Bruno Haible  <bruno@clisp.org>
55830
55831         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55832         Solaris 9.
55833         * doc/glibc-functions/alphasort.texi: Likewise.
55834         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55835
55836 2008-09-16  Jim Meyering  <meyering@redhat.com>
55837
55838         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55839         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55840         a umask modification leak out of a subshell.  Otherwise, the
55841         opensolaris /bin/sh would be accepted and thus cause unwarranted
55842         failures in the coreutils test suite.
55843
55844 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55845
55846         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55847         to succeed.
55848
55849 2008-09-16  Jim Meyering  <meyering@redhat.com>
55850
55851         avoid spurious test failure when library is built without ACL support
55852         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55853         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55854         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55855         * tests/test-copy-acl.sh: Likewise.
55856
55857 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55858
55859         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55860         based on character occurrence counts.
55861
55862 2008-09-15  Eric Blake  <ebb9@byu.net>
55863
55864         tests: avoid some compiler warnings
55865         * tests/test-memchr.c (main): Pass NULL indirectly.
55866         * tests/test-closein.c (main): Avoid unused variable.
55867
55868 2008-09-15  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55871         are missing on OpenBSD 4.0 individually.
55872         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55873
55874 2008-09-15  Bruno Haible  <bruno@clisp.org>
55875
55876         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55877         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55878         * doc/posix-functions/perror.texi: Likewise.
55879         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55880         is missing.
55881         Reported by Eric Blake.
55882
55883         * lib/errno.in.h: Use replacement values >= 2000.
55884         Reported by Eric Blake.
55885
55886 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55887
55888         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55889         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55890         limit.
55891         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55892         compareseq was aborted.
55893
55894 2008-09-14  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55897         yvec_edit_count.
55898         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55899         (fstrcmp_bounded): Simplify result computation accordingly.
55900
55901 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55902
55903         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55904         (fstrcmp): Define in terms of fstrcmp_bounded.
55905         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55906         lower_bound argument.
55907         Return quickly if the result is certainly < lower_bound.
55908         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55909
55910 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55911
55912         * lib/diffseq.h (EARLY_ABORT): New macro.
55913         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55914         evaluates to true.
55915
55916 2008-09-14  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/perror-tests: New file.
55919         * tests/test-perror.sh: New file.
55920         * tests/test-perror.c: New file.
55921
55922         New module 'perror'.
55923         * lib/stdio.in.h (perror): New declaration.
55924         * lib/perror.c: New file.
55925         * m4/perror.m4: New file.
55926         * modules/perror: New file.
55927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55928         * doc/posix-functions/perror.texi: Mention the perror module.
55929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55930         REPLACE_PERROR.
55931         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55932         REPLACE_PERROR.
55933
55934 2008-09-14  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/stdio (Makefile.am): Reorder to match the order in
55937         lib/stdio.in.h.
55938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55939
55940 2008-09-13  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55943
55944 2008-09-13  Bruno Haible  <bruno@clisp.org>
55945
55946         Extend strerror to cover the added errno values.
55947         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55948         (rpl_strerror): Provide error messages for the added errno values and
55949         for the WSA* values.
55950         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55951         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55952         strerror.
55953         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55954         * modules/strerror (Depends-on): Add errno.
55955         * doc/posix-functions/strerror.texi: Document the change.
55956         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55957         and EOVERFLOW.
55958
55959 2008-09-13  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/EOVERFLOW: Remove file.
55962         * m4/eoverflow.m4: Remove file.
55963         * modules/EOVERFLOW-tests: Remove file.
55964         * tests/test-EOVERFLOW.c: Remove file.
55965         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55966         * modules/ftell (Depends-on): Likewise.
55967         * modules/getdelim (Depends-on): Likewise.
55968         * modules/getugroups (Depends-on): Likewise.
55969         * modules/poll (Depends-on): Likewise.
55970         * modules/snprintf (Depends-on): Likewise.
55971         * modules/sprintf-posix (Depends-on): Likewise.
55972         * modules/vasnprintf (Depends-on): Likewise.
55973         * modules/vasprintf (Depends-on): Likewise.
55974         * modules/vfprintf-posix (Depends-on): Likewise.
55975         * modules/vsnprintf (Depends-on): Likewise.
55976         * modules/vsprintf-posix (Depends-on): Likewise.
55977         * modules/xvasprintf (Depends-on): Likewise.
55978         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55979         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55980         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55981         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55982         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55983         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55984         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55985         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55986         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55987         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55988         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55989         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55990         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55991         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55992         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55993         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55994         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55995         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55996         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55997         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55998         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55999         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56000         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56001         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56002         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56004         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56005         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56006         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56007         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56008         * MODULES.html.sh: Remove EOVERFLOW.
56009         * NEWS: Mention the change.
56010
56011 2008-09-13  Bruno Haible  <bruno@clisp.org>
56012
56013         * modules/errno-tests: New file.
56014         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56015
56016         * lib/errno.in.h: New file.
56017         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56018         * modules/errno: New file.
56019         * doc/posix-headers/errno.texi: Update documentation.
56020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56021
56022 2008-09-13  Bruno Haible  <bruno@clisp.org>
56023
56024         * tests/test-poll.c: Use #if for native Windows, rather than testing
56025         __MSVCRT__.
56026
56027 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56028             Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/glob.c: Don't include <pwd.h> on native Windows.
56031         (WINDOWS32): New macro.
56032         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56033
56034 2008-09-13  Bruno Haible  <bruno@clisp.org>
56035
56036         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56037         (ETIMEDOUT): Remove macro.
56038         (glthread_cond_timedwait_multithreaded): New declaration.
56039         (glthread_cond_timedwait): Use it.
56040         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56041         (glthread_cond_timedwait_multithreaded): New function.
56042
56043 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56044
56045         * modules/poll-tests: Do not check for io.h.
56046         * tests/test-poll.c: Check for __MSVCRT__ instead.
56047
56048 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56049
56050         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56051         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56052         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56053
56054 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56055
56056         * modules/poll-tests: New.
56057         * tests/test-poll.c: New.
56058
56059 2008-09-12  Eric Blake  <ebb9@byu.net>
56060
56061         frexp: test for NetBSD failure on -0.0
56062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56063         not all, bugs from NetBSD 3.0 have been fixed.
56064         * doc/posix-functions/frexp.texi (frexp): Document bug.
56065         Reported by Thomas Klausner.
56066
56067         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56068         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56069         literal -0.0.
56070         Reported by Jonathan C. Patschke <jp@centtech.com>.
56071
56072 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56073
56074         * lib/glthread/cond.h: Use dummy implementation also if
56075         USE_WIN32_THREADS.
56076
56077 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56078
56079         * modules/fnmatch-posix (License): Change to LGPLv2+.
56080         * modules/fnmatch-gnu (License): Likewise.
56081
56082 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56083
56084         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56085
56086 2008-09-11  Jim Meyering  <meyering@redhat.com>
56087
56088         * users.txt: Add gtk-vnc.
56089
56090 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56091
56092         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56093         rotate amounts.
56094
56095         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56096         required for 16-bit and 8-bit rotates.
56097         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56098         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56099         UINT8_MAX instead of hard-coded constants.
56100         Suggested by Paul Eggert.
56101
56102 2008-09-07  Bruno Haible  <bruno@clisp.org>
56103
56104         * tests/test-striconveh.c (main): Check behaviour when converting from
56105         UTF-7.
56106
56107         Make striconveh work better with stateful encodings.
56108         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56109         that iconv does not increment the inptr when returning -1/EINVAL.
56110
56111 2008-09-07  Bruno Haible  <bruno@clisp.org>
56112
56113         * build-aux/config.rpath: Update according to libtool-2.2.6.
56114         * build-aux/config.libpath: Likewise.
56115
56116 2008-09-06  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56119         * lib/freadptr.c (freadptr): Likewise.
56120         * lib/freadseek.c (freadptrinc): Likewise.
56121         Reported by Simon Josefsson.
56122
56123 2008-09-06  Bruno Haible  <bruno@clisp.org>
56124
56125         * modules/freadptr (License): Change to LGPLv2+.
56126         * modules/freadseek (License): Likewise.
56127         Suggested by Eric Blake.
56128
56129         * modules/memchr2 (License): Change to LGPLv2+.
56130         Approved by Eric Blake.
56131
56132 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56133             Bruno Haible  <bruno@clisp.org>
56134
56135         Make gnulib-tool work with native 'sed' on AIX.
56136         * gnulib-tool (sed_noop): New variable.
56137         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56138         func_add_or_update, func_create_testdir): Use it to initialize sed
56139         script variables.
56140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56141
56142 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56143             Bruno Haible  <bruno@clisp.org>
56144
56145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56146         also works after #include directives.
56147
56148 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56149
56150         getdate.y: reject an out-of-range timezone value
56151         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56152         the range [-24...+24].  When specified with only one or two digits,
56153         * tests/test-getdate.c: Tests for the fix.
56154         * doc/getdate.texi: Document this change.
56155
56156 2008-09-03  Bruno Haible  <bruno@clisp.org>
56157
56158         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56159
56160 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56161
56162         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56163         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56164         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56165         Blake <ebb9@byu.net>.
56166
56167         * tests/test-bitrotate.c: Add more test vectors.
56168
56169 2008-09-02  Eric Blake  <ebb9@byu.net>
56170
56171         vasnprintf-posix: handle large precision via %.*d
56172         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56173         when handling it ourselves.
56174         * tests/test-vasnprintf-posix.c (test_function): Add test.
56175         * tests/test-snprintf-posix.h (test_function): Likewise.
56176         * tests/test-sprintf-posix.h (test_function): Likewise.
56177         * tests/test-vasprintf-posix.c (test_function): Likewise.
56178         Reported by Alain Guibert.
56179
56180 2008-09-01  Eric Blake  <ebb9@byu.net>
56181
56182         c-stack: make configure-time check more robust
56183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56184         successful sigaction call.
56185         Reported by Tom G. Christensen.
56186
56187 2008-09-01  Bruno Haible  <bruno@clisp.org>
56188
56189         New module 'findprog-lgpl'.
56190         * modules/findprog-lgpl: New file.
56191         * lib/findprog-lgpl.c: New file.
56192         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56193         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56194         to decide whether to use strdup or xstrdup, concatenated_filename or
56195         xconcatenated_filename.
56196
56197 2008-09-01  Bruno Haible  <bruno@clisp.org>
56198
56199         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56200         'xconcat-filename' (GPL).
56201         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56202         (License): Change to LGPLv2+.
56203         * modules/xconcat-filename: New file.
56204         * lib/concat-filename.h (concatenated_filename): Change specification.
56205         (xconcatenated_filename): New declaration.
56206         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56207         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56208         memory situations.
56209         * lib/xconcat-filename.c: New file.
56210         * NEWS: Mention the change.
56211         * lib/findprog.c: Include concat-filename.h, not filename.h.
56212         (find_in_path): Use xconcatenated_filename instead of
56213         concatenated_filename.
56214         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56215         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56216         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56217         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56218         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56219         instead of concatenated_filename.
56220         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56221         (execute_java_class): Use xconcatenated_filename instead of
56222         concatenated_filename.
56223         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56224         * modules/javacomp (Depends-on): Likewise.
56225         * modules/javaexec (Depends-on): Likewise.
56226
56227 2008-09-01  Bruno Haible  <bruno@clisp.org>
56228
56229         Split module 'filename' into 'filename' and 'concat-filename'.
56230         * modules/filename: Keep only lib/filename.h.
56231         (License): Change to LGPLv2+.
56232         * modules/concat-filename: New file, extracted from modules/filename.
56233         * lib/filename.h (concatenated_filename): Remove declaration.
56234         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56235         * lib/concat-filename.c: Include concat-filename.h.
56236         * NEWS: Mention the change.
56237
56238 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56239
56240         * lib/bitrotate.h (rotl8, rotr8): Add.
56241
56242         * modules/bitrotate (configure.ac): Need
56243         AC_REQUIRE([AC_C_INLINE]).
56244         (Description): Mention stdint.h.  Reported by Bruno Haible
56245         <bruno@clisp.org>.
56246
56247         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56248         Paolo Bonzini <bonzini@gnu.org>.
56249
56250 2008-08-31  Bruno Haible  <bruno@clisp.org>
56251
56252         Assume Solaris specific bi-arch conventions on Solaris systems.
56253         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56254         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56256         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56257         like acl_libdirstem.
56258         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56259         acl_libdirstem.
56260         * NEWS: Mention the change.
56261         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56262
56263 2008-08-31  Jim Meyering  <meyering@redhat.com>
56264
56265         * lib/strftime.h: Add comments describing the two added arguments.
56266
56267         remove duplicate #include directives
56268         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56269         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56270
56271 2008-08-31  Bruno Haible  <bruno@clisp.org>
56272
56273         New module 'sigpipe-die'.
56274         * modules/sigpipe-die: New file.
56275         * lib/sigpipe-die.h: New file.
56276         * lib/sigpipe-die.c: New file.
56277         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56278
56279 2008-08-31  Bruno Haible  <bruno@clisp.org>
56280
56281         Don't override previously installed signal handlers.
56282         * lib/fatal-signal.c (saved_sigactions): New variable.
56283         (uninstall_handlers): Reset the signal to the saved handler, not
56284         to SIG_DFL (except when ignored).
56285         (install_handlers): Save the previous handlers.
56286
56287 2008-08-30  Bruno Haible  <bruno@clisp.org>
56288
56289         * gnulib-tool (func_reset_sigpipe): New function.
56290         (func_get_automake_snippet, func_modules_transitive_closure,
56291         func_import): Invoke it before a join command that reads from stdin,
56292         to avoid "echo: write error: Broken pipe" error messages on stderr.
56293         Reported by Sam Steingold <sds@gnu.org>.
56294
56295 2008-08-30  Bruno Haible  <bruno@clisp.org>
56296
56297         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56298         Code copied from m4/open.m4.
56299         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56300         access and the filename ends in a slash. Code copied from lib/open.c.
56301         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56302         * tests/test-fopen.c (main): Check against bug with trailing slash.
56303
56304 2008-08-29  Bruno Haible  <bruno@clisp.org>
56305
56306         Avoid some "gcc -pedantic" warnings.
56307         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56308         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56309         * lib/dirent.in.h: Likewise.
56310         * lib/fcntl.in.h: Likewise.
56311         * lib/float.in.h: Likewise.
56312         * lib/iconv.in.h: Likewise.
56313         * lib/inttypes.in.h: Likewise.
56314         * lib/locale.in.h: Likewise.
56315         * lib/math.in.h: Likewise.
56316         * lib/netinet_in.in.h: Likewise.
56317         * lib/search.in.h: Likewise.
56318         * lib/signal.in.h: Likewise.
56319         * lib/stdarg.in.h: Likewise.
56320         * lib/stdint.in.h: Likewise.
56321         * lib/stdio.in.h: Likewise.
56322         * lib/stdlib.in.h: Likewise.
56323         * lib/string.in.h: Likewise.
56324         * lib/strings.in.h: Likewise.
56325         * lib/sys_select.in.h: Likewise.
56326         * lib/sys_socket.in.h: Likewise.
56327         * lib/sys_stat.in.h: Likewise.
56328         * lib/sys_time.in.h: Likewise.
56329         * lib/sysexits.in.h: Likewise.
56330         * lib/time.in.h: Likewise.
56331         * lib/unistd.in.h: Likewise.
56332         * lib/wchar.in.h: Likewise.
56333         * lib/wctype.in.h: Likewise.
56334         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56335         * modules/fchdir (Makefile.am): Likewise.
56336         * modules/fcntl (Makefile.am): Likewise.
56337         * modules/float (Makefile.am): Likewise.
56338         * modules/iconv_open (Makefile.am): Likewise.
56339         * modules/inttypes (Makefile.am): Likewise.
56340         * modules/locale (Makefile.am): Likewise.
56341         * modules/math (Makefile.am): Likewise.
56342         * modules/netinet_in (Makefile.am): Likewise.
56343         * modules/search (Makefile.am): Likewise.
56344         * modules/signal (Makefile.am): Likewise.
56345         * modules/stdarg (Makefile.am): Likewise.
56346         * modules/stdint (Makefile.am): Likewise.
56347         * modules/stdio (Makefile.am): Likewise.
56348         * modules/stdlib (Makefile.am): Likewise.
56349         * modules/string (Makefile.am): Likewise.
56350         * modules/strings (Makefile.am): Likewise.
56351         * modules/sys_select (Makefile.am): Likewise.
56352         * modules/sys_socket (Makefile.am): Likewise.
56353         * modules/sys_stat (Makefile.am): Likewise.
56354         * modules/sys_time (Makefile.am): Likewise.
56355         * modules/sysexits (Makefile.am): Likewise.
56356         * modules/time (Makefile.am): Likewise.
56357         * modules/unistd (Makefile.am): Likewise.
56358         * modules/wchar (Makefile.am): Likewise.
56359         * modules/wctype (Makefile.am): Likewise.
56360         Reported by Reuben Thomas <rrt@sc3d.org>.
56361
56362 2008-08-29  Bruno Haible  <bruno@clisp.org>
56363
56364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56365         any more.
56366
56367 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56368
56369         * MODULES.html.sh (Misc): Add bitrotate.
56370
56371         * modules/bitrotate: New file.
56372
56373         * lib/bitrotate.h: New file.
56374
56375         * modules/bitrotate-tests: New file.
56376
56377         * tests/test-bitrotate.c: New file.
56378
56379         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56380         on the bitrotate module.
56381
56382         * lib/arctwo.c: Use new bitrotate module.
56383
56384 2008-08-29  Jim Meyering  <meyering@redhat.com>
56385
56386         bootstrap: merge changes from coreutils
56387         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56388         of copied files.  Remove a kludge, now that this is fixed.
56389         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56390         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56391         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56392
56393 2008-08-29  Bruno Haible  <bruno@clisp.org>
56394
56395         * MODULES.html.sh: Remove --cvs-urls option.
56396
56397 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56398
56399         maint.mk: adjust to file name change
56400         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56401
56402 2008-08-28  Jim Meyering  <meyering@redhat.com>
56403
56404         * modules/getndelim2 (License): Relicense to LGPLv2+.
56405         Approved by Richard Stallman for the version of 1995, and by
56406         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56407
56408 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56409
56410         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56411         dummy if one is not available.  Do not touch them if
56412         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56413         (getc_maybe_unlocked): New.
56414         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56415
56416 2008-08-26  Eric Blake  <ebb9@byu.net>
56417
56418         doc/INSTALL: resync from autoconf
56419         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56420         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56421         moving...
56422         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56423         * INSTALL: Regenerate.
56424         * INSTALL.ISO: New file.
56425         * INSTALL.UTF-8: Likewise.
56426
56427 2008-08-26  Jim Meyering  <meyering@redhat.com>
56428
56429         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56430         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56431         these definitions conditional, so that they may be overridden, too.
56432
56433 2008-08-26  Bruno Haible  <bruno@clisp.org>
56434
56435         Generate INSTALL file variants with prettier quotes.
56436         * doc/Makefile (INSTALL_PRELUDE): New macro.
56437         (INSTALL): Use it.
56438         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56439
56440 2008-08-26  Bruno Haible  <bruno@clisp.org>
56441
56442         Run makeinfo in an English locale.
56443         * doc/Makefile (MAKEINFO): New variable.
56444
56445 2008-08-26  Bruno Haible  <bruno@clisp.org>
56446
56447         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56448         Suggested by Eric Blake.
56449
56450 2008-08-25  Bruno Haible  <bruno@clisp.org>
56451
56452         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56453
56454 2008-08-25  Eric Blake  <ebb9@byu.net>
56455
56456         c-stack: test that stack overflow can be caught
56457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56458         that platform allows handling stack overflow; at least OS/2 EMX
56459         has sigaltstack, but crashes before transferring control to
56460         handler on stack overflow.
56461         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56462         check for HAVE_STACK_OVERFLOW_HANDLING.
56463         Reported by Elbert Pol.
56464
56465 2008-08-25  Bruno Haible  <bruno@clisp.org>
56466
56467         * doc/posix-functions/strftime.texi: Fix description of strftime
56468         module.
56469
56470 2008-08-24  Bruno Haible  <bruno@clisp.org>
56471
56472         * tests/uniwidth/test-uc_width2.c: New file.
56473         * tests/uniwidth/test-uc_width2.sh: New file.
56474         * modules/uniwidth/width-tests (Files): Add the new files.
56475         (TESTS): Add uniwidth/test-uc_width2.sh.
56476         (TESTS_ENVIRONMENT): New variable.
56477         (check_PROGRAMS): Add test-uc_width2.
56478         (test_uc_width2_SOURCES): New variable.
56479
56480         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56481         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56482         not 0x00AB.
56483         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56484
56485 2008-08-22  Eric Blake  <ebb9@byu.net>
56486
56487         test-lock, test-tls: mention why a test is skipped
56488         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56489         skipped.
56490         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56491
56492         count-one-bits: relax license
56493         * modules/count-one-bits (License): Relicense to LGPLv2+.
56494         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56495
56496 2008-08-22  Andreas Schwab  <schwab@suse.de>
56497
56498         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56499         Remove spurious space in assignment.
56500
56501 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56502
56503         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56504         Paul Eggert <eggert@CS.UCLA.EDU>.
56505
56506 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56507
56508         * modules/gettext: Add m4/threadlib.m4.
56509
56510 2008-08-19  Eric Blake  <ebb9@byu.net>
56511
56512         test-c-stack: fix compilation failure on FreeBSD 5.0
56513         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56514         headers before <sys/resource.h>.
56515         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56516         the bug.
56517         Reported by Nelson H. F. Beebe.
56518
56519         strverscmp: migrate from "strverscmp.h" to <string.h>
56520         * modules/string (Makefile.am): Add new hooks.
56521         * modules/strverscmp (Files): Remove strverscmp.h.
56522         (Depends-on): Add string.
56523         (configure.ac): Add indicator.
56524         (Include): Mention new header.
56525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56526         defaults.
56527         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56528         results.
56529         * lib/strverscmp.h: Delete.
56530         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56531         * tests/test-strverscmp.c (includes): Adjust client.
56532         * lib/check-version.c (includes): Likewise.
56533         * NEWS: Document the change.
56534
56535         strverscmp: add unit test
56536         * modules/strverscmp-tests: New file.
56537         * tests/test-strverscmp.c: Likewise.
56538
56539 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56540
56541         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56542         regarding Windows crypto stuff, from Mono.
56543
56544 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56545
56546         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56547         if present, for intel RND.  Return error on failures.
56548
56549 2008-08-18  Ben Pfaff  <blp@gnu.org>
56550
56551         gitlog-to-changelog: give better diagnostic for failed pipe-open
56552         * build-aux/gitlog-to-changelog: Improve error message: suggest
56553         that the version of Git may be too old.
56554
56555 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56556
56557         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56558         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56559
56560 2008-08-18  Bruno Haible  <bruno@clisp.org>
56561
56562         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56563         pthread_in_use().
56564
56565 2008-08-18  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/glthread/threadlib.c: Include <pthread.h>.
56568
56569 2008-08-18  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56572         glthread_recursive_lock_* macros.
56573         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56574         Fix syntax error.
56575
56576 2008-08-18  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/glthread/thread.c: Avoid forcing a context switch right after
56579         thread creation.
56580
56581 2008-08-17  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56584         * lib/glthread/thread.h: Provide Win32 specific implementation.
56585         * modules/thread (Files): Add lib/glthread/thread.c.
56586         (Depends-on): Add lock.
56587         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56588
56589 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56590
56591         New module 'yield'.
56592         * modules/yield: New file.
56593         * lib/glthread/yield.h: New file.
56594         * m4/yield.m4: New file.
56595         * MODULES.html.sh (Multithreading): Add yield.
56596
56597 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56598
56599         New module 'thread'.
56600         * modules/thread: New file.
56601         * lib/glthread/thread.h: New file.
56602         * m4/thread.m4: New file.
56603         * MODULES.html.sh (Multithreading): Add thread.
56604
56605 2008-08-17  Bruno Haible  <bruno@clisp.org>
56606
56607         * lib/glthread/lock.h: Include <stdlib.h> always.
56608         * lib/glthread/tls.h: Likewise.
56609         * lib/glthread/cond.h: Likewise.
56610
56611 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56612
56613         New module 'cond'.
56614         * modules/cond: New file.
56615         * lib/glthread/cond.h: New file.
56616         * lib/glthread/cond.c: New file.
56617         * m4/cond.m4: New file.
56618         * MODULES.html.sh (Multithreading): Add cond.
56619
56620 2008-08-16  Eric Blake  <ebb9@byu.net>
56621
56622         c-stack: fix regression on Irix 5.3 from 2008-06-21
56623         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56624         sa_sigaction...
56625         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56626         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56628         * modules/signal (Makefile.am): Use the value.
56629         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56630         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56631         * doc/posix-headers/signal.texi (signal.h): Document this
56632         portability issue.
56633         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56634         Reported by Tom G. Christensen.
56635
56636 2008-08-17  Bruno Haible  <bruno@clisp.org>
56637
56638         New module 'threadlib'.
56639         * modules/threadlib: New file.
56640         * lib/glthread/threadlib.c: New file, extracted from
56641         lib/glthread/lock.c.
56642         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56643         functions.
56644         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56645         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56646         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56647         macros.
56648         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56649         (gl_DISABLE_THREADS): Remove macro.
56650         * modules/lock (Files): Remove build-aux/config.rpath.
56651         (Depends-on): Remove havelib. Add threadlib.
56652         (configure.ac-early): Remove section.
56653         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56654         * modules/tls (Depends-on): Remove lock. Add threadlib.
56655         (Link): New section, copied from threadlib.
56656         * MODULES.html.sh (Multithreading): Add threadlib.
56657
56658 2008-08-14  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56661         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56662         glthread_rwlock_unlock, glthread_rwlock_destroy,
56663         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56664         glthread_recursive_lock_destroy): Define as macros always.
56665         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56666         glthread_lock_lock.
56667         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56668         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56669         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56670         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56671         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56672         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56673         (glthread_recursive_lock_lock_func): Renamed from
56674         glthread_recursive_lock_lock.
56675         (glthread_recursive_lock_unlock_func): Renamed from
56676         glthread_recursive_lock_unlock.
56677         (glthread_recursive_lock_destroy_func): Renamed from
56678         glthread_recursive_lock_destroy.
56679
56680 2008-08-14  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/glthread/lock.h: Renamed from lib/lock.h.
56683         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56684         * lib/glthread/tls.h: Renamed from lib/tls.h.
56685         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56686         * lib/fstrcmp.c: Update includes.
56687         * lib/strsignal.c: Update includes.
56688         * modules/lock (Files, Makefile.am): Update.
56689         (Include): Change to "glthread/lock.h".
56690         * modules/tls (Files, Makefile.am): Update.
56691         (Include): Change to "glthread/tls.h".
56692         * tests/test-lock.c: Update includes.
56693         * tests/test-tls.c: Update includes.
56694         * NEWS: Mention the renamed header files.
56695
56696 2008-08-11  Jim Meyering  <meyering@redhat.com>
56697
56698         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56699
56700 2008-08-11  Eric Blake  <ebb9@byu.net>
56701
56702         test-c-stack: avoid C99-ism
56703         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56704         before statement.
56705         Reported by Alain Guibert.
56706
56707 2008-08-10  Jim Meyering  <meyering@redhat.com>
56708
56709         ensure that return value of uinttostr et al are not ignored
56710         * lib/inttostr.h (__GNUC_PREREQ): Define.
56711         (__attribute_warn_unused_result__): Define.
56712         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56713
56714 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56715
56716         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56717         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56718
56719 2008-08-07  Jim Meyering  <meyering@redhat.com>
56720
56721         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56722
56723         * modules/mkstemp (License): Relicense under LGPLv2+.
56724         * modules/tempname (License): Likewise.
56725
56726 2008-08-06  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/poll.c (poll): Further micro-optimization.
56729
56730 2008-08-06  Jim Meyering  <meyering@redhat.com>
56731
56732         inet_pton.c: use locale-independent tolower
56733         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56734         (inet_pton6): Use c_tolower rather than tolower.
56735         * modules/inet_pton (Depends-on): Add c-ctype.
56736
56737 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56738
56739         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56740         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56741
56742 2008-08-06  Jim Meyering  <meyering@redhat.com>
56743
56744         * modules/inet_pton (License): Relicense under LGPLv2+.
56745
56746 2008-08-03  Bruno Haible  <bruno@clisp.org>
56747
56748         Additional non-aborting API for lock and tls.
56749         * lib/lock.h: Include <errno.h>.
56750         (glthread_lock_init): New macro/function.
56751         (gl_lock_init): Define as wrapper around glthread_lock_init.
56752         (glthread_lock_lock): New macro/function.
56753         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56754         (glthread_lock_unlock): New macro/function.
56755         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56756         (glthread_lock_destroy): New macro/function.
56757         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56758         (glthread_rwlock_init): New macro/function.
56759         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56760         (glthread_rwlock_rdlock): New macro/function.
56761         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56762         (glthread_rwlock_wrlock): New macro/function.
56763         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56764         (glthread_rwlock_unlock): New macro/function.
56765         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56766         (glthread_rwlock_destroy): New macro/function.
56767         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56768         (glthread_recursive_lock_init): New macro/function.
56769         (gl_recursive_lock_init): Define as wrapper around
56770         glthread_recursive_lock_init.
56771         (glthread_recursive_lock_lock): New macro/function.
56772         (gl_recursive_lock_lock): Define as wrapper around
56773         glthread_recursive_lock_lock.
56774         (glthread_recursive_lock_unlock): New macro/function.
56775         (gl_recursive_lock_unlock): Define as wrapper around
56776         glthread_recursive_lock_unlock.
56777         (glthread_recursive_lock_destroy): New macro/function.
56778         (gl_recursive_lock_destroy): Define as wrapper around
56779         glthread_recursive_lock_destroy.
56780         (glthread_once): New macro/function.
56781         (gl_once): Define as wrapper around glthread_once.
56782         Update function declarations.
56783         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56784         glthread_rwlock_init. Return error code.
56785         (glthread_rwlock_rdlock_multithreaded): Renamed from
56786         glthread_rwlock_rdlock. Return error code.
56787         (glthread_rwlock_wrlock_multithreaded): Renamed from
56788         glthread_rwlock_wrlock. Return error code.
56789         (glthread_rwlock_unlock_multithreaded): Renamed from
56790         glthread_rwlock_unlock. Return error code.
56791         (glthread_rwlock_destroy_multithreaded): Renamed from
56792         glthread_rwlock_destroy. Return error code.
56793         (glthread_recursive_lock_init_multithreaded): Renamed from
56794         glthread_recursive_lock_init. Return error code.
56795         (glthread_recursive_lock_lock_multithreaded): Renamed from
56796         glthread_recursive_lock_lock. Return error code.
56797         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56798         glthread_recursive_lock_unlock. Return error code.
56799         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56800         glthread_recursive_lock_destroy. Return error code.
56801         (glthread_once_call): Make static.
56802         (glthread_once_multithreaded): Renamed from glthread_once.
56803         * lib/tls.h: Include <errno.h>.
56804         (glthread_tls_key_init): New macro/function.
56805         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56806         (glthread_tls_set): New macro/function.
56807         (gl_tls_set): Define as wrapper around glthread_tls_set.
56808         (glthread_tls_key_destroy): New macro/function.
56809         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56810         Update function declarations.
56811         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56812         glthread_tls_get.
56813         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56814
56815 2008-08-04  Eric Blake  <ebb9@byu.net>
56816
56817         gnumakefile: use space, not TAB, outside of targets
56818         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56819
56820 2008-08-02  Jim Meyering  <meyering@redhat.com>
56821
56822         getdate.y: avoid locale-dependent date parsing failure
56823         In Turkish locales, getdate would fail to recognize keywords
56824         containing a lowercase "i".  The solution is not to rely on
56825         locale-sensitive case-conversion.
56826         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56827         (lookup_word): Use c_toupper in place of toupper.
56828         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56829         Reported by Vefa Bicakci <bicave@superonline.com> in
56830         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56831         * modules/getdate (Depends-on): Add c-ctype.
56832
56833 2008-08-02  Bruno Haible  <bruno@clisp.org>
56834
56835         * gnulib-tool (func_import): When updating or creating a .gitignore
56836         file, prepend each added line with a slash, and ignore leading slashes
56837         from the existing lines.
56838         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56839
56840 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56841
56842         Portability fix for GNU make 3.79.1.
56843         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56844         versions do not understand.
56845
56846 2008-08-01  Bruno Haible  <bruno@clisp.org>
56847
56848         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56849         * tests/test-isnanf.h (zero): New variable.
56850         (main): Avoid literal -0.0f.
56851         * tests/test-isnand.h (zero): New variable.
56852         (main): Avoid literal -0.0.
56853         * tests/test-isnanl.h (zero): New variable.
56854         (main): Avoid literal -0.0L.
56855         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56856         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56857         -0.0, -0.0L.
56858         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56859         (test_signbitd): Avoid literal -0.0.
56860         (test_signbitl): Avoid literal -0.0L.
56861         * tests/test-ceilf1.c (zero): New variable.
56862         (main): Avoid literal -0.0f.
56863         * tests/test-ceill.c (zero): New variable.
56864         (main): Avoid literal -0.0L.
56865         * tests/test-floorf1.c (zero): New variable.
56866         (main): Avoid literal -0.0f.
56867         * tests/test-floorl.c (zero): New variable.
56868         (main): Avoid literal -0.0L.
56869         * tests/test-roundf1.c (zero): New variable.
56870         (main): Avoid literal -0.0f.
56871         * tests/test-round1.c (zero): New variable.
56872         (main): Avoid literal -0.0.
56873         * tests/test-roundl.c (zero): New variable.
56874         (main): Avoid literal -0.0L.
56875         * tests/test-truncf1.c (zero): New variable.
56876         (main): Avoid literal -0.0f.
56877         * tests/test-trunc1.c (zero): New variable.
56878         (main): Avoid literal -0.0.
56879         * tests/test-truncl.c (zero): New variable.
56880         (main): Avoid literal -0.0L.
56881         * tests/test-frexp.c (zero): New variable.
56882         (main): Avoid literal -0.0.
56883         * tests/test-frexpl.c (zero): New variable.
56884         (main): Avoid literal -0.0L.
56885         * tests/test-ldexpl.c (zero): New variable.
56886         (main): Avoid literal -0.0L.
56887         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56888         (zerod, zerol): New variables.
56889         (test_function): Avoid literals -0.0, -0.0L.
56890         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56891         (zerod, zerol): New variables.
56892         (test_function): Avoid literals -0.0, -0.0L.
56893         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56894         (zerod, zerol): New variables.
56895         (test_function): Avoid literals -0.0, -0.0L.
56896         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56897         (zerod, zerol): New variables.
56898         (test_function): Avoid literals -0.0, -0.0L.
56899         * tests/test-strtod.c (zero): New variable.
56900         (main): Avoid literal -0.0.
56901         Reported by Jonathan C. Patschke <jp@centtech.com>.
56902
56903 2008-07-31  Jim Meyering  <meyering@redhat.com>
56904
56905         sha256.h: correct definition of SHA224_DIGEST_SIZE
56906         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56907         Reported by Paulie Pena IV <paulie4@gmail.com>.
56908         Define as 224 / 8, rather than as a literal.
56909         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56910         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56911         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56912
56913 2008-07-31  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56916         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56917         Reported by Jonathan Patschke <jp@centtech.com>.
56918
56919 2008-07-31  Bruno Haible  <bruno@clisp.org>
56920
56921         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56922         Reported by Paolo Bonzini <bonzini@gnu.org>.
56923
56924 2008-07-30  Eric Blake  <ebb9@byu.net>
56925
56926         test-strtod: allow compilation without -lm
56927         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56928         Reported by Dennis Clarke <blastwave@gmail.com>.
56929
56930 2008-07-28  Jim Meyering  <meyering@redhat.com>
56931
56932         bootstrap: work also when there are no .po files in po/
56933         * build-aux/bootstrap (update_po_files): Complete the change
56934         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56935
56936 2008-07-27  Jim Meyering  <meyering@redhat.com>
56937
56938         * users.txt: Add zile.
56939
56940 2008-07-26  Ben Pfaff  <blp@gnu.org>
56941
56942         Add missing dependencies on new m4/exponent[fdl].m4 files.
56943         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56944         * modules/isnand-nolibm: Add m4/exponentd.m4.
56945         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56946         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56947         m4/isnan[fdl].m4, because the macros actually used moved.
56948         Reported by Jim Meyering.
56949
56950 2008-07-14  Ben Pfaff  <blp@gnu.org>
56951
56952         Add isinf module.
56953         * lib/isinf.c: New file.
56954         * lib/math.in.h: Define isinf macro if we have decided to replace
56955         it.
56956         * m4/isinf.m4: New file.
56957         * m4/math_h.m4: Initialize and substitute variables for isinf
56958         module.
56959         * modules/isinf: New file.
56960         * modules/isinf-tests: New file.
56961         * modules/math: Add substitutions for new module.
56962         * tests/test-isinf.c: New file.
56963         * doc/posix-functions/isinf.texi: Mention new module.
56964         * MODULES.html.sh: Mention new module.
56965
56966 2008-07-14  Ben Pfaff  <blp@gnu.org>
56967
56968         Factor out some macros for use by additional modules.
56969         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56970         exponentf.m4.
56971         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56972         exponentd.m4.
56973         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56974         file exponentl.m4.
56975         * m4/exponentf.m4: New file.
56976         * m4/exponentd.m4: New file.
56977         * m4/exponentl.m4: New file.
56978         * modules/isnanf: Use new file m4/exponentf.m4.
56979         * modules/isnand: Use new file m4/exponentd.m4.
56980         * modules/isnanl: Use new file m4/exponentl.m4.
56981
56982 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56983
56984         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56985         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56986         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56987         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56988
56989         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56990         readlink on platforms without PATH_MAX.
56991
56992 2008-07-21  Eric Blake  <ebb9@byu.net>
56993
56994         Warn, not fail, on stale version.
56995         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56996
56997         Don't allow installation with stale devel version number.
56998         * top/GNUmakefile (_is-install-target): New macro.
56999         (_curr-ver): Forbid installation with stale version number.
57000
57001 2008-07-20  Bruno Haible  <bruno@clisp.org>
57002
57003         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57004         TESTS_ENVIRONMENT.
57005         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57006
57007 2008-07-20  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/c-stack.h (c_stack_action): Add documentation.
57010         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57011
57012 2008-07-20  Bruno Haible  <bruno@clisp.org>
57013
57014         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57015         * modules/readlink (License): Likewise.
57016
57017 2008-07-17  Eric Blake  <ebb9@byu.net>
57018
57019         * modules/c-stack (Link): Fix typo.
57020
57021         Make c-stack use libsigsegv, when available.
57022         * modules/c-stack (Depends-on): Add libsigsegv.
57023         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57024         needed.
57025         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57026         (segv_handler, overflow_handler, c_stack_action)
57027         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57028         implementation when libsigsegv is available, but only when using
57029         the library is necessary.
57030         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57031         comment, explaining why XSI check fails on Linux.
57032         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57033         * tests/test-c-stack2.sh: Tweak skip message.
57034         * NEWS: Document new link-time requirements.
57035
57036 2008-07-16  Eric Blake  <ebb9@byu.net>
57037
57038         c-stack: Expose false positives when not using libsigsegv.
57039         * modules/c-stack-tests (Files): Expand test.
57040         * tests/test-c-stack.c (main): Add means to conditionally trigger
57041         non-overflow SIGSEGV.
57042         * tests/test-c-stack2.sh: New file.
57043
57044 2008-07-14  Bruno Haible  <bruno@clisp.org>
57045
57046         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57047         Reported by Eric Blake.
57048
57049 2008-07-14  Sam Steingold  <sds@gnu.org>
57050             Bruno Haible  <bruno@clisp.org>
57051
57052         New module libsigsegv.
57053         * modules/libsigsegv: New file.
57054         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57055         modifications.
57056         * MODULES.html.sh (Signal handling): New section.
57057
57058 2008-07-14  Bruno Haible  <bruno@clisp.org>
57059
57060         * modules/unictype/ctype-* (Description): Add the word "function".
57061         Improves the resulting doc in MODULES.html.
57062
57063 2008-07-12  Ben Pfaff  <blp@gnu.org>
57064
57065         Add longlong module.
57066         * modules/longlong: New file.
57067
57068 2008-07-12  Bruno Haible  <bruno@clisp.org>
57069
57070         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57071         to empty.
57072
57073 2008-07-10  Ben Pfaff  <blp@gnu.org>
57074
57075         Add isnan module.
57076         * doc/posix-functions/isnan.texi: Mention new module.
57077         * lib/math.in.h: Define isnan macro if we have decided to replace
57078         it.
57079         * m4/isnan.m4: New file.
57080         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57081         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57082         also.
57083         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57084         redundancy.
57085         * m4/math_h.m4: Initialize and substitute variables for isnan
57086         module.
57087         * modules/isnan: New file.
57088         * modules/isnan-tests: New file.
57089         * modules/math: Add substitutions for new module.
57090         * tests/test-isnan.c: New file.
57091         * MODULES.html.sh: Mention new module.
57092
57093 2008-07-10  Ben Pfaff  <blp@gnu.org>
57094
57095         Add isnanf module.
57096         * lib/isnanf.m4: New file.
57097         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57098         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57099         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57100         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57101         * modules/isnanf: New file.
57102         * modules/isnanf-tests: New file.
57103         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57104         files.
57105         * tests/test-isnanf-nolibm.c: factored most of its contents into
57106         new file tests/test-isnanf.h.
57107         * tests/test-isnanf.h: New file.
57108         * tests/test-isnanf.c: New file.
57109         * MODULES.html.sh: Mention new module.
57110         * doc/glibc-functions/isnanf.texi: Mention new module.
57111
57112 2008-07-10  Ben Pfaff  <blp@gnu.org>
57113
57114         Add isnand module.
57115         * lib/isnand.h: New file.
57116         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57117         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57118         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57119         functionality also.
57120         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57121         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57122         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57123         * modules/isnand: New file.
57124         * modules/isnand-tests: New file.
57125         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57126         files.
57127         * tests/test-isnand-nolibm.c: factored most of its contents into
57128         new file tests/test-isnand.h.
57129         * tests/test-isnand.h: New file.
57130         * tests/test-isnand.c: New file.
57131         * MODULES.html.sh: Mention new module.
57132
57133 2008-07-10  Ben Pfaff  <blp@gnu.org>
57134
57135         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57136         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57137         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57138         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57139         * modules/isnanf-nolibm: Update references to renamed files.
57140         * modules/isnand-nolibm: Likewise.
57141         * modules/isnanf-nolibm-tests: Likewise.
57142         * modules/isnand-nolibm-tests: Likewise.
57143         * lib/frexp.c: Likewise.
57144         * lib/isfinite.c: Likewise.
57145         * lib/signbitd.c: Likewise.
57146         * lib/signbitf.c: Likewise.
57147         * lib/vasnprintf.c: Likewise.
57148         * tests/test-ceilf1.c: Likewise.
57149         * tests/test-ceilf2.c: Likewise.
57150         * tests/test-floorf1.c: Likewise.
57151         * tests/test-floorf2.c: Likewise.
57152         * tests/test-frexp.c: Likewise.
57153         * tests/test-round1.c: Likewise.
57154         * tests/test-round2.c: Likewise.
57155         * tests/test-roundf1.c: Likewise.
57156         * tests/test-strtod.c: Likewise.
57157         * tests/test-trunc1.c: Likewise.
57158         * tests/test-trunc2.c: Likewise.
57159         * tests/test-truncf1.c: Likewise.
57160         * tests/test-truncf2.c: Likewise.
57161         * NEWS: Mention the renamed header files.
57162
57163 2008-07-11  Jim Meyering  <meyering@redhat.com>
57164
57165         vc-list-files: make the last-resort awk code more portable
57166         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57167         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57168         does not support it.
57169
57170 2008-07-10  Eric Blake  <ebb9@byu.net>
57171
57172         Work with tar's bootstrap.
57173         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57174         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57175         an m4 comment.
57176
57177 2008-07-09  Jim Meyering  <meyering@redhat.com>
57178
57179         posix-shell.m4: fix typo that made this test malfunction
57180         * m4/posix-shell.m4: Remove capitalization in variable name.
57181
57182 2008-07-08  Bruno Haible  <bruno@clisp.org>
57183
57184         * m4/onceonly.m4: Update comments.
57185         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57186
57187 2008-07-04  Jim Meyering  <meyering@redhat.com>
57188
57189         * users.txt: Add vc-dwim.
57190         (bison, coreutils): Use the gitweb URL.
57191
57192 2008-07-03  Jim Meyering  <meyering@redhat.com>
57193
57194         * users.txt: Add libffcall.  From Sam Steingold.
57195
57196 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57197
57198         getdate.y: do not ignore TZ with relative day, month or year offset
57199         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57200         relative-date-handling, since otherwise, the latter would clobber the
57201         sole output (an updated Start value) of the tz-handling block.
57202         * tests/test-getdate.c: Tests for the fix
57203
57204 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57205
57206         Recognize 'foo_LIBRARIES += libgnu.a'.
57207         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57208         makefile snippet has already specified an installation location,
57209         also using '+='.
57210
57211 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57212
57213         getdate.y: factor out common actions
57214         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57215         Use them in place of open-coded actions.
57216
57217 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57218
57219         Add self-test for getdate module.
57220         * modules/getdate-tests: New file.
57221         * tests/test-getdate.c: New file.
57222
57223 2008-06-29  Bruno Haible  <bruno@clisp.org>
57224
57225         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57226         .gitignore.
57227         Reported by Sylvain Beucler <beuc@beuc.net>.
57228
57229 2008-06-29  Bruno Haible  <bruno@clisp.org>
57230
57231         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57232         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57233
57234 2008-06-29  Bruno Haible  <bruno@clisp.org>
57235
57236         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57237         EXTRA_DIST.
57238         Reported by Sylvain Beucler <beuc@beuc.net>.
57239
57240 2008-06-26  Jim Meyering  <meyering@redhat.com>
57241
57242         make several modules depend on the "open" module
57243         This provides slightly increased consistency when opening-for-write
57244         the name of a non-directory spelled with a trailing slash.
57245         * modules/chdir-safer: Likewise.
57246         * modules/chown: Likewise.
57247         * modules/clean-temp: Likewise.
57248         * modules/copy-file: Likewise.
57249         * modules/fchdir: Likewise.
57250         * modules/fcntl-safer: Likewise.
57251         * modules/pipe: Likewise.
57252         * modules/utime: Likewise.
57253         Prompted by Eric Blake and Bruno Haible.
57254
57255 2008-06-24  Andreas Schwab  <schwab@suse.de>
57256
57257         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57258         literals can be used as initializers for global variables.
57259
57260 2008-06-23  Eric Blake  <ebb9@byu.net>
57261
57262         Make gnulib-cache.m4 easier to diff.
57263         * gnulib-tool (func_import): Allow newlines when reading cached
57264         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57265
57266 2008-06-23  Bruno Haible  <bruno@clisp.org>
57267
57268         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57269         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57270         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57271         m4/signalblocking.m4.
57272         (gl_PREREQ_SIGACTION): Don't invoke it.
57273         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57274         gl_PREREQ_SIG_HANDLER_H.
57275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57276         Don't check for sigaction here.
57277
57278 2008-06-23  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57281         (install_handlers): Don't set the SA_RESETHAND flag.
57282
57283 2008-06-23  Bruno Haible  <bruno@clisp.org>
57284
57285         * m4/sigaction.m4: Comment fixes.
57286         * lib/signal.in.h: Likewise.
57287
57288 2008-06-23  Eric Blake  <ebb9@byu.net>
57289
57290         Fix typo.
57291         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57292
57293         Avoid SA_ namespace.
57294         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57295         Reported by Ralf Wildenhues.
57296
57297         Avoid test failure due to SA_RESTORER.
57298         * tests/test-sigaction.c (SA_MASK): New macro.
57299         (main): Avoid failing due to extension flags being set.
57300         Reported by Jim Meyering.
57301
57302         Revert use of sig-handler.h in sigprocmask.c.
57303         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57304         it requires the existence of struct sigaction.
57305         * lib/sigprocmask.c (handler_t): Restore typedef.
57306         (rpl_signal, old_handlers): Use local type.
57307
57308 2008-06-22  Bruno Haible  <bruno@clisp.org>
57309
57310         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57311         conditionally.
57312         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57313
57314 2008-06-22  Bruno Haible  <bruno@clisp.org>
57315
57316         * doc/posix-functions/siginterrupt.texi: Move note.
57317
57318         * lib/signal.in.h (SA_RESTART): New macro.
57319         * lib/sigaction.c: Update comment.
57320
57321         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57322
57323         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57324         (gl_PREREQ_SIGPROCMASK): Invoke it.
57325         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57326
57327         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57328
57329         * lib/sigprocmask.c: Update a comment.
57330
57331 2008-06-21  Eric Blake  <ebb9@byu.net>
57332
57333         Use sigaction module rather than signal().
57334         * modules/c-stack (Depends-on): Add sigaction.
57335         * modules/fatal-signal (Depends-on): Likewise.
57336         * modules/nanosleep (Depends-on): Likewise.
57337         * modules/sigprocmask (Files): Add sig-handler.h.
57338         * modules/sigaction (Files): Likewise.
57339         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57340         Eggert.
57341         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57342         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57343         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57344         (init_fatal_signals): Likewise.
57345         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57346         (siginterrupt): Delete fallback.
57347         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57348         instead.
57349         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57350         siginterrupt.
57351
57352         New module sigaction, for mingw.
57353         * modules/sigaction: New module...
57354         * modules/sigaction-tests: ...and its test.
57355         * m4/sigaction.m4: New file.
57356         * lib/sigaction.c: Likewise.
57357         * tests/test-sigaction.c: Likewise.
57358         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57359         * modules/signal (Makefile.am): Likewise.
57360         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57361         needed.
57362         * doc/posix-headers/signal.texi (signal.h): Mention provided
57363         types.
57364         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57365         that sigaction is preferable.
57366         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57367         module.
57368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57369         sigaction.
57370
57371         Improve robustness of sigprocmask by overriding signal.
57372         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57373         is in use.
57374         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57375         (SIGKILL, SIGSTOP): Provide fallbacks.
57376         (rpl_signal): Implement.
57377         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57378         signal can be called inside handlers.
57379
57380         Fix nanosleep module on mingw.
57381         * modules/nanosleep (Depends-on): Add sys_select.
57382         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57383
57384         Fix licensing of sigprocmask.
57385         * modules/raise (License): Relicense as LGPL.
57386
57387 2008-06-21  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57390         result if it contains question marks.
57391         Reported by Michael Geng <linux@michaelgeng.de>.
57392
57393 2008-06-19  Bruno Haible  <bruno@clisp.org>
57394
57395         Fix CVS-ism.
57396         * doc/gnulib.texi: Include updated-stamp.texi.
57397         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57398         (updated-stamp.texi): New rule.
57399         (gnulib.info): Depend on it.
57400         * doc/.gitignore: Add updated-stamp.texi.
57401         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57402
57403 2008-06-19  Bruno Haible  <bruno@clisp.org>
57404
57405         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57406         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57407
57408 2008-06-19  Eric Blake  <ebb9@byu.net>
57409
57410         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57411         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57412         Reported by Stepan Kasal.
57413
57414 2008-06-18  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57417         Reported by Eric Blake.
57418
57419 2008-06-18  Eric Blake  <ebb9@byu.net>
57420
57421         Work around cygwin 1.5.25 strsignal bug.
57422         * tests/test-strsignal.c: Allow for const char *.
57423         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57424
57425 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57426
57427         * users.txt: Update URL to article and add author/date
57428         information.
57429
57430 2008-06-17  Bruno Haible  <bruno@clisp.org>
57431
57432         New macro gl_DISABLE_THREADS.
57433         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57434         if the user did not pass --enable-threads or --disable-threads option.
57435         (gl_DISABLE_THREADS): New macro.
57436         Reported by Eric Blake <ebb9@byu.net>.
57437
57438 2008-06-17  Bruno Haible  <bruno@clisp.org>
57439
57440         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57441         when the macro ignores it.
57442         Based on a patch by Eric Blake <ebb9@byu.net>.
57443
57444 2008-06-17  Bruno Haible  <bruno@clisp.org>
57445
57446         * modules/tls (License): Change to LGPLv2+.
57447         Reported by Eric Blake.
57448
57449 2008-06-17  Eric Blake  <ebb9@byu.net>
57450
57451         Simplify c-stack prerequisites.
57452         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57454         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57455         check.
57456         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57457         <sys/resource.h>.
57458
57459         Move c-stack test into testsuite.
57460         * modules/c-stack-tests: New file.
57461         * lib/c-stack.c [DEBUG]: Move test program...
57462         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57463         fail test if sigaltstack is lacking.
57464         * tests/test-c-stack.sh: New driver file.
57465
57466 2008-06-16  Eric Blake  <ebb9@byu.net>
57467
57468         Use raise module consistently.
57469         * modules/fatal-signal (Depends-on): Add raise.
57470         * modules/sigprocmask (Depends-on): Likewise.
57471         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57472         * lib/sigprocmask.c (sigprocmask): Likewise.
57473         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57474         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57475
57476         Fix compliance bug in sigpending.
57477         * lib/sigprocmask.c (sigpending): Return pending array via
57478         parameter, not return value.
57479
57480 2008-06-14  Eric Blake  <ebb9@byu.net>
57481
57482         Improve obstack-printf test code.
57483         * tests/test-obstack-printf.c (test_function): Fix comment, and
57484         simplify usage of obstack_* in macros.  Add a test for coverage.
57485         Reported by Bruno Haible.
57486
57487 2008-06-14  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57490         array size as a constant, not as a const variable.
57491         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57492         AC_USE_SYSTEM_EXTENSIONS.
57493         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57494         Test whether the obstack_printf function actually exists.
57495         * modules/obstack-printf (Depends-on): Add extensions.
57496         (Include): Remove obstack.h.
57497         * modules/obstack-printf-posix (Depends-on): Add extensions.
57498         (Include): Remove obstack.h.
57499
57500 2008-06-13  Eric Blake  <ebb9@byu.net>
57501
57502         Add obstack-printf and obstack-printf-posix modules.
57503         * modules/obstack-printf: New file.
57504         * modules/obstack-printf-posix: Likewise.
57505         * MODULES.html.sh (Misc): Mention them.
57506         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57507         Likewise.
57508         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57509         Likewise.
57510         * modules/stdio (Makefile.am): Accomodate new modules.
57511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57512         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57513         Declare.
57514         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57515         functions.
57516         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57517         (gl_REPLACE_OBSTACK_PRINTF): New macros
57518         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57519         * tests/test-obstack-printf.c: New file.
57520         * modules/obstack-printf-tests: Likewise.
57521         * modules/obstack-printf-posix-tests: Likewise.
57522
57523 2008-06-11  Bruno Haible  <bruno@clisp.org>
57524
57525         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57526         * lib/open.c: Include errno.h.
57527         (open): Fail when attempting to write to a file that has a trailing
57528         slash.
57529         * tests/test-open.c (main): Test against trailing slash bug.
57530         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57531
57532 2008-06-10  Bruno Haible  <bruno@clisp.org>
57533
57534         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57535         for $? to work inside the trap command, with various /bin/sh-s.
57536         * tests/test-vc-list-files-cvs.sh: Likewise.
57537
57538 2008-06-10  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/acl-internal.h: Don't include gettext.h here.
57541         * lib/set-mode-acl.c: Include gettext.h here.
57542         * lib/copy-acl.c: Likewise.
57543
57544 2008-06-10  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57547         * lib/wait-process.c (wait_subprocess): Likewise.
57548         * lib/execute.h (execute): Add termsigp argument.
57549         * lib/execute.c (execute): Likewise.
57550         * lib/csharpcomp.c (compile_csharp_using_pnet,
57551         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57552         * lib/csharpexec.c (execute_csharp_using_pnet,
57553         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57554         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57555         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57556         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57557         is_jikes_present): Update.
57558         * lib/javaexec.c (execute_java_class): Update.
57559         * lib/javaversion.c (execute_and_read_line): Update.
57560         * NEWS: Document the changes.
57561         Reported by Eric Blake.
57562
57563 2008-06-10  Eric Blake  <ebb9@byu.net>
57564
57565         Add missing include.
57566         * tests/test-strstr.c (includes): Add <signal.h>.
57567         * tests/test-strcasestr.c (includes): Likewise.
57568         * tests/test-memmem.c (includes): Likewise.
57569
57570 2008-06-10  Bruno Haible  <bruno@clisp.org>
57571
57572         * lib/wait-process.c (wait_subprocess): Add an assertion.
57573
57574 2008-06-10  Bruno Haible  <bruno@clisp.org>
57575
57576         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57577
57578 2008-06-10  Bruno Haible  <bruno@clisp.org>
57579
57580         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57581         using alarm().
57582         * tests/test-strcasestr.c (main): Likewise.
57583         * tests/test-strstr.c (main): Likewise.
57584
57585 2008-06-09  Bruno Haible  <bruno@clisp.org>
57586
57587         Work around the Solaris 10 ACE ACLs ABI change.
57588         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57589         declare if ACL_NO_TRIVIAL is present.
57590         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57591         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57592         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57593         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57594         define if ACL_NO_TRIVIAL is present.
57595         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57596         and use the current ABI.
57597         (file_has_acl): Use same #if condition as elsewhere.
57598         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57599         in use, and use the current ABI.
57600         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57601         Reported by Jim Meyering.
57602
57603 2008-06-09  Eric Blake  <ebb9@byu.net>
57604
57605         Work around environments that (stupidly) ignore SIGALRM.
57606         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57607         before using alarm().
57608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57609         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57610         Reported by Ian Beckwith <ianb@erislabs.net>.
57611
57612         Produce autobuild blurb earlier in log.
57613         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57614
57615 2008-06-09  Jim Meyering  <meyering@redhat.com>
57616         and OndÅ™ej Vašík  <ovasik@redhat.com>
57617
57618         utimens.c: correct kernel bug work-around
57619         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57620         failure, not success, and the kernel bug we're trying to work
57621         around affects not just the utimensat call, but also the fallback
57622         futimens call.
57623         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57624         not success.
57625         [HAVE_FUTIMENS]: Use the same work-around, here.
57626
57627 2008-06-09  Jim Meyering  <meyering@redhat.com>
57628
57629         add more guards around definition of ACE_-related code
57630         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57631         ALLOW and ACE_OWNER are also defined.
57632
57633 2008-06-08  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/acl-internal.h: Add me as co-author.
57636         * lib/file-has-acl.c: Likewise.
57637         * lib/set-mode-acl.c: Likewise.
57638         * lib/copy-acl.c: Likewise.
57639
57640 2008-06-08  Bruno Haible  <bruno@clisp.org>
57641
57642         Add support for AIX ACLs.
57643         * lib/acl-internal.h (acl_nontrivial): New declaration.
57644         * lib/file-has-acl.c (acl_nontrivial): New function.
57645         (file_has_acl): Add implementation using AIX 4 ACL API.
57646         * lib/set-mode-acl.c (qset_acl): Likewise.
57647         * lib/copy-acl.c (qcopy_acl): Likewise.
57648
57649 2008-06-08  Bruno Haible  <bruno@clisp.org>
57650
57651         Add support for HP-UX ACLs.
57652         * lib/acl-internal.h (acl_nontrivial): New declaration.
57653         * lib/file-has-acl.c (acl_nontrivial): New function.
57654         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57655         * lib/set-mode-acl.c (qset_acl): Likewise.
57656         * lib/copy-acl.c (qcopy_acl): Likewise.
57657
57658 2008-06-08  Bruno Haible  <bruno@clisp.org>
57659
57660         Add support for Cygwin ACLs.
57661         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57662         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57663         the chmod_or_fchmod call.
57664         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57665
57666 2008-06-08  Bruno Haible  <bruno@clisp.org>
57667
57668         Fix bug with setuid modes in Solaris 10+ code.
57669         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57670         succeeded, when the mode contains some special bits.
57671
57672 2008-06-08  Bruno Haible  <bruno@clisp.org>
57673
57674         Add support for Solaris 7..10 ACLs.
57675         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57676         declarations.
57677         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57678         functions.
57679         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57680         * lib/set-mode-acl.c (qset_acl): Likewise.
57681         * lib/copy-acl.c (qcopy_acl): Likewise.
57682
57683 2008-06-08  Bruno Haible  <bruno@clisp.org>
57684
57685         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57686         declaration.
57687         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57688         (acl_access_nontrivial): Remove MacOS X case.
57689         (file_has_acl): Use acl_extended_nontrivial.
57690         * lib/copy-acl.c (qcopy_acl): Likewise.
57691
57692 2008-06-08  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57695
57696 2008-06-08  Jim Meyering  <meyering@redhat.com>
57697
57698         * modules/acl (Maintainer): Add Bruno Haible.
57699
57700 2008-06-07  Bruno Haible  <bruno@clisp.org>
57701
57702         Improve support for Tru64 ACLs.
57703         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57704         ACL on OSF/1.
57705
57706 2008-06-07  Bruno Haible  <bruno@clisp.org>
57707
57708         Add support for MacOS X ACLs.
57709         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57710         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57711         * lib/set-mode-acl.c (qset_acl): Likewise.
57712         * lib/copy-acl.c (qcopy_acl): Likewise.
57713
57714 2008-06-07  Bruno Haible  <bruno@clisp.org>
57715
57716         Fix memory leak introduced on 2008-05-22.
57717         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57718         use.
57719
57720 2008-06-07  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57723         to construct an empty ACL.
57724
57725 2008-06-07  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57728         precisely.
57729         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57730
57731 2008-06-07  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57734         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57735
57736 2008-06-07  Bruno Haible  <bruno@clisp.org>
57737
57738         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57739         regardless of POSIX.
57740         * doc/posix-functions/_longjmp.texi: Likewise.
57741         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57742         SystemV platform in this case.
57743
57744 2008-06-06  Eric Blake  <ebb9@byu.net>
57745
57746         Document abort() bugs.
57747         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57748
57749         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57750         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57751         sigsetjmp.
57752         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57753         siglongjmp, but only as a macro.
57754         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57755         is obsolete.
57756         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57757
57758         Tweak documentation to cover cygwin argz bugs.
57759         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57760         argz bug fix; no code change needed since no cygwin releases
57761         occurred between the last fix and the bug being tested.
57762         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57763         module and recently fixed cygwin bugs.
57764         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57765         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57766         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57767         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57768         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57769         Likewise.
57770         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57771         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57772         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57773         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57774         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57775         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57776         Likewise.
57777
57778         Avoid gcc warning on cygwin.
57779         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57780         !ACL_NO_TRIVIAL]: Avoid unused variable.
57781
57782 2008-06-05  Eric Blake  <ebb9@byu.net>
57783
57784         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57785         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57786         git-version-gen fails to come up with a version.
57787         Reported by Simon Josefsson.
57788
57789 2008-06-05  Jim Meyering  <meyering@redhat.com>
57790             Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         utimens.c: work around a probable Linux kernel bug
57793         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57794         appears to be a kernel bug that causes utimensat to return 280
57795         instead of 0, indicating success.
57796
57797 2008-06-04  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57800         2008-06-01 commit.
57801
57802 2008-06-04  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57805         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57806         (file_has_acl): Use it. Save errno afterwards.
57807         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57808
57809 2008-06-03  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57812         draft code. Simplify #ifs.
57813         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57814         Put Solaris code after POSIX-draft code. Fix comments regarding
57815         Solaris 10, HP-UX. Mention Cygwin.
57816         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57817
57818 2008-06-03  Eric Blake  <ebb9@byu.net>
57819
57820         Provide fallback for older kernels.
57821         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57822         Provide runtime fallback if kernel lacks support.
57823         Reported by Mike Frysinger.
57824
57825 2008-06-02  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57828         it exists.
57829
57830 2008-06-02  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57833         * lib/copy-acl.c (qcopy_acl): Update comment.
57834
57835 2008-06-02  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57838         like ACL APIs.
57839
57840 2008-06-02  Bruno Haible  <bruno@clisp.org>
57841
57842         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57843         * tests/test-set-mode-acl.sh: Likewise.
57844         * tests/test-copy-acl.sh: Likewise.
57845         * tests/test-copy-file.sh: Likewise.
57846
57847 2008-06-02  Bruno Haible  <bruno@clisp.org>
57848
57849         * tests/test-file-has-acl.sh: Remove unused code.
57850
57851 2008-06-01  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57854         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57855         messages.
57856         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57857
57858 2008-06-01  Bruno Haible  <bruno@clisp.org>
57859
57860         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57861         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57862         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57863         APIs.
57864         * modules/acl-tests (configure.ac): Remove tests now contained in
57865         m4/acl.m4.
57866
57867 2008-06-02  Jim Meyering  <meyering@redhat.com>
57868
57869         announce-gen: use a better key-server host name
57870         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57871         it may be more consistently reliable.  Suggested by Werner Koch
57872         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57873
57874 2008-06-01  Bruno Haible  <bruno@clisp.org>
57875
57876         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57877         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57878
57879 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57880
57881         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57882
57883 2008-06-01  Bruno Haible  <bruno@clisp.org>
57884
57885         New ACL tests.
57886         * tests/test-file-has-acl.sh: New file.
57887         * tests/test-file-has-acl.c: New file.
57888         * tests/test-set-mode-acl.sh: New file.
57889         * tests/test-set-mode-acl.c: New file.
57890         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57891         * tests/test-copy-acl.c: New file.
57892         * modules/acl-tests: New file, based on modules/copy-file-tests.
57893         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57894         (Depends-on): Add acl-tests.
57895         (configure.ac): Remove checks.
57896         (Makefile.am): Don't create test-sameacls program here any more.
57897
57898 2008-06-01  Bruno Haible  <bruno@clisp.org>
57899
57900         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57901         * tests/test-sameacls.c: Include progname.h.
57902         (main): Invoke set_program_name. Portability fixes for MacOS X,
57903         Solaris, HP-UX.
57904
57905 2008-06-01  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57908         function.
57909         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57910
57911 2008-06-01  Bruno Haible  <bruno@clisp.org>
57912
57913         * modules/rpmatch (Depends-on): Add strdup.
57914
57915 2008-06-01  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/pipe.c: Include unistd-safer.h.
57918         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57919         * modules/pipe (Depends-on): Add unistd-safer.
57920
57921 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57922
57923         * modules/autobuild (configure.ac): Call AB_INIT.
57924
57925 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57926
57927         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57928         Suggested by Bruno Haible <bruno@clisp.org>.
57929
57930 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57931
57932         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57933         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57934         <bruno@clisp.org>.
57935
57936 2008-05-29  Eric Blake  <ebb9@byu.net>
57937
57938         Prefer new POSIX 200x interfaces over futimesat.
57939         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57940         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57941         when available.
57942         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57943
57944 2008-05-28  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/stpcpy (License): Change to LGPLv2+.
57947         Requested by David Lutterkort <dlutter@redhat.com>.
57948
57949 2008-05-27  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57952         current mingw.
57953         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57954
57955 2008-05-27  Bruno Haible  <bruno@clisp.org>
57956
57957         * modules/iconv_open (Link): New section, from module 'iconv'.
57958         * modules/striconv (Link): Likewise.
57959         * modules/striconveh (Link): Likewise.
57960         * modules/xstriconv (Link): Likewise.
57961         * modules/unicodeio (Link): Likewise.
57962         * modules/propername (Link): Likewise.
57963         Reported by Jim Meyering.
57964
57965 2008-05-26  Jim Meyering  <meyering@redhat.com>
57966
57967         sha256: do not artificially restrict buffer length to be < 2^32
57968         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57969         uint32_t to size_t.
57970         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57971         to match.
57972
57973         avoid unaligned access errors, e.g., on sparc
57974         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57975         direct access through a possibly-unaligned uint64* pointer.
57976         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57977         direct access through a possibly-unaligned uint32* pointer.
57978         Prompted by this patch from Tom "spot" Callaway:
57979         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57980
57981         sha512.c: fix typo in comment
57982         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57983
57984 2008-05-25  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57987         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57988         (Makefile.am): Update lib_SOURCES.
57989
57990 2008-05-25  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57993
57994 2008-05-25  Jim Meyering  <meyering@redhat.com>
57995
57996         useless-if-before-free: freed expr may have white-space differences
57997         * build-aux/useless-if-before-free: Recognize cases in which the
57998         freed expression differs from the tested one in embedded white
57999         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58000         $1 was used, so we can't make any regexp shy.  Improved tests now
58001         detect this.
58002
58003         useless-if-before-free: accept white space in the expression.
58004         * build-aux/useless-if-before-free: For now, any white space
58005         in the expression must be identical in the free argument.
58006
58007         useless-if-before-free: efficiency tweak
58008         * build-aux/useless-if-before-free: Make the expression-matching
58009         regexp "shy".
58010         Make the *outer* regexp shy, not the expr-matching one.
58011
58012         update code-in-comment to accept cast of free arg
58013         * build-aux/useless-if-before-free: Update regexp.
58014
58015 2008-05-25  Bruno Haible  <bruno@clisp.org>
58016
58017         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58018         * modules/copy-file-tests (Files, Makefile.am): Update.
58019         * tests/test-copy-file.c (func_test_copy): Update.
58020
58021 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58022
58023         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58024
58025 2008-05-23  Bruno Haible  <bruno@clisp.org>
58026
58027         Improve support for ACLs on OSF/1.
58028         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58029         Remove fallback for unknown flavors of ACLs.
58030
58031 2008-05-22  Bruno Haible  <bruno@clisp.org>
58032
58033         Add support for ACLs on OSF/1.
58034         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58035         replacements.
58036         (acl_free_text): New macro fallback.
58037         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58038         acl_free.
58039         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58040         acl_free_text function. Require AC_C_INLINE.
58041
58042 2008-05-22  Bruno Haible  <bruno@clisp.org>
58043
58044         Make copy_acl work on MacOS X 10.5.
58045         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58046         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58047         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58048         If MODE_INSIDE_ACL, don't assume that every system has the same text
58049         representation for ACLs as FreeBSD.
58050         * lib/copy-acl.c (copy_acl): Add support for platforms with
58051         !MODE_INSIDE_ACL.
58052         * lib/file-has-acl.c (file_has_acl): Likewise.
58053         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58054         FreeBSD, MacOS X, or IRIX, respectively.
58055
58056 2008-05-22  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/acl.h: Don't include <sys/acl.h>.
58059         (GETACLCNT): Move fallback to lib/acl-internal.h.
58060         * lib/acl-internal.h: Include <sys/acl.h> here.
58061         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58062
58063 2008-05-22  Bruno Haible  <bruno@clisp.org>
58064
58065         Split off copy_acl function to separate file.
58066         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58067         * lib/acl.c (copy_acl): Moved function to separate file.
58068         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58069         * modules/acl (Files): Add lib/copy-acl.c.
58070         (Makefiles.am): Augment lib_SOURCES.
58071
58072 2008-05-22  Bruno Haible  <bruno@clisp.org>
58073
58074         * modules/copy-file-tests: New file.
58075         * tests/test-copy-file.sh: New file.
58076         * tests/test-copy-file.c: New file.
58077         * tests/test-copy-file-sameacls.c: New file.
58078
58079 2008-05-22  Eric Blake  <ebb9@byu.net>
58080
58081         Avoid gcc warning.
58082         * tests/test-memcmp.c (main): Pass NULL indirectly.
58083
58084 2008-05-21  Bruno Haible  <bruno@clisp.org>
58085
58086         Add reference doc about ACLs.
58087         * doc/acl-resources.txt: New file.
58088         * doc/acl-cygwin.txt: New file.
58089
58090 2008-05-21  Bruno Haible  <bruno@clisp.org>
58091
58092         Avoid one more warning from gcc.
58093         * lib/vasnprintf.c (IF_LINT): Update comments.
58094         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58095
58096 2008-05-21  Jim Meyering  <meyering@redhat.com>
58097
58098         avoid a warning from gcc
58099         * lib/vasnprintf.c (IF_LINT): Define.
58100         (scale10_round_decimal_long_double):
58101         Use it to avoid a "may be used uninitialized" warning.
58102         (scale10_round_decimal_double): Likewise.
58103
58104 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58105
58106         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58107         declared.
58108
58109 2008-05-20  Bruno Haible  <bruno@clisp.org>
58110
58111         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58112         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58113
58114 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58115
58116         * modules/memcmp-tests: New file.
58117         * tests/test-memcmp.c: New file.
58118
58119 2008-05-19  Bruno Haible  <bruno@clisp.org>
58120
58121         * modules/propername (Notice, configure.ac): Put quoted "..." into
58122         --keyword option.
58123         * lib/propername.h: Update comments accordingly.
58124         Reported by Eric Blake.
58125
58126 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58127
58128         * modules/getpass-gnu (Depends-on): Add fseeko.
58129
58130 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58131
58132         * modules/base64-tests: New file.
58133
58134 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58135
58136         * lib/base64.c (base64_decode_ctx): If a decode context structure
58137         was passed in use it to ignore newlines.  If a context structure
58138         was _not_ passed in, continue to treat newlines as garbage (this
58139         is the historical behavior).  Formerly base64_decode.
58140         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58141         takes a decode context structure.
58142         * lib/base64.h (base64_decode): Macro for four-argument calls.
58143         (base64_decode_alloc): Likewise.
58144         * lib/base64.c (base64_decode_ctx): If a decode context structure
58145         was passed in use it to ignore newlines.  If a context structure
58146         was _not_ passed in, continue to treat newlines as garbage (this
58147         is the historical behavior).  Formerly base64_decode.
58148         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58149         takes a decode context structure.
58150         * lib/base64.h (base64_decode): Macro for four-argument calls.
58151         (base64_decode_alloc): Likewise.
58152
58153 2008-05-19  Jim Meyering  <meyering@redhat.com>
58154
58155         avoid a warning from gcc
58156         * lib/trim.c (IF_LINT): Define.
58157         (trim2): Use it to avoid a "may be used uninitialized" warning.
58158
58159         Fix doc typo.
58160         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58161
58162 2008-05-19  Bruno Haible  <bruno@clisp.org>
58163
58164         * doc/glibc-functions/getpass.texi: Document limits of other
58165         implementations.
58166
58167 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58168             Bruno Haible <bruno@clisp.org>
58169
58170         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58171
58172 2008-05-18  Bruno Haible  <bruno@clisp.org>
58173
58174         * modules/propername: New file, from GNU gettext.
58175         * lib/propername.h: New file, from GNU gettext.
58176         * lib/propername.c: New file, from GNU gettext.
58177         * MODULES.html.sh (Internationalization functions): Add propername.
58178
58179 2008-05-16  Jim Meyering  <meyering@redhat.com>
58180             Bruno Haible  <bruno@clisp.org>
58181
58182         Avoid some warnings from "gcc -Wshadow".
58183         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58184
58185 2008-05-15  Eric Blake  <ebb9@byu.net>
58186
58187         Extend previous patch to cygwin 1.7.0.
58188         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58189         fast implementation in cygwin >= 1.7.0.
58190         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58192
58193 2008-05-15  Bruno Haible  <bruno@clisp.org>
58194
58195         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58196         implementation in glibc >= 2.9.
58197         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58199
58200 2008-05-15  Bruno Haible  <bruno@clisp.org>
58201
58202         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58203         (Unicode string functions): Add unilbrk/*.
58204         Reported by Karl Berry.
58205
58206 2008-05-15  Eric Blake  <ebb9@byu.net>
58207
58208         Fix violation of <stdbool.h> replacement in regex.
58209         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58210         * lib/regexec.c (re_search_internal): Likewise.
58211         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58212
58213 2008-05-15  Jim Meyering  <meyering@redhat.com>
58214
58215         avoid distracting test output when git or cvs is not found
58216         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58217         * tests/test-vc-list-files-git.sh: Likewise.
58218
58219 2008-05-15  Eric Blake  <ebb9@byu.net>
58220
58221         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58222         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58223         glibc version.
58224         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58225         * doc/posix-functions/strstr.texi (strstr): Likewise.
58226         * lib/str-two-way.h (MAX): Sychronize with glibc.
58227
58228 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58229
58230         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58231         opr.ctx_type.
58232         (calc_first): Initialize constraint field.
58233         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58234         Fix grammar.
58235         (duplicate_node): Merge constraint field for all node types.
58236         (calc_eclosure_iter): Look at constraint field for all node types.
58237         * lib/regex_internal.c (create_cd_newstate): Don't look at
58238         opr.ctx_type.
58239
58240 2008-05-14  Bruno Haible  <bruno@clisp.org>
58241
58242         Help GCC to do better code generation.
58243         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58244         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58245         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58246         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58247         Declare with attribute 'malloc' if supported.
58248
58249 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58250
58251         use "echo STR|wc -c" rather than unportable "expr length STR"
58252         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58253         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58254
58255 2008-05-14  Jim Meyering  <meyering@redhat.com>
58256
58257         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58258         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58259         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58260         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58261         via Collin Lasse.
58262
58263 2008-05-14  Eric Blake  <ebb9@byu.net>
58264
58265         Avoid quadratic growth in gl_LIBSOURCES.
58266         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58267         Suggested by Bruno Haible.
58268
58269         Test xmemdup0.
58270         * modules/xmemdup0-tests: New file.
58271         * tests/test-xmemdup0.c: Likewise.
58272
58273 2008-05-13  Eric Blake  <ebb9@byu.net>
58274
58275         Split xmemdup0 into its own module.
58276         * modules/xmemdup0: New file.
58277         * lib/xmemdup0.h: Likewise.
58278         * lib/xmemdup0.c: Likewise.
58279         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58280         * lib/xalloc.h (xmemdup0): Remove.
58281         * lib/xmalloc.c (xmemdup0): Likewise.
58282
58283 2008-05-13  Eric Blake  <ebb9@byu.net>
58284             Bruno Haible  <bruno@clisp.org>
58285
58286         Reduce number of forks required during autoconf.
58287         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58288         and gl_LIBSOURCES_DIR.
58289         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58290         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58291         m4_syscmd per file.
58292         <m4_foreach_w>: Move...
58293         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58294
58295 2008-05-13  Eric Blake  <ebb9@byu.net>
58296
58297         * gnulib-tool: Fix various comment typos.
58298
58299 2008-05-12  Bruno Haible  <bruno@clisp.org>
58300
58301         Tailor the linebreaking algorithm.
58302         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58303
58304 2008-05-12  Bruno Haible  <bruno@clisp.org>
58305
58306         Update to Unicode 5.0.0.
58307         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58308         LBP_JV, LBP_JT. Redistribute values.
58309         (unilbrk_table): Change size.
58310         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58311         Unicode TR#14 rev. 22.
58312         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58313         LBP_JV, LBP_JT. Redistribute values.
58314         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58315         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58316         Update.
58317         * lib/unilbrk/lbrkprop1.h: Regenerated.
58318         * lib/unilbrk/lbrkprop2.h: Regenerated.
58319         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58320         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58321         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58322         Likewise.
58323         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58324         Likewise.
58325         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58326         result.
58327         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58328         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58329         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58330         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58331         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58332         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58333
58334 2008-05-11  Bruno Haible  <bruno@clisp.org>
58335
58336         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58337
58338 2008-05-11  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58341         * modules/unilbrk/gen-lbrk: New file.
58342
58343 2008-05-11  Bruno Haible  <bruno@clisp.org>
58344
58345         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58346         * m4/sha512.m4 (gl_SHA512): Likewise.
58347
58348 2008-05-11  Jim Meyering  <meyering@redhat.com>
58349
58350         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58351         * modules/crypto/sha256: New file.
58352         * modules/crypto/sha512: Likewise.
58353         * lib/sha256.c: Likewise.
58354         * lib/sha256.h: Likewise.
58355         * lib/sha512.c: Likewise.
58356         * lib/sha512.h: Likewise.
58357         * lib/u64.h: Likewise.
58358         * m4/sha256.m4: Likewise.
58359         * m4/sha512.m4: Likewise.
58360         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58361
58362 2008-05-10  Bruno Haible  <bruno@clisp.org>
58363
58364         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58365         (Input/Output <stdio.h>): Add xprintf.
58366         (Signal handling <signal.h>): Add strsignal.
58367         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58368         (Core language properties): Add func.
58369         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58370         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58371         strings.
58372         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58373         (Input/output): New section.
58374         (File system functions): Add openat-die, stat-macros.
58375         (Networking functions): Add sockets.
58376         (Unicode string functions): Add unictype/*.
58377         (Support for building libraries and executables): Add gperf.
58378         (Support for building documentation): Add agpl-3.0.
58379         (Misc): Add nocrash.
58380
58381 2008-05-10  Bruno Haible  <bruno@clisp.org>
58382
58383         * modules/unictype/gen-ctype: New file.
58384
58385 2008-05-10  Jim Meyering  <meyering@redhat.com>
58386
58387         Make chdir-safer.c more efficient on a system with no symlinks.
58388         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58389         also if ELOOP is zero.  Suggested by Bruno Haible.
58390
58391         Make chdir-safer.c slightly safer.
58392         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58393         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58394
58395         Avoid compile failure on systems without ELOOP (like mingw).
58396         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58397         Reported by Bruno Haible.
58398
58399 2008-05-10  Bruno Haible  <bruno@clisp.org>
58400
58401         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58402         (is_utf8_encoding): Use a case-insensitive comparison.
58403         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58404         streq.
58405
58406 2008-05-10  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58409         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58410         * lib/unilbrk/ulc-common.h (iconv_string_length,
58411         iconv_string_keeping_offsets): Remove declarations.
58412         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58413         Don't include <iconv.h>, streq.h, xsize.h.
58414         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58415         conversion.
58416         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58417         <iconv.h>, streq.h, xsize.h.
58418         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58419         conversion.
58420         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58421         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58422         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58423         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58424
58425 2008-05-10  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58428         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58429
58430         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58431         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58432
58433         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58434         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58435
58436         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58437         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58438
58439         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58440         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58441
58442         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58443         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58444
58445         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58446         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58447
58448         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58449         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58450
58451 2008-05-10  Bruno Haible  <bruno@clisp.org>
58452
58453         Split up 'linebreak' module.
58454         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58455         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58456         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58457         modifications.
58458         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58459         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58460         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58461         lib/linebreak.c.
58462         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58463         lib/linebreak.c.
58464         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58465         lib/linebreak.c.
58466         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58467         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58468         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58469         lib/linebreak.c.
58470         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58471         lib/linebreak.c.
58472         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58473         lib/linebreak.c.
58474         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58475         lib/linebreak.c.
58476         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58477         lib/linebreak.c.
58478         * modules/unilbrk/base: New file.
58479         * modules/unilbrk/tables: New file.
58480         * modules/unilbrk/u8-possible-linebreaks: New file.
58481         * modules/unilbrk/u16-possible-linebreaks: New file.
58482         * modules/unilbrk/u32-possible-linebreaks: New file.
58483         * modules/unilbrk/ulc-common: New file.
58484         * modules/unilbrk/ulc-possible-linebreaks: New file.
58485         * modules/unilbrk/u8-width-linebreaks: New file.
58486         * modules/unilbrk/u16-width-linebreaks: New file.
58487         * modules/unilbrk/u32-width-linebreaks: New file.
58488         * modules/unilbrk/ulc-width-linebreaks: New file.
58489         * lib/linebreak.h: Remove file.
58490         * lib/linebreak.c: Remove file.
58491         * m4/linebreak.m4: Remove file.
58492         * modules/linebreak: Remove file.
58493         * NEWS: Mention the changes.
58494
58495 2008-05-09  Eric Blake  <ebb9@byu.net>
58496
58497         Add xmemdup0.
58498         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58499         implementation.
58500         * lib/xmalloc.c (xmemdup0): New C implementation.
58501
58502 2008-05-08  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58505
58506 2008-05-07  Eric Blake  <ebb9@byu.net>
58507
58508         Support cross-compilation of <wctype.h>.
58509         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58510         AC_CACHE_CHECK.
58511
58512 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58513
58514         * build-aux/vc-list-files: Add support for bzr.
58515
58516 2008-05-03  Jim Meyering  <meyering@redhat.com>
58517
58518         avoid failed assertion with tight malloc
58519         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58520
58521 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58522
58523         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58524         are needed from arpa/inet.h.
58525         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58526         Reported by Bruno Haible.
58527
58528 2008-05-02  Jim Meyering  <meyering@redhat.com>
58529
58530         avoid compilation error on FreeBSD 6
58531         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58532
58533 2008-05-01  Jim Meyering  <meyering@redhat.com>
58534
58535         useless-if-before-free: correct --help's exit status description
58536         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58537         for one or more matches, etc.  Reported by Bruno Haible.
58538
58539         vc-list-files: make the stand-alone gnulib test work
58540         * modules/vc-list-files-tests (configure.ac):
58541         Define and AC_SUBST abs_aux_dir.
58542         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58543         $(abs_top_srcdir) to each script and having each of them
58544         duplicate the work of setting PATH, set PATH here, using
58545         the new variable, abs_aux_dir instead.
58546         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58547         * tests/test-vc-list-files-git.sh: Likewise.
58548         Reported by Bruno Haible.
58549
58550 2008-05-01  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58553         reallocation. Rename 'done' to 'found_delimiter'.
58554
58555 2008-05-01  Jim Meyering  <meyering@redhat.com>
58556
58557         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58558         * build-aux/vc-list-files: Use `...`, not $(...).
58559
58560 2008-04-30  Jim Meyering  <meyering@redhat.com>
58561
58562         add tests for vc-list-files
58563         * modules/vc-list-files-tests: New module.
58564         * tests/test-vc-list-files-cvs.sh: New file.
58565         * tests/test-vc-list-files-git.sh: New file.
58566
58567         avoid a warning from gcc
58568         * lib/getndelim2.c (IF_LINT): Define.
58569         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58570
58571         vc-list-files: work properly with build-aux/cvsu, too
58572         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58573         to all cvs-based clauses.
58574
58575         vc-list-files: work properly in the CVS+awk case, too
58576         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58577
58578         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58579         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58580         take more than one file argument, so .  Add quotes, just in case $dir
58581         ever contains a shell meta-character.  Prompted by Soren Hansen in
58582         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58583
58584 2008-04-29  Eric Blake  <ebb9@byu.net>
58585
58586         Optimize getndelim2 to use block operations when possible.
58587         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58588         freadseek, and memchr2.
58589         * lib/getndelim2.c (getndelim2): Use them for block reads.
58590
58591 2008-04-29  Bruno Haible  <bruno@clisp.org>
58592
58593         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58594         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58595         * modules/inet_ntop (Depends-on): Add extensions.
58596         * modules/inet_pton (Depends-on): Likewise.
58597         Reported by Simon Josefsson.
58598
58599 2008-04-29  Jim Meyering  <meyering@redhat.com>
58600
58601         When the is more than one match in a block, match all of them.
58602         * build-aux/useless-if-before-free: Iterate through each block
58603         until there are no more matches.
58604
58605         Fix broken useless-if-before-free script.
58606         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58607         the expression to match cast of argument to free-like function.
58608
58609 2008-04-29  Eric Blake  <ebb9@byu.net>
58610
58611         Use new header.
58612         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58613
58614 2008-04-29  Jim Meyering  <meyering@redhat.com>
58615
58616         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58617         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58618         by gnulib to exist and to declare e.g., inet_ntop.
58619         Don't include "inet_ntop.h", now removed.
58620
58621         * m4/arpa_inet_h.m4: Remove trailing blanks.
58622
58623 2008-04-29  Eric Blake  <ebb9@byu.net>
58624
58625         Silence valgrind on safe reads beyond potential array bounds.
58626         * lib/rawmemchr.valgrind: New file.
58627         * lib/strchrnul.valgrind: Likewise.
58628         * modules/rawmemchr (Files): Distribute new file.
58629         * modules/strchrnul (Files): Likewise.
58630         Suggested by Bruno Haible.
58631
58632 2008-04-29  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58635         (inet_ntop, inet_pton): Change portability warning's wording.
58636         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58637         Invoke gl_CHECK_NEXT_HEADERS.
58638         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58639         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58640         set ARPA_INET_H.
58641         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58642         * modules/arpa_inet (Description): No longer only for systems that
58643         lack it.
58644         (Depends-on): Add include_next.
58645         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58646         HAVE_ARPA_INET_H.
58647
58648 2008-04-29  Jim Meyering  <meyering@redhat.com>
58649
58650         * modules/mkdir (License): Re-license as LGPLv2+.
58651
58652 2008-04-29  Bruno Haible  <bruno@clisp.org>
58653
58654         * modules/rawmemchr (Maintainer): Set to Eric.
58655         * modules/strchrnul (Maintainer): Likewise.
58656
58657 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58658
58659         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58660         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58661
58662         * modules/arpa_inet (arpa/inet.h): Use them.
58663
58664 2008-04-28  Eric Blake  <ebb9@byu.net>
58665
58666         Test getndelim2.
58667         * modules/getndelim2-tests: New file.
58668         * tests/test-getndelim2.c: Likewise.
58669         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58670         stream.
58671         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58672
58673         * MODULES.html.sh: Document new module.
58674
58675 2008-04-20  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/c-stack.c (die): Use raise.
58678         * modules/c-stack (Depends-on): Add raise.
58679
58680 2008-04-28  Bruno Haible  <bruno@clisp.org>
58681
58682         Expect rpmatch to be declared.
58683         * lib/yesno.c (rpmatch): Remove declaration.
58684
58685         Declare rpmatch.
58686         * lib/stdlib.in.h (rpmatch): New declaration.
58687         * lib/rpmatch.c: Include <stdlib.h> first.
58688         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58689         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58691         HAVE_RPMATCH.
58692         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58693         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58694         (Include): Set to <stdlib.h>.
58695         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58696         HAVE_RPMATCH.
58697         * NEWS: Document the change.
58698
58699 2008-04-28  Bruno Haible  <bruno@clisp.org>
58700
58701         Change rpmatch to use nl_langinfo when appropriate.
58702         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58703         (N_): New macro.
58704         (localized_pattern): New function/macro.
58705         (try): Remove match, nomatch arguments. Copy the pattern into safe
58706         memory before caching it.
58707         (rpmatch): Use localized_pattern. Add translator comments.
58708         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58709         Suggested by Eric Blake.
58710         * modules/rpmatch (Depends-on): Add stdbool.
58711
58712 2008-04-28  Eric Blake  <ebb9@byu.net>
58713
58714         Add rawmemchr module, matching glibc.
58715         * modules/string (Makefile.am): New indicator.
58716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58717         * lib/string.in.h (rawmemchr): Declare when appropriate.
58718         * modules/rawmemchr: New file.
58719         * m4/rawmemchr.m4: Likewise.
58720         * lib/rawmemchr.c: Likewise.
58721         * modules/rawmemchr-tests: Likewise.
58722         * tests/test-rawmemchr.c: Likewise.
58723         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58724         module.
58725         * modules/strchrnul (Depends-on): Add rawmemchr.
58726         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58727
58728         Whitespace cleanup.
58729         * tests/test-strchrnul.c: Reindent.
58730         * lib/strchrnul.c: Likewise.
58731
58732         Optimize and test strchrnul.
58733         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58734         * modules/strchrnul-tests: New file.
58735         * tests/test-strchrnul.c: Likewise.
58736
58737         Remove intprops dependency.
58738         * modules/memchr (Depends-on): Remove intprops.
58739         * modules/memrchr (Depends-on): Likewise.
58740         * modules/memchr2 (Depends-on): Likewise.
58741         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58742         * lib/memrchr.c (__memrchr): Likewise.
58743         * lib/memrchr2.c (memchr2): Likewise.
58744         Reported by Simon Josefsson.
58745
58746 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58747
58748         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58749         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58750
58751 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58752
58753         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58754
58755         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58756
58757         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58758
58759         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58760         declarations.
58761         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58762
58763         * m4/inet_pton.m4: Don't check for header files.
58764
58765         * m4/inet_ntop.m4: Don't check for header files.
58766
58767 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58768
58769         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58770         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58771         trigger for cygwin).
58772         Reported by Bruno Haible  <bruno@clisp.org>.
58773
58774 2008-04-28  Bruno Haible  <bruno@clisp.org>
58775
58776         * doc/posix-functions/strdup.texi: Mention mingw problem.
58777
58778 2008-04-27  Bruno Haible  <bruno@clisp.org>
58779
58780         * modules/stat-time-tests (Depends-on): Add sleep.
58781         * tests/test-stat-time.c (force_unlink): New function.
58782         (cleanup): Use it.
58783         (test_mtime): Remove the ctime related tests.
58784         (test_ctime): New function, containing the ctime related tests.
58785         (main): Call test_ctime, except on native Windows platforms.
58786
58787 2008-04-27  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/rpmatch.c (rpmatch): Add some comments.
58790         Reported by James Youngman <jay@gnu.org>.
58791
58792 2008-04-27  Bruno Haible  <bruno@clisp.org>
58793
58794         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58795         quiet NaNs.
58796
58797 2008-04-27  Bruno Haible  <bruno@clisp.org>
58798
58799         Make test-yesno.sh work on mingw.
58800         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58801         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58802         (main): Set stdin to binary mode.
58803         * modules/yesno-tests (Depends-on): Add binary-io.
58804
58805 2008-04-27  Bruno Haible  <bruno@clisp.org>
58806
58807         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58808         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58809         argument that lie outside the IEEE 854 domain.
58810         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58811         (gl_ISFINITE): Use it.
58812         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58813
58814 2008-04-27  Bruno Haible  <bruno@clisp.org>
58815
58816         Allow local renaming in config.h.
58817         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58818
58819 2008-04-27  Bruno Haible  <bruno@clisp.org>
58820
58821         * lib/memchr.c (__memchr): Change type of 'i'.
58822         * lib/memchr2.c (memchr2): Likewise.
58823
58824 2008-04-26  Eric Blake  <ebb9@byu.net>
58825         and Bruno Haible  <bruno@clisp.org>
58826
58827         Optimize and test memrchr.
58828         * modules/memrchr (Depends-on): Add intprops.
58829         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58830         * modules/memrchr-tests: New file.
58831         * tests/test-memrchr.c: New file.
58832
58833 2008-04-26  Bruno Haible  <bruno@clisp.org>
58834
58835         Add tentative support for DragonFly BSD.
58836         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58837         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58838         fp.
58839         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58840         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58841         * lib/fpurge.c (fpurge): Likewise.
58842         * lib/freadable.c (freaadable): Likewise.
58843         * lib/freadahead.c (freadahead): Likewise.
58844         * lib/freading.c (freading): Likewise.
58845         * lib/freadptr.c (freadptr): Likewise.
58846         * lib/freadseek.c (freadptrinc): Likewise.
58847         * lib/fseeko.c (fseeko): Likewise.
58848         * lib/fseterr.c (fseterr): Likewise.
58849         * lib/fwritable.c (fwritable): Likewise.
58850         * lib/fwriting.c (fwriting): Likewise.
58851
58852 2008-04-26  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/stdio-impl.h: New file.
58855         * lib/fbufmode.c: Include stdio-impl.h.
58856         (fbufmode): Use fp_, remove redundant #defines.
58857         * lib/fflush.c: Include stdio-impl.h.
58858         (clear_ungetc_buffer): Remove redundant #defines.
58859         * lib/fpurge.c: Include stdio-impl.h.
58860         (fpurge): Remove redundant #defines.
58861         * lib/freadable.c: Include stdio-impl.h.
58862         (freadable): Remove redundant #defines.
58863         * lib/freadahead.c: Include stdio-impl.h.
58864         (freadahead): Remove redundant #defines.
58865         * lib/freading.c: Include stdio-impl.h.
58866         (freading): Remove redundant #defines.
58867         * lib/freadptr.c: Include stdio-impl.h.
58868         (freadptr): Remove redundant #defines.
58869         * lib/freadseek.c: Include stdio-impl.h.
58870         (freadptrinc): Remove redundant #defines.
58871         * lib/fseeko.c: Include stdio-impl.h.
58872         (rpl_fseeko): Remove redundant #defines.
58873         * lib/fseterr.c: Include stdio-impl.h.
58874         (fseterr): Remove redundant #defines.
58875         * lib/fwritable.c: Include stdio-impl.h.
58876         (fwritable: Remove redundant #defines.
58877         * lib/fwriting.c: Include stdio-impl.h.
58878         (fwriting): Remove redundant #defines.
58879         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58880         * modules/fflush (Files): Likewise.
58881         * modules/fpurge (Files): Likewise.
58882         * modules/freadable (Files): Likewise.
58883         * modules/freadahead (Files): Likewise.
58884         * modules/freading (Files): Likewise.
58885         * modules/freadptr (Files): Likewise.
58886         * modules/freadseek (Files): Likewise.
58887         * modules/fseeko (Files): Likewise.
58888         * modules/fseterr (Files): Likewise.
58889         * modules/fwritable (Files): Likewise.
58890         * modules/fwriting (Files): Likewise.
58891
58892 2008-04-26  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58895         restore_seek_optimization, update_fpos_cache): New functions, extracted
58896         from rpl_fflush.
58897         (rpl_fflush): Use them.
58898         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58899         (gl_REPLACE_FFLUSH): Use it.
58900
58901 2008-04-26  Bruno Haible  <bruno@clisp.org>
58902
58903         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58904         on Solaris.
58905         * tests/test-xstrtoimax.sh: Likewise.
58906         * tests/test-xstrtoumax.sh: Likewise.
58907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58908
58909 2008-04-26  Bruno Haible  <bruno@clisp.org>
58910
58911         * modules/memchr-tests: New file.
58912         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58913
58914 2008-04-26  Eric Blake  <ebb9@byu.net>
58915             Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/memchr.c: Include intprops.h.
58918         (__memchr): Optimize parallel detection of matching bytes. Rename local
58919         variables. Add explanatory comments.
58920
58921 2008-04-26  Bruno Haible  <bruno@clisp.org>
58922
58923         Fix module 'memchr', broken since 2000-10-28.
58924         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58925
58926 2008-04-26  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58929         comments.
58930
58931 2008-04-25  Eric Blake  <ebb9@byu.net>
58932
58933         Use native fstatat on cygwin 1.7.0.
58934         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58935         first.
58936
58937 2008-04-23  Eric Blake  <ebb9@byu.net>
58938
58939         Improve memchr2 performance.
58940         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58941         NUL bytes.
58942         * modules/memchr2 (Depends-on): Use intprops.h.
58943
58944 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58945
58946         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58947         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58948         <blp@cs.stanford.edu>.
58949
58950 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58951
58952         * lib/arpa_inet.in.h: New file.
58953
58954         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58955         (Makefile.am): Sed in substitute header file.
58956
58957         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58958         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58959
58960         * modules/inet_ntop (configure.ac): Use
58961         gl_ARPA_INET_MODULE_INDICATOR.
58962
58963         * modules/inet_pton (configure.ac): Use
58964         gl_ARPA_INET_MODULE_INDICATOR.
58965
58966 2008-04-22  Jim Meyering  <meyering@redhat.com>
58967
58968         * modules/verify (License): Re-license as LGPLv2+.
58969
58970 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58971
58972         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58973         parameter to void* as per POSIX standard (MinGW uses char*).
58974
58975 2008-04-21  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58978         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58979         Define to replacements if REPLACE_ISWCNTRL is 1.
58980         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58981         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58982         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58983         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58984         what it fixes.
58985         * doc/posix-functions/iswalpha.texi: Likewise.
58986         * doc/posix-functions/iswblank.texi: Likewise.
58987         * doc/posix-functions/iswcntrl.texi: Likewise.
58988         * doc/posix-functions/iswdigit.texi: Likewise.
58989         * doc/posix-functions/iswgraph.texi: Likewise.
58990         * doc/posix-functions/iswlower.texi: Likewise.
58991         * doc/posix-functions/iswprint.texi: Likewise.
58992         * doc/posix-functions/iswpunct.texi: Likewise.
58993         * doc/posix-functions/iswspace.texi: Likewise.
58994         * doc/posix-functions/iswupper.texi: Likewise.
58995         * doc/posix-functions/iswxdigit.texi: Likewise.
58996         Reported by Alain Guibert.
58997
58998 2008-04-21  Bruno Haible  <bruno@clisp.org>
58999
59000         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59001         Patch by Alain Guibert.
59002
59003 2008-04-21  Bruno Haible  <bruno@clisp.org>
59004
59005         Fix test failures on mingw.
59006         * tests/test-xstrtol.c (print_no_progname): New function.
59007         (main): Install it in error_print_progname hook.
59008         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59009         * tests/test-xstrtoimax.sh: Likewise.
59010         * tests/test-xstrtoumax.sh: Likewise.
59011
59012 2008-04-21  Bruno Haible  <bruno@clisp.org>
59013
59014         Fix test failure on mingw.
59015         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59016
59017 2008-04-21  Bruno Haible  <bruno@clisp.org>
59018
59019         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59020         Actually assign a value.
59021
59022 2008-04-20  Bruno Haible  <bruno@clisp.org>
59023
59024         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59025         take 2.
59026         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59027         'canonicalize-lgpl' module is also used.
59028         * lib/canonicalize-lgpl.c: Undo last change.
59029         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59030
59031 2008-04-20  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59034         config.h. Provide _mkdir based fallback for mingw.
59035         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59036         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59037         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59038         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59039         rather than defining mkdir in config.h.
59040         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59041         (gl_SYS_STAT_H_DEFAULTS): New macro.
59042         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59043         HAVE_IO_H any more.
59044         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59045         HAVE_DECL_MKDIR and HAVE_IO_H.
59046
59047 2008-04-20  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/isapipe.c: Port to native Windows platforms.
59050
59051 2008-04-20  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59054
59055 2008-04-21  Eric Blake  <ebb9@byu.net>
59056
59057         Work around preprocessors that don't handle UINTMAX_MAX.
59058         * lib/memchr2.c (memchr2): Avoid embedded #if.
59059         Reported by Alain Guibert, fix suggested by Bruno Haible.
59060
59061 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59062
59063         * doc/posix-functions/strftime.texi (strftime): Explain better
59064         Windows incompatibility.  Suggested by Micah Cowan
59065         <micah@cowan.name>.
59066
59067 2008-04-20  Bruno Haible  <bruno@clisp.org>
59068
59069         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59070         unistr/u8-mblen.
59071
59072 2008-04-20  Bruno Haible  <bruno@clisp.org>
59073
59074         Fix test failure on platforms with non-GNU iconv.
59075         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59076         (U_TO_U8): Use it, rather than u16_to_u8.
59077         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59078         units at the end of the input string.
59079         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59080
59081 2008-04-20  Bruno Haible  <bruno@clisp.org>
59082
59083         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59084         when the resulting length is 0.
59085         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59086
59087 2008-04-20  Bruno Haible  <bruno@clisp.org>
59088
59089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59090         works.
59091         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59092
59093 2008-04-20  Bruno Haible  <bruno@clisp.org>
59094
59095         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59096         * modules/tsearch-tests (configure.ac): Test for initstate function.
59097
59098 2008-04-20  Bruno Haible  <bruno@clisp.org>
59099
59100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59101         for nlink_t if missing.
59102         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59103
59104 2008-04-19  Bruno Haible  <bruno@clisp.org>
59105
59106         Work around snprintf bug on Linux libc5.
59107         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59109         gl_SNPRINTF_SIZE1.
59110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59111         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59112         that test failed.
59113         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59114         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59115         * modules/snprintf (Files): Add m4/printf.m4.
59116         * modules/vsnprintf (Files): Likewise.
59117         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59118         * doc/posix-functions/vsnprintf.texi: Likewise.
59119
59120 2008-04-19  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59123         from 0.0058 to less than 10^-7.
59124
59125 2008-04-19  Bruno Haible  <bruno@clisp.org>
59126
59127         Fix rounding when a precision is given.
59128         * lib/vasnprintf.c (is_borderline): New function.
59129         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59130         9...9x.
59131         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59132         %e, %g.
59133         * tests/test-vasprintf-posix.c (test_function): Likewise.
59134         * tests/test-snprintf-posix.h (test_function): Likewise.
59135         * tests/test-sprintf-posix.h (test_function): Likewise.
59136         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59137         * tests/test-printf-posix.h (test_function): Likewise.
59138         * tests/test-printf-posix.output: Update.
59139         Reported by John Darrington <john@darrington.wattle.id.au> via
59140         Ben Pfaff <blp@cs.stanford.edu>.
59141
59142 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59143
59144         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59145         Suggested by Bruno Haible <bruno@clisp.org>.
59146
59147 2008-04-17  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59150         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59151         implementation.
59152         Patch by Bruce Merry <bmerry@gmail.com>.
59153
59154 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59155
59156         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59157         doesn't work under Windows.
59158
59159 2008-04-16  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59162         New macros.
59163         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59164         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59165         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59166         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59167         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59168         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59169         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59170         macros.
59171         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59172         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59173         Northern Sotho, Uighur.
59174
59175 2008-04-16  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59178         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59179         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59180         Reported by Daniel Bergström <daniel@octocode.com>.
59181
59182 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59183             Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59186         function.
59187         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59188         New functions, mostly extracted from gl_locale_name_default.
59189         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59190
59191 2008-04-16  Eric Blake  <ebb9@byu.net>
59192
59193         Adjust strtod detection to catch glibc 2.7 bug.
59194         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59195         Reported by John Gatewood Ham.
59196
59197 2008-04-16  Bruno Haible  <bruno@clisp.org>
59198
59199         Add tentative support for Linux libc5.
59200         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59201         * lib/fpurge.c (fpurge): Likewise.
59202         * lib/freadable.c (freadable): Likewise.
59203         * lib/freadahead.c (freadahead): Likewise.
59204         * lib/freading.c (freading): Likewise.
59205         * lib/freadptr.c (freadptr): Likewise.
59206         * lib/freadseek.c (freadptrinc): Likewise.
59207         * lib/fseeko.c (rpl_fseeko): Likewise.
59208         * lib/fseterr.c (fseterr): Likewise.
59209         * lib/fwritable.c (fwritable): Likewise.
59210         * lib/fwriting.c (fwriting): Likewise.
59211         Reported by Alain Guibert <alguibert+bts@free.fr>.
59212
59213 2008-04-15  Bruno Haible  <bruno@clisp.org>
59214
59215         * modules/mathl (configure.ac): Define module indicator.
59216
59217 2008-04-15  Bruno Haible  <bruno@clisp.org>
59218
59219         * lib/logl.c (logl): Remove unused variables.
59220
59221 2008-04-15  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59224         fails.
59225
59226 2008-04-15  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/trim.c (trim2): Fix argument of isspace() macro.
59229
59230 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59231
59232         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59233         to 0.
59234         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59235
59236 2008-04-14  Bruno Haible  <bruno@clisp.org>
59237
59238         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59239         AC_LANG_PROGRAM argument.
59240         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59241         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59243         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59244         * m4/math_h.m4 (gl_MATH_H): Likewise.
59245         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59247         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59248         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59249         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59250         * m4/regex.m4 (gl_REGEX): Likewise.
59251         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59252         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59256         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59259
59260 2008-04-14  Jim Meyering  <meyering@redhat.com>
59261
59262         test-strtod: fix typos: s/abs/fabs/
59263         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59264
59265 2008-04-13  Bruno Haible  <bruno@clisp.org>
59266
59267         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59268         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59269         module is also used and while not building the reloc-wrapper.
59270
59271 2008-04-13  Bruno Haible  <bruno@clisp.org>
59272
59273         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59274
59275 2008-04-13  Bruno Haible  <bruno@clisp.org>
59276
59277         Fix AIX compilation failure introduced on 2008-04-02.
59278         * tests/test-frexp.c (exp): Undefine before redefining.
59279         * tests/test-frexpl.c (exp): Likewise.
59280
59281 2008-04-13  Bruno Haible  <bruno@clisp.org>
59282
59283         Work around a HP-UX stdio bug.
59284         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59285         * tests/test-ftello.c (main): Likewise.
59286         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59287         * doc/posix-functions/ftello.texi: Likewise.
59288
59289 2008-04-13  Bruno Haible  <bruno@clisp.org>
59290
59291         Make test-signbit pass on HP-UX/hppa.
59292         * tests/test-signbit.c (minus_zerol): New variable.
59293         (test_signbitl): Use it.
59294
59295 2008-04-13  Bruno Haible  <bruno@clisp.org>
59296
59297         Make truncl work on OSF/1 4.0.
59298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59299         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59300         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59302         HAVE_DECL_TRUNCL.
59303         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59304         HAVE_DECL_TRUNCL.
59305         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59306
59307 2008-04-13  Bruno Haible  <bruno@clisp.org>
59308
59309         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59310
59311 2008-04-13  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59314         expression, so as to avoid HP-UX 11 cc compiler bug.
59315
59316 2008-04-13  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59319
59320 2008-04-13  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/git-merge-changelog.c: Remove empty declaration outside of
59323         functions.
59324
59325 2008-04-13  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59328
59329 2008-04-13  Bruno Haible  <bruno@clisp.org>
59330
59331         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59332         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59334         also if it exists but lacks definitions of the SHUT_* macros.
59335         * modules/sys_socket (Description): Update.
59336         Reported by Elbert Pol <e.pol@chello.nl>.
59337
59338 2008-04-13  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/localcharset.c (OS2): Don't redefine if already defined.
59341         Reported by Elbert Pol <e.pol@chello.nl>.
59342
59343 2008-04-13  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/binary-io.h [__EMX__]: Include <io.h>.
59346         Reported by Elbert Pol <e.pol@chello.nl>.
59347
59348 2008-04-12  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/fpucw.h: Enable the definitions also for x86_64.
59351         Needed for NetBSD/x86_64.
59352         Reported by Thomas Klausner <tk@giga.or.at>.
59353
59354 2008-04-12  Bruno Haible  <bruno@clisp.org>
59355
59356         * tests/test-strtod.c: Include isnand.h.
59357         (main): Use isnand instead of isnan.
59358         Reported by Jim Meyering.
59359
59360 2008-04-12  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59363         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59364
59365 2008-04-12  Jim Meyering  <meyering@redhat.com>
59366
59367         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59368
59369 2008-04-12  Bruno Haible  <bruno@clisp.org>
59370
59371         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59372         Reported by Elbert Pol <e.pol@chello.nl>.
59373
59374 2008-04-12  Eric Blake  <ebb9@byu.net>
59375
59376         Work around Solaris 10 math.h bug.
59377         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59378         (gl_MATH_H_DEFAULTS): Set up default.
59379         * modules/math (Makefile.am): Replace new indicators.
59380         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59381         * tests/test-math.c (main): Test this.
59382         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59383         * doc/posix-headers/math.texi (math.h): Mention bug.
59384         Reported by Nelson H. F. Beebe and Jim Meyering.
59385
59386 2008-04-11  Bruno Haible  <bruno@clisp.org>
59387
59388         Adapt to future versions of Apple GCC.
59389         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59390         Reported by Peter O'Gorman <peter@pogma.com>.
59391
59392 2008-04-11  Bruno Haible  <bruno@clisp.org>
59393
59394         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59395
59396 2008-04-11  Bruno Haible  <bruno@clisp.org>
59397
59398         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59399
59400         * modules/getaddrinfo-tests (Makefile.am): Define
59401         test_getaddrinfo_LDADD.
59402
59403 2008-04-11  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59406         (init): Fix syntax error.
59407         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59408         is declared.
59409
59410 2008-04-11  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59413         * modules/glob (Depends-on): Add stdbool.
59414
59415 2008-04-11  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/trim.c: Include <string.h>.
59418
59419 2008-04-11  Eric Blake  <ebb9@byu.net>
59420
59421         Avoid compile failure on OS/2.
59422         * lib/regex_internal.h (internal_function): Disable optimization
59423         on OS/2 (__EMX__), where it caused compiler error.
59424         Reported by Elbert Pol.
59425
59426 2008-04-11  Bruno Haible  <bruno@clisp.org>
59427
59428         Flush the standard error stream before aborting. Needed on mingw.
59429         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59430         * tests/test-array_list.c (ASSERT): Likewise.
59431         * tests/test-array_oset.c (ASSERT): Likewise.
59432         * tests/test-avltree_list.c (ASSERT): Likewise.
59433         * tests/test-avltree_oset.c (ASSERT): Likewise.
59434         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59435         * tests/test-binary-io.c (ASSERT): Likewise.
59436         * tests/test-byteswap.c (ASSERT): Likewise.
59437         * tests/test-c-ctype.c (ASSERT): Likewise.
59438         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59439         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59440         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59441         * tests/test-c-strstr.c (ASSERT): Likewise.
59442         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59443         * tests/test-canonicalize.c (ASSERT): Likewise.
59444         * tests/test-carray_list.c (ASSERT): Likewise.
59445         * tests/test-ceilf1.c (ASSERT): Likewise.
59446         * tests/test-ceilf2.c (ASSERT): Likewise.
59447         * tests/test-ceill.c (ASSERT): Likewise.
59448         * tests/test-count-one-bits.c (ASSERT): Likewise.
59449         * tests/test-fbufmode.c (ASSERT): Likewise.
59450         * tests/test-fflush2.c (ASSERT): Likewise.
59451         * tests/test-floorf1.c (ASSERT): Likewise.
59452         * tests/test-floorf2.c (ASSERT): Likewise.
59453         * tests/test-floorl.c (ASSERT): Likewise.
59454         * tests/test-fopen.c (ASSERT): Likewise.
59455         * tests/test-fpending.c (ASSERT): Likewise.
59456         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59457         * tests/test-fpurge.c (ASSERT): Likewise.
59458         * tests/test-freadable.c (ASSERT): Likewise.
59459         * tests/test-freadahead.c (ASSERT): Likewise.
59460         * tests/test-freading.c (ASSERT): Likewise.
59461         * tests/test-freadptr.c (ASSERT): Likewise.
59462         * tests/test-freadptr2.c (ASSERT): Likewise.
59463         * tests/test-freadseek.c (ASSERT): Likewise.
59464         * tests/test-freopen.c (ASSERT): Likewise.
59465         * tests/test-frexp.c (ASSERT): Likewise.
59466         * tests/test-frexpl.c (ASSERT): Likewise.
59467         * tests/test-fseek.c (ASSERT): Likewise.
59468         * tests/test-fseeko.c (ASSERT): Likewise.
59469         * tests/test-fstrcmp.c (ASSERT): Likewise.
59470         * tests/test-ftell.c (ASSERT): Likewise.
59471         * tests/test-ftello.c (ASSERT): Likewise.
59472         * tests/test-func.c (ASSERT): Likewise.
59473         * tests/test-fwritable.c (ASSERT): Likewise.
59474         * tests/test-fwriting.c (ASSERT): Likewise.
59475         * tests/test-getdelim.c (ASSERT): Likewise.
59476         * tests/test-getline.c (ASSERT): Likewise.
59477         * tests/test-i-ring.c (ASSERT): Likewise.
59478         * tests/test-iconv-utf.c (ASSERT): Likewise.
59479         * tests/test-iconv.c (ASSERT): Likewise.
59480         * tests/test-isfinite.c (ASSERT): Likewise.
59481         * tests/test-isnand.c (ASSERT): Likewise.
59482         * tests/test-isnanf.c (ASSERT): Likewise.
59483         * tests/test-isnanl.h (ASSERT): Likewise.
59484         * tests/test-ldexpl.c (ASSERT): Likewise.
59485         * tests/test-linked_list.c (ASSERT): Likewise.
59486         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59487         * tests/test-localename.c (ASSERT): Likewise.
59488         * tests/test-lseek.c (ASSERT): Likewise.
59489         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59490         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59491         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59492         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59493         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59494         * tests/test-mbschr.c (ASSERT): Likewise.
59495         * tests/test-mbscspn.c (ASSERT): Likewise.
59496         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59497         * tests/test-mbspbrk.c (ASSERT): Likewise.
59498         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59499         * tests/test-mbsrchr.c (ASSERT): Likewise.
59500         * tests/test-mbsspn.c (ASSERT): Likewise.
59501         * tests/test-mbsstr1.c (ASSERT): Likewise.
59502         * tests/test-mbsstr2.c (ASSERT): Likewise.
59503         * tests/test-mbsstr3.c (ASSERT): Likewise.
59504         * tests/test-memchr2.c (ASSERT): Likewise.
59505         * tests/test-memmem.c (ASSERT): Likewise.
59506         * tests/test-open.c (ASSERT): Likewise.
59507         * tests/test-printf-frexp.c (ASSERT): Likewise.
59508         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59509         * tests/test-printf-posix.c (ASSERT): Likewise.
59510         * tests/test-quotearg.c (ASSERT): Likewise.
59511         * tests/test-rbtree_list.c (ASSERT): Likewise.
59512         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59513         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59514         * tests/test-round1.c (ASSERT): Likewise.
59515         * tests/test-roundf1.c (ASSERT): Likewise.
59516         * tests/test-roundl.c (ASSERT): Likewise.
59517         * tests/test-signbit.c (ASSERT): Likewise.
59518         * tests/test-sleep.c (ASSERT): Likewise.
59519         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59520         * tests/test-snprintf.c (ASSERT): Likewise.
59521         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59522         * tests/test-stat-time.c (ASSERT): Likewise.
59523         * tests/test-strcasestr.c (ASSERT): Likewise.
59524         * tests/test-strerror.c (ASSERT): Likewise.
59525         * tests/test-striconv.c (ASSERT): Likewise.
59526         * tests/test-striconveh.c (ASSERT): Likewise.
59527         * tests/test-striconveha.c (ASSERT): Likewise.
59528         * tests/test-strsignal.c (ASSERT): Likewise.
59529         * tests/test-strstr.c (ASSERT): Likewise.
59530         * tests/test-strtod.c (ASSERT): Likewise.
59531         * tests/test-trunc1.c (ASSERT): Likewise.
59532         * tests/test-trunc2.c (ASSERT): Likewise.
59533         * tests/test-truncf1.c (ASSERT): Likewise.
59534         * tests/test-truncf2.c (ASSERT): Likewise.
59535         * tests/test-truncl.c (ASSERT): Likewise.
59536         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59537         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59538         * tests/test-vasnprintf.c (ASSERT): Likewise.
59539         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59540         * tests/test-vasprintf.c (ASSERT): Likewise.
59541         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59542         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59543         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59544         * tests/test-vsnprintf.c (ASSERT): Likewise.
59545         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59546         * tests/test-wcwidth.c (ASSERT): Likewise.
59547         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59548         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59549         * tests/test-xvasprintf.c (ASSERT): Likewise.
59550         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59551         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59552         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59553         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59554         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59555         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59556         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59557         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59558         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59559         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59560         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59561         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59562         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59563         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59564         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59565         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59566         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59567         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59568         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59569         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59570         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59571         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59572         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59573         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59574         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59575         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59576         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59577         * tests/unictype/test-combining.c (ASSERT): Likewise.
59578         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59579         * tests/unictype/test-digit.c (ASSERT): Likewise.
59580         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59581         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59582         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59583         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59584         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59585         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59586         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59587         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59588         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59589         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59590         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59591         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59592         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59593         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59594         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59595         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59596         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59597         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59598         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59599         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59600         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59601         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59602         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59603         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59604         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59605         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59606         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59607         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59608         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59609         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59610         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59611         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59612         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59613         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59614         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59615         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59616         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59617         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59618         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59619         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59620         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59621         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59622         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59623         Reported by Eric Blake.
59624
59625 2008-04-11  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/wchar.in.h: Tweak comment.
59628
59629 2008-04-11  Bruno Haible  <bruno@clisp.org>
59630
59631         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59632         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59633         gl_COMMON.
59634         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59635
59636 2008-04-11  Bruno Haible  <bruno@clisp.org>
59637
59638         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59639
59640 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59641
59642         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59643         of attempting to use non-existing /dev/*random.  Based on patch
59644         from Adam Strzelecki <ono@java.pl> in
59645         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59646
59647 2008-04-08  Bruno Haible  <bruno@clisp.org>
59648
59649         Add tentative support for emx+gcc.
59650         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59651         * lib/fpurge.c (fpurge): Likewise.
59652         * lib/freadable.c (freadable): Likewise.
59653         * lib/freadahead.c (freadahead): Likewise.
59654         * lib/freading.c (freading): Likewise.
59655         * lib/freadptr.c (freadptr): Likewise.
59656         * lib/freadseek.c (freadptrinc): Likewise.
59657         * lib/fseeko.c (rpl_fseeko): Likewise.
59658         * lib/fseterr.c (fseterr): Likewise.
59659         * lib/fwritable.c (fwritable): Likewise.
59660         * lib/fwriting.c (fwriting): Likewise.
59661         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59662
59663 2008-04-09  Eric Blake  <ebb9@byu.net>
59664
59665         Avoid some autoconf warnings.
59666         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59667         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59668         * m4/afs.m4 (gl_AFS): Likewise.
59669         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59670         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59672         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59673         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59674         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59675         (AC_CHECK_DECLS_ONCE): Likewise.
59676         Rename file...
59677         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59678         gnulib-tool requires autoconf 2.59 or better.
59679         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59680
59681 2008-04-08  Eric Blake  <ebb9@byu.net>
59682
59683         Use 'git describe --match' if present (added in git 1.5.5).
59684         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59685         if possible.
59686
59687 2008-04-08  Bruno Haible  <bruno@clisp.org>
59688
59689         Add tentative support for OpenServer.
59690         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59691         _ptr, _cnt.
59692         * lib/fpurge.c (fpurge): Likewise.
59693         * lib/freadable.c (freadable): Likewise.
59694         * lib/freadahead.c (freadahead): Likewise.
59695         * lib/freading.c (freading): Likewise.
59696         * lib/freadptr.c (freadptr): Likewise.
59697         * lib/freadseek.c (freadptrinc): Likewise.
59698         * lib/fseeko.c (rpl_fseeko): Likewise.
59699         * lib/fseterr.c (fseterr): Likewise.
59700         * lib/fwritable.c (fwritable): Likewise.
59701         * lib/fwriting.c (fwriting): Likewise.
59702         Reported by Roger Cornelius <rac@tenzing.org> and
59703         Brian K. White <brian@aljex.com>.
59704
59705 2008-04-06  Jim Meyering  <meyering@redhat.com>
59706
59707         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59708
59709 2008-04-06  Bruno Haible  <bruno@clisp.org>
59710
59711         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59712         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59713         * tests/test-printf-posix.sh: Likewise.
59714         * tests/test-vfprintf-posix.sh: Likewise.
59715         * tests/test-vprintf-posix.sh: Likewise.
59716         * tests/test-xprintf-posix.sh: Likewise.
59717
59718 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59719
59720         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59721         hide error from 'ls', needed on OS/2.
59722         Report by Elbert Pol <elbert.pol@gmail.com>.
59723
59724 2008-04-04  Eric Blake  <ebb9@byu.net>
59725
59726         Make test-fseeko.c failures meaningful.
59727         * tests/test-fseeko.c: Print line number on failure.
59728         * tests/test-fseek.c: Likewise.
59729         Reported by Nelson H. F. Beebe.
59730
59731         Improve strtod bug detection check.
59732         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59733         required for Solaris 10.
59734         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59735
59736 2008-04-04  Bruno Haible  <bruno@clisp.org>
59737
59738         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59739         by m4/setenv.m4.
59740
59741 2008-04-03  Eric Blake  <ebb9@byu.net>
59742
59743         Ensure sane .version contents.
59744         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59745         version string.
59746         * build-aux/git-version-gen: Improve documentation.
59747
59748         Make GNU make output nicer.
59749         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59750         MAKECMDGOALS to enforce message for all command line targets.  Set
59751         srcdir for use in maint.mk.
59752
59753         Another maintainer tweak.
59754         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59755         a target that regenerates version.
59756
59757 2008-04-03  Jim Meyering  <meyering@redhat.com>
59758
59759         vc-list-files: don't cause coreutils "make po-check" failure
59760         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59761
59762 2008-04-03  Eric Blake  <ebb9@byu.net>
59763
59764         Allow VPATH usage of vc-list-files.
59765         * build-aux/vc-list-files (scriptversion): Add timestamp.
59766         (options): Add --help, --version, -C.
59767         (CVS): Support installed cvsu.
59768
59769 2008-04-02  Bruno Haible  <bruno@clisp.org>
59770
59771         Avoid some "statement with no effect" warnings from gcc.
59772         * tests/test-wctype.c (main): Explicitly ignore unused values.
59773         Reported by Jim Meyering.
59774
59775 2008-04-02  Jim Meyering  <meyering@redhat.com>
59776
59777         Avoid some warnings from "gcc -Wshadow".
59778         * tests/test-frexp.c (exp): Define to a different identifier.
59779         * tests/test-frexpl.c (exp): Likewise.
59780
59781 2008-04-03  Jim Meyering  <meyering@redhat.com>
59782
59783         bootstrap: remove dangling *.[ch] symlinks from lib
59784         * build-aux/bootstrap [dangling symlink removal]: Move find's
59785         -depth option to precede all others, to avoid a warning.
59786         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59787
59788 2008-04-02  Bruno Haible  <bruno@clisp.org>
59789
59790         Avoid some warnings from "gcc -Wshadow".
59791         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59792         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59793         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59794         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59795         Reported by Jim Meyering.
59796
59797 2008-04-01  Bruno Haible  <bruno@clisp.org>
59798
59799         Fix test to work on IRIX 6.5 with cc.
59800         * tests/test-math.c (numeric_equal): New function.
59801         (main): Use it.
59802
59803 2008-04-01  Bruno Haible  <bruno@clisp.org>
59804
59805         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59806
59807 2008-04-01  Bruno Haible  <bruno@clisp.org>
59808
59809         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59810         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59811         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59812         (Depends-on): Remove math.
59813
59814         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59815         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59816         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59817         (Depends-on): Remove math.
59818
59819         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59820         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59821         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59822         (Depends-on): Remove math.
59823         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59824         (Depends-on): Remove math.
59825
59826         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59827         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59828         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59829         (Depends-on): Remove math.
59830         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59831         (Depends-on): Remove math.
59832
59833         * tests/test-round1.c: Include nan.h.
59834         (main): Use NaNd instead of NAN.
59835         * modules/round-tests (Files): Add tests/nan.h.
59836
59837         * tests/test-trunc1.c: Include nan.h.
59838         (main): Use NaNd instead of NAN.
59839         * modules/trunc-tests (Files): Add tests/nan.h.
59840
59841         * tests/test-roundf1.c: Include nan.h.
59842         (main): Use NaNf instead of NAN.
59843         * modules/roundf-tests (Files): Add tests/nan.h.
59844
59845         * tests/test-truncf1.c: Include nan.h.
59846         (main): Use NaNf instead of NAN.
59847         * modules/truncf-tests (Files): Add tests/nan.h.
59848
59849         * tests/test-ceilf1.c: Include nan.h.
59850         (main): Use NaNf instead of NAN.
59851         * modules/ceilf-tests (Files): Add tests/nan.h.
59852
59853         * tests/test-floorf1.c: Include nan.h.
59854         (main): Use NaNf instead of NAN.
59855         * modules/floorf-tests (Files): Add tests/nan.h.
59856
59857         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59858         (main): Use NaNf instead of NAN.
59859         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59860
59861         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59862         (main): Use NaNd instead of NAN.
59863         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59864
59865         * tests/test-frexp.c: Include nan.h.
59866         (main): Use NaNd instead of NAN.
59867         * modules/frexp-tests (Files): Add tests/nan.h.
59868
59869         * lib/isnan.c: Don't include <math.h>.
59870         (FUNC): Don't use NAN macro.
59871         * modules/isnand-nolibm (Depends-on): Remove math.
59872         * modules/isnanf-nolibm (Depends-on): Remove math.
59873         * modules/isnanl (Depends-on): Remove math.
59874         * modules/isnanl-nolibm (Depends-on): Remove math.
59875
59876         * tests/nan.h: New file.
59877
59878 2008-04-01  Eric Blake  <ebb9@byu.net>
59879
59880         Fix typos.
59881         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59882         values to be the right type.
59883
59884         For now, cater to gnulib strtod inaccuracies.
59885         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59886         fractional results.  While not as nice from a QoI perspective, it
59887         is a quicker patch than correctly implementing decimal to binary
59888         rounding.
59889
59890 2008-03-31  Eric Blake  <ebb9@byu.net>
59891
59892         Guarantee a definition of NAN.
59893         * lib/math.in.h (NAN): Define if missing.
59894         * tests/test-math.c (main): Test it.
59895         * doc/posix-headers/math.texi (math.h): Document this.
59896         * lib/isnan.c (rpl_isnand): Use it.
59897         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59898         * tests/test-floorf1.c (NaN): Likewise.
59899         * tests/test-frexp.c (NaN): Likewise.
59900         * tests/test-isnand.c (NaN): Likewise.
59901         * tests/test-isnanf.c (NaN): Likewise.
59902         * tests/test-round1.c (NaN): Likewise.
59903         * tests/test-roundf1.c (NaN): Likewise.
59904         * tests/test-snprintf-posix.h (NaN): Likewise.
59905         * tests/test-sprintf-posix.h (NaN): Likewise.
59906         * tests/test-trunc1.c (NaN): Likewise.
59907         * tests/test-truncf1.c (NaN): Likewise.
59908         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59909         * tests/test-vasprintf-posix.c (NaN): Likewise.
59910         * modules/isnand-nolibm (Depends-on): Add math.
59911         * modules/isnanf-nolibm (Depends-on): Likewise.
59912         * modules/isnanl (Depends-on): Likewise.
59913         * modules/isnanl-nolibm (Depends-on): Likewise.
59914         * modules/snprintf-posix-tests (Depends-on): Likewise.
59915         * modules/sprintf-posix-tests (Depends-on): Likewise.
59916         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59917         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59918         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59919         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59920
59921 2008-03-31  Bruno Haible  <bruno@clisp.org>
59922
59923         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59924         * doc/posix-functions/strtod.texi: Likewise.
59925
59926 2008-03-31  Bruno Haible  <bruno@clisp.org>
59927
59928         * tests/test-strtod.c (main): Don't use C99 syntax.
59929
59930 2008-03-31  Bruno Haible  <bruno@clisp.org>
59931
59932         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59933         Reported by Eric Blake.
59934
59935 2008-03-31  Jim Meyering  <meyering@redhat.com>
59936
59937         Don't compare actual signbit return values.
59938         * tests/test-strtod.c (main): Rather, compare only their
59939         zero/non-zero nature.
59940
59941 2008-03-31  Eric Blake  <ebb9@byu.net>
59942
59943         More strtod documentation.
59944         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59945         failures as distinct bugs.
59946
59947 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59948
59949         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59950         Problem reported by Erik Benada in
59951         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59952
59953 2008-03-30  Bruno Haible  <bruno@clisp.org>
59954
59955         * tests/test-strtod.c: Add comments about which assertion fails on which
59956         platform.
59957         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59958
59959 2008-03-30  Eric Blake  <ebb9@byu.net>
59960
59961         Test signbit behavior on zeros.
59962         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59963         (test_signbitd, test_signbitl): Likewise.
59964
59965         More strtod touchups.
59966         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59967         sign of negative underflow, for now.  Use .5, not .1.
59968         * doc/posix-functions/strtod.texi (strtod): Mention these
59969         limitations.
59970         Reported by Jim Meyering.
59971
59972 2008-03-30  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59975         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59976
59977 2008-03-30  Bruno Haible  <bruno@clisp.org>
59978
59979         Avoid failure when attempting to return empty iconv results on some
59980         platforms.
59981         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59982         allocation, don't report ENOMEM when the resulting string is empty.
59983
59984 2008-03-30  Bruno Haible  <bruno@clisp.org>
59985
59986         Fix buffer overrun.
59987         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59988         Don't consider the width for tmp_length. Check count against tmp_length
59989         before doing the padding. Ensure enough allocation during padding.
59990
59991 2008-03-30  Eric Blake  <ebb9@byu.net>
59992
59993         strtod touchups.
59994         * lib/strtod.c (strtod): Avoid compiler warnings.
59995         Reported by Jim Meyering.
59996
59997 2008-03-30  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60000         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60001         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60002         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60003         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60004         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60005         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60006         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60007
60008         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60009         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60010         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60011         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60012         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60013         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60014         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60015         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60016
60017         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60018         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60019         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60020         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60021         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60022         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60023         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60024         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60025
60026         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60027         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60028
60029         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60030         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60031
60032         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60033         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60034
60035         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60037         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60038
60039         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60041         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60042
60043         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60045         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60046
60047         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60049         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60050
60051         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60052         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60054         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60055         (Depends-on): Add EOVERFLOW.
60056         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60057         (Depends-on): Add EOVERFLOW.
60058         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60059         (Depends-on): Add EOVERFLOW.
60060         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60061         (Depends-on): Add EOVERFLOW.
60062         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60063         (Depends-on): Add EOVERFLOW.
60064         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60065         (Depends-on): Add EOVERFLOW.
60066         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60067         (Depends-on): Add EOVERFLOW.
60068         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60069         (Depends-on): Add EOVERFLOW.
60070
60071         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60072         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60073         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60074
60075         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60076         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60077         * modules/snprintf (Depends-on): Add EOVERFLOW.
60078
60079         * lib/poll.c (EOVERFLOW): Remove fallback.
60080         * modules/poll (Depends-on): Add EOVERFLOW.
60081
60082         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60083         * modules/getugroups (Depends-on): Add EOVERFLOW.
60084
60085         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60086         * modules/getdelim (Depends-on): Add EOVERFLOW.
60087
60088         * lib/ftell.c (EOVERFLOW): Remove fallback.
60089         * modules/ftell (Depends-on): Add EOVERFLOW.
60090
60091         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60093         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60094
60095         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60096
60097         * modules/EOVERFLOW-tests: New file.
60098         * tests/test-EOVERFLOW.c: New file.
60099
60100         * modules/EOVERFLOW: New file.
60101         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60102
60103 2008-03-30  Bruno Haible  <bruno@clisp.org>
60104
60105         Fix bug introduced on 2007-06-10.
60106         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60107         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60108
60109 2008-03-30  Bruno Haible  <bruno@clisp.org>
60110
60111         Improve freadseek's efficiency after ungetc.
60112         * lib/freadseek.c: Include freadahead.h.
60113         (freadptrinc): New function, extracted from freadseek.
60114         (freadseek): Use it in a loop. Use freadahead to determine the number
60115         of loop iterations.
60116         * modules/freadseek (Depends-on): Add freadahead.
60117         (configure.ac): Require AC_C_INLINE.
60118
60119 2008-03-30  Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/freadseek.c (freadseek): Don't ignore the return value of
60122         freadptr.
60123
60124 2008-03-29  Eric Blake  <ebb9@byu.net>
60125
60126         Add hex float support.
60127         * modules/strtod (Depends-on): Add c-ctype.
60128         (Link): Mention POW_LIB.
60129         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60130         whitespace between 'e' and exponent.
60131         * tests/test-strtod.c (main): Enable hex float tests.
60132         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60133         now provides.
60134
60135         Document various strtod bugs, with some fixes.
60136         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60137         "-0x", "inf", "nan", and hex constants.
60138         * doc/posix-functions/atof.texi (atof): Likewise.
60139         * modules/stdlib (Makefile.am): Support strtod.
60140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60141         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60142         detect additional strtod bugs.
60143         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60144         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60145         bool where appropriate.  Parse 'inf' and 'nan'.
60146         * tests/test-strtod.c: New file.
60147         * modules/strtod (Depends-on): Add stdbool, stdlib.
60148         (configure.ac): Turn on module indicator.
60149         * modules/strtod-tests: New module.
60150
60151 2008-03-29  Eric Blake  <ebb9@byu.net>
60152
60153         Fix ftell on mingw.
60154         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60155         * modules/ftell-tests (Depends-on): Add binary-io.
60156         * modules/ftello-tests (Depends-on): Likewise.
60157         * tests/test-ftell.c (main): Enhance test to cover behavior after
60158         ungetc.  Enforce binary mode.
60159         * tests/test-ftello.c (main): Likewise.
60160
60161         Pass test-freadseek on cygwin.
60162         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60163         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60164         ungetc buffer.
60165
60166         * tests/test-fflush2.c (main): Fix typo.
60167
60168 2008-03-29  Bruno Haible  <bruno@clisp.org>
60169
60170         * tests/test-fflush2.c (main): Temporarily disable the contents of
60171         this test.
60172         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60173         Reported by Eric Blake.
60174
60175 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60176
60177         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60178         (GC_SHA224_DIGEST_SIZE): Add.
60179
60180         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60181         (gc_hash_digest_length): Likewise.
60182         (gc_hash_buffer): Likewise.
60183
60184 2008-03-25  Bruno Haible  <bruno@clisp.org>
60185
60186         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60187         detail which gettext release to use.
60188         Reported by Simon Josefsson.
60189
60190 2008-03-26  Jim Meyering  <meyering@redhat.com>
60191
60192         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60193         * modules/gnumakefile (clean-GNUmakefile): Also, use
60194         test ... && ... || : syntax rather than if-then ... fi.
60195
60196         gnumakefile: Don't double-quote-expand $(VPATH) value.
60197         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60198
60199 2008-03-24  Eric Blake  <ebb9@byu.net>
60200
60201         Alter GNUmakefile to install into top directory.
60202         * modules/maintainer-makefile: Split, and add dependency...
60203         * modules/gnumakefile: to this new module.
60204         * build-aux/GNUmakefile: Move...
60205         * top/GNUmakefile: ...here.
60206         * build-aux/maint.mk: Move...
60207         * top/maint.mk: ...here.
60208         * MODULES.html.sh (Support for maintaining...): Document new
60209         module.
60210
60211 2008-03-23  Bruno Haible  <bruno@clisp.org>
60212
60213         * gnulib-tool: New options --vc-files, --no-vc-files.
60214         (func_usage): Document them.
60215         (vc_files): New variable.
60216         (func_import): Consider vc_files.
60217         (func_create_testdir): Set vc_files to empty.
60218         Suggested by Jim Meyering and Karl Berry.
60219
60220 2008-03-23  Bruno Haible  <bruno@clisp.org>
60221
60222         Fix regex compilation error on HP-UX 11.
60223         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60224         * modules/regex (Files): Add m4/mbstate_t.m4.
60225         Reported by Ton Voon <ton.voon@altinity.com>.
60226
60227 2008-03-23  Bruno Haible  <bruno@clisp.org>
60228
60229         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60230
60231 2008-03-23  Eric Blake  <ebb9@byu.net>
60232             Bruno Haible  <bruno@clisp.org>
60233
60234         Install files from top/ in the destination directory.
60235         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60236         augmentation also for the files from top/.
60237         (func_import, func_create_testdir): Rewrite file names:
60238         top/filename -> filename.
60239
60240 2008-03-23  Bruno Haible  <bruno@clisp.org>
60241
60242         Tweak "gnulib --version" output.
60243         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60244
60245 2008-03-23  Bruno Haible  <bruno@clisp.org>
60246
60247         Tweak "gnulib --version" output.
60248         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60249         rather than contents of ChangeLog, when possible.
60250
60251 2008-03-21  Eric Blake  <ebb9@byu.net>
60252
60253         More --version tweaks.
60254         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60255         date of last ChangeLog entry.
60256
60257 2008-03-21  Jim Meyering  <meyering@redhat.com>
60258
60259         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60260
60261 2008-03-20  Eric Blake  <ebb9@byu.net>
60262
60263         VPATH fix.
60264         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60265
60266 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60267
60268         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60269         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60270
60271 2008-03-20  Eric Blake  <ebb9@byu.net>
60272
60273         Sync GNUmakefile with coreutils.
60274         * build-aux/GNUmakefile (have-Makefile): Rename...
60275         (_have-Makefile): ...to this, for namespace consideration.
60276         (GNUmakefile.cfg): Include, if present.
60277         (_autoreconf): Define a default.
60278         (_is-dist-target): New rule for rebuilds to pick up intra-release
60279         version.
60280         (maint-cfg.mk): Rename...
60281         (cfg.mk): ...to this.
60282
60283 2008-03-18  Jim Meyering  <meyering@redhat.com>
60284
60285         New script and module: mktempd
60286         * MODULES.html.sh (maint+release support): Add mktempd.
60287         * build-aux/mktempd: New file.
60288         * modules/mktempd: New file.
60289
60290 2008-03-15  Jim Meyering  <meyering@redhat.com>
60291
60292         Undo last change.
60293         * lib/sha1.c, lib/md5.c: 63 != ~63.
60294         Reported by Andreas Schwab.
60295
60296         sha1.c, md5.c: Hoist a redundant expression.
60297         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60298         "ctx->buflen" only once, before calling *_process_block.
60299         * lib/md5.c (md5_process_bytes): Likewise.
60300
60301 2008-03-14  Eric Blake  <ebb9@byu.net>
60302
60303         Bump copyright year in files generated by gnulib-tool.
60304         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60305         gnulib-tool, rather than hard-coding it.
60306
60307         Fix 'gnulib-tool --version' output to work with git.
60308         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60309         (startup): ...here.
60310         (func_version): Use it to invoke git-version-gen, rather than
60311         relying on CVS keyword expansion.  Modernize wording.
60312         (cvsdatestamp, last_checkin_date, version): Kill unused
60313         variables.
60314
60315 2008-03-12  Jim Meyering  <meyering@redhat.com>
60316
60317         Recognize optional cast of the argument to free.
60318         * build-aux/useless-if-before-free: Update regexps.
60319
60320         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60321
60322 2008-03-11  Bruno Haible  <bruno@clisp.org>
60323
60324         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60325         by a single package.
60326         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60327         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60328         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60329         Reported by Sam Steingold <sds@gnu.org>.
60330
60331 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60332
60333         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60334         repositories.
60335
60336 2008-03-11  Bruno Haible  <bruno@clisp.org>
60337
60338         Avoid conflicts between local macro definitions.
60339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60340         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60341
60342 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60343             Bruno Haible  <bruno@clisp.org>
60344
60345         Make va_copy work with some version of xlc on AIX 5.1.
60346         * lib/stdarg.in.h: New file.
60347         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60348         On AIX, use a <stdarg.h> file substitute.
60349         * modules/stdarg (Files): Add lib/stdarg.in.h.
60350         (Depends-on): Add include_next.
60351         (Makefile.am): Build a stdarg.h substitute if requested.
60352         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60353
60354 2008-03-10  Bruno Haible  <bruno@clisp.org>
60355
60356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60357         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60358         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60359
60360 2008-03-10  Bruno Haible  <bruno@clisp.org>
60361
60362         * modules/stdlib (Depends-on): Add include_next, remove
60363         absolute-header.
60364
60365 2008-03-09  Bruno Haible  <bruno@clisp.org>
60366
60367         * lib/freadahead.h (freadahead): Document more precisely.
60368         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60369         the sum of both buffer sizes.
60370         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60371         * NEWS: Document the change.
60372
60373 2008-03-09  Bruno Haible  <bruno@clisp.org>
60374
60375         Extend freadptr to return also the buffer size.
60376         * lib/freadptr.h (freadptr): Add sizep argument.
60377         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60378         (freadptr): Add sizep argument. Determine buffer size like freadahead
60379         does.
60380         * tests/test-freadptr.c: Don't include freadahead.h.
60381         (main): Adapt for new calling convention of freadptr.
60382         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60383         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60384         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60385         tests/test-freadptr2.sh.
60386         (Depends): Remove freadahead.
60387         (TESTS): Add test-freadptr2.sh.
60388         (check_PROGRAMS): Add test-freadptr2.
60389
60390 2008-03-09  Bruno Haible  <bruno@clisp.org>
60391
60392         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60393         Report and solution by Simon Josefsson.
60394
60395 2008-03-06  Bruno Haible  <bruno@clisp.org>
60396
60397         Make fflush after ungetc work on BSD platforms.
60398         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60399         * tests/test-fflush2.c: New file.
60400         * tests/test-fflush2.sh: New file.
60401         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60402         tests/test-fflush2.c.
60403         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60404         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60405
60406 2008-03-06  Eric Blake  <ebb9@byu.net>
60407
60408         Likewise for ftello.
60409         * modules/ftello (Dependencies): Add extensions.
60410         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60411
60412 2008-03-06  Bruno Haible  <bruno@clisp.org>
60413
60414         * modules/fseeko (Dependencies): Add extensions.
60415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60416         Needed on glibc systems.
60417
60418 2008-03-06  Bruno Haible  <bruno@clisp.org>
60419
60420         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60421         email address.
60422         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60423
60424 2008-03-06  Bruno Haible  <bruno@clisp.org>
60425
60426         * users.txt: Add libgnupdf.
60427
60428 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60429
60430         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60431         (Header File Substitutes, Function Substitutes,
60432         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60433         (Build robot for gnulib): Fix typo.
60434
60435 2008-03-06  Bruno Haible  <bruno@clisp.org>
60436
60437         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60438         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60439
60440 2008-03-06  Bruno Haible  <bruno@clisp.org>
60441
60442         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60443         * doc/gnulib.texi: Include it.
60444
60445 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60446
60447         * modules/func (License): Change license to unlimited; there was
60448         no LGPL parts in the module anyway.
60449
60450 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60451
60452         * modules/__func__: Renamed to modules/func.
60453         * modules/__func__-tests: Renamed to modules/func-tests.
60454         * tests/test-__func__.c: Renamed to tests/test-func.c.
60455         * m4/__func__.m4: Renamed to m4/func.m4.
60456         * doc/gnulib.texi (__func__): Section renamed to func.
60457         Suggested by Eric Blake <ebb9@byu.net>.
60458
60459 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60460
60461         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60462         about __func__.  Make example self-contained.  Suggested by Eric
60463         Blake <ebb9@byu.net>.
60464
60465         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60466         Suggested by Eric Blake <ebb9@byu.net>.
60467
60468 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60469
60470         * modules/__func__: New file.
60471         * modules/__func__-tests: New file.
60472         * tests/test-__func__.c: New file.
60473         * m4/__func__.m4: New file.
60474         * doc/gnulib.texi (__func__): Document __func__ module.
60475
60476 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60477
60478         * modules/byteswap (License): Re-license as LGPLv2+.
60479
60480 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60481
60482         * doc/Makefile: Add pdf target.
60483
60484 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60485
60486         * modules/inline (License): Use 'unlimited', since there are only
60487         *.m4 files in this module.
60488
60489 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60490             Bruno Haible  <bruno@clisp.org>
60491
60492         Add support for HP C 7.1 on OpenVMS 8.3.
60493         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60494
60495 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60496
60497         Update VMS specifics.
60498         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60499
60500 2008-03-02  Jim Meyering  <meyering@redhat.com>
60501
60502         Remove the last dependency on the "free" module.
60503         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60504         Reported by Bob Proulx.
60505
60506         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60507
60508         Remove useless "if" tests before free.  Deprecate "free" module.
60509         * doc/posix-functions/free.texi: Mention that this
60510         module is no longer useful.
60511         * modules/free (Notice): Say this module is obsolete.
60512         * modules/readutmp (Depends-on): Remove free.
60513         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60514         * lib/putenv.c (putenv): Likewise.
60515         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60516         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60517         * tests/test-c-strcasestr.c (main): Likewise.
60518         * tests/test-c-strstr.c (main): Likewise.
60519         * tests/test-mbscasestr1.c (main): Likewise.
60520         * tests/test-mbscasestr2.c (main): Likewise.
60521         * tests/test-mbsstr1.c (main): Likewise.
60522         * tests/test-mbsstr2.c (main): Likewise.
60523         * tests/test-memmem.c (main): Likewise.
60524         * tests/test-strcasestr.c (main): Likewise.
60525         * tests/test-striconv.c (main): Likewise.
60526         * tests/test-striconveh.c (main): Likewise.
60527         * tests/test-striconveha.c (main): Likewise.
60528         * tests/test-strstr.c (main): Likewise.
60529
60530         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60531
60532         bootstrap: sync from coreutils again
60533         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60534
60535 2008-03-01  Jim Meyering  <meyering@redhat.com>
60536
60537         bootstrap: sync from coreutils
60538         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60539         also when the target doesn't exist.
60540
60541 2008-03-01  Eric Blake  <ebb9@byu.net>
60542
60543         Fix bugs in last patch.
60544         * lib/memchr2.c (memchr2): Fix typo.
60545         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60546         extension.
60547         Reported by Bruce Korb.
60548
60549         New module 'memchr2'.
60550         * modules/memchr2: New file.
60551         * modules/memchr2-tests: Likewise.
60552         * lib/memchr2.h: Likewise.
60553         * lib/memchr2.c: Likewise, based on memchr.c.
60554         * tests/test-memchr2.c: New test.
60555         * MODULES.html.sh (String handling): Add memchr2.
60556
60557 2008-02-29  Bruno Haible  <bruno@clisp.org>
60558
60559         * modules/freadseek-tests: New file.
60560         * tests/test-freadseek.sh: New file.
60561         * tests/test-freadseek.c: New file.
60562
60563         New module 'freadseek'.
60564         * modules/freadseek: New file.
60565         * lib/freadseek.h: New file.
60566         * lib/freadseek.c: New file.
60567         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60568
60569 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60570
60571         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60572         wydawca.
60573
60574         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60575         program_invocation_name and program_invocation_short_name are
60576         present.
60577
60578 2008-02-28  Bruno Haible  <bruno@clisp.org>
60579
60580         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60581         * tests/test-freadptr.sh: Also test non-seekable stdin.
60582
60583 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60584
60585         * build-aux/bootstrap (source_base, m4_base)
60586         (doc_base, tests_base): New variables.
60587         (gnulib_tool_options): Do not hardcode base directories, use
60588         the above variables instead.
60589
60590 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60591
60592         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60593
60594 2008-02-28  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/freadptr-tests: New file.
60597         * tests/test-freadptr.sh: New file.
60598         * tests/test-freadptr.c: New file.
60599
60600         New module 'freadptr'.
60601         * modules/freadptr: New file.
60602         * lib/freadptr.h: New file.
60603         * lib/freadptr.c: New file.
60604         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60605
60606 2008-02-26  Karl Berry  <karl@freefriends.org>
60607
60608         Sync from Libtool:
60609         * libltdl/argz.c (argz_add, argz_count): New functions.
60610         * libltdl/argz.in.h: Declare them.
60611         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60612
60613 2008-02-22  Bruno Haible  <bruno@clisp.org>
60614
60615         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60616         is a pointer type.  Needed for HP-UX 10.
60617         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60618         * doc/posix-functions/gmtime_r.texi: Likewise.
60619         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60620
60621 2008-02-24  Bruno Haible  <bruno@clisp.org>
60622
60623         * modules/environ-tests: New file.
60624         * tests/test-environ.c: New file.
60625
60626         New module 'environ'.
60627         * modules/environ: New file.
60628         * lib/unistd.in.h (environ): New declaration.
60629         * m4/environ.m4: New file.
60630         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60631         after use.
60632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60633         HAVE_DECL_ENVIRON.
60634         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60635         HAVE_DECL_ENVIRON.
60636         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60637         wrong claim that 'environ' is missing on some systems.
60638         * modules/execute (Depends-on): Add environ.
60639         * lib/execute.c (environ): Remove fallback declaration.
60640         * modules/pipe (Depends-on): Add environ.
60641         * lib/pipe.c (environ): Remove fallback declaration.
60642         * modules/setenv (Depends-on): Add environ.
60643         * lib/setenv.c (environ): Remove fallback declaration.
60644         * modules/unsetenv (Depends-on): Add environ.
60645         * lib/unsetenv.c (environ): Remove fallback declaration.
60646         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60647         m4/environ.m4.
60648         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60649         (gl_PREREQ_UNSETENV): Likewise.
60650
60651 2008-02-24  Bruno Haible  <bruno@clisp.org>
60652
60653         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60654
60655 2008-02-20  Bob Proulx  <bob@proulx.com>
60656
60657         Enable use of older two part flavor 'git describe'.
60658         * build-aux/git-version-gen: If using the older two part flavor of
60659         git version then recreate the third part now present in the
60660         newer three part flavor of git describe.
60661
60662 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60663
60664         * lib/fts.c (fts_build): Typo correction to comment.
60665
60666 2008-02-17  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60669         generating no-op conflicts.
60670
60671 2008-02-17  Bruno Haible  <bruno@clisp.org>
60672
60673         Speed up by 10%.
60674         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60675         result_entries, rather than an index-based loop.
60676
60677 2008-02-17  Bruno Haible  <bruno@clisp.org>
60678
60679         Speed up by 25%.
60680         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60681         'hashcode_cached'.
60682         (entry_create): New function.
60683         (entry_hashcode): Use the cached hashcode if possible.
60684         (read_changelog_file, try_split_merged_entry): Use entry_create.
60685
60686 2008-02-17  Bruno Haible  <bruno@clisp.org>
60687
60688         Speed up from O(n^2) to O(n) for long ChangeLog files.
60689         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60690         (read_changelog_file): Change implementation of entries_reversed list
60691         to rbtreehash.
60692         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60693
60694 2008-02-17  Bruno Haible  <bruno@clisp.org>
60695
60696         New option --split-merged-entry.
60697         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60698         (find_paragraph_end, try_split_merged_entry): New functions.
60699         (long_options): Add option --split-merged-entry.
60700         (usage): Document option --split-merged-entry.
60701         (main): Implement option --split-merged-entry.
60702         Reported by Eric Blake.
60703
60704 2008-02-17  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/git-merge-changelog.c: Include c-strstr.h.
60707         (main): Support the "git pull --rebase" situation.
60708         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60709         Reported by Eric Blake.
60710
60711 2008-02-16  Eric Blake  <ebb9@byu.net>
60712
60713         Avoid doubling \ in common case of "c-maybe" quoting style.
60714         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60715         eliding outer quotes.
60716         * lib/quotearg.h: Document this.
60717         * tests/test-quotearg.c (result_strings, inputs, results_g)
60718         (flag_results, locale_results): Test it by adding a new string to
60719         each test group.
60720         (compare_strings): Test new string.
60721
60722 2008-02-13  Eric Blake  <ebb9@byu.net>
60723
60724         Avoid trigraph quoting in default output.
60725         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60726         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60727         unless explicitly requested.
60728         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60729
60730 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60731
60732         Don't rely on signed integer overflowing to negative value.
60733         * lib/getugroups.c (getugroups): Include <limits.h>.
60734         Instead, compare against INT_MAX, and increment only if the test passes.
60735
60736 2008-02-13  Jim Meyering  <meyering@redhat.com>
60737         and Eric Blake  <ebb9@byu.net>
60738
60739         Avoid shadowing warning and compile errors on Linux.
60740         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60741         forwarding macros on Linux.
60742         (dcgettext): Define a stub, for Linux.
60743         (results_g, main): Avoid warnings.
60744
60745 2008-02-12  Eric Blake  <ebb9@byu.net>
60746
60747         Silence warning in last patch.
60748         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60749
60750         Quotearg part 4: add tests, fix c-maybe colon quoting.
60751         * lib/quotearg.h: Improve documentation.
60752         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60753         escapes when adding outer quotes.  When quoting trigraphs, use
60754         valid C notation.  When quoting NUL, omit extra characters if next
60755         character is not digit.  Alter prototype.
60756         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60757         callers.
60758         * modules/quotearg-tests: New module.
60759         * tests/test-quotearg.c: New test.
60760
60761 2008-02-07  Eric Blake  <ebb9@byu.net>
60762
60763         Quotearg part 3: add flag to control outer quote elision.
60764         * lib/quotearg.h (c_maybe_quoting_style): New style.
60765         (enum quoting_flags): Better documentation of flags.
60766         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60767         c-maybe style.
60768         (quotearg_buffer_restyled): Handle new flag to elide outer
60769         quotes.
60770
60771         Quotearg part 2: add flag that can control NUL elision.
60772         * lib/quotearg.h (set_quoting_flags): New prototype.
60773         * lib/quotearg.c (struct quoting_options): Add flag field.
60774         (set_quoting_flags): New function.
60775         (quotearg_buffer_restyled): Add flags parameter.
60776         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60777         (quotearg_n_options): Set the flag, since length cannot be
60778         returned.
60779         (quoting_options_from_style): Default flags correctly.
60780
60781         Quotearg part 1: more wrappers, restore quotearg_char state.
60782         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60783         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60784         (quotearg_colon_mem): New wrappers.
60785         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60786         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60787         functions.
60788         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60789         (quotearg_colon_mem): New functions.
60790
60791 2008-02-11  Bruno Haible  <bruno@clisp.org>
60792
60793         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60794         library in the current directory: it does not work with parallel make.
60795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60796
60797 2008-02-11  Bruno Haible  <bruno@clisp.org>
60798
60799         * .gitattributes: New file.
60800
60801 2008-02-11  Jim Meyering  <meyering@redhat.com>
60802
60803         useless-if-before-free: Fix reversed exit values.
60804         * build-aux/useless-if-before-free: Use correct values
60805         for EXIT_MATCH and EXIT_NO_MATCH.
60806
60807         * build-aux/useless-if-before-free: Close stdout carefully.
60808
60809 2008-02-10  Bruno Haible  <bruno@clisp.org>
60810
60811         New module 'git-merge-changelog'.
60812         * modules/git-merge-changelog: New file.
60813         * lib/git-merge-changelog.c: New file.
60814
60815 2008-02-10  Jim Meyering  <meyering@redhat.com>
60816
60817         useless-if-before-free: New option: --list (-l).
60818
60819         useless-if-before-free: Don't exit immediately upon open failure.
60820         * build-aux/useless-if-before-free: Exit 2 for errors.
60821         Upon failure to open a file, don't exit immediately.
60822         Rather, just warn and continue with any remaining files.
60823
60824 2008-02-10  Bruno Haible  <bruno@clisp.org>
60825
60826         New abstract list operation 'node_set_value'.
60827         * lib/gl_list.h (gl_list_node_set_value): New function.
60828         (struct gl_list_implementation): New field node_set_value.
60829         * lib/gl_list.c (gl_list_node_set_value): New function.
60830         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60831         (gl_array_list_implementation): Update.
60832         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60833         (gl_carray_list_implementation): Update.
60834         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60835         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60836         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60837         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60838         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60839         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60840         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60841         Update.
60842         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60843         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60844         (gl_sublist_list_implementation): Update.
60845
60846 2008-02-10  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60849         Needed when ELEMENT is #defined to 'some_type *'.
60850
60851 2008-02-10  Jim Meyering  <meyering@redhat.com>
60852
60853         New script and module: useless-if-before-free
60854         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60855         * build-aux/useless-if-before-free: New file.
60856         * modules/useless-if-before-free: New file.
60857
60858         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60859
60860         xstrtol_error: Fix typo.
60861         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60862         s/exit_failure/exit_status/.
60863
60864 2008-02-09  Jim Meyering  <meyering@redhat.com>
60865
60866         New script and module: gitlog-to-changelog
60867         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60868         * modules/gitlog-to-changelog: New file.
60869         * build-aux/gitlog-to-changelog: New file.
60870
60871 2008-02-08  Jim Meyering  <meyering@redhat.com>
60872
60873         Avoid two "parameter unused" warnings.
60874         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60875         Mark "st" as used.
60876
60877         Use "git COMMAND", not "git-COMMAND".
60878         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60879         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60880         * build-aux/git-version-gen: Use "git status", not "git-status".
60881
60882 2008-02-07  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60885         Avoids a crash on Windows Vista.
60886         Reported by Adam Strzelecki <ono@java.pl> via
60887         Simon Josefsson <simon@josefsson.org>.
60888
60889 2008-02-06  Bruno Haible  <bruno@clisp.org>
60890
60891         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60892         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60893         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60895         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60896         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60897         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60898         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60900         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60906         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60907         left-adjust flag.
60908         * tests/test-snprintf-posix.h (test_function): Likewise.
60909         * tests/test-sprintf-posix.h (test_function): Likewise.
60910         * tests/test-vasprintf-posix.c (test_function): Likewise.
60911         * doc/posix-functions/fprintf.texi: Update.
60912         * doc/posix-functions/printf.texi: Update.
60913         * doc/posix-functions/snprintf.texi: Update.
60914         * doc/posix-functions/sprintf.texi: Update.
60915         * doc/posix-functions/vfprintf.texi: Update.
60916         * doc/posix-functions/vprintf.texi: Update.
60917         * doc/posix-functions/vsnprintf.texi: Update.
60918         * doc/posix-functions/vsprintf.texi: Update.
60919         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60920
60921 2008-02-06  Bruno Haible  <bruno@clisp.org>
60922
60923         Fix bug introduced on 2008-01-26.
60924         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60925
60926 2008-02-06  Bruno Haible  <bruno@clisp.org>
60927
60928         Fix bug introduced on 2007-06-10.
60929         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60930         !NEED_PRINTF_FLAG_ZERO.
60931
60932 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60933
60934         getloadavg: use libperfstat on AIX5
60935         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60936
60937 2008-02-03  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/diffseq.h: Add comments about required #includes.
60940         Reported by Michael Biggs <gnulib@doubleplum.net>.
60941
60942 2008-02-01  Bruno Haible  <bruno@clisp.org>
60943
60944         * users.txt: Add gnuit.
60945
60946 2008-01-31  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/md4.c (set_uint32): Mark as inline.
60949         * lib/md5.c (set_uint32): Likewise.
60950         * lib/sha1.c (set_uint32): Likewise.
60951         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60952         * m4/md5.m4 (gl_MD5): Likewise.
60953         * m4/sha1.m4 (gl_SHA1): Likewise.
60954
60955 2008-01-31  Jim Meyering  <meyering@redhat.com>
60956
60957         Use "sizeof VAR", rather than a literal "4".
60958         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60959         * lib/md4.c (md4_read_ctx): Likewise.
60960         * lib/sha1.c (sha1_read_ctx): Likewise.
60961
60962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60963
60964         * tests/test-sha1.c: New file, based on test-md5.c.
60965
60966         * modules/crypto/sha1-tests: New file.
60967
60968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60969
60970         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60971
60972 2008-01-31  Jim Meyering  <meyering@redhat.com>
60973
60974         Prefer "sizeof v" over the equivalent "4".
60975         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60976         * lib/md5.c (set_uint32): Likewise.
60977         * lib/sha1.c (set_uint32): Likewise.
60978
60979 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60980
60981         * lib/sha1.c (set_uint32): Mark function as static.
60982
60983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60984
60985         md2: clarify comments to say that alignment is not required.
60986         * lib/md2.h: Remove warning about alignment in comment.
60987         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60988         never been required.
60989
60990 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60991
60992         md4: adapt alignment constraint fix from sha1.
60993         * lib/md4.c (set_uint32): New function, from sha1.c
60994         (md4_read_ctx): Use it.
60995         (md4_finish_ctx): Doc fix.
60996         * lib/md4.h: Doc fix.
60997
60998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60999
61000         md5: adapt alignment constraint fix from sha1.
61001         * lib/md5.c (set_uint32): New function, from sha1.c
61002         (md5_read_ctx): Use it.
61003         (md5_finish_ctx): Doc fix.
61004         * lib/md5.h: Doc fix.
61005
61006 2008-01-30  Peter Palfrader  <weasel@debian.org>
61007
61008         sha1: remove the result buffer alignment constraint
61009         * lib/sha1.c (set_uint32): New function.
61010         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61011         constraint.
61012         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61013         * lib/sha1.h: Likewise.
61014
61015 2008-01-30  Andreas Schwab  <schwab@suse.de>
61016             Bruno Haible  <bruno@clisp.org>
61017
61018         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61019         correct definition of LDBL_MIN_EXP.
61020
61021 2008-01-30  Karl Berry  <karl@gnu.org>
61022
61023         * config/srclist-update: try to preserve x bit on updates.
61024         * config/srclistvars.sh: update for karl.
61025
61026 2008-01-29  Jim Meyering  <meyering@redhat.com>
61027
61028         vasnprintf.c: Avoid warning about unused label
61029         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61030         "overflow" label definition and associated code with the
61031         same cpp condition that guards the sole use of that label.
61032
61033 2008-01-26  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61036         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61037         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61038         * lib/isnanl-nolibm.h (isnanl): Likewise.
61039         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61040
61041 2008-01-26  Bruno Haible  <bruno@clisp.org>
61042
61043         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61044         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61045
61046 2008-01-26  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61049         GCC >= 4.0 built-in.
61050         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61051
61052 2008-01-26  Bruno Haible  <bruno@clisp.org>
61053
61054         Rename isnan, applicable to 'double' only, to isnand.
61055         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61056         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61057         (configure.ac): Update.
61058         (Include): Replace "isnan.h" with "isnand.h".
61059         * m4/isnand.m4: Renamed from m4/isnan.m4.
61060         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61061         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61062         instead of isnan.c.
61063         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61064         instead of HAVE_ISNAN_IN_LIBC.
61065         (isnand): Renamed from isnan.
61066         * lib/isnand.c: New file.
61067         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61068         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61069         (Makefile.am): Update.
61070         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61071         Include isnand.h instead of isnan.h.
61072         (main): Test isnand instead of isnan.
61073         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61074         isnan-nolibm.
61075         * modules/frexp (Depends-on): Likewise.
61076         * modules/frexp-tests (Depends-on): Likewise.
61077         * modules/frexp-nolibm (Depends-on): Likewise.
61078         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61079         * modules/isfinite (Depends-on): Likewise.
61080         * modules/round-tests (Depends-on): Likewise.
61081         * modules/signbit (Depends-on): Likewise.
61082         * modules/signbit-tests (Depends-on): Likewise.
61083         * modules/snprintf-posix (Depends-on): Likewise.
61084         * modules/sprintf-posix (Depends-on): Likewise.
61085         * modules/trunc-tests (Depends-on): Likewise.
61086         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61087         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61088         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61089         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61090         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61091         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61092         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61093         * modules/vasnprintf-posix (Depends-on): Likewise.
61094         * modules/vasprintf-posix (Depends-on): Likewise.
61095         * modules/vfprintf-posix (Depends-on): Likewise.
61096         * modules/vsnprintf-posix (Depends-on): Likewise.
61097         * modules/vsprintf-posix (Depends-on): Likewise.
61098         * lib/frexp.c: Include isnand.h instead of isnan.h.
61099         (ISNAN): Set to isnand instead of isnan.
61100         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61101         (gl_isfinited): Use isnand instead of isnan.
61102         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61103         (gl_signbitd): Use isnand instead of isnan.
61104         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61105         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61106         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61107         (main): Use isnand instead of isnan.
61108         * tests/test-round1.c: Include isnand.h.
61109         (main): Use isnand instead of isnan.
61110         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61111         (ISNAN): Set to isnand instead of isnan.
61112         * tests/test-trunc1.c: Include isnand.h.
61113         (main): Use isnand instead of isnan.
61114         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61115         (equal): Use isnand instead of isnan.
61116         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61117         isnand-nolibm.
61118         * NEWS: Mention the change.
61119
61120 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61121             Bruno Haible  <bruno@clisp.org>
61122
61123         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61124         the GCC builtins for signbits are present and set
61125         REPLACE_SIGNBIT_USING_GCC if so.
61126         * lib/math.in.h (signbit): Define using GCC builtins if
61127         REPLACE_SIGNBIT_USING_GCC is set.
61128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61129         REPLACE_SIGNBIT_USING_GCC.
61130         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61131
61132 2008-01-25  Jim Meyering  <meyering@redhat.com>
61133
61134         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61135         * lib/poll.c: Include <config.h>, not "config.h".
61136         * tests/test-getaddrinfo.c: Likewise.
61137
61138 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61139
61140         * modules/sockets-tests: New file.
61141
61142 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61143
61144         * modules/sockets: New module, can be used to call WSA_Startup and
61145         WSA_Cleanup when needed.
61146
61147         * lib/sockets.h, lib/sockets.c: New files.
61148
61149         * m4/sockets.m4: New file.
61150
61151         * tests/test-sockets.c: New file.
61152
61153 2008-01-19  Bruno Haible  <bruno@clisp.org>
61154
61155         * doc/posix-headers: Renamed from doc/headers.
61156         * doc/posix-functions: Renamed from doc/functions.
61157         * doc/gnulib.texi: Update.
61158
61159 2008-01-19  Bruno Haible  <bruno@clisp.org>
61160
61161         * doc/glibc-functions/strcasestr.texi: Include contents of
61162         doc/functions/strcasestr.texi, fixing the list of platforms.
61163         * doc/functions/strcasestr.texi: Remove file.
61164
61165 2008-01-19  Bruno Haible  <bruno@clisp.org>
61166
61167         * doc/glibc-functions/memmem.texi: Include contents of
61168         doc/functions/memmem.texi.
61169         * doc/functions/memmem.texi: Remove file.
61170
61171 2008-01-18  Bruno Haible  <bruno@clisp.org>
61172
61173         * doc/glibc-functions/*.texi: New files.
61174         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61175         to use the new files.
61176
61177 2008-01-17  Bruno Haible  <bruno@clisp.org>
61178
61179         * tests/test-gethostname.c (main): Fix printf statement.
61180
61181 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61182
61183         * modules/gethostname-tests: New file.
61184
61185         * tests/test-gethostname.c: New file.
61186
61187 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61188
61189         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61190         used by the UNAME case.  Reported by Bruno Haible
61191         <bruno@clisp.org>.
61192
61193 2008-01-17  Eric Blake  <ebb9@byu.net>
61194
61195         Convert c-strcasestr to be more efficient.
61196         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61197         (Depends-on): Add c-strcase, remove malloca, strnlen.
61198         * tests/test-c-strcasestr.c (main): Enhance test.
61199         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61200
61201 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61202
61203         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61204         Use it in creating po/Makevars.
61205
61206 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61207
61208         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61209         Applications that requires it should initialize libgcrypt
61210         manually.
61211
61212 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61213
61214         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61215
61216 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         Fix problem with getdate on mingw32 reported by Simon Josefsson
61219         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61220         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61221         tzname", when deciding whether to declare tzname.
61222         * lib/strftime.c (tzname): Likewise.
61223
61224 2008-01-15  Bruno Haible  <bruno@clisp.org>
61225
61226         Work around a MacOS X 10.5 bug in frexpl().
61227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61228         * doc/functions/frexpl.texi: Document the bug.
61229         Reported by Elias Pipping <pipping@gentoo.org>.
61230
61231 2008-01-14  Eric Blake  <ebb9@byu.net>
61232
61233         Touch up previous patch.
61234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61235         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61236
61237         Convert strcasestr module to use Two-Way algorithm.
61238         * modules/strcasestr-simple: New module, based on the old
61239         strcasestr, but with Two-Way rather than KMP.
61240         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61241         * lib/string.in.h (rpl_strcasestr): Declare.
61242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61243         performance.
61244         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61245         * modules/string (Makefile.am): Support strcasestr.
61246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61247         * modules/strcasestr-tests (Depends-on): Check for alarm.
61248         * tests/test-strcasestr.c: Augment test.
61249         * lib/str-two-way.h: Clean up stray macro.
61250         * NEWS: Document new module.
61251         * MODULES.html.sh (string handling): Likewise.
61252         * doc/functions/strcasestr.texi: New file.
61253         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61254         here, since it is not a POSIX function.
61255
61256 2008-01-14  Colin Watson  <cjwatson@debian.org>
61257             Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61260         works fine; if not, set REPLACE_STRSIGNAL.
61261         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61263         REPLACE_STRSIGNAL.
61264         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61265         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61266         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61267
61268 2008-01-14  Bruno Haible  <bruno@clisp.org>
61269
61270         * modules/strsignal (Include): Change to <string.h>.
61271
61272 2008-01-14  Colin Watson  <cjwatson@debian.org>
61273
61274         * modules/argp (Notice): Add a notice recommending to change
61275         XGETTEXT_OPTIONS.
61276         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61277
61278 2008-01-13  Colin Watson  <cjwatson@debian.org>
61279
61280         * modules/strsignal-tests: New file.
61281         * tests/test-strsignal.c: New file.
61282
61283         * lib/strsignal.c: New file, from glibc with modifications.
61284         * lib/siglist.h: New file, from glibc with modifications.
61285         * lib/string.in.h (strsignal): New declaration.
61286         * m4/strsignal.m4: New file.
61287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61288         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61289         * modules/strsignal: New file.
61290         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61291         HAVE_DECL_STRSIGNAL.
61292
61293 2008-01-13  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61296         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61297         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61299
61300 2008-01-13  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61303         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61304         * lib/argp.h (__attribute__): Likewise.
61305         * lib/c-stack.c (__attribute__): Likewise.
61306         * lib/error.h (__attribute__): Likewise.
61307         * lib/fts.c (__attribute__): Likewise.
61308         * lib/openat.h (__attribute__): Likewise.
61309         * lib/stdio.in.h (__attribute__): Likewise.
61310         * lib/string.in.h (__attribute__): Likewise.
61311         * lib/utimens.c (__attribute__): Likewise.
61312         * lib/vasnprintf.h (__attribute__): Likewise.
61313         * lib/xalloc.h (__attribute__): Likewise.
61314         * lib/xprintf.h (__attribute__): Likewise.
61315         * lib/xstrtol.h (__attribute__): Likewise.
61316         * lib/xvasprintf.h (__attribute__): Likewise.
61317
61318 2008-01-12  Bruno Haible  <bruno@clisp.org>
61319
61320         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61321         * doc/glibc-headers/a.out.texi: New file.
61322         * doc/glibc-headers/aliases.texi: New file.
61323         * doc/glibc-headers/alloca.texi: New file.
61324         * doc/glibc-headers/ar.texi: New file.
61325         * doc/glibc-headers/argp.texi: New file.
61326         * doc/glibc-headers/argz.texi: New file.
61327         * doc/glibc-headers/byteswap.texi: New file.
61328         * doc/glibc-headers/crypt.texi: New file.
61329         * doc/glibc-headers/endian.texi: New file.
61330         * doc/glibc-headers/envz.texi: New file.
61331         * doc/glibc-headers/err.texi: New file.
61332         * doc/glibc-headers/error.texi: New file.
61333         * doc/glibc-headers/execinfo.texi: New file.
61334         * doc/glibc-headers/fpu_control.texi: New file.
61335         * doc/glibc-headers/fstab.texi: New file.
61336         * doc/glibc-headers/fts.texi: New file.
61337         * doc/glibc-headers/getopt.texi: New file.
61338         * doc/glibc-headers/ieee754.texi: New file.
61339         * doc/glibc-headers/ifaddrs.texi: New file.
61340         * doc/glibc-headers/libintl.texi: New file.
61341         * doc/glibc-headers/mcheck.texi: New file.
61342         * doc/glibc-headers/mntent.texi: New file.
61343         * doc/glibc-headers/obstack.texi: New file.
61344         * doc/glibc-headers/paths.texi: New file.
61345         * doc/glibc-headers/printf.texi: New file.
61346         * doc/glibc-headers/pty.texi: New file.
61347         * doc/glibc-headers/resolv.texi: New file.
61348         * doc/glibc-headers/shadow.texi: New file.
61349         * doc/glibc-headers/sysexits.texi: New file.
61350         * doc/glibc-headers/ttyent.texi: New file.
61351
61352 2008-01-12  Jim Meyering  <meyering@redhat.com>
61353
61354         announce-gen: emit Gnulib's git-based version string.
61355         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61356         New option --gnulib-version=V, where V is expected to be
61357         the output of running git describe in the gnulib directory.
61358         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61359         not useful, and plan to stop publishing an xdelta file with each
61360         coreutils release.
61361
61362         * build-aux/announce-gen: Also check for lzma-compressed files.
61363
61364 2008-01-11  Bruno Haible  <bruno@clisp.org>
61365
61366         * tests/test-memmem.c (main): Increase maximum allowed time.
61367         * tests/test-strstr.c (main): Likewise.
61368
61369 2008-01-11  Bruno Haible  <bruno@clisp.org>
61370
61371         * doc/functions/memmem.texi: Add more precisions about platforms.
61372         * doc/functions/strstr.texi: Likewise.
61373
61374 2008-01-10  Eric Blake  <ebb9@byu.net>
61375
61376         * m4/strstr.m4: Delete cruft from copy-n-paste.
61377         Reported by Bruno Haible.
61378
61379 2008-01-10  Bruno Haible  <bruno@clisp.org>
61380
61381         Make c-strstr rely on strstr.
61382         * lib/c-strstr.c: Don't include str-kmp.h.
61383         (c_strstr): Define in terms of strstr.
61384         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61385         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61386
61387 2008-01-10  Bruno Haible  <bruno@clisp.org>
61388
61389         * doc/gnulib.texi (String Functions in C Locale): New section.
61390         * doc/c-ctype.texi: New file.
61391         * doc/c-strcase.texi: New file.
61392         * doc/c-strcaseeq.texi: New file.
61393         * doc/c-strcasestr.texi: New file.
61394         * doc/c-strstr.texi: New file.
61395         * doc/c-strtod.texi: New file.
61396         * doc/c-strtold.texi: New file.
61397
61398 2008-01-10  Eric Blake  <ebb9@byu.net>
61399
61400         * lib/relocatable.h: Fix a comment.
61401
61402 2008-01-10  Eric Blake  <ebb9@byu.net>
61403
61404         Share two-way algorithm.
61405         * lib/str-two-way.h: New file, merged from...
61406         * lib/memmem.c: ...here...
61407         * lib/strstr.c: ...and here.
61408         * modules/memmem (Files): Use it.
61409         * modules/strstr (Files): Likewise.
61410
61411         Avoid quadratic strstr implementations.
61412         * lib/strstr.c: New file.
61413         * m4/strstr.m4: Likewise.
61414         * modules/strstr: Likewise.
61415         * modules/strstr-tests: Likewise.
61416         * tests/test-strstr.c: Likewise.
61417         * lib/string.in.h (rpl_strstr): Declare.
61418         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61420         * modules/string (Makefile.am): Likewise.
61421         * MODULES.html.sh (string handling): Mention new module.
61422         * doc/functions/strstr.texi (strstr): Document the bug.
61423
61424 2008-01-10  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/relocatable.h (relocate): State whether result is freshly
61427         allocated or not.
61428         * lib/relocatable.c (relocate): Return a freshly allocated string
61429         instead of a pointer to a privately held string.
61430         Reported by Sylvain Beucler <beuc@gnu.org>.
61431
61432 2008-01-10  Colin Watson  <cjwatson@debian.org>
61433
61434         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61435         s/S_ISNLK/S_ISLNK/.
61436
61437 2008-01-09  Bruno Haible  <bruno@clisp.org>
61438
61439         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61440         and other files.
61441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61442         if it's only a guess.
61443         * modules/memmem: Simplify by depending on memmem-simple.
61444
61445 2008-01-09  Bruno Haible  <bruno@clisp.org>
61446
61447         Work around OpenBSD 4.0 tdelete() bug.
61448         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61449         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61450         macros and don't redefine the enum values.
61451         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61452         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61453         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61454
61455 2008-01-09  Bruno Haible  <bruno@clisp.org>
61456
61457         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61458         (main): Don't perform the tests if setlocale did not install a UTF-8
61459         locale. Needed on OpenBSD 4.0.
61460         * modules/wcwidth-tests (Depends-on): Add localcharset.
61461
61462 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61465         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61466         * NEWS: announce this.
61467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61468
61469 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61470         and Eric Blake  <ebb9@byu.net>
61471
61472         Add memmem-simple module.
61473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61474         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61475         * modules/memmem-simple: New file.
61476         * modules/memmem (Description): Tweak.
61477         * MODULES.html.sh (string handling): Mention new module.
61478         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61479         addressed by memmem-simple.
61480         * NEWS: Document the difference.
61481
61482 2008-01-09  Eric Blake  <ebb9@byu.net>
61483
61484         Give gcc some memmem optimization hints.
61485         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61486         (strcasestr): Declare as pure.
61487         * modules/memmem (Maintainer): Claim my implementation.
61488
61489 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61490
61491         Support AIX 6.1 and higher.
61492         * build-aux/config.libpath: Likewise.
61493         * build-aux/config.rpath: Likewise.
61494
61495 2008-01-08  Jim Meyering  <meyering@redhat.com>
61496             Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61499         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61500         Reported by Peter Fales in
61501         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61502
61503 2008-01-08  Bruno Haible  <bruno@clisp.org>
61504
61505         * modules/unictype/category-of (Depends-on): Add
61506         unictype/category-none.
61507         * modules/unictype/category-and-tests (Depends-on): Add
61508         unictype/category-{L,N,Lu,Nd}.
61509         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61510         * modules/unictype/category-or-tests (Depends-on): Add
61511         unictype/category-{L,N}.
61512         * modules/unictype/category-name-tests (Depends-on): Add
61513         unictype/category-{Z,Nl}.
61514         Reported by Simon Josefsson.
61515
61516 2008-01-08  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61519         convention better.
61520         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61521         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61522         Reported by Peter Miller <millerp@canb.auug.org.au>.
61523
61524 2008-01-08  Eric Blake  <ebb9@byu.net>
61525
61526         Rewrite memmem to guarantee linear complexity without malloc.
61527         * lib/memmem.c (memmem): Use Two-Way rather than
61528         Knuth-Morris-Pratt, to allow O(1) space usage.
61529         (critical_factorization, two_way_short_needle)
61530         (two_way_long_needle): New functions.
61531         (knuth_morris_pratt): Delete.
61532         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61533         Add stdint.
61534         * tests/test-memmem.c (main): Add tests for periodic needle and
61535         sublinear performance.
61536         * doc/functions/memmem.texi (memmem): Document other deficiencies
61537         in cygwin and older glibc.
61538
61539 2008-01-08  Bruno Haible  <bruno@clisp.org>
61540
61541         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61542         augmentation.
61543
61544 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61545
61546         Add a configure time option: --disable-acl.
61547         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61548         AC_ARG_ENABLE(acl).
61549
61550 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61551
61552         * tests/test-localename.c: Don't include obsolete "setenv.h".
61553
61554         * modules/localename-tests (Depends-on): Need unsetenv.
61555
61556 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61557
61558         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61559
61560 2008-01-06  Colin Watson  <cjwatson@debian.org>
61561
61562         * users.txt: Add man-db.
61563
61564 2008-01-07  Bruno Haible  <bruno@clisp.org>
61565
61566         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61567         previous section name.
61568
61569 2008-01-07  Bruno Haible  <bruno@clisp.org>
61570
61571         * lib/progname.c (set_program_name): Don't strip off a leading
61572         "lt-" prefix outside a .libs directory.
61573         Suggested by Paul Eggert.
61574
61575 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61576             Bruno Haible  <bruno@clisp.org>
61577
61578         Improve memory cleanup in 'relocatable' module.
61579         * lib/relocatable.h (compute_curr_prefix): Change return type to
61580         'char *'.
61581         * lib/relocatable.c (compute_curr_prefix): Change return type to
61582         'char *'. Free curr_installdir after use.
61583         (relocate): Free curr_prefix_better after use.
61584         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61585
61586 2008-01-01  Bruno Haible  <bruno@clisp.org>
61587
61588         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61589         failure on older glibc systems.
61590         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61591
61592 2008-01-05  Eric Blake  <ebb9@byu.net>
61593
61594         Avoid quadratic system memmem.
61595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61596         Reported by Ralf Wildenhues.
61597
61598         Fix memmem test for mingw.
61599         * modules/memmem-tests (configure.ac): Check for alarm.
61600         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61601         it.
61602         * doc/functions/memmem.texi: New file.
61603         * doc/gnulib.texi (Function Substitutes): Add memmem.
61604         Reported by Bruno Haible.
61605
61606 2008-01-04  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61609         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61610         gl_HEADER_STRING_H_DEFAULTS.
61611
61612 2008-01-04  Eric Blake  <ebb9@byu.net>
61613
61614         Shorten duration of memmem test.
61615         * tests/test-memmem.c (main): Use alarm to declare failure if test
61616         is taking too long.
61617         Reported by Ralf Wildenhues.
61618
61619 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61620
61621         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61622         string, needed by strerror.
61623
61624 2008-01-03  Colin Watson  <cjwatson@debian.org>
61625             Bruno Haible  <bruno@clisp.org>
61626
61627         * doc/gnulib-tool.texi (Localization): New section.
61628
61629 2008-01-02  Bruno Haible  <bruno@clisp.org>
61630
61631         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61632         variables to 'unsigned char *' type.
61633         Reported by Paul Eggert.
61634
61635 2008-01-02  Jim Meyering  <jim@meyering.net>
61636
61637         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61638
61639 2007-12-31  Jim Meyering  <jim@meyering.net>
61640
61641         Avoid use of private FTS type name.
61642         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61643
61644 2007-12-30  Karl Berry  <karl@gnu.org>
61645
61646         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61647         work around defect in Texinfo and/or the standalone Info browser.
61648
61649 2007-12-30  Bruno Haible  <bruno@clisp.org>
61650
61651         Unify 5 copies of the KMP code.
61652         * lib/str-kmp.h: New file.
61653         * lib/c-strcasestr.c: Include str-kmp.h.
61654         (knuth_morris_pratt): Remove function.
61655         (c_strcasestr): Update.
61656         * lib/c-strstr.c: Include str-kmp.h.
61657         (knuth_morris_pratt): Remove function.
61658         (c_strcasestr): Update.
61659         * lib/mbscasestr.c: Include str-kmp.h.
61660         (knuth_morris_pratt_unibyte): Remove function.
61661         * lib/mbsstr.c: Include str-kmp.h.
61662         (knuth_morris_pratt_unibyte): Remove function.
61663         * lib/strcasestr.c: Include str-kmp.h.
61664         (knuth_morris_pratt): Remove function.
61665         (strcasestr): Update.
61666         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61667         * modules/c-strstr (Files): Likewise.
61668         * modules/mbscasestr (Files): Likewise.
61669         * modules/mbsstr (Files): Likewise.
61670         * modules/strcasestr (Files): Likewise.
61671         Suggested by Paul Eggert.
61672
61673 2007-12-30  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61676         defined.
61677
61678 2007-12-30  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/xmalloca.h: Include xalloc.h.
61681         (xnmalloca): New macro.
61682
61683 2007-12-30  Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/malloca.h (nmalloca): New macro.
61686         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61687         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61688         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61689         knuth_morris_pratt_multibyte): Likewise.
61690         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61691         knuth_morris_pratt_multibyte): Likewise.
61692         * lib/memmem.c (knuth_morris_pratt): Likewise.
61693         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61694
61695 2007-12-25  Bruno Haible  <bruno@clisp.org>
61696
61697         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61698         * lib/glob.c: Don't include openat.h.
61699         (link_exists2_p): Add back the code that deals with the
61700         !GLOB_ALTDIRFUNC case.
61701         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61702         let it do the filename concatenation.
61703         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61704         * modules/glob (Depends-on): Remove openat.
61705
61706 2007-12-31  Bruno Haible  <bruno@clisp.org>
61707
61708         * modules/dirfd (License): Change to LGPLv2+.
61709         Approved by Jim Meyering.
61710
61711 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61714         when multiplying M by sizeof (size_t).
61715
61716 2007-12-10  Martin Lambers  <marlam@marlam.de>
61717
61718         Override getpagesize on mingw.
61719         * lib/getpagesize.c: New file.
61720         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61721         * modules/getpagesize (Files): Add lib/getpagesize.c.
61722         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61724         REPLACE_GETPAGESIZE.
61725         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61726
61727 2007-12-25  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/localcharset (Notice): New field.
61730         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61731         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61732
61733 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61734             Bruno Haible  <bruno@clisp.org>
61735
61736         Avoid using the syntax symbol() in formatted documentation.
61737         * MODULES.html.sh (func_module): When replacing symbol() with a
61738         hyperlink, remove the parentheses. Show an error if some remain.
61739         Recognize and render the '...' syntax.
61740         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61741         Rework. Add paragraph about GCC's inlining.
61742         * doc/alloca.texi: Likewise.
61743         * doc/error.texi: Remove parentheses from symbol reference.
61744         * doc/gnulib-intro.texi: Likewise.
61745         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61746         * modules/fnmatch (Description): Reword to say "the ... function".
61747         * modules/full-read (Description): Likewise.
61748         * modules/full-write (Description): Likewise.
61749         * modules/safe-read (Description): Likewise.
61750         * modules/safe-write (Description): Likewise.
61751         * modules/strchrnul (Description): Likewise.
61752         * modules/trim (Description): Likewise.
61753         * modules/error (Description): Remove parentheses from symbol
61754         references.
61755         * modules/verror (Description): Likewise.
61756         Reported by Karl Berry.
61757
61758 2007-12-25  Bruno Haible  <bruno@clisp.org>
61759
61760         Fixup after 2007-10-16 commit.
61761         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61762
61763 2007-12-24  Bruno Haible  <bruno@clisp.org>
61764
61765         Make --enable-relocatable work with DESTDIR.
61766         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61767         to compute installdir from destprog.
61768         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61769         also set the RELOC_DESTDIR variable.
61770         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61771
61772 2007-12-24  Bruno Haible  <bruno@clisp.org>
61773
61774         Fix link error due to xalloc_die().
61775         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61776         of xreadlink.
61777         * lib/relocwrapper.c: Update comments.
61778         * build-aux/install-reloc: Remove xreadlink.c from file list.
61779         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61780         xreadlink.c.
61781         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61782
61783 2007-12-24  Bruno Haible  <bruno@clisp.org>
61784
61785         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61786         * lib/setenv.h: Remove file.
61787         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61788         lib/setenv.h.
61789         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61790         (Depends-on): Add stdlib.
61791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61792         gl_FUNC_UNSETENV.
61793         (Include): Replace setenv.h with <stdlib.h>.
61794         * modules/unsetenv: New file.
61795         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61796         * lib/unsetenv.c: Include <stdlib.h> first.
61797         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61798         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61799         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61800         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61801         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61802         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61804         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61805         * doc/functions/unsetenv.texi: Update.
61806         * modules/xsetenv (Depends-on): Add unsetenv.
61807         * modules/getdate (Depends-on): Likewise.
61808         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61809         * lib/xsetenv.c: Don't include setenv.h.
61810         * lib/getdate.y: Likewise.
61811         * lib/relocwrapper.c: Likewise.
61812         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61813         (Depends-on): Add stdlib.
61814         * NEWS: Mention the changes.
61815         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61816
61817 2007-12-23  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61820         indentation.
61821
61822 2007-12-23  Bruno Haible  <bruno@clisp.org>
61823
61824         * lib/c-strcasestr.c: Add more comments.
61825         * lib/c-strstr.c: Likewise.
61826         * lib/mbscasestr.c: Likewise.
61827         * lib/mbsstr.c: Likewise.
61828         * lib/strcasestr.c: Likewise.
61829         * lib/memmem.c: Likewise.
61830
61831 2007-12-23  Bruno Haible  <bruno@clisp.org>
61832
61833         * tests/test-memmem.c: Include <string.h> first.
61834
61835 2007-12-22  Bruno Haible  <bruno@clisp.org>
61836
61837         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61838         the contents of $testsbase.
61839         Reported by Ralf Wildenhues.
61840
61841 2007-12-22  Bruno Haible  <bruno@clisp.org>
61842
61843         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61844         two variables local_ldadd_before, local_ldadd_last.
61845
61846 2007-12-20  Eric Blake  <ebb9@byu.net>
61847
61848         Work around circular library issue when cross-compiling.
61849         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61850         that progname.o does not need to pull in rpl_memcmp.
61851
61852 2007-12-19  Eric Blake  <ebb9@byu.net>
61853
61854         Fix memmem to avoid O(n^2) worst-case complexity.
61855         * lib/memmem.c (knuth_morris_pratt): New function.
61856         (memmem): Use it if first few naive iterations fail.
61857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61858         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61859         * modules/memchr (License): Likewise.
61860         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61861         malloca.
61862         * tests/test-memmem.c: Rewrite, borrowing ideas from
61863         test-mbsstr1.c; the old version wouldn't even compile!
61864         * modules/memmem-tests: New file.
61865         * lib/string.in.h (rpl_memmem): Add declaration.
61866         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61868         REPLACE_MEMMEM.
61869
61870 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61873         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61874         before any system include files, and undef after them all.  This
61875         should fix a problem on VMS reported by John E. Malmberg in
61876         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61877
61878 2007-12-17  Eric Blake  <ebb9@byu.net>
61879
61880         Revert addition of verify, for BSD/OS.
61881         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61882         can't handle large files, for the sake of obsolete platforms.
61883         * modules/fseeko (Depends-on): Remove verify.
61884         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61885         * doc/functions/ftello.texi (ftello): Likewise.
61886         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61887         Reported by Larry Jones.
61888
61889 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61890
61891         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61892         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61893
61894 2007-12-17  Jim Meyering  <meyering@redhat.com>
61895
61896         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61897         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61898         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61899         * modules/getcwd (Depends-on): Add openat.
61900         Reported by Petr Salinger.
61901
61902 2007-12-17  Bruno Haible  <bruno@clisp.org>
61903
61904         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61905         avoid a segmentation fault of the configure test on x86_64 systems.
61906
61907 2007-12-15  Jim Meyering  <meyering@redhat.com>
61908
61909         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61910
61911 2007-12-13  Eric Blake  <ebb9@byu.net>
61912
61913         Another fseek test.
61914         * tests/test-fseek.c (main): Also test ungetc handling.
61915         * tests/test-fseeko.c (main): Likewise.
61916         * modules/fseeko (Depends-on): Add verify.
61917         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61918         large.
61919         Reported by Larry Jones.
61920
61921         Fix fseeko on mingw.
61922         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61923         seek.
61924
61925         Beef up fseek tests.
61926         * tests/test-fseek.c (main): Also test eof handling.
61927         * tests/test-fseeko.c (main): Likewise.
61928         Reported by Larry Jones.
61929
61930 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61931
61932         Fix fseeko on BSD-based platforms.
61933         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61934         successful seek.
61935
61936 2007-12-12  Eric Blake  <ebb9@byu.net>
61937
61938         Allow circular dependency of separate libtests.a
61939         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61940         when use_libtests.
61941
61942 2007-12-11  Eric Blake  <ebb9@byu.net>
61943
61944         Fix bug with -0.0L in previous patch.
61945         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61946         * tests/test-isnan.c (main): Also test on zeroes.
61947         * tests/test-isnanf.c (main): Likewise.
61948         * tests/test-isnanl.h (main): Likewise.
61949
61950         Detect pseudo-denormals on x86 even when cross-compiling.
61951         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61952         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61953         invalid bit patterns that happen to satisfy ==.
61954
61955         Avoid link failures with separate libtests.a.
61956         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61957         last, to satisfy circular dependencies.
61958
61959 2007-12-11  Eric Blake  <ebb9@byu.net>
61960         and Bruno Haible  <bruno@clisp.org>
61961
61962         Fix OpenBSD 4.0 <float.h> handling of long double.
61963         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61964         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61965         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61966
61967 2007-12-11  Jim Meyering  <meyering@redhat.com>
61968
61969         * users.txt: Add libvirt.
61970
61971         Support versions of autoconf prior to 2.59c.
61972         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61973         if it is not already defined.
61974
61975 2007-12-09  Bruno Haible  <bruno@clisp.org>
61976
61977         Let 'gnulib-tool --import' collect sources needed for the tests in
61978         tests/ rather than in lib/.
61979         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61980         argument. If true, add rules to generate libtests.a, and put libtests.a
61981         into $(LDADD). Consider source files in subdirectories and set
61982         uses_subdirs.
61983         (func_emit_initmacro_start, func_emit_initmacro_end,
61984         func_emit_initmacro_done): Pass all arguments explicitly.
61985         (func_import): Determine two module lists main_modules,
61986         testsrelated_modules. Determine use_libtests. Determine two variables
61987         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61988         instead of just sed_transform_lib_file. Determine two variables
61989         main_files and testsrelated_files. Compute 'files' as the union of
61990         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61991         func_add_or_update. In the generated gnulib-comp.m4, collect the
61992         object files for tests/ in different variables than those for lib/.
61993         Substitute LIBTESTS_LIBDEPS.
61994         (func_create_testdir): Combine the uses_subdirs results from
61995         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61996
61997 2007-12-09  Bruno Haible  <bruno@clisp.org>
61998
61999         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62000         the build-aux directory.
62001
62002 2007-12-09  Bruno Haible  <bruno@clisp.org>
62003
62004         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62005         introduced on 2006-09-09.
62006
62007 2007-12-07  Jim Meyering  <meyering@redhat.com>
62008
62009         Let these macros work also with autoconf-2.59.
62010         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62011         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62013
62014 2007-12-06  Jim Meyering  <meyering@redhat.com>
62015
62016         Avoid a configure-time syntax error in gl_FUNC_ACL.
62017         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62018         function in each branch, before testing the cache variable.
62019
62020 2007-12-04  Eric Blake  <ebb9@byu.net>
62021
62022         Make scripts executable.
62023         * build-aux/config.guess: Add execute permissions.
62024         * build-aux/config.sub: Likewise.
62025         * build-aux/gendocs.sh: Likewise.
62026
62027         Fix frexp on mingw.
62028         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62029         cross-compiling.
62030         * doc/functions/frexp.texi (frexp): Document the bug.
62031
62032         Make cygwin fseeko check more reliable.
62033         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62034         version numbers, rather than unrelated feature check.
62035         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62036         * doc/functions/ftello.texi (ftello): Likewise.
62037         Reported by Bruno Haible.
62038
62039         * m4/strerror.m4: Bump version number.
62040
62041 2007-12-03  Bruno Haible  <bruno@clisp.org>
62042
62043         * doc/functions/mprotect.texi: Mention the mingw problem.
62044
62045 2007-12-03  Eric Blake  <ebb9@byu.net>
62046
62047         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62048         REPLACE_STRERROR is initialized before this macro.
62049
62050 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62053         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62054         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62055         put -lsec in even for programs other than 'ls'.  This fixes a problem
62056         for gettext reported by Bruno Haible in
62057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62058         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62059         Add support for Solaris 10.  This isn't efficient, but should get the
62060         job done for now.
62061
62062 2007-12-03  James Youngman  <jay@gnu.org>
62063
62064         * doc/regexprops-generic.texi: change "an close-group" to "a
62065         close-group" and "illegal" to "not allowed".
62066
62067 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62068
62069         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62070         pr_byname.h. Needed for the rare case when the maintainer has done
62071         "make maintainer-clean" in the source directory and then attempts a
62072         build outside the source directory.
62073         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62074         scripts_byname.h.
62075
62076 2007-12-02  Martin Lambers <marlam@marlam.de>
62077             Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/getpagesize.h: Remove file.
62080         * lib/unistd.in.h: Include declaration of getpagesize here.
62081         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62082         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62083         HAVE_SYS_PARAM_H.
62084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62085         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62086         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62087         (Depends-on): Add unistd.
62088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62089         (Include): Use <unistd.h> instead of getpagesize.h.
62090         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62091         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62092         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62093         gl_GETPAGESIZE invocation, already handled by module dependency.
62094         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62095
62096 2007-12-02  Bruno Haible  <bruno@clisp.org>
62097
62098         * modules/strings-tests: New file.
62099         * tests/test-strings.c: New file.
62100
62101         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62102         * lib/strings.in.h: New file.
62103         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62104         * m4/strings_h.m4: New file.
62105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62106         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62107         * modules/strings: New file.
62108         * modules/string (Makefile.am): Update.
62109         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62110         Reported by Karl Berry.
62111
62112 2007-12-01  Eric Blake  <ebb9@byu.net>
62113
62114         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62115         accommodate fix in cygwin 1.5.25.
62116
62117 2007-12-01  Jim Meyering  <meyering@redhat.com>
62118
62119         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62120         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62121         that would inhibit utf8-optimization of a regexp containing line-
62122         or buffer-anchors, e.g., `^', `$'.
62123
62124 2007-11-30  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62127         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62128         glthread_recursive_lock_init.
62129         * lib/lock.c (glthread_recursive_lock_init)
62130         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62131         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62132
62133 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         New function qset_acl, like set_acl but with syscall semantics.
62136         * lib/acl.h (qset_acl): New decl.
62137         * lib/acl.c (qset_acl): New function.
62138         (set_acl): Use new function.  Use more-consistent diagnostics.
62139
62140 2007-11-28  Jim Meyering  <meyering@redhat.com>
62141
62142         * modules/physmem (License): Change from GPL to LGPLv2+.
62143
62144 2007-11-26  Bruno Haible  <bruno@clisp.org>
62145
62146         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62147         'long double' type has excess precision.
62148         Reported by Jim Meyering in
62149         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62150
62151 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62152
62153         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62154         Sync from <http://gnu.org/licenses>.
62155         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62156         with license text from same location.
62157         * doc/maintain.texi, doc/standards.texi:  Sync from
62158         <http://savannah.gnu.org/projects/gnustandards>.
62159
62160 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62161         and Jim Meyering  <meyering@redhat.com>
62162
62163         Adjust getdate' grammar to accept a slightly more regular language.
62164         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62165         Before, the former was rejected.
62166         * lib/getdate.y (digits_to_date_time): New function, factored
62167         out of ...
62168         (number): ...here.  Just call digits_to_date_time.
62169         (hybrid): New non-terminal to handle an <unsigned number,
62170         signed relative offset> sequence consistently.
62171
62172 2007-11-18  Jim Meyering  <meyering@redhat.com>
62173
62174         Pull my changes from coreutils:
62175         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62176         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62177         use of $gnulib_tool_option_extras, so that it's separated from the
62178         preceding argument.
62179
62180         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62181         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62182         parent destination directories before copying a file into place.
62183
62184 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62185
62186         bootstrap: work also with 4-argument variant of AC_INIT
62187         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62188
62189 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         Port test-getaddrinfo to Solaris.
62192         Problem reported by Bruno Haible in
62193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62194         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62195         explanation of setting 'hints'.
62196         Don't reject an implementation merely because it returns EAI_SERVICE.
62197         (EAI_SERVICE): Define to 0 if not defined.
62198
62199 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         The license of gnu-make and posix-shell is now "GPLed build tool".
62202         * modules/gnu-make (License): Likewise.
62203         * modules/posix-shell (License): Likewise.
62204
62205         New module posix-shell, for determining a POSIX shell
62206         or perhaps something that is close enough to a POSIX shell.
62207         * m4/posix-shell.m4: New file.
62208         * modules/posix-shell: New file.
62209
62210         * MODULES.html.sh: Mention new module.
62211
62212         New module gnu-make, for determining whether we're using GNU Make.
62213         * m4/gnu-make.m4: New file.
62214         * modules/gnu-make: New file.
62215         * MODULES.html.sh: Mention new module.
62216
62217 2007-11-14  Jim Meyering  <meyering@redhat.com>
62218
62219         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62220         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62221         use this macro to create a function _definition_.
62222         Remove useless "#undef ARGMATCH_DIE".
62223
62224 2007-11-14  Bruno Haible  <bruno@clisp.org>
62225
62226         * lib/config.charset: Update for OpenBSD 4.1.
62227         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62228
62229 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62230
62231         Document 64-bit #if problems in stdint.texi.
62232         * doc/headers/stdint.texi (stdint.h): Mention problems with
62233         64-bit-#if, and how to work around them.
62234
62235         Don't insist on 'long long int' support in the preprocessor.  It
62236         breaks too many things.  For example, PRIdMAX still uses a 'long
62237         long int' format with the latest Sun compiler, even though
62238         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62239         preprocessor problem.  This causes the latest coreutils to dump
62240         core on Solaris 10 sparc with the Sun C compiler.
62241         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62242         the troublesome expressions at configure-time, not at #if-time.
62243         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62244         preprocessor.
62245         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62246         compile-time C checks, done at 'configure'-time.
62247         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62248         * modules/inttypes (Makefile): Substitute the new symbols that
62249         gl_INTTYPES_H now generates.
62250         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62251
62252 2007-11-12  Bruno Haible  <bruno@clisp.org>
62253
62254         Tests for Unicode character classification functions.
62255
62256         * modules/unictype/bidicategory-byname-tests: New file.
62257         * modules/unictype/bidicategory-name-tests: New file.
62258         * modules/unictype/bidicategory-of-tests: New file.
62259         * modules/unictype/bidicategory-test-tests: New file.
62260         * modules/unictype/block-list-tests: New file.
62261         * modules/unictype/block-of-tests: New file.
62262         * modules/unictype/block-test-tests: New file.
62263         * modules/unictype/category-C-tests: New file.
62264         * modules/unictype/category-Cc-tests: New file.
62265         * modules/unictype/category-Cf-tests: New file.
62266         * modules/unictype/category-Cn-tests: New file.
62267         * modules/unictype/category-Co-tests: New file.
62268         * modules/unictype/category-Cs-tests: New file.
62269         * modules/unictype/category-L-tests: New file.
62270         * modules/unictype/category-Ll-tests: New file.
62271         * modules/unictype/category-Lm-tests: New file.
62272         * modules/unictype/category-Lo-tests: New file.
62273         * modules/unictype/category-Lt-tests: New file.
62274         * modules/unictype/category-Lu-tests: New file.
62275         * modules/unictype/category-M-tests: New file.
62276         * modules/unictype/category-Mc-tests: New file.
62277         * modules/unictype/category-Me-tests: New file.
62278         * modules/unictype/category-Mn-tests: New file.
62279         * modules/unictype/category-N-tests: New file.
62280         * modules/unictype/category-Nd-tests: New file.
62281         * modules/unictype/category-Nl-tests: New file.
62282         * modules/unictype/category-No-tests: New file.
62283         * modules/unictype/category-P-tests: New file.
62284         * modules/unictype/category-Pc-tests: New file.
62285         * modules/unictype/category-Pd-tests: New file.
62286         * modules/unictype/category-Pe-tests: New file.
62287         * modules/unictype/category-Pf-tests: New file.
62288         * modules/unictype/category-Pi-tests: New file.
62289         * modules/unictype/category-Po-tests: New file.
62290         * modules/unictype/category-Ps-tests: New file.
62291         * modules/unictype/category-S-tests: New file.
62292         * modules/unictype/category-Sc-tests: New file.
62293         * modules/unictype/category-Sk-tests: New file.
62294         * modules/unictype/category-Sm-tests: New file.
62295         * modules/unictype/category-So-tests: New file.
62296         * modules/unictype/category-Z-tests: New file.
62297         * modules/unictype/category-Zl-tests: New file.
62298         * modules/unictype/category-Zp-tests: New file.
62299         * modules/unictype/category-Zs-tests: New file.
62300         * modules/unictype/category-and-not-tests: New file.
62301         * modules/unictype/category-and-tests: New file.
62302         * modules/unictype/category-byname-tests: New file.
62303         * modules/unictype/category-name-tests: New file.
62304         * modules/unictype/category-none-tests: New file.
62305         * modules/unictype/category-of-tests: New file.
62306         * modules/unictype/category-or-tests: New file.
62307         * modules/unictype/category-test-withtable-tests: New file.
62308         * modules/unictype/combining-class-tests: New file.
62309         * modules/unictype/ctype-alnum-tests: New file.
62310         * modules/unictype/ctype-alpha-tests: New file.
62311         * modules/unictype/ctype-blank-tests: New file.
62312         * modules/unictype/ctype-cntrl-tests: New file.
62313         * modules/unictype/ctype-digit-tests: New file.
62314         * modules/unictype/ctype-graph-tests: New file.
62315         * modules/unictype/ctype-lower-tests: New file.
62316         * modules/unictype/ctype-print-tests: New file.
62317         * modules/unictype/ctype-punct-tests: New file.
62318         * modules/unictype/ctype-space-tests: New file.
62319         * modules/unictype/ctype-upper-tests: New file.
62320         * modules/unictype/ctype-xdigit-tests: New file.
62321         * modules/unictype/decimal-digit-tests: New file.
62322         * modules/unictype/digit-tests: New file.
62323         * modules/unictype/mirror-tests: New file.
62324         * modules/unictype/numeric-tests: New file.
62325         * modules/unictype/property-alphabetic-tests: New file.
62326         * modules/unictype/property-ascii-hex-digit-tests: New file.
62327         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62328         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62329         * modules/unictype/property-bidi-block-separator-tests: New file.
62330         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62331         * modules/unictype/property-bidi-common-separator-tests: New file.
62332         * modules/unictype/property-bidi-control-tests: New file.
62333         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62334         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62335         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62336         * modules/unictype/property-bidi-european-digit-tests: New file.
62337         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62338         * modules/unictype/property-bidi-left-to-right-tests: New file.
62339         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62340         * modules/unictype/property-bidi-other-neutral-tests: New file.
62341         * modules/unictype/property-bidi-pdf-tests: New file.
62342         * modules/unictype/property-bidi-segment-separator-tests: New file.
62343         * modules/unictype/property-bidi-whitespace-tests: New file.
62344         * modules/unictype/property-byname-tests: New file.
62345         * modules/unictype/property-combining-tests: New file.
62346         * modules/unictype/property-composite-tests: New file.
62347         * modules/unictype/property-currency-symbol-tests: New file.
62348         * modules/unictype/property-dash-tests: New file.
62349         * modules/unictype/property-decimal-digit-tests: New file.
62350         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62351         * modules/unictype/property-deprecated-tests: New file.
62352         * modules/unictype/property-diacritic-tests: New file.
62353         * modules/unictype/property-extender-tests: New file.
62354         * modules/unictype/property-format-control-tests: New file.
62355         * modules/unictype/property-grapheme-base-tests: New file.
62356         * modules/unictype/property-grapheme-extend-tests: New file.
62357         * modules/unictype/property-grapheme-link-tests: New file.
62358         * modules/unictype/property-hex-digit-tests: New file.
62359         * modules/unictype/property-hyphen-tests: New file.
62360         * modules/unictype/property-id-continue-tests: New file.
62361         * modules/unictype/property-id-start-tests: New file.
62362         * modules/unictype/property-ideographic-tests: New file.
62363         * modules/unictype/property-ids-binary-operator-tests: New file.
62364         * modules/unictype/property-ids-trinary-operator-tests: New file.
62365         * modules/unictype/property-ignorable-control-tests: New file.
62366         * modules/unictype/property-iso-control-tests: New file.
62367         * modules/unictype/property-join-control-tests: New file.
62368         * modules/unictype/property-left-of-pair-tests: New file.
62369         * modules/unictype/property-line-separator-tests: New file.
62370         * modules/unictype/property-logical-order-exception-tests: New file.
62371         * modules/unictype/property-lowercase-tests: New file.
62372         * modules/unictype/property-math-tests: New file.
62373         * modules/unictype/property-non-break-tests: New file.
62374         * modules/unictype/property-not-a-character-tests: New file.
62375         * modules/unictype/property-numeric-tests: New file.
62376         * modules/unictype/property-other-alphabetic-tests: New file.
62377         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62378         * modules/unictype/property-other-grapheme-extend-tests: New file.
62379         * modules/unictype/property-other-id-continue-tests: New file.
62380         * modules/unictype/property-other-id-start-tests: New file.
62381         * modules/unictype/property-other-lowercase-tests: New file.
62382         * modules/unictype/property-other-math-tests: New file.
62383         * modules/unictype/property-other-uppercase-tests: New file.
62384         * modules/unictype/property-paired-punctuation-tests: New file.
62385         * modules/unictype/property-paragraph-separator-tests: New file.
62386         * modules/unictype/property-pattern-syntax-tests: New file.
62387         * modules/unictype/property-pattern-white-space-tests: New file.
62388         * modules/unictype/property-private-use-tests: New file.
62389         * modules/unictype/property-punctuation-tests: New file.
62390         * modules/unictype/property-quotation-mark-tests: New file.
62391         * modules/unictype/property-radical-tests: New file.
62392         * modules/unictype/property-sentence-terminal-tests: New file.
62393         * modules/unictype/property-soft-dotted-tests: New file.
62394         * modules/unictype/property-space-tests: New file.
62395         * modules/unictype/property-terminal-punctuation-tests: New file.
62396         * modules/unictype/property-test-tests: New file.
62397         * modules/unictype/property-titlecase-tests: New file.
62398         * modules/unictype/property-unassigned-code-value-tests: New file.
62399         * modules/unictype/property-unified-ideograph-tests: New file.
62400         * modules/unictype/property-uppercase-tests: New file.
62401         * modules/unictype/property-variation-selector-tests: New file.
62402         * modules/unictype/property-white-space-tests: New file.
62403         * modules/unictype/property-xid-continue-tests: New file.
62404         * modules/unictype/property-xid-start-tests: New file.
62405         * modules/unictype/property-zero-width-tests: New file.
62406         * modules/unictype/scripts-tests: New file.
62407         * modules/unictype/syntax-c-ident-tests: New file.
62408         * modules/unictype/syntax-c-whitespace-tests: New file.
62409         * modules/unictype/syntax-java-ident-tests: New file.
62410         * modules/unictype/syntax-java-whitespace-tests: New file.
62411         * tests/unictype/test-bidi_byname.c: New file.
62412         * tests/unictype/test-bidi_name.c: New file.
62413         * tests/unictype/test-bidi_of.c: New file.
62414         * tests/unictype/test-bidi_test.c: New file.
62415         * tests/unictype/test-block_list.c: New file.
62416         * tests/unictype/test-block_of.c: New file.
62417         * tests/unictype/test-block_test.c: New file.
62418         * tests/unictype/test-categ_and.c: New file.
62419         * tests/unictype/test-categ_and_not.c: New file.
62420         * tests/unictype/test-categ_byname.c: New file.
62421         * tests/unictype/test-categ_name.c: New file.
62422         * tests/unictype/test-categ_none.c: New file.
62423         * tests/unictype/test-categ_of.c: New file.
62424         * tests/unictype/test-categ_or.c: New file.
62425         * tests/unictype/test-categ_test_withtable.c: New file.
62426         * tests/unictype/test-combining.c: New file.
62427         * tests/unictype/test-decdigit.c: New file.
62428         * tests/unictype/test-digit.c: New file.
62429         * tests/unictype/test-mirror.c: New file.
62430         * tests/unictype/test-numeric.c: New file.
62431         * tests/unictype/test-pr_byname.c: New file.
62432         * tests/unictype/test-pr_test.c: New file.
62433         * tests/unictype/test-predicate-part1.h: New file.
62434         * tests/unictype/test-predicate-part2.h: New file.
62435         * tests/unictype/test-scripts.c: New file.
62436         * tests/unictype/test-sy_c_ident.c: New file.
62437         * tests/unictype/test-sy_java_ident.c: New file.
62438
62439         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62440         for Unicode 5.0.0.
62441         * tests/unictype/test-categ_Cc.c: Likewise.
62442         * tests/unictype/test-categ_Cf.c: Likewise.
62443         * tests/unictype/test-categ_Cn.c: Likewise.
62444         * tests/unictype/test-categ_Co.c: Likewise.
62445         * tests/unictype/test-categ_Cs.c: Likewise.
62446         * tests/unictype/test-categ_L.c: Likewise.
62447         * tests/unictype/test-categ_Ll.c: Likewise.
62448         * tests/unictype/test-categ_Lm.c: Likewise.
62449         * tests/unictype/test-categ_Lo.c: Likewise.
62450         * tests/unictype/test-categ_Lt.c: Likewise.
62451         * tests/unictype/test-categ_Lu.c: Likewise.
62452         * tests/unictype/test-categ_M.c: Likewise.
62453         * tests/unictype/test-categ_Mc.c: Likewise.
62454         * tests/unictype/test-categ_Me.c: Likewise.
62455         * tests/unictype/test-categ_Mn.c: Likewise.
62456         * tests/unictype/test-categ_N.c: Likewise.
62457         * tests/unictype/test-categ_Nd.c: Likewise.
62458         * tests/unictype/test-categ_Nl.c: Likewise.
62459         * tests/unictype/test-categ_No.c: Likewise.
62460         * tests/unictype/test-categ_P.c: Likewise.
62461         * tests/unictype/test-categ_Pc.c: Likewise.
62462         * tests/unictype/test-categ_Pd.c: Likewise.
62463         * tests/unictype/test-categ_Pe.c: Likewise.
62464         * tests/unictype/test-categ_Pf.c: Likewise.
62465         * tests/unictype/test-categ_Pi.c: Likewise.
62466         * tests/unictype/test-categ_Po.c: Likewise.
62467         * tests/unictype/test-categ_Ps.c: Likewise.
62468         * tests/unictype/test-categ_S.c: Likewise.
62469         * tests/unictype/test-categ_Sc.c: Likewise.
62470         * tests/unictype/test-categ_Sk.c: Likewise.
62471         * tests/unictype/test-categ_Sm.c: Likewise.
62472         * tests/unictype/test-categ_So.c: Likewise.
62473         * tests/unictype/test-categ_Z.c: Likewise.
62474         * tests/unictype/test-categ_Zl.c: Likewise.
62475         * tests/unictype/test-categ_Zp.c: Likewise.
62476         * tests/unictype/test-categ_Zs.c: Likewise.
62477         * tests/unictype/test-ctype_alnum.c: Likewise.
62478         * tests/unictype/test-ctype_alpha.c: Likewise.
62479         * tests/unictype/test-ctype_blank.c: Likewise.
62480         * tests/unictype/test-ctype_cntrl.c: Likewise.
62481         * tests/unictype/test-ctype_digit.c: Likewise.
62482         * tests/unictype/test-ctype_graph.c: Likewise.
62483         * tests/unictype/test-ctype_lower.c: Likewise.
62484         * tests/unictype/test-ctype_print.c: Likewise.
62485         * tests/unictype/test-ctype_punct.c: Likewise.
62486         * tests/unictype/test-ctype_space.c: Likewise.
62487         * tests/unictype/test-ctype_upper.c: Likewise.
62488         * tests/unictype/test-ctype_xdigit.c: Likewise.
62489         * tests/unictype/test-decdigit.h: Likewise.
62490         * tests/unictype/test-digit.h: Likewise.
62491         * tests/unictype/test-numeric.h: Likewise.
62492         * tests/unictype/test-pr_alphabetic.c: Likewise.
62493         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62494         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62495         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62496         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62497         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62498         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62499         * tests/unictype/test-pr_bidi_control.c: Likewise.
62500         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62501         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62502         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62503         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62504         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62505         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62506         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62507         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62508         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62509         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62510         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62511         * tests/unictype/test-pr_combining.c: Likewise.
62512         * tests/unictype/test-pr_composite.c: Likewise.
62513         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62514         * tests/unictype/test-pr_dash.c: Likewise.
62515         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62516         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62517         * tests/unictype/test-pr_deprecated.c: Likewise.
62518         * tests/unictype/test-pr_diacritic.c: Likewise.
62519         * tests/unictype/test-pr_extender.c: Likewise.
62520         * tests/unictype/test-pr_format_control.c: Likewise.
62521         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62522         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62523         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62524         * tests/unictype/test-pr_hex_digit.c: Likewise.
62525         * tests/unictype/test-pr_hyphen.c: Likewise.
62526         * tests/unictype/test-pr_id_continue.c: Likewise.
62527         * tests/unictype/test-pr_id_start.c: Likewise.
62528         * tests/unictype/test-pr_ideographic.c: Likewise.
62529         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62530         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62531         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62532         * tests/unictype/test-pr_iso_control.c: Likewise.
62533         * tests/unictype/test-pr_join_control.c: Likewise.
62534         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62535         * tests/unictype/test-pr_line_separator.c: Likewise.
62536         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62537         * tests/unictype/test-pr_lowercase.c: Likewise.
62538         * tests/unictype/test-pr_math.c: Likewise.
62539         * tests/unictype/test-pr_non_break.c: Likewise.
62540         * tests/unictype/test-pr_not_a_character.c: Likewise.
62541         * tests/unictype/test-pr_numeric.c: Likewise.
62542         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62543         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62544         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62545         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62546         * tests/unictype/test-pr_other_id_start.c: Likewise.
62547         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62548         * tests/unictype/test-pr_other_math.c: Likewise.
62549         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62550         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62551         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62552         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62553         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62554         * tests/unictype/test-pr_private_use.c: Likewise.
62555         * tests/unictype/test-pr_punctuation.c: Likewise.
62556         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62557         * tests/unictype/test-pr_radical.c: Likewise.
62558         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62559         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62560         * tests/unictype/test-pr_space.c: Likewise.
62561         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62562         * tests/unictype/test-pr_titlecase.c: Likewise.
62563         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62564         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62565         * tests/unictype/test-pr_uppercase.c: Likewise.
62566         * tests/unictype/test-pr_variation_selector.c: Likewise.
62567         * tests/unictype/test-pr_white_space.c: Likewise.
62568         * tests/unictype/test-pr_xid_continue.c: Likewise.
62569         * tests/unictype/test-pr_xid_start.c: Likewise.
62570         * tests/unictype/test-pr_zero_width.c: Likewise.
62571         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62572         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62573
62574 2007-11-12  Bruno Haible  <bruno@clisp.org>
62575
62576         Unicode character classification functions.
62577         * lib/unictype.h: New file.
62578         * modules/unictype/base: New file.
62579         * modules/unictype/category-L: New file.
62580         * modules/unictype/category-Lu: New file.
62581         * modules/unictype/category-Ll: New file.
62582         * modules/unictype/category-Lt: New file.
62583         * modules/unictype/category-Lm: New file.
62584         * modules/unictype/category-Lo: New file.
62585         * modules/unictype/category-M: New file.
62586         * modules/unictype/category-Mn: New file.
62587         * modules/unictype/category-Mc: New file.
62588         * modules/unictype/category-Me: New file.
62589         * modules/unictype/category-N: New file.
62590         * modules/unictype/category-Nd: New file.
62591         * modules/unictype/category-Nl: New file.
62592         * modules/unictype/category-No: New file.
62593         * modules/unictype/category-P: New file.
62594         * modules/unictype/category-Pc: New file.
62595         * modules/unictype/category-Pd: New file.
62596         * modules/unictype/category-Ps: New file.
62597         * modules/unictype/category-Pe: New file.
62598         * modules/unictype/category-Pi: New file.
62599         * modules/unictype/category-Pf: New file.
62600         * modules/unictype/category-Po: New file.
62601         * modules/unictype/category-S: New file.
62602         * modules/unictype/category-Sm: New file.
62603         * modules/unictype/category-Sc: New file.
62604         * modules/unictype/category-Sk: New file.
62605         * modules/unictype/category-So: New file.
62606         * modules/unictype/category-Z: New file.
62607         * modules/unictype/category-Zs: New file.
62608         * modules/unictype/category-Zl: New file.
62609         * modules/unictype/category-Zp: New file.
62610         * modules/unictype/category-C: New file.
62611         * modules/unictype/category-Cc: New file.
62612         * modules/unictype/category-Cf: New file.
62613         * modules/unictype/category-Cs: New file.
62614         * modules/unictype/category-Co: New file.
62615         * modules/unictype/category-Cn: New file.
62616         * modules/unictype/category-or: New file.
62617         * modules/unictype/category-of: New file.
62618         * modules/unictype/category-test: New file.
62619         * modules/unictype/category-test-withtable: New file.
62620         * modules/unictype/category-byname: New file.
62621         * modules/unictype/category-none: New file.
62622         * modules/unictype/category-and: New file.
62623         * modules/unictype/category-and-not: New file.
62624         * modules/unictype/category-name: New file.
62625         * modules/unictype/combining-class: New file.
62626         * modules/unictype/category-all: New file.
62627         * modules/unictype/bidicategory-all: New file.
62628         * modules/unictype/bidicategory-byname: New file.
62629         * modules/unictype/bidicategory-name: New file.
62630         * modules/unictype/bidicategory-of: New file.
62631         * modules/unictype/bidicategory-test: New file.
62632         * modules/unictype/decimal-digit: New file.
62633         * modules/unictype/digit: New file.
62634         * modules/unictype/numeric: New file.
62635         * modules/unictype/mirror: New file.
62636         * modules/unictype/property-white-space: New file.
62637         * modules/unictype/property-alphabetic: New file.
62638         * modules/unictype/property-other-alphabetic: New file.
62639         * modules/unictype/property-not-a-character: New file.
62640         * modules/unictype/property-default-ignorable-code-point: New file.
62641         * modules/unictype/property-other-default-ignorable-code-point: New
62642         file.
62643         * modules/unictype/property-deprecated: New file.
62644         * modules/unictype/property-logical-order-exception: New file.
62645         * modules/unictype/property-variation-selector: New file.
62646         * modules/unictype/property-private-use: New file.
62647         * modules/unictype/property-unassigned-code-value: New file.
62648         * modules/unictype/property-uppercase: New file.
62649         * modules/unictype/property-other-uppercase: New file.
62650         * modules/unictype/property-lowercase: New file.
62651         * modules/unictype/property-other-lowercase: New file.
62652         * modules/unictype/property-titlecase: New file.
62653         * modules/unictype/property-soft-dotted: New file.
62654         * modules/unictype/property-id-start: New file.
62655         * modules/unictype/property-other-id-start: New file.
62656         * modules/unictype/property-id-continue: New file.
62657         * modules/unictype/property-other-id-continue: New file.
62658         * modules/unictype/property-xid-start: New file.
62659         * modules/unictype/property-xid-continue: New file.
62660         * modules/unictype/property-pattern-white-space: New file.
62661         * modules/unictype/property-pattern-syntax: New file.
62662         * modules/unictype/property-join-control: New file.
62663         * modules/unictype/property-grapheme-base: New file.
62664         * modules/unictype/property-grapheme-extend: New file.
62665         * modules/unictype/property-other-grapheme-extend: New file.
62666         * modules/unictype/property-grapheme-link: New file.
62667         * modules/unictype/property-bidi-control: New file.
62668         * modules/unictype/property-bidi-left-to-right: New file.
62669         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62670         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62671         * modules/unictype/property-bidi-european-digit: New file.
62672         * modules/unictype/property-bidi-eur-num-separator: New file.
62673         * modules/unictype/property-bidi-eur-num-terminator: New file.
62674         * modules/unictype/property-bidi-arabic-digit: New file.
62675         * modules/unictype/property-bidi-common-separator: New file.
62676         * modules/unictype/property-bidi-block-separator: New file.
62677         * modules/unictype/property-bidi-segment-separator: New file.
62678         * modules/unictype/property-bidi-whitespace: New file.
62679         * modules/unictype/property-bidi-non-spacing-mark: New file.
62680         * modules/unictype/property-bidi-boundary-neutral: New file.
62681         * modules/unictype/property-bidi-pdf: New file.
62682         * modules/unictype/property-bidi-embedding-or-override: New file.
62683         * modules/unictype/property-bidi-other-neutral: New file.
62684         * modules/unictype/property-hex-digit: New file.
62685         * modules/unictype/property-ascii-hex-digit: New file.
62686         * modules/unictype/property-ideographic: New file.
62687         * modules/unictype/property-unified-ideograph: New file.
62688         * modules/unictype/property-radical: New file.
62689         * modules/unictype/property-ids-binary-operator: New file.
62690         * modules/unictype/property-ids-trinary-operator: New file.
62691         * modules/unictype/property-zero-width: New file.
62692         * modules/unictype/property-space: New file.
62693         * modules/unictype/property-non-break: New file.
62694         * modules/unictype/property-iso-control: New file.
62695         * modules/unictype/property-format-control: New file.
62696         * modules/unictype/property-dash: New file.
62697         * modules/unictype/property-hyphen: New file.
62698         * modules/unictype/property-punctuation: New file.
62699         * modules/unictype/property-line-separator: New file.
62700         * modules/unictype/property-paragraph-separator: New file.
62701         * modules/unictype/property-quotation-mark: New file.
62702         * modules/unictype/property-sentence-terminal: New file.
62703         * modules/unictype/property-terminal-punctuation: New file.
62704         * modules/unictype/property-currency-symbol: New file.
62705         * modules/unictype/property-math: New file.
62706         * modules/unictype/property-other-math: New file.
62707         * modules/unictype/property-paired-punctuation: New file.
62708         * modules/unictype/property-left-of-pair: New file.
62709         * modules/unictype/property-combining: New file.
62710         * modules/unictype/property-composite: New file.
62711         * modules/unictype/property-decimal-digit: New file.
62712         * modules/unictype/property-numeric: New file.
62713         * modules/unictype/property-diacritic: New file.
62714         * modules/unictype/property-extender: New file.
62715         * modules/unictype/property-ignorable-control: New file.
62716         * modules/unictype/property-test: New file.
62717         * modules/unictype/property-byname: New file.
62718         * modules/unictype/property-all: New file.
62719         * modules/unictype/scripts: New file.
62720         * modules/unictype/scripts-all: New file.
62721         * modules/unictype/block-of: New file.
62722         * modules/unictype/block-test: New file.
62723         * modules/unictype/block-list: New file.
62724         * modules/unictype/block-all: New file.
62725         * modules/unictype/syntax-c-whitespace: New file.
62726         * modules/unictype/syntax-java-whitespace: New file.
62727         * modules/unictype/syntax-c-ident: New file.
62728         * modules/unictype/syntax-java-ident: New file.
62729         * modules/unictype/ctype-alnum: New file.
62730         * modules/unictype/ctype-alpha: New file.
62731         * modules/unictype/ctype-cntrl: New file.
62732         * modules/unictype/ctype-digit: New file.
62733         * modules/unictype/ctype-graph: New file.
62734         * modules/unictype/ctype-lower: New file.
62735         * modules/unictype/ctype-print: New file.
62736         * modules/unictype/ctype-punct: New file.
62737         * modules/unictype/ctype-space: New file.
62738         * modules/unictype/ctype-upper: New file.
62739         * modules/unictype/ctype-xdigit: New file.
62740         * modules/unictype/ctype-blank: New file.
62741         * lib/unictype/bidi_byname.c: New file.
62742         * lib/unictype/bidi_name.c: New file.
62743         * lib/unictype/bidi_of.c: New file.
62744         * lib/unictype/bidi_test.c: New file.
62745         * lib/unictype/bitmap.h: New file.
62746         * lib/unictype/block_test.c: New file.
62747         * lib/unictype/blocks.c: New file.
62748         * lib/unictype/categ_C.c: New file.
62749         * lib/unictype/categ_Cc.c: New file.
62750         * lib/unictype/categ_Cf.c: New file.
62751         * lib/unictype/categ_Cn.c: New file.
62752         * lib/unictype/categ_Co.c: New file.
62753         * lib/unictype/categ_Cs.c: New file.
62754         * lib/unictype/categ_L.c: New file.
62755         * lib/unictype/categ_Ll.c: New file.
62756         * lib/unictype/categ_Lm.c: New file.
62757         * lib/unictype/categ_Lo.c: New file.
62758         * lib/unictype/categ_Lt.c: New file.
62759         * lib/unictype/categ_Lu.c: New file.
62760         * lib/unictype/categ_M.c: New file.
62761         * lib/unictype/categ_Mc.c: New file.
62762         * lib/unictype/categ_Me.c: New file.
62763         * lib/unictype/categ_Mn.c: New file.
62764         * lib/unictype/categ_N.c: New file.
62765         * lib/unictype/categ_Nd.c: New file.
62766         * lib/unictype/categ_Nl.c: New file.
62767         * lib/unictype/categ_No.c: New file.
62768         * lib/unictype/categ_P.c: New file.
62769         * lib/unictype/categ_Pc.c: New file.
62770         * lib/unictype/categ_Pd.c: New file.
62771         * lib/unictype/categ_Pe.c: New file.
62772         * lib/unictype/categ_Pf.c: New file.
62773         * lib/unictype/categ_Pi.c: New file.
62774         * lib/unictype/categ_Po.c: New file.
62775         * lib/unictype/categ_Ps.c: New file.
62776         * lib/unictype/categ_S.c: New file.
62777         * lib/unictype/categ_Sc.c: New file.
62778         * lib/unictype/categ_Sk.c: New file.
62779         * lib/unictype/categ_Sm.c: New file.
62780         * lib/unictype/categ_So.c: New file.
62781         * lib/unictype/categ_Z.c: New file.
62782         * lib/unictype/categ_Zl.c: New file.
62783         * lib/unictype/categ_Zp.c: New file.
62784         * lib/unictype/categ_Zs.c: New file.
62785         * lib/unictype/categ_and.c: New file.
62786         * lib/unictype/categ_and_not.c: New file.
62787         * lib/unictype/categ_byname.c: New file.
62788         * lib/unictype/categ_name.c: New file.
62789         * lib/unictype/categ_none.c: New file.
62790         * lib/unictype/categ_of.c: New file.
62791         * lib/unictype/categ_or.c: New file.
62792         * lib/unictype/categ_test.c: New file.
62793         * lib/unictype/combining.c: New file.
62794         * lib/unictype/ctype_alnum.c: New file.
62795         * lib/unictype/ctype_alpha.c: New file.
62796         * lib/unictype/ctype_blank.c: New file.
62797         * lib/unictype/ctype_cntrl.c: New file.
62798         * lib/unictype/ctype_digit.c: New file.
62799         * lib/unictype/ctype_graph.c: New file.
62800         * lib/unictype/ctype_lower.c: New file.
62801         * lib/unictype/ctype_print.c: New file.
62802         * lib/unictype/ctype_punct.c: New file.
62803         * lib/unictype/ctype_space.c: New file.
62804         * lib/unictype/ctype_upper.c: New file.
62805         * lib/unictype/ctype_xdigit.c: New file.
62806         * lib/unictype/decdigit.c: New file.
62807         * lib/unictype/digit.c: New file.
62808         * lib/unictype/identsyntaxmap.h: New file.
62809         * lib/unictype/mirror.c: New file.
62810         * lib/unictype/numeric.c: New file.
62811         * lib/unictype/pr_alphabetic.c: New file.
62812         * lib/unictype/pr_ascii_hex_digit.c: New file.
62813         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62814         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62815         * lib/unictype/pr_bidi_block_separator.c: New file.
62816         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62817         * lib/unictype/pr_bidi_common_separator.c: New file.
62818         * lib/unictype/pr_bidi_control.c: New file.
62819         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62820         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62821         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62822         * lib/unictype/pr_bidi_european_digit.c: New file.
62823         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62824         * lib/unictype/pr_bidi_left_to_right.c: New file.
62825         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62826         * lib/unictype/pr_bidi_other_neutral.c: New file.
62827         * lib/unictype/pr_bidi_pdf.c: New file.
62828         * lib/unictype/pr_bidi_segment_separator.c: New file.
62829         * lib/unictype/pr_bidi_whitespace.c: New file.
62830         * lib/unictype/pr_byname.c: New file.
62831         * lib/unictype/pr_byname.gperf: New file.
62832         * lib/unictype/pr_combining.c: New file.
62833         * lib/unictype/pr_composite.c: New file.
62834         * lib/unictype/pr_currency_symbol.c: New file.
62835         * lib/unictype/pr_dash.c: New file.
62836         * lib/unictype/pr_decimal_digit.c: New file.
62837         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62838         * lib/unictype/pr_deprecated.c: New file.
62839         * lib/unictype/pr_diacritic.c: New file.
62840         * lib/unictype/pr_extender.c: New file.
62841         * lib/unictype/pr_format_control.c: New file.
62842         * lib/unictype/pr_grapheme_base.c: New file.
62843         * lib/unictype/pr_grapheme_extend.c: New file.
62844         * lib/unictype/pr_grapheme_link.c: New file.
62845         * lib/unictype/pr_hex_digit.c: New file.
62846         * lib/unictype/pr_hyphen.c: New file.
62847         * lib/unictype/pr_id_continue.c: New file.
62848         * lib/unictype/pr_id_start.c: New file.
62849         * lib/unictype/pr_ideographic.c: New file.
62850         * lib/unictype/pr_ids_binary_operator.c: New file.
62851         * lib/unictype/pr_ids_trinary_operator.c: New file.
62852         * lib/unictype/pr_ignorable_control.c: New file.
62853         * lib/unictype/pr_iso_control.c: New file.
62854         * lib/unictype/pr_join_control.c: New file.
62855         * lib/unictype/pr_left_of_pair.c: New file.
62856         * lib/unictype/pr_line_separator.c: New file.
62857         * lib/unictype/pr_logical_order_exception.c: New file.
62858         * lib/unictype/pr_lowercase.c: New file.
62859         * lib/unictype/pr_math.c: New file.
62860         * lib/unictype/pr_non_break.c: New file.
62861         * lib/unictype/pr_not_a_character.c: New file.
62862         * lib/unictype/pr_numeric.c: New file.
62863         * lib/unictype/pr_other_alphabetic.c: New file.
62864         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62865         * lib/unictype/pr_other_grapheme_extend.c: New file.
62866         * lib/unictype/pr_other_id_continue.c: New file.
62867         * lib/unictype/pr_other_id_start.c: New file.
62868         * lib/unictype/pr_other_lowercase.c: New file.
62869         * lib/unictype/pr_other_math.c: New file.
62870         * lib/unictype/pr_other_uppercase.c: New file.
62871         * lib/unictype/pr_paired_punctuation.c: New file.
62872         * lib/unictype/pr_paragraph_separator.c: New file.
62873         * lib/unictype/pr_pattern_syntax.c: New file.
62874         * lib/unictype/pr_pattern_white_space.c: New file.
62875         * lib/unictype/pr_private_use.c: New file.
62876         * lib/unictype/pr_punctuation.c: New file.
62877         * lib/unictype/pr_quotation_mark.c: New file.
62878         * lib/unictype/pr_radical.c: New file.
62879         * lib/unictype/pr_sentence_terminal.c: New file.
62880         * lib/unictype/pr_soft_dotted.c: New file.
62881         * lib/unictype/pr_space.c: New file.
62882         * lib/unictype/pr_terminal_punctuation.c: New file.
62883         * lib/unictype/pr_test.c: New file.
62884         * lib/unictype/pr_titlecase.c: New file.
62885         * lib/unictype/pr_unassigned_code_value.c: New file.
62886         * lib/unictype/pr_unified_ideograph.c: New file.
62887         * lib/unictype/pr_uppercase.c: New file.
62888         * lib/unictype/pr_variation_selector.c: New file.
62889         * lib/unictype/pr_white_space.c: New file.
62890         * lib/unictype/pr_xid_continue.c: New file.
62891         * lib/unictype/pr_xid_start.c: New file.
62892         * lib/unictype/pr_zero_width.c: New file.
62893         * lib/unictype/scripts.c: New file.
62894         * lib/unictype/sy_c_ident.c: New file.
62895         * lib/unictype/sy_c_whitespace.c: New file.
62896         * lib/unictype/sy_java_ident.c: New file.
62897         * lib/unictype/sy_java_whitespace.c: New file.
62898
62899         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62900         Unicode 5.0.0.
62901         * lib/unictype/blocks.h: Likewise.
62902         * lib/unictype/categ_C.h: Likewise.
62903         * lib/unictype/categ_Cc.h: Likewise.
62904         * lib/unictype/categ_Cf.h: Likewise.
62905         * lib/unictype/categ_Cn.h: Likewise.
62906         * lib/unictype/categ_Co.h: Likewise.
62907         * lib/unictype/categ_Cs.h: Likewise.
62908         * lib/unictype/categ_L.h: Likewise.
62909         * lib/unictype/categ_Ll.h: Likewise.
62910         * lib/unictype/categ_Lm.h: Likewise.
62911         * lib/unictype/categ_Lo.h: Likewise.
62912         * lib/unictype/categ_Lt.h: Likewise.
62913         * lib/unictype/categ_Lu.h: Likewise.
62914         * lib/unictype/categ_M.h: Likewise.
62915         * lib/unictype/categ_Mc.h: Likewise.
62916         * lib/unictype/categ_Me.h: Likewise.
62917         * lib/unictype/categ_Mn.h: Likewise.
62918         * lib/unictype/categ_N.h: Likewise.
62919         * lib/unictype/categ_Nd.h: Likewise.
62920         * lib/unictype/categ_Nl.h: Likewise.
62921         * lib/unictype/categ_No.h: Likewise.
62922         * lib/unictype/categ_P.h: Likewise.
62923         * lib/unictype/categ_Pc.h: Likewise.
62924         * lib/unictype/categ_Pd.h: Likewise.
62925         * lib/unictype/categ_Pe.h: Likewise.
62926         * lib/unictype/categ_Pf.h: Likewise.
62927         * lib/unictype/categ_Pi.h: Likewise.
62928         * lib/unictype/categ_Po.h: Likewise.
62929         * lib/unictype/categ_Ps.h: Likewise.
62930         * lib/unictype/categ_S.h: Likewise.
62931         * lib/unictype/categ_Sc.h: Likewise.
62932         * lib/unictype/categ_Sk.h: Likewise.
62933         * lib/unictype/categ_Sm.h: Likewise.
62934         * lib/unictype/categ_So.h: Likewise.
62935         * lib/unictype/categ_Z.h: Likewise.
62936         * lib/unictype/categ_Zl.h: Likewise.
62937         * lib/unictype/categ_Zp.h: Likewise.
62938         * lib/unictype/categ_Zs.h: Likewise.
62939         * lib/unictype/categ_of.h: Likewise.
62940         * lib/unictype/combining.h: Likewise.
62941         * lib/unictype/ctype_alnum.h: Likewise.
62942         * lib/unictype/ctype_alpha.h: Likewise.
62943         * lib/unictype/ctype_blank.h: Likewise.
62944         * lib/unictype/ctype_cntrl.h: Likewise.
62945         * lib/unictype/ctype_digit.h: Likewise.
62946         * lib/unictype/ctype_graph.h: Likewise.
62947         * lib/unictype/ctype_lower.h: Likewise.
62948         * lib/unictype/ctype_print.h: Likewise.
62949         * lib/unictype/ctype_punct.h: Likewise.
62950         * lib/unictype/ctype_space.h: Likewise.
62951         * lib/unictype/ctype_upper.h: Likewise.
62952         * lib/unictype/ctype_xdigit.h: Likewise.
62953         * lib/unictype/decdigit.h: Likewise.
62954         * lib/unictype/digit.h: Likewise.
62955         * lib/unictype/mirror.h: Likewise.
62956         * lib/unictype/numeric.h: Likewise.
62957         * lib/unictype/pr_alphabetic.h: Likewise.
62958         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62959         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62960         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62961         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62962         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62963         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62964         * lib/unictype/pr_bidi_control.h: Likewise.
62965         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62966         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62967         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62968         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62969         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62970         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62971         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62972         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62973         * lib/unictype/pr_bidi_pdf.h: Likewise.
62974         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62975         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62976         * lib/unictype/pr_combining.h: Likewise.
62977         * lib/unictype/pr_composite.h: Likewise.
62978         * lib/unictype/pr_currency_symbol.h: Likewise.
62979         * lib/unictype/pr_dash.h: Likewise.
62980         * lib/unictype/pr_decimal_digit.h: Likewise.
62981         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62982         * lib/unictype/pr_deprecated.h: Likewise.
62983         * lib/unictype/pr_diacritic.h: Likewise.
62984         * lib/unictype/pr_extender.h: Likewise.
62985         * lib/unictype/pr_format_control.h: Likewise.
62986         * lib/unictype/pr_grapheme_base.h: Likewise.
62987         * lib/unictype/pr_grapheme_extend.h: Likewise.
62988         * lib/unictype/pr_grapheme_link.h: Likewise.
62989         * lib/unictype/pr_hex_digit.h: Likewise.
62990         * lib/unictype/pr_hyphen.h: Likewise.
62991         * lib/unictype/pr_id_continue.h: Likewise.
62992         * lib/unictype/pr_id_start.h: Likewise.
62993         * lib/unictype/pr_ideographic.h: Likewise.
62994         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62995         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62996         * lib/unictype/pr_ignorable_control.h: Likewise.
62997         * lib/unictype/pr_iso_control.h: Likewise.
62998         * lib/unictype/pr_join_control.h: Likewise.
62999         * lib/unictype/pr_left_of_pair.h: Likewise.
63000         * lib/unictype/pr_line_separator.h: Likewise.
63001         * lib/unictype/pr_logical_order_exception.h: Likewise.
63002         * lib/unictype/pr_lowercase.h: Likewise.
63003         * lib/unictype/pr_math.h: Likewise.
63004         * lib/unictype/pr_non_break.h: Likewise.
63005         * lib/unictype/pr_not_a_character.h: Likewise.
63006         * lib/unictype/pr_numeric.h: Likewise.
63007         * lib/unictype/pr_other_alphabetic.h: Likewise.
63008         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63009         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63010         * lib/unictype/pr_other_id_continue.h: Likewise.
63011         * lib/unictype/pr_other_id_start.h: Likewise.
63012         * lib/unictype/pr_other_lowercase.h: Likewise.
63013         * lib/unictype/pr_other_math.h: Likewise.
63014         * lib/unictype/pr_other_uppercase.h: Likewise.
63015         * lib/unictype/pr_paired_punctuation.h: Likewise.
63016         * lib/unictype/pr_paragraph_separator.h: Likewise.
63017         * lib/unictype/pr_pattern_syntax.h: Likewise.
63018         * lib/unictype/pr_pattern_white_space.h: Likewise.
63019         * lib/unictype/pr_private_use.h: Likewise.
63020         * lib/unictype/pr_punctuation.h: Likewise.
63021         * lib/unictype/pr_quotation_mark.h: Likewise.
63022         * lib/unictype/pr_radical.h: Likewise.
63023         * lib/unictype/pr_sentence_terminal.h: Likewise.
63024         * lib/unictype/pr_soft_dotted.h: Likewise.
63025         * lib/unictype/pr_space.h: Likewise.
63026         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63027         * lib/unictype/pr_titlecase.h: Likewise.
63028         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63029         * lib/unictype/pr_unified_ideograph.h: Likewise.
63030         * lib/unictype/pr_uppercase.h: Likewise.
63031         * lib/unictype/pr_variation_selector.h: Likewise.
63032         * lib/unictype/pr_white_space.h: Likewise.
63033         * lib/unictype/pr_xid_continue.h: Likewise.
63034         * lib/unictype/pr_xid_start.h: Likewise.
63035         * lib/unictype/pr_zero_width.h: Likewise.
63036         * lib/unictype/scripts.h: Likewise.
63037         * lib/unictype/scripts_byname.gperf: Likewise.
63038         * lib/unictype/sy_c_ident.h: Likewise.
63039         * lib/unictype/sy_c_whitespace.h: Likewise.
63040         * lib/unictype/sy_java_ident.h: Likewise.
63041         * lib/unictype/sy_java_whitespace.h: Likewise.
63042
63043         * lib/unictype/Makefile: New file.
63044         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63045         glibc.
63046         * lib/unictype/3level.h: New file, copied from glibc.
63047         * lib/unictype/3levelbit.h: New file.
63048
63049 2007-11-11  Bruno Haible  <bruno@clisp.org>
63050
63051         * modules/gperf: New file.
63052         * modules/iconv_open (Depends-on): Add it.
63053         (Makefile.am): Remove the GPERF definition.
63054
63055 2007-11-11  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63058         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63059
63060 2007-11-11  Bruno Haible  <bruno@clisp.org>
63061
63062         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63063         (usage): Remove function.
63064
63065 2007-11-11  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63068         gl_FUNC_CEILF_LIBS.
63069         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63070         gl_FUNC_CEIL_LIBS.
63071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63072         gl_FUNC_CEILL_LIBS.
63073         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63074         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63075         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63076
63077 2007-11-11  Bruno Haible  <bruno@clisp.org>
63078
63079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63080         roundf were declared but do not exist on functions.
63081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63082         roundl were declared but do not exist on functions.
63083         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63084         HAVE_FLOORL_AND_CEILL, respectively.
63085         Needed for Sun C on Solaris 10.
63086
63087 2007-11-11  Bruno Haible  <bruno@clisp.org>
63088
63089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63090         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63091         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63092         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63094         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63095         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63096         HAVE_DECL_ROUNDF.
63097         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63098         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63100         of HAVE_DECL_ROUND*.
63101         * modules/math (Makefile.am): Update.
63102
63103 2007-11-10  Bruno Haible  <bruno@clisp.org>
63104
63105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63106         ptrdiff_t as m4/intl.m4.
63107
63108 2007-11-10  Jim Meyering  <meyering@redhat.com>
63109
63110         Avoid link failure for the argmatch test.
63111         * tests/test-argmatch.c (usage): Define function to avoid a link
63112         failure: argmatch_die requires a usage function.
63113
63114 2007-11-09  Bruno Haible  <bruno@clisp.org>
63115
63116         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63117         * doc/functions/vsnprintf.texi: Likewise.
63118         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63119         with a size argument < 2.
63120
63121 2007-11-09  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63124         buffer. Fixes an inefficiency introduced on 2007-11-03.
63125
63126 2007-11-09  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63129         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63130
63131 2007-11-08  Jim Meyering  <meyering@redhat.com>
63132
63133         Change cache variable name prefix "jm_" to "gl_" everywhere.
63134         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63135         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63136         * m4/uptime.m4: s/gl_/jm_/
63137
63138 2007-11-07  Bruno Haible  <bruno@clisp.org>
63139
63140         Update to GNU gettext 0.17.
63141         * m4/intl.m4: Update to GNU gettext 0.17.
63142         * m4/po.m4: Likewise.
63143         * modules/gettext (Files): Remove m4/ulonglong.m4.
63144         (configure.ac): Require gettext infrastructure from version 0.17.
63145
63146 2007-11-06  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63149         symbolic values are not defined in a public header.
63150         * lib/freadable.c (freadable) [QNX]: Likewise.
63151         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63152         * lib/freading.c (freading) [QNX]: Likewise.
63153         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63154         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63155         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63156         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63157         Reported by Alain Magloire.
63158
63159         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63160
63161 2007-11-05  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63164         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63165         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63166         Reported by Eric Blake.
63167
63168 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63169             Bruno Haible  <bruno@clisp.org>
63170
63171         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63172         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63173         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63174         (malloc): Undefine also before including <stdlib.h>.
63175         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63176         Needed on OSF/1 4.0.
63177
63178 2007-11-05  Jim Meyering  <meyering@redhat.com>
63179
63180         git-version-gen: sync from coreutils.
63181         * build-aux/git-version-gen: Add comments.
63182         Change the first '-' to '.' in the snapshot version string,
63183         e.g., 6.9-377-08144 -> 6.9.377-08144
63184         Remove first parameter.
63185         Don't declare a version "-dirty" merely because a time
63186         stamp has changed.
63187
63188 2007-11-04  Bruno Haible  <bruno@clisp.org>
63189
63190         * lib/lock.h: Protect all macro definitions containing an 'if'
63191         statement through a "do { ... } while (0)".
63192         * lib/tls.h: Likewise.
63193
63194 2007-11-04  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63197
63198 2007-11-04  Bruno Haible  <bruno@clisp.org>
63199
63200         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63201         * modules/fprintf-posix (Depends-on): Add nocrash.
63202         * modules/snprintf-posix (Depends-on): Likewise.
63203         * modules/sprintf-posix (Depends-on): Likewise.
63204         * modules/vasnprintf-posix (Depends-on): Likewise.
63205         * modules/vasprintf-posix (Depends-on): Likewise.
63206         * modules/vfprintf-posix (Depends-on): Likewise.
63207         * modules/vsnprintf-posix (Depends-on): Likewise.
63208         * modules/vsprintf-posix (Depends-on): Likewise.
63209         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63210         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63211         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63212         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63213         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63214         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63215         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63216
63217 2007-11-04  Bruno Haible  <bruno@clisp.org>
63218
63219         * modules/nocrash: New file.
63220         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63221         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63222
63223 2007-11-04  Bruno Haible  <bruno@clisp.org>
63224
63225         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63226         precision handling.
63227         * tests/test-vasprintf-posix.c (test_function): Likewise.
63228         * tests/test-snprintf-posix.h (test_function): Likewise.
63229         * tests/test-sprintf-posix.h (test_function): Likewise.
63230
63231         Fix *printf behaviour for large precisions on mingw and BeOS.
63232         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63233         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63235         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63237         gl_PRINTF_PRECISION and test its result. Invoke
63238         gl_PREREQ_VASNPRINTF_PRECISION.
63239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63246         * doc/functions/fprintf.texi: Update.
63247         * doc/functions/printf.texi: Update.
63248         * doc/functions/snprintf.texi: Update.
63249         * doc/functions/sprintf.texi: Update.
63250         * doc/functions/vfprintf.texi: Update.
63251         * doc/functions/vprintf.texi: Update.
63252         * doc/functions/vsnprintf.texi: Update.
63253         * doc/functions/vsprintf.texi: Update.
63254
63255 2007-11-04  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63258
63259 2007-11-04  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63262         Reported by Sylvain Beucler <beuc@gnu.org>.
63263
63264 2007-11-03  Bruno Haible  <bruno@clisp.org>
63265
63266         * tests/test-fprintf-posix2.sh: New file.
63267         * tests/test-fprintf-posix2.c: New file.
63268         * modules/fprintf-posix-tests (Files): Add them.
63269         (TESTS): Add test-fprintf-posix2.sh.
63270         (configure.ac): Check for getrlimit and setrlimit.
63271         (check_PROGRAMS): Add test-fprintf-posix2.
63272
63273         * tests/test-printf-posix2.sh: New file.
63274         * tests/test-printf-posix2.c: New file.
63275         * modules/printf-posix-tests (Files): Add them.
63276         (TESTS): Add test-printf-posix2.sh.
63277         (configure.ac): Check for getrlimit and setrlimit.
63278         (check_PROGRAMS): Add test-printf-posix2.
63279
63280         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63281         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63282         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63283         (decode_double): New function, copied from decode_long_double.
63284         (scale10_round_decimal_decoded): New function, extracted from
63285         scale10_round_decimal_long_double.
63286         (scale10_round_decimal_long_double): Use it.
63287         (scale10_round_decimal_double): New function.
63288         (floorlog10): New function.
63289         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63291         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63292         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63293         gl_PRINTF_ENOMEM and test its result. Invoke
63294         gl_PREREQ_VASNPRINTF_ENOMEM.
63295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63299         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63301         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63302         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63303         * modules/snprintf-posix (Depends-on): Likewise.
63304         * modules/sprintf-posix (Depends-on): Likewise.
63305         * modules/vasnprintf-posix (Depends-on): Likewise.
63306         * modules/vasprintf-posix (Depends-on): Likewise.
63307         * modules/vfprintf-posix (Depends-on): Likewise.
63308         * modules/vsnprintf-posix (Depends-on): Likewise.
63309         * modules/vsprintf-posix (Depends-on): Likewise.
63310         * doc/functions/fprintf.texi: Update.
63311         * doc/functions/printf.texi: Update.
63312         * doc/functions/snprintf.texi: Update.
63313         * doc/functions/sprintf.texi: Update.
63314         * doc/functions/vfprintf.texi: Update.
63315         * doc/functions/vprintf.texi: Update.
63316         * doc/functions/vsnprintf.texi: Update.
63317         * doc/functions/vsprintf.texi: Update.
63318
63319 2007-11-03  Bruno Haible  <bruno@clisp.org>
63320
63321         * modules/frexp-nolibm-tests: New file.
63322
63323         * modules/frexp-nolibm: New file.
63324         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63325
63326 2007-11-03  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63329         value is C99 compliant.
63330         Needed for OSF/1 5.1.
63331
63332 2007-11-03  Bruno Haible  <bruno@clisp.org>
63333
63334         Fix out-of-memory handling of vasnprintf.
63335         * lib/printf-parse.c: Include <errno.h>.
63336         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63337         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63338         is already set.
63339
63340 2007-11-02  Eric Blake  <ebb9@byu.net>
63341
63342         Fix tests on cygwin.
63343         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63344
63345 2007-11-01  Bruno Haible  <bruno@clisp.org>
63346
63347         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63348         warning.
63349         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63350         needed for POSIX compatibility.
63351
63352 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63355         for compatibility with GNU.
63356
63357 2007-11-01  Bruno Haible  <bruno@clisp.org>
63358
63359         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63360         (putenv): Renamed from rpl_putenv. Change argument type from
63361         'const char *' to 'char *'.
63362         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63363         of defining putenv in config.h, just set REPLACE_PUTENV.
63364         * modules/putenv (Depends-on): Add stdlib.
63365         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63366         (Include): Use <stdlib.h>.
63367         * lib/stdlib.in.h (putenv): New declaration.
63368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63369         REPLACE_PUTENV.
63370         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63371         REPLACE_PUTENV.
63372         Needed for MacOS X 10.5.0.
63373         Reported by Peter O'Gorman <peter@pogma.com>.
63374
63375 2007-11-01  Jim Meyering  <meyering@redhat.com>
63376
63377         Treat an empty date string exactly like "0".
63378         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63379         if the remaining date string (to be parsed) is empty, use "0".
63380         Reported by Mischa Molhoek and discussed in this thread:
63381         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63382
63383 2007-10-31  Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63386         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63387         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63388         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63389         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63390         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63391
63392 2007-10-31  Bruno Haible  <bruno@clisp.org>
63393
63394         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63395         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63396         (AC_TYPE_LONG_LONG_INT): Use it.
63397         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63398         it as well.
63399         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63400         to m4/longlong.m4.
63401         * modules/stdint (Files): Remove m4/ulonglong.m4.
63402         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63403         m4/ulonglong.m4.
63404         * modules/strtoumax (Files): Likewise.
63405
63406 2007-10-30  Bruno Haible  <bruno@clisp.org>
63407
63408         * modules/xvasprintf-posix: New file.
63409         Suggested by Eric Blake.
63410
63411 2007-10-30  Bruno Haible  <bruno@clisp.org>
63412
63413         * modules/xprintf-posix-tests: New file.
63414         * tests/test-xprintf-posix.sh: New file.
63415         * tests/test-xprintf-posix.c: New file.
63416         * tests/test-xfprintf-posix.c: New file.
63417
63418         * modules/xprintf-posix: New file.
63419
63420 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63421
63422         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63423         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63424         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63425
63426 2007-10-29  Bruno Haible  <bruno@clisp.org>
63427
63428         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63429         contain the special marker '_cv_'.
63430         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63431         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63432         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63433         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63434         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63435         Reported by Ralf Wildenhues.
63436
63437 2007-10-29  Bruno Haible  <bruno@clisp.org>
63438
63439         * gnulib-tool (func_import): When --lgpl is not specified, set
63440         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63441         GPLv3.
63442         Reported by Simon Josefsson.
63443
63444 2007-10-28  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63447         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63448         HAVE_DECL_ISFINITE.
63449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63450         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63451         HAVE_DECL_ISFINITE.
63452
63453 2007-10-28  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63456         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63457
63458 2007-10-28  Bruno Haible  <bruno@clisp.org>
63459
63460         Fix link errors with Sun C 5.0 on Solaris 10.
63461         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63462         function is declared but not present in the compiler's libm.
63463         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63464         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63465         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63466         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63467         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63468         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63469         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63471         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63472         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63473         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63474         HAVE_DECL_FLOORL.
63475
63476 2007-10-28  Bruno Haible  <bruno@clisp.org>
63477
63478         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63479         gl_FUNC_FLOORL. Cache the result.
63480         (gl_FUNC_FLOORL): Use it.
63481         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63482         gl_FUNC_CEILL. Cache the result.
63483         (gl_FUNC_CEILL): Use it.
63484
63485         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63486         gl_FUNC_FLOOR. Cache the result.
63487         (gl_FUNC_FLOOR): Use it.
63488         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63489         gl_FUNC_CEIL. Cache the result.
63490         (gl_FUNC_CEIL): Use it.
63491
63492         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63493         gl_FUNC_FLOORF. Cache the result.
63494         (gl_FUNC_FLOORF): Use it.
63495         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63496         gl_FUNC_CEILF. Cache the result.
63497         (gl_FUNC_CEILF): Use it.
63498
63499 2007-10-28  Bruno Haible  <bruno@clisp.org>
63500
63501         * gnulib-tool: Allow specifying the LGPL version number through
63502         --lgpl=2 or --lgpl=3.
63503         (func_usage): Document --lgpl with argument.
63504         Handle --lgpl=... arguments.
63505         (func_import): Recognize also gl_LGPL calls with an argument. When
63506         --lgpl=2 is used and the module's license is just LGPL, report an
63507         error. Set sed_transform_lib_file according to the lgpl variable. In
63508         the generated files, use --lgpl or gl_LGPL invocations with argument,
63509         if necessary.
63510         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63511         an LGPv2+ license.
63512         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63513         gl_LGPL macro.
63514
63515 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63516             Bruno Haible  <bruno@clisp.org>
63517
63518         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63519         (u16_uctomb_aux): Likewise.
63520         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63521         !HAVE_INLINE.
63522         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63523
63524 2007-10-28  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63527         Invoke AM_GETTEXT_OPTION if it exists.
63528         * modules/vasprintf: Likewise.
63529         * modules/verror: Likewise.
63530         * modules/xprintf: Likewise.
63531         * modules/xvasprintf: Likewise.
63532
63533 2007-10-27  Ben Pfaff  <blp@gnu.org>
63534
63535         * lib/math.in.h: Define isfinite macro and prototypes for
63536         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63537         implementations.
63538         * m4/math_h.m4: New substitutions for isfinite module.
63539         * lib/isfinite.c: New file.
63540         * m4/isfinite.m4: New file.
63541         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63542         * modules/isfinite: New file.
63543         * modules/isfinite-tests: New file.
63544         * tests/tests-isfinite.c: New file.
63545         * doc/functions/isfinite.texi: Mention isfinite module.
63546         * MODULES.html.sh: Mention new module.
63547
63548 2007-10-27  Ben Pfaff  <blp@gnu.org>
63549
63550         Ralf Wildenhues reported that Tru64 4.0D declares the round
63551         functions but does not have definitions.
63552         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63553         cannot be found in any library, set the output variable to
63554         "missing" instead of "".
63555         * m4/round.m4: Also use our substitute if we cannot find round in
63556         any library, even if it is declared.
63557         * m4/roundf.m4: Likewise for roundf.
63558         * m4/roundl.m4: Likewise for roundl.
63559         * lib/math.in.h: Undefine roundf, round, roundl before defining
63560         their replacements, to allow for hypothetical systems where these
63561         may be defined as macros but not available in libraries.
63562
63563 2007-10-27  Bruno Haible  <bruno@clisp.org>
63564
63565         * doc/gnulib.texi: Invoke @firstparagraphindent.
63566         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63567         changes in gnulib.
63568         (Source changes): New section.
63569
63570 2007-10-26  Bruno Haible  <bruno@clisp.org>
63571
63572         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63573         borrowed from autoconf.
63574
63575 2007-10-26  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63578         strerror returned the empty string. Needed on HP-UX 11.00.
63579
63580 2007-10-24  Micah Cowan  <micah@cowan.name>
63581
63582         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63583         * build-aux/bootstrap: Remove support for now-unnecessary option,
63584         --cvs-user, and envvars CVS_USER, CVS_RSH.
63585
63586 2007-10-24  Jim Meyering  <meyering@redhat.com>
63587
63588         Avoid diagnostics from sha1sum when there is no cached checksum.
63589         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63590         if the po.s1 file hasn't been created yet.
63591
63592         * build-aux/bootstrap: Sync from coreutils:
63593         2007-10-24  Jim Meyering  <meyering@redhat.com>
63594         Get gnulib from the git repository, not from an obsolete cvs one.
63595         * build-aux/bootstrap: Suggestion from Micah Cowan.
63596         2007-10-04  Jim Meyering  <jim@meyering.net>
63597         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63598         (update_po_files): Work also when there are no .po files in po/.
63599
63600 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * README: Append ".git" to git and cg examples.
63603         Problem reported by Benoit Sigoure.
63604
63605 2007-10-23  Micah Cowan  <micah@cowan.name>
63606
63607         * users.txt: Add wget.
63608
63609 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63610
63611         Fix linking of some unistdio tests on FreeBSD.
63612         * modules/unistdio/u16-vsnprintf-tests
63613         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63614         * modules/unistdio/u16-vsprintf-tests
63615         (test_u16_vsnprintf1_LDADD): Likewise.
63616         * modules/unistdio/u32-vsnprintf-tests
63617         (test_u32_vsnprintf1_LDADD): Likewise.
63618         * modules/unistdio/u32-vsprintf-tests
63619         (test_u32_vsprintf1_LDADD): Likewise.
63620         * modules/unistdio/u8-vsnprintf-tests
63621         (test_u8_vsnprintf1_LDADD): Likewise.
63622         * modules/unistdio/u8-vsprintf-tests
63623         (test_u8_vsprintf1_LDADD): Likewise.
63624         * modules/unistdio/ulc-vsnprintf-tests
63625         (test_ulc_vsnprintf1_LDADD): Likewise.
63626         * modules/unistdio/ulc-vsprintf-tests
63627         (test_ulc_vsprintf1_LDADD): Likewise.
63628
63629         Fix linking of some uniconv tests on FreeBSD.
63630         * modules/uniconv/u16-conv-from-enc-tests
63631         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63632         * modules/uniconv/u16-conv-to-enc-tests
63633         (test_u16_conv_to_enc_LDADD): Likewise.
63634         * modules/uniconv/u16-strconv-from-enc-tests
63635         (test_u16_strconv_from_enc_LDADD): Likewise.
63636         * modules/uniconv/u16-strconv-to-enc-tests
63637         (test_u16_strconv_to_enc_LDADD): Likewise.
63638         * modules/uniconv/u32-conv-from-enc-tests
63639         (test_u32_conv_from_enc_LDADD): Likewise.
63640         * modules/uniconv/u32-conv-to-enc-tests
63641         (test_u32_conv_to_enc_LDADD): Likewise.
63642         * modules/uniconv/u32-strconv-from-enc-tests
63643         (test_u32_strconv_from_enc_LDADD): Likewise.
63644         * modules/uniconv/u32-strconv-to-enc-tests
63645         (test_u32_strconv_to_enc_LDADD): Likewise.
63646         * modules/uniconv/u8-conv-from-enc-tests
63647         (test_u8_conv_from_enc_LDADD): Likewise.
63648         * modules/uniconv/u8-conv-to-enc-tests
63649         (test_u8_conv_to_enc_LDADD): Likewise.
63650         * modules/uniconv/u8-strconv-from-enc-tests
63651         (test_u8_strconv_from_enc_LDADD): Likewise.
63652         * modules/uniconv/u8-strconv-to-enc-tests
63653         (test_u8_strconv_to_enc_LDADD): Likewise.
63654
63655 2007-10-22  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63658         size.
63659
63660 2007-10-22  Eric Blake  <ebb9@byu.net>
63661
63662         Tweak x*printf documentation.
63663         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63664         variable name and comments.
63665         Suggested by Bruno Haible.
63666
63667 2007-10-22  Bruno Haible  <bruno@clisp.org>
63668
63669         * lib/acl.c (copy_acl): Fix file name in comment.
63670
63671 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63672
63673         Fix Tru64 problem with stdbool.h.
63674         * lib/stdbool.in.h (false, true):
63675         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63676         Don't declare as an enum in this situation; it runs afoul of Tru64.
63677         Problem reported by Steven M. Schweda in
63678         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63679
63680 2007-10-22  Eric Blake  <ebb9@byu.net>
63681
63682         Also wrap vf?printf.
63683         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63684         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63685         (xvprintf, xvfprintf): New functions.
63686
63687 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63688
63689         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63690         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63691
63692         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63693         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63694
63695 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63698         by Bruno Haible.
63699
63700 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63701
63702         * lib/getloadavg.c
63703         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63704         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63705
63706         * tests/test-i-ring.c: Work for C89.
63707
63708 2007-10-22  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63711         -1u, in preprocessor expression, so that we don't test for the bug
63712         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63714
63715 2007-10-22  Eric Blake  <ebb9@byu.net>
63716
63717         * tests/test-yesno.sh: Silence stderr during test.
63718
63719 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63720
63721         * modules/crypto/gc-camellia: New file.
63722
63723         * m4/gc-camellia.m4: New file.
63724
63725         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63726
63727         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63728
63729 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63730
63731         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63732         --help to stdout.  Reported by sms@antinode.org (Steven
63733         M. Schweda).
63734
63735 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63736
63737         * users.txt: Fix link to libksba.
63738
63739 2007-10-21  Ben Pfaff  <blp@gnu.org>
63740
63741         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63742         round.c roundf implementation that depends on floorf and ceilf to
63743         be tested unconditionally.
63744
63745 2007-10-21  Ben Pfaff  <blp@gnu.org>
63746
63747         * m4/check-libm-func.m4: Removed.
63748         * m4/check-math-lib.m4: New file.
63749         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63750         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63751         definition and lack of AC_LIBOBJ([roundf]).
63752         * m4/roundl.m4: Ditto, and similarly for roundl.
63753         * modules/round: Reference new m4 file.
63754         * modules/roundf: Ditto.
63755         * modules/roundl: Ditto.
63756         * tests/test-round2.c (main): Use ROUND instead of round.
63757         Bug report from Bruno Haible.
63758
63759 2007-10-21  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63762         context.
63763
63764 2007-10-21  Bruno Haible  <bruno@clisp.org>
63765
63766         * tests/test-wcwidth.c (main): Allow negative result for some control
63767         characters.
63768
63769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63770         Needed on OSF/1 5.1.
63771
63772 2007-10-21  Bruno Haible  <bruno@clisp.org>
63773
63774         * tests/test-floorf1.c: Include isnanf.h.
63775         (main): Use isnanf() instead of isnan().
63776         * tests/test-ceilf1.c: Include isnanf.h.
63777         (main): Use isnanf() instead of isnan().
63778         * tests/test-truncf1.c: Include isnanf.h.
63779         (main): Use isnanf() instead of isnan().
63780         * tests/test-roundf1.c: Include isnanf.h.
63781         (main): Use isnanf() instead of isnan().
63782
63783 2007-10-21  Eric Blake  <ebb9@byu.net>
63784
63785         * users.txt: Update URL for m4.
63786
63787 2007-10-21  Bruno Haible  <bruno@clisp.org>
63788
63789         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63790
63791 2007-10-21  Bruno Haible  <bruno@clisp.org>
63792
63793         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63794         Git's management files if the CVS files are not present.
63795
63796 2007-10-20  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63799         gcc-3.4.x.
63800
63801 2007-10-20  Ben Pfaff  <blp@gnu.org>
63802
63803         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63804         implementations.
63805         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63806         * lib/round.c: New file.
63807         * lib/roundf.c: New file.
63808         * lib/roundl.c: New file.
63809         * m4/round.m4: New file.
63810         * m4/roundf.m4: New file.
63811         * m4/roundl.m4: New file.
63812         * m4/check-libm-func-m4: New file.
63813         * modules/math: Replace round, roundf, roundl related @VARS@ in
63814         math.in.h.
63815         * modules/round: New file.
63816         * modules/round-tests: New file.
63817         * modules/roundf: New file.
63818         * modules/roundf-tests: New file.
63819         * modules/roundl: New file.
63820         * modules/roundl-tests: New file.
63821         * tests/test-round1.c: New file.
63822         * tests/test-round2.c: New file.
63823         * tests/test-roundf1.c: New file.
63824         * tests/test-roundf2.c: New file.
63825         * tests/test-roundl.c: New file.
63826         * doc/functions/round.texi: Mention round module.
63827         * doc/functions/roundf.texi: Mention roundf module.
63828         * doc/functions/roundl.texi: Mention roundl module.
63829         * MODULES.html.sh: Mention new modules.
63830         Thanks to Bruno Haible for suggestions.
63831
63832 2007-10-20  Jim Meyering  <meyering@redhat.com>
63833
63834         * lib/xprintf.c: Include <config.h> unconditionally.
63835
63836         Change xprintf's license to GPL.
63837         * modules/xprintf (License): s/LGPL/GPL/, since this module
63838         depends on modules (exit and exitfail) which are GPL.
63839         Suggestion from Bruno Haible.
63840
63841         xprintf fixes.
63842         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63843         Use a clearer diagnostic.
63844         Patch from Bruno Haible.
63845
63846 2007-10-20  Bruno Haible  <bruno@clisp.org>
63847
63848         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63849         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63851
63852 2007-10-20  Bruno Haible  <bruno@clisp.org>
63853
63854         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63855         precision in the comparison result > x - 1 or similar.
63856         * tests/test-ceilf2.c (correct_result_p): Likewise.
63857         * tests/test-truncf2.c (correct_result_p): Likewise.
63858         * tests/test-trunc2.c (correct_result_p): Likewise.
63859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63860
63861 2007-10-20  Bruno Haible  <bruno@clisp.org>
63862
63863         * modules/ceil: New file.
63864         * m4/ceil.m4: New file.
63865         * doc/functions/ceil.texi: Mention the 'ceil' module.
63866
63867 2007-10-20  Bruno Haible  <bruno@clisp.org>
63868
63869         * modules/floor: New file.
63870         * m4/floor.m4: New file.
63871         * doc/functions/floor.texi: Mention the 'floor' module.
63872
63873 2007-10-20  Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63876         of %a.
63877         * modules/floorf-tests (Depends-on): Likewise.
63878         * modules/truncf-tests (Depends-on): Likewise.
63879         * modules/trunc-tests (Depends-on): Likewise.
63880         Reported by Ben Pfaff.
63881
63882 2007-10-19  Jim Meyering  <meyering@redhat.com>
63883
63884         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63885         Don't bother testing specific errno values.  Just test ferror.
63886
63887         New module: xprintf
63888         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63889
63890 2007-10-19  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63893         syntax.
63894         * modules/javaexec (Makefile.am): Likewise.
63895         * modules/relocatable-prog (Makefile.am): Likewise.
63896         Suggested by Jim Meyering.
63897
63898 2007-10-18  Bruno Haible  <bruno@clisp.org>
63899
63900         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63901         Reported by Jim Meyering.
63902
63903 2007-10-18  Eric Blake  <ebb9@byu.net>
63904
63905         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63906
63907 2007-10-18  Bruno Haible  <bruno@clisp.org>
63908
63909         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63910         the format string into writable memory. Needed in Fortify conditions.
63911
63912 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63913             Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63916         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63917         * modules/trim (Depends-on): Add mbchar.
63918         (configure.ac): Add gl_FUNC_MBRTOWC.
63919         (Makefile.am): Augment lib_SOURCES.
63920
63921 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         Modify glob.c to use fstatat and dirfd, to simplify it.
63924         Suggested by Eric Blake.
63925         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63926         Don't include <stdbool.h>; not used.
63927         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63928         (link_exists_p): Simplify implementation, since we can now assume
63929         dirfd and fstatat.
63930         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63931
63932 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63933
63934         * gnulib-tool (func_get_dependencies): Fix sed script to
63935         match only tests.
63936
63937 2007-10-17  Bruno Haible  <bruno@clisp.org>
63938
63939         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63940         allow locale names without encoding suffix.
63941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63942         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63943
63944 2007-10-16  Bruno Haible  <bruno@clisp.org>
63945
63946         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63947         * lib/getgroups.c (getgroups): Likewise.
63948         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63949
63950 2007-10-16  Bruno Haible  <bruno@clisp.org>
63951
63952         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63953         * modules/malloc-posix (License): Likewise.
63954         * modules/realloc-posix (License): Likewise.
63955         * modules/calloc-posix (License): Likewise.
63956         * modules/intprops (License): Change from GPL to LGPL, with
63957         Paul Eggert's approval.
63958
63959 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         Merge glibc changes into lib/glob.c.
63962
63963         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63964         2007-10-15 04:59:03 UTC.  Here are the changes:
63965
63966         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63967
63968         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63969
63970         * lib/glob.c: Add some branch prediction throughout.
63971
63972         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63973
63974         [BZ #5103]
63975         * lib/glob.c (glob): Recognize patterns starting \/.
63976
63977         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63978
63979         [BZ #3996]
63980         * lib/glob.c (attribute_hidden): Define if not defined.
63981         (glob): Unescape dirname, filename or username when needed and not
63982         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63983         is NULL.  Handle unescaped [ in pattern without closing ].
63984         Don't pass GLOB_CHECK down to recursive glob for directories.
63985         (__glob_pattern_type): New function.
63986         (__glob_pattern_p): Implement using __glob_pattern_type.
63987         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63988         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63989         Remove unreachable code.
63990
63991         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63992
63993         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63994         explain why there are no leaks.
63995
63996         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63997
63998         [BZ #3253]
63999         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64000         time, rather allocate increasingly bigger arrays of pointers, if
64001         possible with alloca, if too large with malloc.
64002
64003 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64006         Problem reported by H.Merijn Brand in
64007         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64008         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64009         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64010
64011 2007-10-15  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64014         with explicit rpl_ prefix.
64015         * lib/fopen.c (fopen): Likewise.
64016         * lib/freopen.c (freopen): Likewise.
64017         * lib/iconv.c (iconv): Likewise.
64018         * lib/iconv_close.c (iconv_close): Likewise.
64019
64020 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64021
64022         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64023
64024 2007-10-15  Bruno Haible  <bruno@clisp.org>
64025
64026         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64027         <stddef.h> instead of <stdlib.h> since we only need NULL.
64028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64029
64030 2007-10-15  Bruno Haible  <bruno@clisp.org>
64031
64032         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64033         Replace paragraph talking about LIBOBJS.
64034         Reported by Colin Watson <cjwatson@debian.org>.
64035
64036 2007-10-15  Bruno Haible  <bruno@clisp.org>
64037
64038         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64039         <stdlib.h> before using NULL.
64040
64041 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64042
64043         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64044         Reported by Albert Chin <china@thewrittenword.com>.
64045
64046 2007-10-14  Bruno Haible  <bruno@clisp.org>
64047
64048         * modules/iconv_open-utf-tests: New file.
64049         * tests/test-iconv-utf.c: New file.
64050
64051         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64052         * modules/iconv_open-utf: New file.
64053         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64054         (iconv, iconv_close): New declarations.
64055         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64056         be defined.
64057         (iconv_open): Add special handling of conversion between UTF-8 and
64058         UTF-{16,32}{BE,LE}.
64059         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64060         * lib/iconv_close.c: New file.
64061         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64062         gl_FUNC_ICONV_OPEN.
64063         (gl_FUNC_ICONV_OPEN): Use it.
64064         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64065         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64066         and REPLACE_ICONV_UTF.
64067         * modules/iconv_open (Depends-on): Add c-strcase.
64068         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64069         ICONV_CONST.
64070         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64071
64072 2007-10-13  Albert Chin  <china@thewrittenword.com>
64073             Bruno Haible  <bruno@clisp.org>
64074
64075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64076         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64077
64078 2007-10-13  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64081         defined, use the ISO C99 inline semantics.
64082         * lib/argp.h (ARGP_EI): Likewise.
64083
64084 2007-10-13  Bruno Haible  <bruno@clisp.org>
64085
64086         Handle 'inline' change in gcc 4.3.0.
64087         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64088         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64089         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64090         argp_fmtstream_point): Disable 'extern' declaration if the function
64091         definition is going to be provided inline.
64092         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64093         semantics, not the ISO C99 inline semantics.
64094         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64095         'extern' declaration if the function definition is going to be provided
64096         inline.
64097         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64098         the GNU C inline semantics, not the ISO C99 inline semantics. With
64099         GCC 4.2, avoid a warning.
64100
64101 2007-10-13  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/freading.h (freading): Enable the use of __freading for
64104         glibc >= 2.7.
64105         * lib/freading.c (freading): Likewise.
64106
64107 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64110         "warning: C99 inline functions are not supported; using GNU89".
64111
64112 2007-10-12  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64115         of 2.
64116         * tests/test-ceilf2.c: New file.
64117         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64118
64119         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64120         * modules/ceilf-tests: Update.
64121
64122 2007-10-12  Bruno Haible  <bruno@clisp.org>
64123
64124         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64125         of 2.
64126         * tests/test-floorf2.c: New file.
64127         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64128
64129         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64130         * modules/floorf-tests: Update.
64131
64132 2007-10-12  Bruno Haible  <bruno@clisp.org>
64133
64134         * tests/test-trunc2.c: New file.
64135         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64136
64137         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64138         * modules/trunc-tests: Update.
64139
64140 2007-10-12  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64143         of 2.
64144         * tests/test-truncf2.c: New file.
64145         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64146
64147         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64148         * modules/truncf-tests: Update.
64149
64150 2007-10-11  Eric Blake  <ebb9@byu.net>
64151
64152         Don't claim strerror is broken on Interix.
64153         * doc/functions/strerror.texi (strerror): Known broken systems are
64154         now Solaris 8, and not Interix.
64155         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64156         Interix on cross-compile.
64157         Reported by Martin Koeppe in
64158         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64159
64160 2007-10-11  Bruno Haible  <bruno@clisp.org>
64161
64162         * modules/i-ring-tests: New file.
64163         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64164         instead of assert.
64165
64166 2007-10-11  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/filenamecat-tests: New file.
64169         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64170         * lib/filenamecat.c: Remove test code.
64171
64172 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64175
64176         * lib/strerror.c: Include <string.h> always, to test interface,
64177         and to remove the need for the dummy.
64178         Include intprops.h to compute width instead of doing it ourselves
64179         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64180         (strerror): Define it to return NULL if there's no system strerror.
64181         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64182         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64183         ancient pre-strerror Unix systems well any more.  Saying "unknown
64184         system error" is enough.
64185         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64186         simpler strerror.c implementation.
64187         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64188         Simplify the tests to reflect the simpler strerror implementation.
64189         * modules/strerror (Depends-on): Add intprops.
64190
64191 2007-10-09  Eric Blake  <ebb9@byu.net>
64192
64193         Silence test-fpending.
64194         * modules/fpending-tests (Files): Add wrapper script.
64195         * tests/test-fpending.sh: New file.
64196
64197 2007-10-09  Bruno Haible  <bruno@clisp.org>
64198
64199         * MODULES.html.sh (func_module): Don't create a hyperlink for
64200         function names like 'printf_frexp'.
64201         (Misc): Add crc, memxor.
64202         (Characteristics of floating types): New section.
64203         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64204         isnanf-nolibm, signbit, trunc, truncf, truncl.
64205         (Enhancements for ISO C 99 functions): New subsection Input/output.
64206         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64207         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64208         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64209         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64210         (Enhancements for POSIX:2001 functions): Add chdir-long.
64211         (File system functions): Add areadlink, chdir-safer, read-file.
64212         Remove cycle-check.
64213         (File system as inode set): New section.
64214         (Date and time): Add gethrxtime.
64215         (Multithreading): Add openmp.
64216         (Internationalization functions): Add localename.
64217         (Unicode string functions): Add unistr/u*-mbsnlen.
64218         (Support for maintaining and releasing projects): Add git-version-gen.
64219         (Lone files): Remove directories.
64220
64221 2007-10-08  Ben Pfaff  <blp@gnu.org>
64222
64223         * lib/xmalloca.h: Fix typo in comment.
64224
64225 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64228         when avoiding problems with integer overflow.  Use a portable test
64229         instead.
64230
64231 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64232
64233         * modules/dummy (License): Change to LGPLv2+.
64234         * modules/float (License): Likewise
64235         * modules/realloc (License): Likewise
64236         * modules/stdlib (License): Likewise
64237
64238 2007-10-07  Bruno Haible  <bruno@clisp.org>
64239
64240         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64241         * floor.c (TWO_MANT_DIG): Likewise.
64242         * ceil.c (TWO_MANT_DIG): Likewise.
64243         Reported by Ben Pfaff.
64244
64245 2007-10-07  Bruno Haible  <bruno@clisp.org>
64246
64247         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64248         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64249         * lib/frexp.c (FUNC): Likewise.
64250         * lib/printf-frexp.h (printf_frexp): Likewise.
64251         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64252         * lib/printf-frexp.c (FUNC): Likewise.
64253         Suggested by Jim Meyering.
64254
64255 2007-10-07  Jim Meyering  <meyering@redhat.com>
64256
64257         Make xnanosleep's integer overflow test more robust.
64258         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64259         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64260
64261 2007-10-07  Bruno Haible  <bruno@clisp.org>
64262
64263         * NEWS: Mention the license change.
64264
64265         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64266         abbreviations in the modules files.
64267
64268         Change copyright notice from GPLv2+ to GPLv3+.
64269         * README: Change copyright notice.
64270         * MODULES.html.sh: Likewise.
64271         * build-aux/bootstrap.conf: Likewise.
64272         * build-aux/config.libpath: Likewise.
64273         * build-aux/csharpcomp.sh.in: Likewise.
64274         * build-aux/csharpexec.sh.in: Likewise.
64275         * build-aux/install-reloc: Likewise.
64276         * build-aux/javacomp.sh.in: Likewise.
64277         * build-aux/javaexec.sh.in: Likewise.
64278         * build-aux/ldd.sh.in: Likewise.
64279         * build-aux/reloc-ldflags: Likewise.
64280         * build-aux/relocatable.sh.in: Likewise.
64281         * build-aux/x-to-1.in: Likewise.
64282         * check-module: Likewise.
64283         * config/srclistvars.sh: Likewise.
64284         * gnulib-tool: Likewise.
64285         * lib/acl-internal.h: Likewise.
64286         * lib/acl.c: Likewise.
64287         * lib/acl.h: Likewise.
64288         * lib/acl_entries.c: Likewise.
64289         * lib/areadlink-with-size.c: Likewise.
64290         * lib/areadlink.c: Likewise.
64291         * lib/areadlink.h: Likewise.
64292         * lib/argmatch.c: Likewise.
64293         * lib/argmatch.h: Likewise.
64294         * lib/argp-ba.c: Likewise.
64295         * lib/argp-eexst.c: Likewise.
64296         * lib/argp-fmtstream.c: Likewise.
64297         * lib/argp-fmtstream.h: Likewise.
64298         * lib/argp-fs-xinl.c: Likewise.
64299         * lib/argp-help.c: Likewise.
64300         * lib/argp-namefrob.h: Likewise.
64301         * lib/argp-parse.c: Likewise.
64302         * lib/argp-pin.c: Likewise.
64303         * lib/argp-pv.c: Likewise.
64304         * lib/argp-pvh.c: Likewise.
64305         * lib/argp-xinl.c: Likewise.
64306         * lib/argp.h: Likewise.
64307         * lib/at-func.c: Likewise.
64308         * lib/atanl.c: Likewise.
64309         * lib/backupfile.c: Likewise.
64310         * lib/backupfile.h: Likewise.
64311         * lib/basename.c: Likewise.
64312         * lib/binary-io.h: Likewise.
64313         * lib/byteswap.in.h: Likewise.
64314         * lib/c-stack.c: Likewise.
64315         * lib/c-stack.h: Likewise.
64316         * lib/c-strcasestr.c: Likewise.
64317         * lib/c-strcasestr.h: Likewise.
64318         * lib/c-strstr.c: Likewise.
64319         * lib/c-strstr.h: Likewise.
64320         * lib/c-strtod.c: Likewise.
64321         * lib/calloc.c: Likewise.
64322         * lib/canon-host.c: Likewise.
64323         * lib/canon-host.h: Likewise.
64324         * lib/canonicalize-lgpl.c: Likewise.
64325         * lib/canonicalize.c: Likewise.
64326         * lib/canonicalize.h: Likewise.
64327         * lib/ceil.c: Likewise.
64328         * lib/ceilf.c: Likewise.
64329         * lib/ceill.c: Likewise.
64330         * lib/chdir-long.c: Likewise.
64331         * lib/chdir-long.h: Likewise.
64332         * lib/chdir-safer.c: Likewise.
64333         * lib/chdir-safer.h: Likewise.
64334         * lib/chown.c: Likewise.
64335         * lib/classpath.c: Likewise.
64336         * lib/classpath.h: Likewise.
64337         * lib/clean-temp.c: Likewise.
64338         * lib/clean-temp.h: Likewise.
64339         * lib/cloexec.c: Likewise.
64340         * lib/close-stream.c: Likewise.
64341         * lib/closein.c: Likewise.
64342         * lib/closein.h: Likewise.
64343         * lib/closeout.c: Likewise.
64344         * lib/closeout.h: Likewise.
64345         * lib/concat-filename.c: Likewise.
64346         * lib/copy-file.c: Likewise.
64347         * lib/copy-file.h: Likewise.
64348         * lib/count-one-bits.h: Likewise.
64349         * lib/crc.c: Likewise.
64350         * lib/crc.h: Likewise.
64351         * lib/creat-safer.c: Likewise.
64352         * lib/csharpcomp.c: Likewise.
64353         * lib/csharpcomp.h: Likewise.
64354         * lib/csharpexec.c: Likewise.
64355         * lib/csharpexec.h: Likewise.
64356         * lib/cycle-check.c: Likewise.
64357         * lib/cycle-check.h: Likewise.
64358         * lib/diacrit.c: Likewise.
64359         * lib/diacrit.h: Likewise.
64360         * lib/diffseq.h: Likewise.
64361         * lib/dirchownmod.c: Likewise.
64362         * lib/dirent.in.h: Likewise.
64363         * lib/dirfd.c: Likewise.
64364         * lib/dirfd.h: Likewise.
64365         * lib/dirname.c: Likewise.
64366         * lib/dirname.h: Likewise.
64367         * lib/dummy.c: Likewise.
64368         * lib/dup-safer.c: Likewise.
64369         * lib/dup2.c: Likewise.
64370         * lib/eealloc.h: Likewise.
64371         * lib/error.c: Likewise.
64372         * lib/error.h: Likewise.
64373         * lib/euidaccess.c: Likewise.
64374         * lib/exclude.c: Likewise.
64375         * lib/exclude.h: Likewise.
64376         * lib/execute.c: Likewise.
64377         * lib/execute.h: Likewise.
64378         * lib/exitfail.c: Likewise.
64379         * lib/exitfail.h: Likewise.
64380         * lib/expl.c: Likewise.
64381         * lib/fatal-signal.c: Likewise.
64382         * lib/fatal-signal.h: Likewise.
64383         * lib/fbufmode.c: Likewise.
64384         * lib/fbufmode.h: Likewise.
64385         * lib/fchdir.c: Likewise.
64386         * lib/fchmodat.c: Likewise.
64387         * lib/fchownat.c: Likewise.
64388         * lib/fcntl--.h: Likewise.
64389         * lib/fcntl-safer.h: Likewise.
64390         * lib/fcntl.in.h: Likewise.
64391         * lib/fd-safer.c: Likewise.
64392         * lib/fflush.c: Likewise.
64393         * lib/file-has-acl.c: Likewise.
64394         * lib/file-set.c: Likewise.
64395         * lib/file-type.c: Likewise.
64396         * lib/file-type.h: Likewise.
64397         * lib/fileblocks.c: Likewise.
64398         * lib/filemode.c: Likewise.
64399         * lib/filemode.h: Likewise.
64400         * lib/filename.h: Likewise.
64401         * lib/filenamecat.c: Likewise.
64402         * lib/filenamecat.h: Likewise.
64403         * lib/findprog.c: Likewise.
64404         * lib/findprog.h: Likewise.
64405         * lib/float.in.h: Likewise.
64406         * lib/floor.c: Likewise.
64407         * lib/floorf.c: Likewise.
64408         * lib/floorl.c: Likewise.
64409         * lib/fopen-safer.c: Likewise.
64410         * lib/fopen.c: Likewise.
64411         * lib/fpending.c: Likewise.
64412         * lib/fpending.h: Likewise.
64413         * lib/fprintf.c: Likewise.
64414         * lib/fprintftime.h: Likewise.
64415         * lib/fpucw.h: Likewise.
64416         * lib/fpurge.c: Likewise.
64417         * lib/fpurge.h: Likewise.
64418         * lib/freadable.c: Likewise.
64419         * lib/freadable.h: Likewise.
64420         * lib/freadahead.c: Likewise.
64421         * lib/freadahead.h: Likewise.
64422         * lib/freading.c: Likewise.
64423         * lib/freading.h: Likewise.
64424         * lib/free.c: Likewise.
64425         * lib/freopen.c: Likewise.
64426         * lib/frexp.c: Likewise.
64427         * lib/frexpl.c: Likewise.
64428         * lib/fseek.c: Likewise.
64429         * lib/fseterr.c: Likewise.
64430         * lib/fseterr.h: Likewise.
64431         * lib/fstatat.c: Likewise.
64432         * lib/fstrcmp.c: Likewise.
64433         * lib/fstrcmp.h: Likewise.
64434         * lib/fsusage.c: Likewise.
64435         * lib/fsusage.h: Likewise.
64436         * lib/ftell.c: Likewise.
64437         * lib/ftello.c: Likewise.
64438         * lib/fts-cycle.c: Likewise.
64439         * lib/fts.c: Likewise.
64440         * lib/fts_.h: Likewise.
64441         * lib/full-read.c: Likewise.
64442         * lib/full-read.h: Likewise.
64443         * lib/full-write.c: Likewise.
64444         * lib/full-write.h: Likewise.
64445         * lib/fwritable.c: Likewise.
64446         * lib/fwritable.h: Likewise.
64447         * lib/fwriteerror.c: Likewise.
64448         * lib/fwriteerror.h: Likewise.
64449         * lib/fwriting.c: Likewise.
64450         * lib/fwriting.h: Likewise.
64451         * lib/gcd.c: Likewise.
64452         * lib/gcd.h: Likewise.
64453         * lib/getcwd.c: Likewise.
64454         * lib/getdate.h: Likewise.
64455         * lib/getdate.y: Likewise.
64456         * lib/getdomainname.c: Likewise.
64457         * lib/getdomainname.h: Likewise.
64458         * lib/getgroups.c: Likewise.
64459         * lib/gethostname.c: Likewise.
64460         * lib/gethrxtime.c: Likewise.
64461         * lib/gethrxtime.h: Likewise.
64462         * lib/getloadavg.c: Likewise.
64463         * lib/getndelim2.c: Likewise.
64464         * lib/getndelim2.h: Likewise.
64465         * lib/getnline.c: Likewise.
64466         * lib/getnline.h: Likewise.
64467         * lib/getopt.c: Likewise.
64468         * lib/getopt.in.h: Likewise.
64469         * lib/getopt1.c: Likewise.
64470         * lib/getopt_int.h: Likewise.
64471         * lib/getpagesize.h: Likewise.
64472         * lib/getsubopt.c: Likewise.
64473         * lib/gettime.c: Likewise.
64474         * lib/getugroups.c: Likewise.
64475         * lib/getugroups.h: Likewise.
64476         * lib/getusershell.c: Likewise.
64477         * lib/gl_anyavltree_list1.h: Likewise.
64478         * lib/gl_anyavltree_list2.h: Likewise.
64479         * lib/gl_anyhash_list1.h: Likewise.
64480         * lib/gl_anyhash_list2.h: Likewise.
64481         * lib/gl_anylinked_list1.h: Likewise.
64482         * lib/gl_anylinked_list2.h: Likewise.
64483         * lib/gl_anyrbtree_list1.h: Likewise.
64484         * lib/gl_anyrbtree_list2.h: Likewise.
64485         * lib/gl_anytree_list1.h: Likewise.
64486         * lib/gl_anytree_list2.h: Likewise.
64487         * lib/gl_anytree_oset.h: Likewise.
64488         * lib/gl_anytreehash_list1.h: Likewise.
64489         * lib/gl_anytreehash_list2.h: Likewise.
64490         * lib/gl_array_list.c: Likewise.
64491         * lib/gl_array_list.h: Likewise.
64492         * lib/gl_array_oset.c: Likewise.
64493         * lib/gl_array_oset.h: Likewise.
64494         * lib/gl_avltree_list.c: Likewise.
64495         * lib/gl_avltree_list.h: Likewise.
64496         * lib/gl_avltree_oset.c: Likewise.
64497         * lib/gl_avltree_oset.h: Likewise.
64498         * lib/gl_avltreehash_list.c: Likewise.
64499         * lib/gl_avltreehash_list.h: Likewise.
64500         * lib/gl_carray_list.c: Likewise.
64501         * lib/gl_carray_list.h: Likewise.
64502         * lib/gl_linked_list.c: Likewise.
64503         * lib/gl_linked_list.h: Likewise.
64504         * lib/gl_linkedhash_list.c: Likewise.
64505         * lib/gl_linkedhash_list.h: Likewise.
64506         * lib/gl_list.c: Likewise.
64507         * lib/gl_list.h: Likewise.
64508         * lib/gl_oset.c: Likewise.
64509         * lib/gl_oset.h: Likewise.
64510         * lib/gl_rbtree_list.c: Likewise.
64511         * lib/gl_rbtree_list.h: Likewise.
64512         * lib/gl_rbtree_oset.c: Likewise.
64513         * lib/gl_rbtree_oset.h: Likewise.
64514         * lib/gl_rbtreehash_list.c: Likewise.
64515         * lib/gl_rbtreehash_list.h: Likewise.
64516         * lib/gl_sublist.c: Likewise.
64517         * lib/gl_sublist.h: Likewise.
64518         * lib/group-member.c: Likewise.
64519         * lib/group-member.h: Likewise.
64520         * lib/hard-locale.c: Likewise.
64521         * lib/hard-locale.h: Likewise.
64522         * lib/hash-pjw.c: Likewise.
64523         * lib/hash-pjw.h: Likewise.
64524         * lib/hash-triple.c: Likewise.
64525         * lib/hash.c: Likewise.
64526         * lib/hash.h: Likewise.
64527         * lib/human.c: Likewise.
64528         * lib/human.h: Likewise.
64529         * lib/i-ring.c: Likewise.
64530         * lib/i-ring.h: Likewise.
64531         * lib/idcache.c: Likewise.
64532         * lib/imaxabs.c: Likewise.
64533         * lib/imaxdiv.c: Likewise.
64534         * lib/inet_pton.c: Likewise.
64535         * lib/inet_pton.h: Likewise.
64536         * lib/intprops.h: Likewise.
64537         * lib/inttostr.c: Likewise.
64538         * lib/inttostr.h: Likewise.
64539         * lib/inttypes.in.h: Likewise.
64540         * lib/isapipe.c: Likewise.
64541         * lib/isdir.c: Likewise.
64542         * lib/isnan.c: Likewise.
64543         * lib/isnan.h: Likewise.
64544         * lib/isnanf.c: Likewise.
64545         * lib/isnanf.h: Likewise.
64546         * lib/isnanl-nolibm.h: Likewise.
64547         * lib/isnanl.c: Likewise.
64548         * lib/isnanl.h: Likewise.
64549         * lib/javacomp.c: Likewise.
64550         * lib/javacomp.h: Likewise.
64551         * lib/javaexec.c: Likewise.
64552         * lib/javaexec.h: Likewise.
64553         * lib/javaversion.c: Likewise.
64554         * lib/javaversion.h: Likewise.
64555         * lib/javaversion.java: Likewise.
64556         * lib/lbrkprop.h: Likewise.
64557         * lib/lchmod.h: Likewise.
64558         * lib/lchown.c: Likewise.
64559         * lib/ldexpl.c: Likewise.
64560         * lib/linebreak.c: Likewise.
64561         * lib/linebreak.h: Likewise.
64562         * lib/linebuffer.c: Likewise.
64563         * lib/linebuffer.h: Likewise.
64564         * lib/locale.in.h: Likewise.
64565         * lib/logl.c: Likewise.
64566         * lib/long-options.c: Likewise.
64567         * lib/long-options.h: Likewise.
64568         * lib/lstat.c: Likewise.
64569         * lib/lstat.h: Likewise.
64570         * lib/math.in.h: Likewise.
64571         * lib/mbchar.c: Likewise.
64572         * lib/mbchar.h: Likewise.
64573         * lib/mbfile.h: Likewise.
64574         * lib/mbiter.h: Likewise.
64575         * lib/mbscasecmp.c: Likewise.
64576         * lib/mbscasestr.c: Likewise.
64577         * lib/mbschr.c: Likewise.
64578         * lib/mbscspn.c: Likewise.
64579         * lib/mbslen.c: Likewise.
64580         * lib/mbsncasecmp.c: Likewise.
64581         * lib/mbsnlen.c: Likewise.
64582         * lib/mbspbrk.c: Likewise.
64583         * lib/mbspcasecmp.c: Likewise.
64584         * lib/mbsrchr.c: Likewise.
64585         * lib/mbssep.c: Likewise.
64586         * lib/mbsspn.c: Likewise.
64587         * lib/mbsstr.c: Likewise.
64588         * lib/mbstok_r.c: Likewise.
64589         * lib/mbswidth.c: Likewise.
64590         * lib/mbswidth.h: Likewise.
64591         * lib/mbuiter.h: Likewise.
64592         * lib/memcasecmp.c: Likewise.
64593         * lib/memcasecmp.h: Likewise.
64594         * lib/memchr.c: Likewise.
64595         * lib/memcmp.c: Likewise.
64596         * lib/memcoll.c: Likewise.
64597         * lib/memcoll.h: Likewise.
64598         * lib/memcpy.c: Likewise.
64599         * lib/memrchr.c: Likewise.
64600         * lib/mkancesdirs.c: Likewise.
64601         * lib/mkdir-p.c: Likewise.
64602         * lib/mkdir-p.h: Likewise.
64603         * lib/mkdir.c: Likewise.
64604         * lib/mkdirat.c: Likewise.
64605         * lib/mkdtemp.c: Likewise.
64606         * lib/mkstemp-safer.c: Likewise.
64607         * lib/mkstemp.c: Likewise.
64608         * lib/modechange.c: Likewise.
64609         * lib/modechange.h: Likewise.
64610         * lib/mountlist.c: Likewise.
64611         * lib/mountlist.h: Likewise.
64612         * lib/mpsort.c: Likewise.
64613         * lib/nanosleep.c: Likewise.
64614         * lib/obstack.c: Likewise.
64615         * lib/obstack.h: Likewise.
64616         * lib/open-safer.c: Likewise.
64617         * lib/open.c: Likewise.
64618         * lib/openat-die.c: Likewise.
64619         * lib/openat-priv.h: Likewise.
64620         * lib/openat-proc.c: Likewise.
64621         * lib/openat.c: Likewise.
64622         * lib/openat.h: Likewise.
64623         * lib/pagealign_alloc.c: Likewise.
64624         * lib/pagealign_alloc.h: Likewise.
64625         * lib/physmem.c: Likewise.
64626         * lib/physmem.h: Likewise.
64627         * lib/pipe-safer.c: Likewise.
64628         * lib/pipe.c: Likewise.
64629         * lib/pipe.h: Likewise.
64630         * lib/posixtm.c: Likewise.
64631         * lib/posixtm.h: Likewise.
64632         * lib/posixver.c: Likewise.
64633         * lib/printf-frexp.c: Likewise.
64634         * lib/printf-frexp.h: Likewise.
64635         * lib/printf-frexpl.c: Likewise.
64636         * lib/printf-frexpl.h: Likewise.
64637         * lib/printf.c: Likewise.
64638         * lib/progname.c: Likewise.
64639         * lib/progname.h: Likewise.
64640         * lib/progreloc.c: Likewise.
64641         * lib/putenv.c: Likewise.
64642         * lib/quote.c: Likewise.
64643         * lib/quote.h: Likewise.
64644         * lib/quotearg.c: Likewise.
64645         * lib/quotearg.h: Likewise.
64646         * lib/raise.c: Likewise.
64647         * lib/readline.c: Likewise.
64648         * lib/readline.h: Likewise.
64649         * lib/readlink.c: Likewise.
64650         * lib/readtokens.c: Likewise.
64651         * lib/readtokens.h: Likewise.
64652         * lib/readtokens0.c: Likewise.
64653         * lib/readtokens0.h: Likewise.
64654         * lib/readutmp.c: Likewise.
64655         * lib/readutmp.h: Likewise.
64656         * lib/realloc.c: Likewise.
64657         * lib/relocwrapper.c: Likewise.
64658         * lib/rename-dest-slash.c: Likewise.
64659         * lib/rename.c: Likewise.
64660         * lib/rmdir.c: Likewise.
64661         * lib/rpmatch.c: Likewise.
64662         * lib/safe-read.c: Likewise.
64663         * lib/safe-read.h: Likewise.
64664         * lib/safe-write.c: Likewise.
64665         * lib/safe-write.h: Likewise.
64666         * lib/same-inode.h: Likewise.
64667         * lib/same.c: Likewise.
64668         * lib/same.h: Likewise.
64669         * lib/save-cwd.c: Likewise.
64670         * lib/save-cwd.h: Likewise.
64671         * lib/savedir.c: Likewise.
64672         * lib/savedir.h: Likewise.
64673         * lib/savewd.c: Likewise.
64674         * lib/savewd.h: Likewise.
64675         * lib/search.in.h: Likewise.
64676         * lib/setenv.c: Likewise.
64677         * lib/setenv.h: Likewise.
64678         * lib/settime.c: Likewise.
64679         * lib/sh-quote.c: Likewise.
64680         * lib/sh-quote.h: Likewise.
64681         * lib/sig2str.c: Likewise.
64682         * lib/sig2str.h: Likewise.
64683         * lib/signal.in.h: Likewise.
64684         * lib/signbitd.c: Likewise.
64685         * lib/signbitf.c: Likewise.
64686         * lib/signbitl.c: Likewise.
64687         * lib/sigprocmask.c: Likewise.
64688         * lib/sincosl.c: Likewise.
64689         * lib/sleep.c: Likewise.
64690         * lib/sprintf.c: Likewise.
64691         * lib/sqrtl.c: Likewise.
64692         * lib/stat-time.h: Likewise.
64693         * lib/stdio--.h: Likewise.
64694         * lib/stdio-safer.h: Likewise.
64695         * lib/stdlib--.h: Likewise.
64696         * lib/stdlib-safer.h: Likewise.
64697         * lib/stdlib.in.h: Likewise.
64698         * lib/stpcpy.c: Likewise.
64699         * lib/stpncpy.c: Likewise.
64700         * lib/strchrnul.c: Likewise.
64701         * lib/strcspn.c: Likewise.
64702         * lib/strerror.c: Likewise.
64703         * lib/strftime.c: Likewise.
64704         * lib/strftime.h: Likewise.
64705         * lib/striconveh.c: Likewise.
64706         * lib/striconveh.h: Likewise.
64707         * lib/striconveha.c: Likewise.
64708         * lib/striconveha.h: Likewise.
64709         * lib/stripslash.c: Likewise.
64710         * lib/strnlen1.c: Likewise.
64711         * lib/strnlen1.h: Likewise.
64712         * lib/strtod.c: Likewise.
64713         * lib/strtoimax.c: Likewise.
64714         * lib/strtok_r.c: Likewise.
64715         * lib/strtol.c: Likewise.
64716         * lib/strtoll.c: Likewise.
64717         * lib/strtoul.c: Likewise.
64718         * lib/strtoull.c: Likewise.
64719         * lib/sysexits.in.h: Likewise.
64720         * lib/tempname.c: Likewise.
64721         * lib/tempname.h: Likewise.
64722         * lib/timespec.h: Likewise.
64723         * lib/tls.c: Likewise.
64724         * lib/tls.h: Likewise.
64725         * lib/tmpdir.c: Likewise.
64726         * lib/tmpdir.h: Likewise.
64727         * lib/tmpfile-safer.c: Likewise.
64728         * lib/tmpfile.c: Likewise.
64729         * lib/trigl.c: Likewise.
64730         * lib/trigl.h: Likewise.
64731         * lib/trim.c: Likewise.
64732         * lib/trim.h: Likewise.
64733         * lib/trunc.c: Likewise.
64734         * lib/truncf.c: Likewise.
64735         * lib/truncl.c: Likewise.
64736         * lib/tsearch.c: Likewise.
64737         * lib/unicodeio.c: Likewise.
64738         * lib/unicodeio.h: Likewise.
64739         * lib/unistd--.h: Likewise.
64740         * lib/unistd-safer.h: Likewise.
64741         * lib/unistdio/ulc-fprintf.c: Likewise.
64742         * lib/unistdio/ulc-vfprintf.c: Likewise.
64743         * lib/unlinkdir.c: Likewise.
64744         * lib/unlinkdir.h: Likewise.
64745         * lib/unlocked-io.h: Likewise.
64746         * lib/unsetenv.c: Likewise.
64747         * lib/userspec.c: Likewise.
64748         * lib/utime.c: Likewise.
64749         * lib/utimecmp.c: Likewise.
64750         * lib/utimecmp.h: Likewise.
64751         * lib/utimens.c: Likewise.
64752         * lib/verify.h: Likewise.
64753         * lib/verror.c: Likewise.
64754         * lib/verror.h: Likewise.
64755         * lib/version-etc-fsf.c: Likewise.
64756         * lib/version-etc.c: Likewise.
64757         * lib/version-etc.h: Likewise.
64758         * lib/vfprintf.c: Likewise.
64759         * lib/vprintf.c: Likewise.
64760         * lib/vsprintf.c: Likewise.
64761         * lib/w32spawn.h: Likewise.
64762         * lib/wait-process.c: Likewise.
64763         * lib/wait-process.h: Likewise.
64764         * lib/wcwidth.c: Likewise.
64765         * lib/write-any-file.c: Likewise.
64766         * lib/xalloc-die.c: Likewise.
64767         * lib/xalloc.h: Likewise.
64768         * lib/xasprintf.c: Likewise.
64769         * lib/xgetcwd.c: Likewise.
64770         * lib/xgetcwd.h: Likewise.
64771         * lib/xgetdomainname.c: Likewise.
64772         * lib/xgetdomainname.h: Likewise.
64773         * lib/xgethostname.c: Likewise.
64774         * lib/xmalloc.c: Likewise.
64775         * lib/xmalloca.c: Likewise.
64776         * lib/xmalloca.h: Likewise.
64777         * lib/xmemcoll.c: Likewise.
64778         * lib/xnanosleep.c: Likewise.
64779         * lib/xreadlink.c: Likewise.
64780         * lib/xreadlink.h: Likewise.
64781         * lib/xsetenv.c: Likewise.
64782         * lib/xsetenv.h: Likewise.
64783         * lib/xstriconv.c: Likewise.
64784         * lib/xstriconv.h: Likewise.
64785         * lib/xstrndup.c: Likewise.
64786         * lib/xstrndup.h: Likewise.
64787         * lib/xstrtod.c: Likewise.
64788         * lib/xstrtod.h: Likewise.
64789         * lib/xstrtol-error.c: Likewise.
64790         * lib/xstrtol.c: Likewise.
64791         * lib/xstrtol.h: Likewise.
64792         * lib/xtime.h: Likewise.
64793         * lib/xvasprintf.c: Likewise.
64794         * lib/xvasprintf.h: Likewise.
64795         * lib/yesno.c: Likewise.
64796         * lib/yesno.h: Likewise.
64797         * posix-modules: Likewise.
64798         * tests/test-alloca-opt.c: Likewise.
64799         * tests/test-arcfour.c: Likewise.
64800         * tests/test-arctwo.c: Likewise.
64801         * tests/test-argmatch.c: Likewise.
64802         * tests/test-argp-2.sh: Likewise.
64803         * tests/test-argp.c: Likewise.
64804         * tests/test-arpa_inet.c: Likewise.
64805         * tests/test-array_list.c: Likewise.
64806         * tests/test-array_oset.c: Likewise.
64807         * tests/test-atexit.c: Likewise.
64808         * tests/test-avltree_list.c: Likewise.
64809         * tests/test-avltree_oset.c: Likewise.
64810         * tests/test-avltreehash_list.c: Likewise.
64811         * tests/test-base64.c: Likewise.
64812         * tests/test-binary-io.c: Likewise.
64813         * tests/test-byteswap.c: Likewise.
64814         * tests/test-c-ctype.c: Likewise.
64815         * tests/test-c-strcasecmp.c: Likewise.
64816         * tests/test-c-strcasestr.c: Likewise.
64817         * tests/test-c-strncasecmp.c: Likewise.
64818         * tests/test-c-strstr.c: Likewise.
64819         * tests/test-canonicalize-lgpl.c: Likewise.
64820         * tests/test-canonicalize.c: Likewise.
64821         * tests/test-carray_list.c: Likewise.
64822         * tests/test-ceilf.c: Likewise.
64823         * tests/test-ceill.c: Likewise.
64824         * tests/test-count-one-bits.c: Likewise.
64825         * tests/test-crc.c: Likewise.
64826         * tests/test-dirname.c: Likewise.
64827         * tests/test-fbufmode.c: Likewise.
64828         * tests/test-fcntl.c: Likewise.
64829         * tests/test-fflush.c: Likewise.
64830         * tests/test-floorf.c: Likewise.
64831         * tests/test-floorl.c: Likewise.
64832         * tests/test-fopen.c: Likewise.
64833         * tests/test-fprintf-posix.c: Likewise.
64834         * tests/test-fprintf-posix.h: Likewise.
64835         * tests/test-fpurge.c: Likewise.
64836         * tests/test-freadable.c: Likewise.
64837         * tests/test-freadahead.c: Likewise.
64838         * tests/test-freading.c: Likewise.
64839         * tests/test-freopen.c: Likewise.
64840         * tests/test-frexp.c: Likewise.
64841         * tests/test-frexpl.c: Likewise.
64842         * tests/test-fseek.c: Likewise.
64843         * tests/test-fseeko.c: Likewise.
64844         * tests/test-fseterr.c: Likewise.
64845         * tests/test-fstrcmp.c: Likewise.
64846         * tests/test-ftell.c: Likewise.
64847         * tests/test-ftello.c: Likewise.
64848         * tests/test-fwritable.c: Likewise.
64849         * tests/test-fwriting.c: Likewise.
64850         * tests/test-getaddrinfo.c: Likewise.
64851         * tests/test-getpass.c: Likewise.
64852         * tests/test-gettimeofday.c: Likewise.
64853         * tests/test-hmac-md5.c: Likewise.
64854         * tests/test-hmac-sha1.c: Likewise.
64855         * tests/test-iconv.c: Likewise.
64856         * tests/test-iconvme.c: Likewise.
64857         * tests/test-inttypes.c: Likewise.
64858         * tests/test-isnan.c: Likewise.
64859         * tests/test-isnanf.c: Likewise.
64860         * tests/test-isnanl-nolibm.c: Likewise.
64861         * tests/test-isnanl.c: Likewise.
64862         * tests/test-isnanl.h: Likewise.
64863         * tests/test-ldexpl.c: Likewise.
64864         * tests/test-linked_list.c: Likewise.
64865         * tests/test-linkedhash_list.c: Likewise.
64866         * tests/test-locale.c: Likewise.
64867         * tests/test-localename.c: Likewise.
64868         * tests/test-lock.c: Likewise.
64869         * tests/test-lseek.c: Likewise.
64870         * tests/test-malloca.c: Likewise.
64871         * tests/test-math.c: Likewise.
64872         * tests/test-mbscasecmp.c: Likewise.
64873         * tests/test-mbscasestr1.c: Likewise.
64874         * tests/test-mbscasestr2.c: Likewise.
64875         * tests/test-mbscasestr3.c: Likewise.
64876         * tests/test-mbscasestr4.c: Likewise.
64877         * tests/test-mbschr.c: Likewise.
64878         * tests/test-mbscspn.c: Likewise.
64879         * tests/test-mbsncasecmp.c: Likewise.
64880         * tests/test-mbspbrk.c: Likewise.
64881         * tests/test-mbspcasecmp.c: Likewise.
64882         * tests/test-mbsrchr.c: Likewise.
64883         * tests/test-mbsspn.c: Likewise.
64884         * tests/test-mbsstr1.c: Likewise.
64885         * tests/test-mbsstr2.c: Likewise.
64886         * tests/test-mbsstr3.c: Likewise.
64887         * tests/test-md5.c: Likewise.
64888         * tests/test-memmem.c: Likewise.
64889         * tests/test-netinet_in.c: Likewise.
64890         * tests/test-open.c: Likewise.
64891         * tests/test-printf-frexp.c: Likewise.
64892         * tests/test-printf-frexpl.c: Likewise.
64893         * tests/test-printf-posix.c: Likewise.
64894         * tests/test-printf-posix.h: Likewise.
64895         * tests/test-rbtree_list.c: Likewise.
64896         * tests/test-rbtree_oset.c: Likewise.
64897         * tests/test-rbtreehash_list.c: Likewise.
64898         * tests/test-read-file.c: Likewise.
64899         * tests/test-rijndael.c: Likewise.
64900         * tests/test-search.c: Likewise.
64901         * tests/test-signbit.c: Likewise.
64902         * tests/test-sleep.c: Likewise.
64903         * tests/test-snprintf-posix.c: Likewise.
64904         * tests/test-snprintf-posix.h: Likewise.
64905         * tests/test-snprintf.c: Likewise.
64906         * tests/test-sprintf-posix.c: Likewise.
64907         * tests/test-sprintf-posix.h: Likewise.
64908         * tests/test-stat-time.c: Likewise.
64909         * tests/test-stdbool.c: Likewise.
64910         * tests/test-stdint.c: Likewise.
64911         * tests/test-stdio.c: Likewise.
64912         * tests/test-stdlib.c: Likewise.
64913         * tests/test-stpncpy.c: Likewise.
64914         * tests/test-strcasestr.c: Likewise.
64915         * tests/test-striconv.c: Likewise.
64916         * tests/test-striconveh.c: Likewise.
64917         * tests/test-striconveha.c: Likewise.
64918         * tests/test-string.c: Likewise.
64919         * tests/test-sys_select.c: Likewise.
64920         * tests/test-sys_socket.c: Likewise.
64921         * tests/test-sys_stat.c: Likewise.
64922         * tests/test-sys_time.c: Likewise.
64923         * tests/test-sysexits.c: Likewise.
64924         * tests/test-time.c: Likewise.
64925         * tests/test-tls.c: Likewise.
64926         * tests/test-trunc.c: Likewise.
64927         * tests/test-truncf.c: Likewise.
64928         * tests/test-truncl.c: Likewise.
64929         * tests/test-unistd.c: Likewise.
64930         * tests/test-vasnprintf-posix.c: Likewise.
64931         * tests/test-vasnprintf-posix2.c: Likewise.
64932         * tests/test-vasnprintf.c: Likewise.
64933         * tests/test-vasprintf-posix.c: Likewise.
64934         * tests/test-vasprintf.c: Likewise.
64935         * tests/test-verify.c: Likewise.
64936         * tests/test-vfprintf-posix.c: Likewise.
64937         * tests/test-vprintf-posix.c: Likewise.
64938         * tests/test-vsnprintf-posix.c: Likewise.
64939         * tests/test-vsnprintf.c: Likewise.
64940         * tests/test-vsprintf-posix.c: Likewise.
64941         * tests/test-wchar.c: Likewise.
64942         * tests/test-wctype.c: Likewise.
64943         * tests/test-wcwidth.c: Likewise.
64944         * tests/test-xstrtol.c: Likewise.
64945         * tests/test-xvasprintf.c: Likewise.
64946         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64947         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64948         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64949         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64950         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64951         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64952         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64953         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64954         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64955         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64958         * tests/uniname/test-uninames.c: Likewise.
64959         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64960         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64961         * tests/unistdio/test-u16-printf1.h: Likewise.
64962         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64963         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64964         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64965         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64966         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64967         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64968         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64969         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64970         * tests/unistdio/test-u32-printf1.h: Likewise.
64971         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64972         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64973         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64974         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64975         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64976         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64977         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64978         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64979         * tests/unistdio/test-u8-printf1.h: Likewise.
64980         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64981         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64982         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64983         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64984         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64985         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64986         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64987         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64988         * tests/unistdio/test-ulc-printf1.h: Likewise.
64989         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64990         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64991         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64992         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64993         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64994         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64995         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64996         * tests/uniwidth/test-u16-width.c: Likewise.
64997         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64998         * tests/uniwidth/test-u32-width.c: Likewise.
64999         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65000         * tests/uniwidth/test-u8-width.c: Likewise.
65001         * tests/uniwidth/test-uc_width.c: Likewise.
65002         * config/srclist-update: Likewise.
65003         (fixlicense): Update to GPLv3+.
65004
65005         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65006         * tests/test-tsearch.c: Change copyright notice.
65007
65008         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65009         * lib/c-strcaseeq.h: Change copyright notice.
65010         * lib/streq.h: Likewise.
65011         * lib/uniconv.h: Likewise.
65012         * lib/uniconv/u-conv-from-enc.h: Likewise.
65013         * lib/uniconv/u-conv-to-enc.h: Likewise.
65014         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65015         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65016         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65017         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65018         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65019         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65020         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65021         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65022         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65023         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65024         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65025         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65026         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65027         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65028         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65029         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65030         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65031         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65032         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65033         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65034         * lib/uniname.h: Likewise.
65035         * lib/uniname/uniname.c: Likewise.
65036         * lib/unistdio.h: Likewise.
65037         * lib/unistdio/u-asnprintf.h: Likewise.
65038         * lib/unistdio/u-asprintf.h: Likewise.
65039         * lib/unistdio/u-printf-args.c: Likewise.
65040         * lib/unistdio/u-printf-args.h: Likewise.
65041         * lib/unistdio/u-printf-parse.h: Likewise.
65042         * lib/unistdio/u-snprintf.h: Likewise.
65043         * lib/unistdio/u-sprintf.h: Likewise.
65044         * lib/unistdio/u-vasprintf.h: Likewise.
65045         * lib/unistdio/u-vsnprintf.h: Likewise.
65046         * lib/unistdio/u-vsprintf.h: Likewise.
65047         * lib/unistdio/u16-asnprintf.c: Likewise.
65048         * lib/unistdio/u16-asprintf.c: Likewise.
65049         * lib/unistdio/u16-printf-parse.c: Likewise.
65050         * lib/unistdio/u16-snprintf.c: Likewise.
65051         * lib/unistdio/u16-sprintf.c: Likewise.
65052         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65053         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65054         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65055         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65056         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65057         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65058         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65059         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65060         * lib/unistdio/u16-vasnprintf.c: Likewise.
65061         * lib/unistdio/u16-vasprintf.c: Likewise.
65062         * lib/unistdio/u16-vsnprintf.c: Likewise.
65063         * lib/unistdio/u16-vsprintf.c: Likewise.
65064         * lib/unistdio/u32-asnprintf.c: Likewise.
65065         * lib/unistdio/u32-asprintf.c: Likewise.
65066         * lib/unistdio/u32-printf-parse.c: Likewise.
65067         * lib/unistdio/u32-snprintf.c: Likewise.
65068         * lib/unistdio/u32-sprintf.c: Likewise.
65069         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65070         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65071         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65072         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65073         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65074         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65075         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65076         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65077         * lib/unistdio/u32-vasnprintf.c: Likewise.
65078         * lib/unistdio/u32-vasprintf.c: Likewise.
65079         * lib/unistdio/u32-vsnprintf.c: Likewise.
65080         * lib/unistdio/u32-vsprintf.c: Likewise.
65081         * lib/unistdio/u8-asnprintf.c: Likewise.
65082         * lib/unistdio/u8-asprintf.c: Likewise.
65083         * lib/unistdio/u8-printf-parse.c: Likewise.
65084         * lib/unistdio/u8-snprintf.c: Likewise.
65085         * lib/unistdio/u8-sprintf.c: Likewise.
65086         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65087         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65088         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65089         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65090         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65091         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65092         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65093         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65094         * lib/unistdio/u8-vasnprintf.c: Likewise.
65095         * lib/unistdio/u8-vasprintf.c: Likewise.
65096         * lib/unistdio/u8-vsnprintf.c: Likewise.
65097         * lib/unistdio/u8-vsprintf.c: Likewise.
65098         * lib/unistdio/ulc-asnprintf.c: Likewise.
65099         * lib/unistdio/ulc-asprintf.c: Likewise.
65100         * lib/unistdio/ulc-printf-parse.c: Likewise.
65101         * lib/unistdio/ulc-snprintf.c: Likewise.
65102         * lib/unistdio/ulc-sprintf.c: Likewise.
65103         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65104         * lib/unistdio/ulc-vasprintf.c: Likewise.
65105         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65106         * lib/unistdio/ulc-vsprintf.c: Likewise.
65107         * lib/unistr.h: Likewise.
65108         * lib/unistr/u-cpy-alloc.h: Likewise.
65109         * lib/unistr/u-cpy.h: Likewise.
65110         * lib/unistr/u-endswith.h: Likewise.
65111         * lib/unistr/u-move.h: Likewise.
65112         * lib/unistr/u-set.h: Likewise.
65113         * lib/unistr/u-startswith.h: Likewise.
65114         * lib/unistr/u-stpcpy.h: Likewise.
65115         * lib/unistr/u-stpncpy.h: Likewise.
65116         * lib/unistr/u-strcat.h: Likewise.
65117         * lib/unistr/u-strcpy.h: Likewise.
65118         * lib/unistr/u-strcspn.h: Likewise.
65119         * lib/unistr/u-strdup.h: Likewise.
65120         * lib/unistr/u-strlen.h: Likewise.
65121         * lib/unistr/u-strncat.h: Likewise.
65122         * lib/unistr/u-strncpy.h: Likewise.
65123         * lib/unistr/u-strnlen.h: Likewise.
65124         * lib/unistr/u-strpbrk.h: Likewise.
65125         * lib/unistr/u-strspn.h: Likewise.
65126         * lib/unistr/u-strstr.h: Likewise.
65127         * lib/unistr/u-strtok.h: Likewise.
65128         * lib/unistr/u16-check.c: Likewise.
65129         * lib/unistr/u16-chr.c: Likewise.
65130         * lib/unistr/u16-cmp.c: Likewise.
65131         * lib/unistr/u16-cpy-alloc.c: Likewise.
65132         * lib/unistr/u16-cpy.c: Likewise.
65133         * lib/unistr/u16-endswith.c: Likewise.
65134         * lib/unistr/u16-mblen.c: Likewise.
65135         * lib/unistr/u16-mbsnlen.c: Likewise.
65136         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65137         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65138         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65139         * lib/unistr/u16-mbtouc.c: Likewise.
65140         * lib/unistr/u16-mbtoucr.c: Likewise.
65141         * lib/unistr/u16-move.c: Likewise.
65142         * lib/unistr/u16-next.c: Likewise.
65143         * lib/unistr/u16-prev.c: Likewise.
65144         * lib/unistr/u16-set.c: Likewise.
65145         * lib/unistr/u16-startswith.c: Likewise.
65146         * lib/unistr/u16-stpcpy.c: Likewise.
65147         * lib/unistr/u16-stpncpy.c: Likewise.
65148         * lib/unistr/u16-strcat.c: Likewise.
65149         * lib/unistr/u16-strchr.c: Likewise.
65150         * lib/unistr/u16-strcmp.c: Likewise.
65151         * lib/unistr/u16-strcpy.c: Likewise.
65152         * lib/unistr/u16-strcspn.c: Likewise.
65153         * lib/unistr/u16-strdup.c: Likewise.
65154         * lib/unistr/u16-strlen.c: Likewise.
65155         * lib/unistr/u16-strmblen.c: Likewise.
65156         * lib/unistr/u16-strmbtouc.c: Likewise.
65157         * lib/unistr/u16-strncat.c: Likewise.
65158         * lib/unistr/u16-strncmp.c: Likewise.
65159         * lib/unistr/u16-strncpy.c: Likewise.
65160         * lib/unistr/u16-strnlen.c: Likewise.
65161         * lib/unistr/u16-strpbrk.c: Likewise.
65162         * lib/unistr/u16-strrchr.c: Likewise.
65163         * lib/unistr/u16-strspn.c: Likewise.
65164         * lib/unistr/u16-strstr.c: Likewise.
65165         * lib/unistr/u16-strtok.c: Likewise.
65166         * lib/unistr/u16-to-u32.c: Likewise.
65167         * lib/unistr/u16-to-u8.c: Likewise.
65168         * lib/unistr/u16-uctomb-aux.c: Likewise.
65169         * lib/unistr/u16-uctomb.c: Likewise.
65170         * lib/unistr/u32-check.c: Likewise.
65171         * lib/unistr/u32-chr.c: Likewise.
65172         * lib/unistr/u32-cmp.c: Likewise.
65173         * lib/unistr/u32-cpy-alloc.c: Likewise.
65174         * lib/unistr/u32-cpy.c: Likewise.
65175         * lib/unistr/u32-endswith.c: Likewise.
65176         * lib/unistr/u32-mblen.c: Likewise.
65177         * lib/unistr/u32-mbsnlen.c: Likewise.
65178         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65179         * lib/unistr/u32-mbtouc.c: Likewise.
65180         * lib/unistr/u32-mbtoucr.c: Likewise.
65181         * lib/unistr/u32-move.c: Likewise.
65182         * lib/unistr/u32-next.c: Likewise.
65183         * lib/unistr/u32-prev.c: Likewise.
65184         * lib/unistr/u32-set.c: Likewise.
65185         * lib/unistr/u32-startswith.c: Likewise.
65186         * lib/unistr/u32-stpcpy.c: Likewise.
65187         * lib/unistr/u32-stpncpy.c: Likewise.
65188         * lib/unistr/u32-strcat.c: Likewise.
65189         * lib/unistr/u32-strchr.c: Likewise.
65190         * lib/unistr/u32-strcmp.c: Likewise.
65191         * lib/unistr/u32-strcpy.c: Likewise.
65192         * lib/unistr/u32-strcspn.c: Likewise.
65193         * lib/unistr/u32-strdup.c: Likewise.
65194         * lib/unistr/u32-strlen.c: Likewise.
65195         * lib/unistr/u32-strmblen.c: Likewise.
65196         * lib/unistr/u32-strmbtouc.c: Likewise.
65197         * lib/unistr/u32-strncat.c: Likewise.
65198         * lib/unistr/u32-strncmp.c: Likewise.
65199         * lib/unistr/u32-strncpy.c: Likewise.
65200         * lib/unistr/u32-strnlen.c: Likewise.
65201         * lib/unistr/u32-strpbrk.c: Likewise.
65202         * lib/unistr/u32-strrchr.c: Likewise.
65203         * lib/unistr/u32-strspn.c: Likewise.
65204         * lib/unistr/u32-strstr.c: Likewise.
65205         * lib/unistr/u32-strtok.c: Likewise.
65206         * lib/unistr/u32-to-u16.c: Likewise.
65207         * lib/unistr/u32-to-u8.c: Likewise.
65208         * lib/unistr/u32-uctomb.c: Likewise.
65209         * lib/unistr/u8-check.c: Likewise.
65210         * lib/unistr/u8-chr.c: Likewise.
65211         * lib/unistr/u8-cmp.c: Likewise.
65212         * lib/unistr/u8-cpy-alloc.c: Likewise.
65213         * lib/unistr/u8-cpy.c: Likewise.
65214         * lib/unistr/u8-endswith.c: Likewise.
65215         * lib/unistr/u8-mblen.c: Likewise.
65216         * lib/unistr/u8-mbsnlen.c: Likewise.
65217         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65218         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65219         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65220         * lib/unistr/u8-mbtouc.c: Likewise.
65221         * lib/unistr/u8-mbtoucr.c: Likewise.
65222         * lib/unistr/u8-move.c: Likewise.
65223         * lib/unistr/u8-next.c: Likewise.
65224         * lib/unistr/u8-prev.c: Likewise.
65225         * lib/unistr/u8-set.c: Likewise.
65226         * lib/unistr/u8-startswith.c: Likewise.
65227         * lib/unistr/u8-stpcpy.c: Likewise.
65228         * lib/unistr/u8-stpncpy.c: Likewise.
65229         * lib/unistr/u8-strcat.c: Likewise.
65230         * lib/unistr/u8-strchr.c: Likewise.
65231         * lib/unistr/u8-strcmp.c: Likewise.
65232         * lib/unistr/u8-strcpy.c: Likewise.
65233         * lib/unistr/u8-strcspn.c: Likewise.
65234         * lib/unistr/u8-strdup.c: Likewise.
65235         * lib/unistr/u8-strlen.c: Likewise.
65236         * lib/unistr/u8-strmblen.c: Likewise.
65237         * lib/unistr/u8-strmbtouc.c: Likewise.
65238         * lib/unistr/u8-strncat.c: Likewise.
65239         * lib/unistr/u8-strncmp.c: Likewise.
65240         * lib/unistr/u8-strncpy.c: Likewise.
65241         * lib/unistr/u8-strnlen.c: Likewise.
65242         * lib/unistr/u8-strpbrk.c: Likewise.
65243         * lib/unistr/u8-strrchr.c: Likewise.
65244         * lib/unistr/u8-strspn.c: Likewise.
65245         * lib/unistr/u8-strstr.c: Likewise.
65246         * lib/unistr/u8-strtok.c: Likewise.
65247         * lib/unistr/u8-to-u16.c: Likewise.
65248         * lib/unistr/u8-to-u32.c: Likewise.
65249         * lib/unistr/u8-uctomb-aux.c: Likewise.
65250         * lib/unistr/u8-uctomb.c: Likewise.
65251         * lib/unitypes.h: Likewise.
65252         * lib/uniwidth.h: Likewise.
65253         * lib/uniwidth/cjk.h: Likewise.
65254         * lib/uniwidth/u16-strwidth.c: Likewise.
65255         * lib/uniwidth/u16-width.c: Likewise.
65256         * lib/uniwidth/u32-strwidth.c: Likewise.
65257         * lib/uniwidth/u32-width.c: Likewise.
65258         * lib/uniwidth/u8-strwidth.c: Likewise.
65259         * lib/uniwidth/u8-width.c: Likewise.
65260         * lib/uniwidth/width.c: Likewise.
65261
65262 2007-10-07  Bruno Haible  <bruno@clisp.org>
65263
65264         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65265         The file is still under LGPL (see modules/inttypes).
65266
65267 2007-10-06  Bruno Haible  <bruno@clisp.org>
65268
65269         * modules/trunc (Dependencies): Add 'extensions'.
65270         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65271         Reported by Ben Pfaff <blp@gnu.org>.
65272
65273 2007-10-06  Bruno Haible  <bruno@clisp.org>
65274
65275         * modules/freopen-tests: New file.
65276         * tests/test-freopen.c: New file.
65277
65278         * modules/fopen-tests: New file.
65279         * tests/test-fopen.c: New file.
65280
65281         * modules/fopen: New file.
65282         * lib/fopen.c: New file.
65283         * m4/fopen.m4: New file.
65284         * modules/freopen: New file.
65285         * lib/freopen.c: New file.
65286         * m4/freopen.m4: New file.
65287         * lib/stdio.in.h (fopen, freopen): New declarations.
65288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65289         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65290         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65291         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65292         * doc/functions/fopen.texi: Mention the 'fopen' module.
65293         * doc/functions/freopen.texi: Mention the 'freopen' module.
65294
65295 2007-10-06  Bruno Haible  <bruno@clisp.org>
65296
65297         * modules/open-tests: New file.
65298         * tests/test-open.c: New file.
65299
65300         * modules/open: New file.
65301         * lib/open.c: New file.
65302         * m4/open.m4: New file.
65303         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65304         lib/open.c does.
65305         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65306         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65307         macros.
65308         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65309         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65310         REPLACE_OPEN.
65311         * doc/functions/open.texi: Mention the 'open' module.
65312
65313 2007-10-04  Bruno Haible  <bruno@clisp.org>
65314
65315         * modules/ceill-tests: New file.
65316         * tests/test-ceill.c: New file.
65317
65318         * modules/ceill: New file.
65319         * lib/ceill.c: Replace entire file.
65320         * m4/ceill.m4: New file.
65321         * lib/math.in.h (ceill): Replace declaration.
65322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65323         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65324         * doc/functions/ceill.texi: Mention the 'ceill' module.
65325         * modules/mathl (Files): Remove lib/ceill.c.
65326         (Depends-on): Add ceill.
65327
65328 2007-10-04  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/ceilf-tests: New file.
65331         * tests/test-ceilf.c: New file.
65332
65333         * modules/ceilf: New file.
65334         * lib/ceil.c: New file.
65335         * lib/ceilf.c: New file.
65336         * m4/ceilf.m4: New file.
65337         * lib/math.in.h (ceilf): New declaration.
65338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65339         HAVE_DECL_CEILF.
65340         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65341         HAVE_DECL_CEILF.
65342         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65343
65344 2007-10-04  Bruno Haible  <bruno@clisp.org>
65345
65346         * modules/floorl-tests: New file.
65347         * tests/test-floorl.c: New file.
65348
65349         * modules/floorl: New file.
65350         * lib/floorl.c: Replace entire file.
65351         * m4/floorl.m4: New file.
65352         * lib/math.in.h (floorl): Replace declaration.
65353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65354         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65355         * doc/functions/floorl.texi: Mention the 'floorl' module.
65356         * modules/mathl (Files): Remove lib/floorl.c.
65357         (Depends-on): Add floorl.
65358
65359 2007-10-04  Bruno Haible  <bruno@clisp.org>
65360
65361         * modules/floorf-tests: New file.
65362         * tests/test-floorf.c: New file.
65363
65364         * modules/floorf: New file.
65365         * lib/floor.c: New file.
65366         * lib/floorf.c: New file.
65367         * m4/floorf.m4: New file.
65368         * lib/math.in.h (floorf): New declaration.
65369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65370         HAVE_DECL_FLOORF.
65371         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65372         HAVE_DECL_FLOORF.
65373         * doc/functions/floorf.texi: Mention the 'floorf' module.
65374
65375 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65376             Bruno Haible  <bruno@clisp.org>
65377
65378         Advertise for the Git server instead of the CVS server.
65379         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65380         repository instead of the CVS one.
65381         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65382         about all VCS systems generically.
65383         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65384
65385 2007-10-04  Bruno Haible  <bruno@clisp.org>
65386
65387         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65388         means.
65389         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65390
65391 2007-10-04  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/truncl-tests: New file.
65394         * tests/test-truncl.c: New file.
65395
65396         * modules/truncl: New file.
65397         * lib/truncl.c: New file.
65398         * m4/truncl.m4: New file.
65399         * lib/math.in.h (truncl): New declaration.
65400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65401         HAVE_DECL_TRUNCL.
65402         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65403         HAVE_DECL_TRUNCL.
65404         * doc/functions/truncl.texi: Mention the 'truncl' module.
65405
65406 2007-10-04  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/truncf-tests: New file.
65409         * tests/test-truncf.c: New file.
65410
65411         * modules/truncf: New file.
65412         * lib/trunc.c: Make paramerizable through USE_* macros.
65413         * lib/truncf.c: New file.
65414         * m4/truncf.m4: New file.
65415         * lib/math.in.h (truncf): New declaration.
65416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65417         HAVE_DECL_TRUNCF.
65418         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65419         HAVE_DECL_TRUNCF.
65420         * doc/functions/truncf.texi: Mention the 'truncf' module.
65421
65422 2007-10-03  Bruno Haible  <bruno@clisp.org>
65423
65424         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65425         augmentation also for tests modules.
65426         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65427         * modules/atexit-tests (Makefile.am): Likewise.
65428         * modules/binary-io-tests (Makefile.am): Likewise.
65429         * modules/c-strcase-tests (Makefile.am): Likewise.
65430         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65431         * modules/canonicalize-tests (Makefile.am): Likewise.
65432         * modules/closein-tests (Makefile.am): Likewise.
65433         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65434         * modules/freadahead-tests (Makefile.am): Likewise.
65435         * modules/fseek-tests (Makefile.am): Likewise.
65436         * modules/fseeko-tests (Makefile.am): Likewise.
65437         * modules/ftell-tests (Makefile.am): Likewise.
65438         * modules/ftello-tests (Makefile.am): Likewise.
65439         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65440         * modules/isnanl-tests (Makefile.am): Likewise.
65441         * modules/lseek-tests (Makefile.am): Likewise.
65442         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65443         * modules/mbscasestr-tests (Makefile.am): Likewise.
65444         * modules/mbschr-tests (Makefile.am): Likewise.
65445         * modules/mbscspn-tests (Makefile.am): Likewise.
65446         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65447         * modules/mbspbrk-tests (Makefile.am): Likewise.
65448         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65449         * modules/mbsrchr-tests (Makefile.am): Likewise.
65450         * modules/mbsspn-tests (Makefile.am): Likewise.
65451         * modules/mbsstr-tests (Makefile.am): Likewise.
65452         * modules/printf-posix-tests (Makefile.am): Likewise.
65453         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65454         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65455         * modules/tsearch-tests (Makefile.am): Likewise.
65456         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65457         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65458         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65459         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65460         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65461         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65462         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65463         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65464         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65465         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65466         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65467         * modules/xstrtol-tests (Makefile.am): Likewise.
65468         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65469         * modules/yesno-tests (Makefile.am): Likewise.
65470
65471 2007-10-03  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/trunc-tests: New file.
65474         * tests/test-trunc.c: New file.
65475
65476         * modules/trunc: New file.
65477         * lib/trunc.c: New file.
65478         * m4/trunc.m4: New file.
65479         * lib/math.in.h (trunc): New declaration.
65480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65481         HAVE_DECL_TRUNC.
65482         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65483         HAVE_DECL_TRUNC.
65484         * doc/functions/trunc.texi: Mention the 'trunc' module.
65485
65486 2007-10-03  Bruno Haible  <bruno@clisp.org>
65487
65488         * tests/test-fpending.c: New file, mostly copied
65489         from coreutils/lib/t-fpending.c.
65490         * modules/fpending-tests: New file.
65491
65492 2007-10-03  Bruno Haible  <bruno@clisp.org>
65493
65494         Port the stdio extensions to QNX (untested).
65495         * lib/fseterr.c (fseterr): Add support for QNX.
65496         * lib/fbufmode.c (fbufmode): Likewise.
65497         * lib/freadable.c (freadable): Likewise.
65498         * lib/fwritable.c (fwritable): Likewise.
65499         * lib/freading.c (freading): Likewise.
65500         * lib/fwriting.c (fwriting): Likewise.
65501         * lib/freadahead.c (freadahed): Likewise.
65502         * lib/fpurge.c (fpurge): Likewise.
65503         * lib/fseeko.c (rpl_fseeko): Likewise.
65504
65505 2007-10-03  Bruno Haible  <bruno@clisp.org>
65506             Jim Meyering  <jim@meyering.net>
65507             Eric Blake  <ebb9@byu.net>
65508
65509         * doc/relocatable.texi: Use @command instead of @program.
65510
65511 2007-10-02  Jim Meyering  <jim@meyering.net>
65512
65513         Perform one more "_.h" -> ".in.h" substitution.
65514         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65515         instead of unistd_.h here, too.
65516
65517 2007-10-01  Bruno Haible  <bruno@clisp.org>
65518
65519         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65520         Needed for the alloca-opt module.
65521
65522 2007-09-30  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65525         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65526         alloca_.h.
65527         * lib/argz.in.h: Renamed from lib/argz_.h.
65528         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65529         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65530         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65531         byteswap_.h.
65532         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65533         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65534         dirent_.h.
65535         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65536         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65537         fcntl_.h.
65538         * lib/float.in.h: Renamed from lib/float_.h.
65539         * modules/float (Files, Makefile.am): Use float.in.h instead of
65540         float_.h.
65541         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65542         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65543         fnmatch_.h.
65544         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65545         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65546         getopt_.h.
65547         * lib/glob.in.h: Renamed from lib/glob_.h.
65548         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65549         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65550         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65551         iconv_.h.
65552         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65553         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65554         inttypes_.h.
65555         * lib/locale.in.h: Renamed from lib/locale_.h.
65556         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65557         locale_.h.
65558         * lib/math.in.h: Renamed from lib/math_.h.
65559         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65560         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65561         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65562         of netinet_in_.h. Add dependency.
65563         * lib/poll.in.h: Renamed from lib/poll_.h.
65564         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65565         * lib/search.in.h: Renamed from lib/search_.h.
65566         * modules/search (Files, Makefile.am): Use search.in.h instead of
65567         search_.h.
65568         * lib/signal.in.h: Renamed from lib/signal_.h.
65569         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65570         _signal.h.
65571         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65572         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65573         stdbool_.h.
65574         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65575         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65576         stdint_.h.
65577         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65578         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65579         stdio_.h.
65580         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65581         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65582         stdlib_.h.
65583         * lib/string.in.h: Renamed from lib/string_.h.
65584         * modules/string (Files, Makefile.am): Use string.in.h instead of
65585         string_.h.
65586         * doc/gnulib-tool.texi (Initial import): Update.
65587         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65588         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65589         of sys_select_.h. Add dependency.
65590         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65591         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65592         of sys_socket_.h.
65593         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65594         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65595         sys_stat_.h.
65596         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65597         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65598         sys_time_.h.
65599         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65600         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65601         sysexits_.h.
65602         * lib/time.in.h: Renamed from lib/time_.h.
65603         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65604         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65605         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65606         unistd_.h.
65607         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65608         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65609         wchar_.h.
65610         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65611         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65612         wctype_.h.
65613         * build-aux/bootstrap (slurp): Update.
65614         * lib/.cppi-disable: Update.
65615
65616 2007-09-30  Bruno Haible  <bruno@clisp.org>
65617
65618         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65619         Needed on BeOS.
65620
65621 2007-09-30  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65624
65625 2007-09-29  Bruno Haible  <bruno@clisp.org>
65626
65627         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65628
65629 2007-09-29  Bruno Haible  <bruno@clisp.org>
65630
65631         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65632         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65633         * build-aux/install-reloc: Compile also areadlink.c.
65634         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65635
65636 2007-09-29  Bruno Haible  <bruno@clisp.org>
65637
65638         * gnulib-tool (func_emit_initmacro_done): Indentation.
65639
65640 2007-09-29  Bruno Haible  <bruno@clisp.org>
65641
65642         * README: Add CVS checkout update instructions.
65643         Info from Bob Proulx <bob@proulx.com>.
65644
65645 2007-09-28  Eric Blake  <ebb9@byu.net>
65646
65647         Provide move-if-change.
65648         * build-aux/move-if-change: New file, based on best practice
65649         rather than any canonical upstream location.
65650
65651 2007-09-28  Jim Meyering  <jim@meyering.net>
65652
65653         Fix canonicalize loop-detection corner case.
65654         Do not attempt to stat the symlink values stored via seen_triple.
65655         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65656         on linux-2.6.18, (but not 2.6.22).
65657         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65658         triple_compare.  The former compares dev,ino,filename, while the latter
65659         would actually stat dirname(filename) when dev and ino were equal.
65660         * lib/hash-triple.c: Install <string.h>.
65661         (STREQ): Define.
65662         (triple_compare_ino_str): New function.
65663         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65664
65665 2007-09-28  Eric Blake  <ebb9@byu.net>
65666
65667         Enforce that AC_REPLACE_FUNCS files exist.
65668         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65669         override check for typos.
65670
65671         Fix test-closein on Solaris 10.
65672         * tests/test-closein.c (main): Don't assume stdin can be inherited
65673         closed on all systems.
65674         * tests/test-closein.sh: Likewise.
65675         Reported by Piotr Tarnowski.
65676
65677 2007-09-28  Jim Meyering  <jim@meyering.net>
65678
65679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65680
65681 2007-09-27  Jim Meyering  <jim@meyering.net>
65682
65683         canonicalize: Avoid a false-positive cycle failure.
65684         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65685         Sort.  Remove cycle-check.
65686         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65687         not cycle-check.h.
65688         (seen_triple): New function.
65689         (canonicalize_filename_mode): Use it instead of cycle-check.
65690         * tests/test-canonicalize.c: Add a test for this bug.
65691         * tests/test-canonicalize.sh: Set up and run the test.
65692
65693         New module, file-set, from coreutils.
65694         * modules/file-set: Define it.
65695         * lib/file-set.c, lib/file-set.h: Implement.
65696
65697         New module, hash-triple, from coreutils.
65698         * modules/hash-triple: Define it.
65699         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65700
65701 2007-09-25  Eric Blake  <ebb9@byu.net>
65702
65703         Fix strerror on Interix.
65704         * lib/string_.h (strerror): Declare replacement.
65705         * doc/functions/strerror.texi (strerror): Document the Interix
65706         shortcoming.
65707         * modules/string (Makefile.am): Support new hooks.
65708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65709         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65710         gl_FUNC_STRERROR_SEPARATE.
65711         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65712         * lib/strerror.c (rpl_strerror): Provide replacement.
65713         * modules/strerror (Depends-on): Add string.
65714         (configure.ac): Detect use of module.
65715         * tests/test-strerror.c: New file.
65716         * modules/strerror-tests: New test module.
65717         * modules/argp (Depends-on): Add strerror.
65718         * modules/error (Depends-on): Likewise.
65719         Reported by Martin Koeppe.
65720
65721 2007-09-24  Bruno Haible  <bruno@clisp.org>
65722
65723         * README: Update git instructions.
65724
65725 2007-09-24  Eric Blake  <ebb9@byu.net>
65726
65727         Revert fpending breakage from 2007-09-08.
65728         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65729         __fpending.c.
65730
65731 2007-09-24  Jim Meyering  <jim@meyering.net>
65732
65733         filenamecat.c: Add a test.
65734         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65735         showing how the function works when DIR is the empty string.
65736
65737 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65738
65739         * tests/test-canonicalize.sh: Turn on executable bit.
65740
65741 2007-09-19  Eric Blake  <ebb9@byu.net>
65742
65743         * README: Update CVS instructions.
65744
65745 2007-09-18  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/areadlink: New file.
65748         * lib/areadlink.h (areadlink): New declaration.
65749         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65750
65751 2007-09-17  Jim Meyering  <jim@meyering.net>
65752
65753         * lib/savewd.c (ESTALE) [!defined]: Define.
65754         Reported to be required on Interix by Martin Koeppe.
65755
65756 2007-09-17  Bruno Haible  <bruno@clisp.org>
65757
65758         * gnulib-tool (func_version): Use $version.
65759
65760 2007-09-16  Bruno Haible  <bruno@clisp.org>
65761
65762         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65763         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65764         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65765         Reported by Greg Schafer <gschafer@zip.com.au>.
65766
65767 2007-09-15  Bruno Haible  <bruno@clisp.org>
65768
65769         * gnulib-tool (sed): Try a little harder to make bash understand the
65770         alias.
65771         Reported by Bruce Korb <bruce.korb@gmail.com>.
65772
65773 2007-09-13  Eric Blake  <ebb9@byu.net>
65774
65775         * ChangeLog: Remove conflict markers.
65776
65777 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65778
65779         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65780         Reported by Bruno Haible <bruno@clisp.org>.
65781
65782 2007-09-12  Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65785         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65786         is not defined.
65787
65788 2007-09-12  Eric Blake  <ebb9@byu.net>
65789
65790         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65791         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65792         Autoconf definition.
65793         * modules/euidaccess (Depends-on): Add extensions, for
65794         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65795         * modules/fnmatch (Depends-on): Likewise.
65796         * modules/getaddrinfo (Depends-on): Likewise.
65797         * modules/getdelim (Depends-on): Likewise.
65798         * modules/getline (Depends-on): Likewise.
65799         * modules/getsubopt (Depends-on): Likewise.
65800         * modules/gettext (Depends-on): Likewise.
65801         * modules/group-member (Depends-on): Likewise.
65802         * modules/mbchar (Depends-on): Likewise.
65803         * modules/memmem (Depends-on): Likewise.
65804         * modules/mempcpy (Depends-on): Likewise.
65805         * modules/memrchr (Depends-on): Likewise.
65806         * modules/pagealign_alloc (Depends-on): Likewise.
65807         * modules/readutmp (Depends-on): Likewise.
65808         * modules/stpcpy (Depends-on): Likewise.
65809         * modules/stpncpy (Depends-on): Likewise.
65810         * modules/strchrnul (Depends-on): Likewise.
65811         * modules/strndup (Depends-on): Likewise.
65812         * modules/strsep (Depends-on): Likewise.
65813         * modules/strverscmp (Depends-on): Likewise.
65814         * modules/vasprintf (Depends-on): Likewise.
65815         * modules/wcwidth (Depends-on): Likewise.
65816         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65817         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65818         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65819         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65820         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65821         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65822         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65823         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65824         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65825         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65828         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65829         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65830         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65831         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65832         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65833         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65835         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65836         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65838         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65839         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65840         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65842         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65843         so that lock.m4 can be used in gettext without extensions module.
65844
65845 2007-09-11  Bruno Haible  <bruno@clisp.org>
65846
65847         * m4/isc-posix.m4: Remove file.
65848         Suggested by Eric Blake.
65849
65850 2007-09-11  Eric Blake  <ebb9@byu.net>
65851
65852         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65853
65854 2007-09-10  Bruno Haible  <bruno@clisp.org>
65855
65856         * posix-modules: Fix typo in error message.
65857         Reported by Matt <mkraai@beckman.com>.
65858
65859 2007-09-09  Bruno Haible  <bruno@clisp.org>
65860
65861         * doc/functions/getdelim.texi: Update list of platforms lacking the
65862         function.
65863         * doc/functions/getline.texi: Likewise.
65864
65865 2007-09-09  Jim Meyering  <jim@meyering.net>
65866
65867         * lib/hash.c (hash_initialize): Detect calloc failure.
65868         Reported by Bruno Haible.
65869
65870 2007-09-09  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65873         malloc or realloc fails.
65874
65875 2007-09-09  Bruno Haible  <bruno@clisp.org>
65876
65877         * modules/getcwd (Depends-on): Add malloc-posix.
65878         * modules/glob (Depends-on): Likewise.
65879         * modules/putenv (Depends-on): Likewise.
65880         * modules/strdup (Depends-on): Likewise.
65881         * modules/getdelim (Depends-on): Add realloc-posix.
65882         * modules/read-file (Depends-on): Likewise.
65883
65884 2007-09-09  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65887         (gl_FUNC_MALLOC_POSIX): Require it.
65888         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65889         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65890         * modules/realloc (Files): Add m4/malloc.m4.
65891         * modules/calloc (Files): Likewise.
65892
65893 2007-09-09  Bruno Haible  <bruno@clisp.org>
65894
65895         * modules/malloc-posix: New file.
65896         * modules/malloc (Depends-on): Add malloc-posix.
65897         * lib/malloc.c: Include errno.h.
65898         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65899         and a POSIX-compatible malloc into a single function. Set ENOMEM
65900         when returning NULL.
65901         * m4/malloc.m4: New file.
65902         * doc/functions/malloc.texi: Mention the malloc-posix module.
65903         * lib/stdlib_.h (malloc): New declaration.
65904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65905         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65906         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65907         and HAVE_MALLOC_POSIX.
65908
65909 2007-09-09  Bruno Haible  <bruno@clisp.org>
65910
65911         * modules/realloc-posix: New file.
65912         * modules/realloc (Depends-on): Add realloc-posix.
65913         * lib/realloc.c: Include errno.h.
65914         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65915         and a POSIX-compatible realloc into a single function. Set ENOMEM
65916         when returning NULL.
65917         * m4/realloc.m4: New file.
65918         * doc/functions/realloc.texi: Mention the realloc-posix module.
65919         * lib/stdlib_.h (realloc): New declaration.
65920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65921         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65922         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65923         and HAVE_REALLOC_POSIX.
65924
65925 2007-09-09  Bruno Haible  <bruno@clisp.org>
65926
65927         * modules/calloc-posix: New file.
65928         * modules/calloc (Depends-on): Add calloc-posix.
65929         * lib/calloc.c: Include errno.h.
65930         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65931         and a POSIX-compatible calloc into a single function. Set ENOMEM
65932         when returning NULL.
65933         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65934         * doc/functions/calloc.texi: Mention the calloc-posix module.
65935         * lib/stdlib_.h (calloc): New declaration.
65936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65937         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65938         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65939         and HAVE_CALLOC_POSIX.
65940
65941 2007-09-09  Bruno Haible  <bruno@clisp.org>
65942
65943         Allow for modules to show an arbitrary notice.
65944         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65945         * gnulib-tool: New option --extract-notice.
65946         (func_usage): Document it.
65947         (sed_extract_prog): Update.
65948         (func_get_notice): New function.
65949         (func_modules_notice): New function.
65950         (func_import, func_create_testdir): Invoke it.
65951         Suggested by Jim Meyering.
65952
65953 2007-09-09  Bruno Haible  <bruno@clisp.org>
65954
65955         * gnulib-tool: New options --verbose, --quiet.
65956         (func_usage): Document them.
65957         (verbose): New variable.
65958         (func_execute_command): New function.
65959         (func_import): Don't show the module list and the file list if
65960         $verbose < 0.
65961         (func_create_testdir): Likewise. Use func_execute_command.
65962         (func_create_megatestdir): Use func_execute_command.
65963
65964 2007-09-08  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool (func_import): Prefer rsync over wget when available,
65967         for fetching the PO files.
65968
65969 2007-09-08  Bruno Haible  <bruno@clisp.org>
65970
65971         * posix-modules: New file. Portions copied from gnulib-tool.
65972         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65973
65974 2007-09-08  Jim Meyering  <jim@meyering.net>
65975
65976         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65977         * lib/fpending.h: Rename from __fpending.h.
65978         * lib/fpending.c: Rename from __fpending.c.
65979         Include "fpending.h", not "__fpending.h".
65980         * lib/__fpending.h, lib/__fpending.c: Remove files.
65981         * modules/fpending (Files): Reflect new file names.
65982         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65983
65984 2007-09-08  Bruno Haible  <bruno@clisp.org>
65985
65986         * m4/inttypes-h.m4: Remove stub file.
65987
65988 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65989
65990         * doc/headers/stdint.texi: Discuss #include_next issue.
65991
65992 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65993
65994         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65995
65996 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65997
65998         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65999         in variable name.
66000
66001 2007-09-03  Jim Meyering  <jim@meyering.net>
66002
66003         New module: git-version-gen.
66004         * modules/git-version-gen: New file.
66005
66006         Import changes from coreutils for bootstrap script.
66007
66008         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66009
66010         bootstrap: uses rsync to download the .po files
66011         * build-aux/bootstrap (po_download_command_format): New global.
66012         (download_po_files): Use rsync.
66013         (update_po_files): Don't remove .po files after download,
66014         so future rsync runs can take advantage of the copies.
66015
66016         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66017
66018         Solve the unnecessary-.po-file-regeneration problem once and for all.
66019         * build-aux/bootstrap (download_po_files): New function, renamed from
66020         get_translations.  Now, downloads, but doesn't update LINGUAS.
66021         (update_po_files): New function.
66022
66023         bootstrap: Ignore more.
66024         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66025         uniwidth to e.g., lib/.gitignore.
66026         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66027
66028         * build-aux/bootstrap: New setting: vc_ignore.
66029         (insert_sorted_if_absent): Create $file if absent.
66030         Adapt to new, possibly empty, list: $vc_ignore.
66031
66032         bootstrap: generate more ignorable names
66033         * build-aux/bootstrap (slurp): When generating ignorable names,
66034         also map .sin to .sed, .gperf to .c, and .y to .c.
66035
66036 2007-09-03  Jim Meyering  <jim@meyering.net>
66037
66038         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66039         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66040
66041 2007-09-02  Bruno Haible  <bruno@clisp.org>
66042
66043         Fix mis-recognition of 'mcs' on QNX 6.
66044         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66045         output contains the string "Mono".
66046         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66047         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66048
66049 2007-09-01  Bruno Haible  <bruno@clisp.org>
66050
66051         Fix collision between uniwidth/* and linebreak modules.
66052         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66053         u32_width): Remove declarations.
66054         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66055         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66056         streq3, streq2, streq1, streq0): Remove functions.
66057         (STREQ): Remove macro.
66058         (is_cjk_encoding): Remove function.
66059         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66060         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66061         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66062         * NEWS: Document the change.
66063
66064 2007-09-01  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/streq.h: Add double-inclusion guard.
66067
66068 2007-09-01  Karl Berry  <karl@gnu.org>
66069
66070         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66071
66072 2007-08-28  Jim Meyering  <jim@meyering.net>
66073
66074         Rename mreadlink_with_size to areadlink_with_size.
66075         * NEWS: Document the change.
66076         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66077         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66078         * lib/mreadlink.h: Rename this to...
66079         * lib/areadlink.h: ...this.
66080         * modules/mreadlink-with-size: Rename this to...
66081         * modules/areadlink-with-size: ...this.
66082         * lib/canonicalize.c: Reflect the renaming.
66083         * modules/canonicalize: Likewise.
66084
66085 2007-08-26  Bruno Haible  <bruno@clisp.org>
66086
66087         * gnulib-tool (func_import): When deciding which files to remove,
66088         consider also dangling symbolic links.
66089         Reported by Eric Blake.
66090
66091 2007-08-26  Bruno Haible  <bruno@clisp.org>
66092
66093         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66094
66095 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66096
66097         * lib/readline.c: Don't include getline.h, the prototype is now
66098         found in stdio.h.
66099
66100 2007-08-23  Jim Meyering  <jim@meyering.net>
66101
66102         Getdelim touchup.
66103         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66104         around the funlockfile call, since funlockfile never sets errno.
66105         Don't set errno upon failed realloc.
66106
66107 2007-08-22  Eric Blake  <ebb9@byu.net>
66108
66109         Getline touchups.
66110         * lib/getdelim.c (getdelim): Revert regression that required *n to
66111         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66113         getdelim, rather than whether implementation is missing.
66114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66115         * lib/stdio_.h (getline): Also declare if replacement is
66116         required.
66117         * doc/functions/getdelim.texi: New file.
66118         * doc/functions/getline.texi: Likewise.
66119         * doc/gnulib.texi (Function Substitutes): Add new files.
66120         Reported by Bruno Haible.
66121
66122 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66123
66124         * users.txt: Add Guile.
66125
66126 2007-08-22  Eric Blake  <ebb9@byu.net>
66127
66128         * tests/test-getdelim.c (main): Use remove, not unlink.
66129         * tests/test-getline.c (main): Likewise.
66130
66131         Move getline and getdelim into stdio.h, per POSIX 200x.
66132         * modules/getline (Files): Remove getline.h.
66133         (Depends-on): Add stdio.
66134         (configure.ac): Add module indicator.
66135         * modules/getdelim (Files): Remove getdelim.h.
66136         (Depends-on): Add stdio.
66137         (configure.ac): Add module indicator.
66138         * modules/stdio (Makefile.am): Work with new indicators.
66139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66141         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66142         * lib/getdelim.h: Delete.
66143         * lib/getline.h: Delete.
66144         * lib/stdio_.h (getdelim, getline): Declare.
66145         * modules/getdelim-tests: New module.
66146         * modules/getline-tests: Likewise.
66147         * tests/test-getdelim.c: New file.
66148         * tests/test-getline.c: Likewise.
66149         * NEWS: Document the change.
66150         * lib/getline.c: Update choice of header.
66151         * lib/csharpcomp.c: Likewise.
66152         * lib/getpass.c: Likewise.
66153         * lib/javacomp.c: Likewise.
66154         * lib/javaversion.c: Likewise.
66155         * lib/yesno.c: Likewise.
66156         * lib/getdelim.c: Likewise.
66157         (getdelim): Set errno on failure, and avoid memory leak.
66158
66159 2007-08-19  Bruno Haible  <bruno@clisp.org>
66160
66161         * modules/closein (Depends-on): Add freadahead.
66162         * lib/closein.c: Include freadahead.h.
66163         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66164         is zero.
66165
66166 2007-08-19  Bruno Haible  <bruno@clisp.org>
66167
66168         * modules/freadahead-tests: New file.
66169         * tests/test-freadahead.sh: New file.
66170         * tests/test-freadahead.c: New file.
66171
66172         * modules/freadahead: New file.
66173         * lib/freadahead.h: New file.
66174         * lib/freadahead.c: New file.
66175         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66176         fbufmode, fpurge, freadable, fwritable.
66177
66178 2007-08-19  Eric Blake  <ebb9@byu.net>
66179
66180         Test yesno in combination with closein.
66181         * lib/yesno.c (yesno): Document use of stdin.
66182         * modules/yesno-tests (Files): New module.
66183         * tests/test-yesno.c (main): New file.
66184         * tests/test-yesno.sh: Likewise.
66185
66186 2007-08-19  Bruno Haible  <bruno@clisp.org>
66187
66188         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66189         * lib/fseeko.c (rpl_fseeko): Likewise.
66190         * lib/fseterr.c (fseterr): Likewise.
66191
66192 2007-08-19  Bruno Haible  <bruno@clisp.org>
66193
66194         * tests/test-lseek.c (main): Disable a test for BeOS.
66195         * doc/functions/lseek.texi: Document the BeOS bug.
66196
66197 2007-08-19  Bruno Haible  <bruno@clisp.org>
66198             Eric Blake  <ebb9@byu.net>
66199
66200         * lib/lseek.c: Include <sys/stat.h>.
66201         (rpl_lseek): Add workaround code also for Unix platforms.
66202         Needed for BeOS.
66203         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66204         * doc/functions/lseek.texi: Document BeOS definiency.
66205
66206 2007-08-18  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/fstrcmp-tests: New file.
66209         * tests/test-fstrcmp.c: New file.
66210
66211 2007-08-18  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/fstrcmp: New file, from GNU gettext with modifications.
66214         * lib/fstrcmp.h: New file, from GNU gettext.
66215         * lib/fstrcmp.c: New file, from GNU gettext.
66216         * MODULES.html.sh (String handling): Add fstrcmp.
66217
66218 2007-08-18  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66221         'bool'.
66222         (diag, compareseq): Remove const from the ctxt argument.
66223         (USE_HEURISTIC): Undefine at the end.
66224
66225 2007-08-18  Jim Meyering  <jim@meyering.net>
66226
66227         New file: lib/idcache.h
66228         * NEWS: Mention the addition.
66229         * modules/idcache (Files): Add lib/idcache.h
66230         * lib/idcache.c: Include "idcache.h".
66231         Don't include <sys/types.h>.
66232         Add a FIXME comment.
66233         Move file-scoped "static" declarations to the top.
66234         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66235
66236 2007-08-17  Bruno Haible  <bruno@clisp.org>
66237         and Paul Eggert  <eggert@cs.ucla.edu>
66238
66239         * MODULES.html.sh: Add diffseq.
66240         * modules/diffseq: New file.
66241         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66242         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66243
66244 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         Import changes from coreutils for bootstrap script.
66247
66248         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * build-aux/bootstrap (slurp): Work even in environments where
66251         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66252         current code does not slurp files whose names start with ".", and
66253         this looks like it might be a troublesome area.
66254
66255         2007-07-11  Jim Meyering  <jim@meyering.net>
66256
66257         If there's a GPL vN copyright comment, require that N == 3.
66258
66259         2007-07-08  Jim Meyering  <jim@meyering.net>
66260
66261         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66262         * build-aux/bootstrap (mam_template): Move definition out of loop.
66263
66264         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66265
66266         * build-aux/bootstrap (symlink_to_dir): Rename function from
66267         symlink_to_gnulib.  Add a directory parameter.  Update all
66268         callers.
66269         (cp_mark_as_generated): Also check for -- and link to -- files in
66270         gl/.
66271
66272         2007-07-08  Jim Meyering  <jim@meyering.net>
66273
66274         Adapt to deeper hierarchy in gnulib.
66275         * build-aux/bootstrap (symlink_to_dir): If the destination
66276         directory doesn't exist, create it. This is required at least for
66277         "lib/uniwidth/cjk.h".
66278
66279         2007-05-15  Jim Meyering  <jim@meyering.net>
66280
66281         * build-aux/bootstrap: Now that generated Makefile.am files
66282         are no longer under version control, they must be created at
66283         bootstrap time.
66284
66285 2007-08-14  Ben Pfaff  <blp@gnu.org>
66286
66287         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66288
66289 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66292         given the changes below.
66293         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66294         even on hosts that have padding bits beyond the supported 64.
66295
66296 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66299         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66300         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66301         depends on it.
66302         (xstrtol_error): Remove.
66303         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66304         but with a different signature.
66305         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66306         * lib/xstrtol-error.c: Include exitfail.h.
66307         (xstrtol_fatal): New function, with a different signature from the
66308         old xstrtol_error, so that the caller need not worry about passing
66309         in an exit status, or about storage management of the option argument.
66310         (xstrtol_error): Now a static function.  Redo signature to
66311         implement xstrtol_fatal.  Output the correct number of hyphens in
66312         front of the option so that the caller need not worry about
66313         storage management.
66314         (N_): New macro.
66315         (_): Remove; not used now.
66316         * modules/xstrtol: Depend on getopt.
66317         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66318         of old STRTOL_FATAL_ERROR macro.
66319         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66320         of test program.
66321         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66322         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66323
66324 2007-08-08  Eric Blake  <ebb9@byu.net>
66325
66326         * lib/xstrtol-error.c: Add missing include.
66327
66328         Move xstrtol messages into gnulib domain, when --pobase is used.
66329         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66330         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66331         * modules/xstrtol (Files): Distribute new file.
66332         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66333         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66334         * tests/test-xstrtol.c: ...into new file.
66335         * tests/test-xstrtoul.c: Also test xstrtoul.
66336         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66337         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66338         * tests/test-xstrtol.sh: Drive the tests.
66339         * tests/test-xstrtoimax.sh: Likewise.
66340         * tests/test-xstrtoumax.sh: Likewise.
66341         * modules/xstrtol-tests: New module.
66342         * modules/xstrtoimax-tests: Likewise.
66343         * modules/xstrtoumax-tests: Likewise.
66344
66345 2007-08-08  Jim Meyering  <jim@meyering.net>
66346
66347         New function: mfile_name_concat.
66348         * lib/filenamecat.c (mfile_name_concat): New function, just like
66349         file_name_concat, but return NULL upon failure rather than exiting
66350         with a diagnostic.
66351         * lib/filenamecat.h: Declare it.
66352
66353 2007-08-07  Bruno Haible  <bruno@clisp.org>
66354
66355         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66356         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66357         warning from gcc.
66358         Reported by Eric Blake.
66359
66360 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66361
66362         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66363         * modules/crypto/arcfour (License): Likewise.
66364         * modules/crypto/des-tests (License): Likewise.
66365         * modules/crypto/gc-arctwo-tests (License): Likewise.
66366         * modules/crypto/gc-des-tests (License): Likewise.
66367         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66368         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66369         * modules/crypto/gc-md2-tests (License): Likewise.
66370         * modules/crypto/gc-md4-tests (License): Likewise.
66371         * modules/crypto/gc-md5-tests (License): Likewise.
66372         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66373         * modules/crypto/gc-rijndael-tests (License): Likewise.
66374         * modules/crypto/gc-sha1-tests (License): Likewise.
66375         * modules/crypto/gc-tests (License): Likewise.
66376         * modules/crypto/hmac-md5 (License): Likewise.
66377         * modules/crypto/hmac-sha1 (License): Likewise.
66378         * modules/crypto/md2-tests (License): Likewise.
66379         * modules/crypto/md4-tests (License): Likewise.
66380         * modules/crypto/md5 (License): Likewise.
66381         * modules/crypto/rijndael (License): Likewise.
66382         * modules/crypto/sha1 (License): Likewise.
66383         * modules/memxor (License): Likewise.
66384
66385 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66386         and Bruno Haible  <bruno@clisp.org>
66387
66388         * NEWS: Describe interface changes to human, xstrtol.
66389         * lib/human.h: Include <xstrtol.h>.
66390         (human_options): Return enum strtol_error, not int.  Remove
66391         bool arg; take int * instead.
66392         * lib/human.c: Don't include "gettext.h".
66393         (_): Remove; no longer used.
66394         Don't include <xstrtol.h>, since human.h does it.
66395         (human_options): Adjust to abovementioned interface changes.
66396         Do not report error to stderr; that's now the caller's
66397         responsibility.
66398         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66399         interface change.
66400         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66401         Str, Argument_type_string.  All uses changed.  Put " argument"
66402         in diagnostics to make them clearer.  Change wording of suffix
66403         message for clarity.
66404         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66405         Argument_type_string.
66406         (STRTOL_FATAL_WARN): Remove; no longer used.
66407         * modules/human (Depends-on): Remove gettext-h.
66408
66409 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66410
66411         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66412
66413 2007-07-31  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66416         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66417         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66418
66419 2007-07-31  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66422         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66423
66424 2007-07-30  Bruno Haible  <bruno@clisp.org>
66425
66426         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66427         * modules/c-ctype (License): Likewise.
66428         * modules/c-strcase (License): Likewise.
66429         * modules/check-version (License): Likewise.
66430         * modules/iconv (License): Likewise.
66431         * modules/iconv_open (License): Likewise.
66432         * modules/read-file (License): Likewise.
66433         * modules/striconv (License): Likewise.
66434         * modules/strverscmp (License): Likewise.
66435         * modules/vasprintf (License): Likewise.
66436         * modules/crypto/des (License): Likewise.
66437         * modules/crypto/gc (License): Likewise.
66438         * modules/crypto/gc-arcfour (License): Likewise.
66439         * modules/crypto/gc-arctwo (License): Likewise.
66440         * modules/crypto/gc-des (License): Likewise.
66441         * modules/crypto/gc-hmac-md5 (License): Likewise.
66442         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66443         * modules/crypto/gc-md2 (License): Likewise.
66444         * modules/crypto/gc-md4 (License): Likewise.
66445         * modules/crypto/gc-md5 (License): Likewise.
66446         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66447         * modules/crypto/gc-random (License): Likewise.
66448         * modules/crypto/gc-rijndael (License): Likewise.
66449         * modules/crypto/gc-sha1 (License): Likewise.
66450         * modules/crypto/md2 (License): Likewise.
66451         * modules/crypto/md4 (License): Likewise.
66452
66453 2007-07-30  Jim Meyering  <jim@meyering.net>
66454
66455         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66456         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66457         it has valid stat data.  This bug would cause du not to count the
66458         sizes of inaccessible directories.
66459         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66460         in <http://bugzilla.redhat.com/250077>.
66461
66462 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66463             Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66466         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66467         #include_next, gives a diagnostic about it, but reports no error in
66468         the exit code.
66469         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66470
66471 2007-07-24  Ben Pfaff  <blp@gnu.org>
66472
66473         Improve name: "count-one-bits" is better than "popcount".
66474         * MODULES.html.sh: Update name.
66475         * lib/popcount.h: Renamed lib/count-one-bits.h.
66476         (popcount): Renamed count_one_bits.
66477         (popcountl): Renamed count_one_bits_l.
66478         (popcountll): Renamed count_one_bits_ll.
66479         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66480         * modules/popcount: Renamed module/count-one-bits.
66481         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66482         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66483
66484 2007-07-23  Ben Pfaff  <blp@gnu.org>
66485
66486         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66487         better code generation, and add U to large constants to avoid
66488         warnings, in non-GCC case.
66489         Suggested by Bruno Haible.
66490
66491 2007-07-23  Ben Pfaff  <blp@gnu.org>
66492
66493         * lib/popcount.h: Use verify_true instead of if...abort.
66494         * modules/popcount: Depend on verify module.
66495         Suggested by Jim Meyering.
66496
66497 2007-07-23  Bruno Haible  <bruno@clisp.org>
66498
66499         * gnulib-tool (func_import): Create a .cvsignore file also when the
66500         directory is not yet in CVS but the toplevel directory is. When
66501         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66502         Reported by Karl Berry.
66503
66504 2007-07-22  Ben Pfaff  <blp@gnu.org>
66505
66506         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66507         case.
66508         Suggested by Eric Blake.
66509
66510 2007-07-22  Ben Pfaff  <blp@gnu.org>
66511
66512         New module: popcount.
66513         * MODULES.html.sh: Add popcount.
66514         * modules/popcount: New file.
66515         * modules/popcount-tests: New file.
66516         * tests/test-popcount.c: New file.
66517         * lib/popcount.h: New file.
66518         * m4/popcount.m4: New file.
66519
66520 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * build-aux/announce-gen: Update to GPLv3.
66523
66524         * build-aux/config.guess: Update from config.
66525
66526 2007-07-21  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66529         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66530
66531 2007-07-20  Jim Meyering  <jim@meyering.net>
66532
66533         * check-module: Diagnose a self-dependency.
66534
66535 2007-07-19  Bruno Haible  <bruno@clisp.org>
66536
66537         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66538         empty.
66539         Reported by Eric Blake.
66540
66541 2007-07-18  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool: New options --po-base, --po-domain.
66544         (func_usage): Document them.
66545         (pobase, po_domain): New variables.
66546         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66547         DEFAULT_TEXT_DOMAIN.
66548         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66549         (func_import): Consider pobase and po_domain. Create a po/ directory.
66550         (func_create_testdir): Set pobase and po_domain to empty.
66551         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66552         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66553
66554 2007-07-18  Bruno Haible  <bruno@clisp.org>
66555
66556         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66557         EXTRA_DIST augmentation for files in build-aux/.
66558
66559 2007-07-16  Bruno Haible  <bruno@clisp.org>
66560
66561         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66562         * modules/getdelim (License): Likewise.
66563
66564 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66565
66566         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66567         * modules/d-type (License): Likewise.
66568         * modules/extensions (License): Likewise.
66569         * modules/fnmatch (License): Likewise.
66570         * modules/fseeko (License): Likewise.
66571         * modules/getaddrinfo (License): Likewise.
66572         * modules/getline (License): Likewise.
66573         * modules/getlogin_r (License): Likewise.
66574         * modules/getpass (License): Likewise.
66575         * modules/gettimeofday (License): Likewise.
66576         * modules/glob (License): Likewise.
66577         * modules/inet_ntop (License): Likewise.
66578         * modules/malloc (License): Likewise.
66579         * modules/malloca (License): Likewise.
66580         * modules/memmem (License): Likewise.
66581         * modules/mempcpy (License): Likewise.
66582         * modules/memset (License): Likewise.
66583         * modules/minmax (License): Likewise.
66584         * modules/mktime (License): Likewise.
66585         * modules/netinet_in (License): Likewise.
66586         * modules/pathmax (License): Likewise.
66587         * modules/poll (License): Likewise.
66588         * modules/regex (License): Likewise.
66589         * modules/snprintf (License): Likewise.
66590         * modules/stdbool (License): Likewise.
66591         * modules/stdint (License): Likewise.
66592         * modules/stdio (License): Likewise.
66593         * modules/strcase (License): Likewise.
66594         * modules/strcasestr (License): Likewise.
66595         * modules/strdup (License): Likewise.
66596         * modules/string (License): Likewise.
66597         * modules/strndup (License): Likewise.
66598         * modules/strnlen (License): Likewise.
66599         * modules/strpbrk (License): Likewise.
66600         * modules/strptime (License): Likewise.
66601         * modules/strsep (License): Likewise.
66602         * modules/sys_select (License): Likewise.
66603         * modules/sys_socket (License): Likewise.
66604         * modules/sys_stat (License): Likewise.
66605         * modules/sys_time (License): Likewise.
66606         * modules/time (License): Likewise.
66607         * modules/time_r (License): Likewise.
66608         * modules/timegm (License): Likewise.
66609         * modules/unistd (License): Likewise.
66610         * modules/vsnprintf (License): Likewise.
66611         * modules/wctype (License): Likewise.
66612
66613 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66614
66615         * modules/argz (License): LGPLv2+.
66616
66617 2007-07-15  Karl Berry  <karl@gnu.org>
66618
66619         * doc/gnulib.texi: revise node structure per new fdl.texi.
66620
66621 2007-07-14  Bruno Haible  <bruno@clisp.org>
66622
66623         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66624         the output file.
66625         * lib/uniname/uninames.h: Regenerated.
66626
66627 2007-07-14  Karl Berry  <karl@gnu.org>
66628
66629         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66630         omitting sectioning and index commands.
66631
66632 2007-07-13  Bruno Haible  <bruno@clisp.org>
66633
66634         New gnulib-tool option --more-symlinks.
66635         * gnulib-tool (func_usage): Document --more-symlinks.
66636         (do_copyrights): New variable.
66637         Recognize option --more-symlinks.
66638         (func_import): Don't add a copyright notice transform to
66639         sed_transform_lib_file if do_copyrights is empty.
66640
66641 2007-07-13  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/vasnprintf.c (decimal_point_char): Define also if
66644         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66645         && !NEED_PRINTF_DIRECTIVE_A.
66646         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66647         Gary V. Vaughan <gary@gnu.org>.
66648
66649 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * lib/inttypes_.h: Undo previous change, since it was fixed
66652         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66653
66654 2007-07-13  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66657         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66658
66659 2007-07-13  Jim Meyering  <jim@meyering.net>
66660
66661         df: Don't fail for Tru64's "file-on-file mount".
66662         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66663         so we fall through and use statfs instead.  Details here:
66664         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66665         Reported by Albert Chin.
66666
66667 2007-07-13  Bruno Haible  <bruno@clisp.org>
66668
66669         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66670         * modules/configmake (License): Likewise.
66671         * modules/gettext (License): Likewise.
66672         * modules/gettext-h (License): Likewise.
66673         * modules/include_next (License): Likewise.
66674         * modules/link-warning (License): Likewise.
66675         * modules/localcharset (License): Likewise.
66676         * modules/localename (License): Likewise.
66677         * modules/lock (License): Likewise.
66678         * modules/relocatable-lib-lgpl (License): Likewise.
66679         * modules/size_max (License): Likewise.
66680         * modules/vasnprintf (License): Likewise.
66681         * modules/wchar (License): Likewise.
66682         * modules/xsize (License): Likewise.
66683
66684 2007-07-13  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66687         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66688
66689 2007-07-12  Bruno Haible  <bruno@clisp.org>
66690
66691         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66692         in the modules files.
66693
66694 2007-07-11  Karl Berry  <karl@gnu.org>
66695
66696         * MODULES.html.sh (func_module): use
66697          sed -e '\|^'"${includefile}"'$|d'
66698          instead of /.../d, to avoid errors on $includefile's containing /.
66699
66700 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66701
66702         * gnulib-tool (func_import): Avoid duplication of --avoid
66703         statements
66704         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66705         names to `_' in variable names.
66706
66707 2007-07-10  Eric Blake  <ebb9@byu.net>
66708
66709         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66710         * NEWS: Document this change.
66711
66712 2007-07-08  Bruno Haible  <bruno@clisp.org>
66713
66714         Update to Unicode 5.0.
66715         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66716         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66717         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66718         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66719         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66720         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66721         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66722         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66723         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66724         U+10A3F, U+1D242..U+1D244.
66725         (nonspacing_table_ind): Update.
66726         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66727         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66728
66729 2007-07-08  Bruno Haible  <bruno@clisp.org>
66730
66731         Update to Unicode 5.0.
66732         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66733         code transform. Extend the name index field of unicode_name_to_code and
66734         unicode_code_to_name from 16 to 24 bits.
66735         * lib/uniname/uniname.c (unicode_character_name,
66736         unicode_name_character): Add the range 0x12xxx to the code transform.
66737         * lib/uniname/uninames.h: Regenerated.
66738         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66739
66740 2007-07-07  Bruno Haible  <bruno@clisp.org>
66741
66742         * modules/wcwidth-tests: New file.
66743         * tests/test-wcwidth.c: New file.
66744
66745         Work around MacOS X wcwidth() bug.
66746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66747         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66748         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66749         original wcwidth in non-UTF-8 locales.
66750         * modules/wcwidth (Depends-on): Add localcharset, streq,
66751         uniwidth/width.
66752         * doc/functions/wcwidth.texi: Update.
66753
66754 2007-07-07  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66757         (wcwidth): New declaration.
66758         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66759         macros.
66760         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66761         here. Prepare for creating <wchar.h> unconditionally.
66762         * modules/wchar (Depends-on): Add link-warning.
66763         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66764         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66765         * lib/wcwidth.h: Remove file.
66766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66767         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66768         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66769         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66770         (Include): Replace wcwidth.h with <wchar.h>.
66771         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66772         * lib/mbchar.h: Don't include wcwidth.h.
66773         * lib/mbswidth.c: Likewise.
66774         * NEWS: Mention the change.
66775
66776 2007-07-07  Bruno Haible  <bruno@clisp.org>
66777
66778         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66779         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66780         definition with an external declaration.
66781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66782         defined as a function. Remove AC_C_INLINE requirement.
66783         * modules/wcwidth (Files): Add lib/wcwidth.c.
66784         (Makefile.am): Remove redundant statement.
66785
66786 2007-07-07  Bruno Haible  <bruno@clisp.org>
66787
66788         * MODULES.html.sh (Unicode string functions): Add the new modules.
66789
66790         * tests/uniwidth/test-u32-strwidth.c: New file.
66791         * modules/uniwidth/u32-strwidth-tests: New file.
66792
66793         * lib/uniwidth/u32-strwidth.c: New file.
66794         * modules/uniwidth/u32-strwidth: New file.
66795
66796         * tests/uniwidth/test-u16-strwidth.c: New file.
66797         * modules/uniwidth/u16-strwidth-tests: New file.
66798
66799         * lib/uniwidth/u16-strwidth.c: New file.
66800         * modules/uniwidth/u16-strwidth: New file.
66801
66802         * tests/uniwidth/test-u8-strwidth.c: New file.
66803         * modules/uniwidth/u8-strwidth-tests: New file.
66804
66805         * lib/uniwidth/u8-strwidth.c: New file.
66806         * modules/uniwidth/u8-strwidth: New file.
66807
66808         * tests/uniwidth/test-u32-width.c: New file.
66809         * modules/uniwidth/u32-width-tests: New file.
66810
66811         * lib/uniwidth/u32-width.c: New file.
66812         * modules/uniwidth/u32-width: New file.
66813
66814         * tests/uniwidth/test-u16-width.c: New file.
66815         * modules/uniwidth/u16-width-tests: New file.
66816
66817         * lib/uniwidth/u16-width.c: New file.
66818         * modules/uniwidth/u16-width: New file.
66819
66820         * tests/uniwidth/test-u8-width.c: New file.
66821         * modules/uniwidth/u8-width-tests: New file.
66822
66823         * lib/uniwidth/u8-width.c: New file.
66824         * modules/uniwidth/u8-width: New file.
66825
66826         * tests/uniwidth/test-uc_width.c: New file.
66827         * modules/uniwidth/width-tests: New file.
66828
66829         * lib/uniwidth/width.c: New file, from GNU libiconv.
66830         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66831         * modules/uniwidth/width: New file.
66832
66833         * lib/uniwidth.h: New file, from GNU libiconv.
66834         * modules/uniwidth/base: New file.
66835
66836 2007-07-07  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/uniname.h: New file, from GNU gettext.
66839         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66840         * lib/uniname/uninames.h: New file, from GNU gettext.
66841         * lib/uniname/uniname.c: New file, from GNU gettext.
66842         * tests/uniname/test-uninames.sh: New file.
66843         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66844         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66845         * modules/uniname/base: New file.
66846         * modules/uniname/uniname: New file.
66847         * modules/uniname/uniname-tests: New file.
66848         * MODULES.html.sh (Unicode string functions): Add the new modules.
66849
66850 2007-07-06  Bruno Haible  <bruno@clisp.org>
66851
66852         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66853
66854 2007-07-06  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66857         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66858         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66859         include <sys/time.h>.
66860         Reported by Eric Blake.
66861
66862 2007-07-06  Eric Blake  <ebb9@byu.net>
66863
66864         Fix testing canonicalize on cygwin.
66865         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66866         Revert patch from 2007-06-19.
66867         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66868         canonicalize module is also in use.
66869         * tests/test-canonicalize.c: New file.
66870         * tests/test-canonicalize.sh: Likewise.
66871         * modules/canonicalize-tests: Likewise.
66872
66873 2007-07-06  Jim Meyering  <jim@meyering.net>
66874
66875         * lib/getugroups.c (getugroups): Detect getgrent failure.
66876         Adjust comment to reflect reality: this function may return -1.
66877
66878 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66879
66880         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66881         the new TP address.
66882         (usage): Fix typo
66883         (gnulib_mk): New variable.
66884
66885 2007-07-05  Jim Meyering  <jim@meyering.net>
66886
66887         Don't let endgrent clobber errno, no matter how improbable.
66888         * lib/getugroups.c (getugroups): Save and restore errno around
66889         endgrent call.
66890
66891         Close the group DB even when failing with 2^31 or more members.
66892         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66893
66894 2007-07-04  Jim Meyering  <jim@meyering.net>
66895
66896         * lib/getugroups.h: New file.
66897         * lib/getugroups.c: Include "getugroups.h".
66898         Remove uses of "register" keyword.
66899         Move local variable, "cp", down into scope where used.
66900         Give "username" parameter the "const" attribute.
66901         * modules/getugroups (Files): Add lib/getugroups.h
66902
66903 2007-07-04  Karl Berry  <karl@gnu.org>
66904
66905         * MODULES.html.sh (func_all_modules): Complete rename of
66906         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66907
66908 2007-07-02  Bruno Haible  <bruno@clisp.org>
66909
66910         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66911         mode, when inttypes.h comes from gnulib.
66912         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66913
66914 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66915
66916         * NEWS: Mention lgpl module name change.
66917
66918         * modules/lgpl-2.1: Renamed from lgpl.
66919
66920         * NEWS: Mention gpl module name change.
66921
66922         * modules/gpl-3.0: New file, based on gpl-2.0.
66923
66924         * modules/gpl-2.0: Renamed from gpl.
66925
66926         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66927         doc/gpl-2.0.texi.
66928
66929 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66932         #define __STDC_LIMIT_MACROS temporarily while including
66933         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66934         Problem reported by Joel E. Denny in
66935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66936
66937 2007-07-01  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/unistdio.h: New file.
66940         * lib/unistdio/u-asnprintf.h: New file.
66941         * lib/unistdio/u-asprintf.h: New file.
66942         * lib/unistdio/u-printf-args.c: New file.
66943         * lib/unistdio/u-printf-args.h: New file.
66944         * lib/unistdio/u-printf-parse.h: New file.
66945         * lib/unistdio/u-snprintf.h: New file.
66946         * lib/unistdio/u-sprintf.h: New file.
66947         * lib/unistdio/u-vasprintf.h: New file.
66948         * lib/unistdio/u-vsnprintf.h: New file.
66949         * lib/unistdio/u-vsprintf.h: New file.
66950         * lib/unistdio/ulc-asnprintf.c: New file.
66951         * lib/unistdio/ulc-asprintf.c: New file.
66952         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66953         * lib/unistdio/ulc-printf-parse.c: New file.
66954         * lib/unistdio/ulc-snprintf.c: New file.
66955         * lib/unistdio/ulc-sprintf.c: New file.
66956         * lib/unistdio/ulc-vasnprintf.c: New file.
66957         * lib/unistdio/ulc-vasprintf.c: New file.
66958         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66959         * lib/unistdio/ulc-vsnprintf.c: New file.
66960         * lib/unistdio/ulc-vsprintf.c: New file.
66961         * lib/unistdio/u8-asnprintf.c: New file.
66962         * lib/unistdio/u8-asprintf.c: New file.
66963         * lib/unistdio/u8-printf-parse.c: New file.
66964         * lib/unistdio/u8-snprintf.c: New file.
66965         * lib/unistdio/u8-sprintf.c: New file.
66966         * lib/unistdio/u8-vasnprintf.c: New file.
66967         * lib/unistdio/u8-vasprintf.c: New file.
66968         * lib/unistdio/u8-vsnprintf.c: New file.
66969         * lib/unistdio/u8-vsprintf.c: New file.
66970         * lib/unistdio/u8-u8-asnprintf.c: New file.
66971         * lib/unistdio/u8-u8-asprintf.c: New file.
66972         * lib/unistdio/u8-u8-snprintf.c: New file.
66973         * lib/unistdio/u8-u8-sprintf.c: New file.
66974         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66975         * lib/unistdio/u8-u8-vasprintf.c: New file.
66976         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66977         * lib/unistdio/u8-u8-vsprintf.c: New file.
66978         * lib/unistdio/u16-asnprintf.c: New file.
66979         * lib/unistdio/u16-asprintf.c: New file.
66980         * lib/unistdio/u16-printf-parse.c: New file.
66981         * lib/unistdio/u16-snprintf.c: New file.
66982         * lib/unistdio/u16-sprintf.c: New file.
66983         * lib/unistdio/u16-vasnprintf.c: New file.
66984         * lib/unistdio/u16-vasprintf.c: New file.
66985         * lib/unistdio/u16-vsnprintf.c: New file.
66986         * lib/unistdio/u16-vsprintf.c: New file.
66987         * lib/unistdio/u16-u16-asnprintf.c: New file.
66988         * lib/unistdio/u16-u16-asprintf.c: New file.
66989         * lib/unistdio/u16-u16-snprintf.c: New file.
66990         * lib/unistdio/u16-u16-sprintf.c: New file.
66991         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66992         * lib/unistdio/u16-u16-vasprintf.c: New file.
66993         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66994         * lib/unistdio/u16-u16-vsprintf.c: New file.
66995         * lib/unistdio/u32-asnprintf.c: New file.
66996         * lib/unistdio/u32-asprintf.c: New file.
66997         * lib/unistdio/u32-printf-parse.c: New file.
66998         * lib/unistdio/u32-snprintf.c: New file.
66999         * lib/unistdio/u32-sprintf.c: New file.
67000         * lib/unistdio/u32-vasnprintf.c: New file.
67001         * lib/unistdio/u32-vasprintf.c: New file.
67002         * lib/unistdio/u32-vsnprintf.c: New file.
67003         * lib/unistdio/u32-vsprintf.c: New file.
67004         * lib/unistdio/u32-u32-asnprintf.c: New file.
67005         * lib/unistdio/u32-u32-asprintf.c: New file.
67006         * lib/unistdio/u32-u32-snprintf.c: New file.
67007         * lib/unistdio/u32-u32-sprintf.c: New file.
67008         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67009         * lib/unistdio/u32-u32-vasprintf.c: New file.
67010         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67011         * lib/unistdio/u32-u32-vsprintf.c: New file.
67012         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67013         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67014         * tests/unistdio/test-ulc-printf1.h: New file.
67015         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67016         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67017         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67018         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67019         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67020         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67021         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67022         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67023         * tests/unistdio/test-u8-asnprintf1.c: New file.
67024         * tests/unistdio/test-u8-asnprintf1.h: New file.
67025         * tests/unistdio/test-u8-printf1.h: New file.
67026         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67027         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67028         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67029         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67030         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67031         * tests/unistdio/test-u8-vasprintf1.c: New file.
67032         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67033         * tests/unistdio/test-u8-vsprintf1.c: New file.
67034         * tests/unistdio/test-u16-asnprintf1.c: New file.
67035         * tests/unistdio/test-u16-asnprintf1.h: New file.
67036         * tests/unistdio/test-u16-printf1.h: New file.
67037         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67038         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67039         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67040         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67041         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67042         * tests/unistdio/test-u16-vasprintf1.c: New file.
67043         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67044         * tests/unistdio/test-u16-vsprintf1.c: New file.
67045         * tests/unistdio/test-u32-asnprintf1.c: New file.
67046         * tests/unistdio/test-u32-asnprintf1.h: New file.
67047         * tests/unistdio/test-u32-printf1.h: New file.
67048         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67049         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67050         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67051         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67052         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67053         * tests/unistdio/test-u32-vasprintf1.c: New file.
67054         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67055         * tests/unistdio/test-u32-vsprintf1.c: New file.
67056         * modules/unistdio/base: New file.
67057         * modules/unistdio/u-printf-args: New file.
67058         * modules/unistdio/ulc-asnprintf: New file.
67059         * modules/unistdio/ulc-asprintf: New file.
67060         * modules/unistdio/ulc-fprintf: New file.
67061         * modules/unistdio/ulc-printf-parse: New file.
67062         * modules/unistdio/ulc-snprintf: New file.
67063         * modules/unistdio/ulc-sprintf: New file.
67064         * modules/unistdio/ulc-vasnprintf: New file.
67065         * modules/unistdio/ulc-vasprintf: New file.
67066         * modules/unistdio/ulc-vfprintf: New file.
67067         * modules/unistdio/ulc-vsnprintf: New file.
67068         * modules/unistdio/ulc-vsprintf: New file.
67069         * modules/unistdio/u8-asnprintf: New file.
67070         * modules/unistdio/u8-asprintf: New file.
67071         * modules/unistdio/u8-printf-parse: New file.
67072         * modules/unistdio/u8-snprintf: New file.
67073         * modules/unistdio/u8-sprintf: New file.
67074         * modules/unistdio/u8-vasnprintf: New file.
67075         * modules/unistdio/u8-vasprintf: New file.
67076         * modules/unistdio/u8-vsnprintf: New file.
67077         * modules/unistdio/u8-vsprintf: New file.
67078         * modules/unistdio/u8-u8-asnprintf: New file.
67079         * modules/unistdio/u8-u8-asprintf: New file.
67080         * modules/unistdio/u8-u8-snprintf: New file.
67081         * modules/unistdio/u8-u8-sprintf: New file.
67082         * modules/unistdio/u8-u8-vasnprintf: New file.
67083         * modules/unistdio/u8-u8-vasprintf: New file.
67084         * modules/unistdio/u8-u8-vsnprintf: New file.
67085         * modules/unistdio/u8-u8-vsprintf: New file.
67086         * modules/unistdio/u16-asnprintf: New file.
67087         * modules/unistdio/u16-asprintf: New file.
67088         * modules/unistdio/u16-printf-parse: New file.
67089         * modules/unistdio/u16-snprintf: New file.
67090         * modules/unistdio/u16-sprintf: New file.
67091         * modules/unistdio/u16-vasnprintf: New file.
67092         * modules/unistdio/u16-vasprintf: New file.
67093         * modules/unistdio/u16-vsnprintf: New file.
67094         * modules/unistdio/u16-vsprintf: New file.
67095         * modules/unistdio/u16-u16-asnprintf: New file.
67096         * modules/unistdio/u16-u16-asprintf: New file.
67097         * modules/unistdio/u16-u16-snprintf: New file.
67098         * modules/unistdio/u16-u16-sprintf: New file.
67099         * modules/unistdio/u16-u16-vasnprintf: New file.
67100         * modules/unistdio/u16-u16-vasprintf: New file.
67101         * modules/unistdio/u16-u16-vsnprintf: New file.
67102         * modules/unistdio/u16-u16-vsprintf: New file.
67103         * modules/unistdio/u32-asnprintf: New file.
67104         * modules/unistdio/u32-asprintf: New file.
67105         * modules/unistdio/u32-printf-parse: New file.
67106         * modules/unistdio/u32-snprintf: New file.
67107         * modules/unistdio/u32-sprintf: New file.
67108         * modules/unistdio/u32-vasnprintf: New file.
67109         * modules/unistdio/u32-vasprintf: New file.
67110         * modules/unistdio/u32-vsnprintf: New file.
67111         * modules/unistdio/u32-vsprintf: New file.
67112         * modules/unistdio/u32-u32-asnprintf: New file.
67113         * modules/unistdio/u32-u32-asprintf: New file.
67114         * modules/unistdio/u32-u32-snprintf: New file.
67115         * modules/unistdio/u32-u32-sprintf: New file.
67116         * modules/unistdio/u32-u32-vasnprintf: New file.
67117         * modules/unistdio/u32-u32-vasprintf: New file.
67118         * modules/unistdio/u32-u32-vsnprintf: New file.
67119         * modules/unistdio/u32-u32-vsprintf: New file.
67120         * modules/unistdio/ulc-asnprintf-tests: New file.
67121         * modules/unistdio/ulc-vasnprintf-tests: New file.
67122         * modules/unistdio/ulc-vasprintf-tests: New file.
67123         * modules/unistdio/ulc-vsnprintf-tests: New file.
67124         * modules/unistdio/ulc-vsprintf-tests: New file.
67125         * modules/unistdio/u8-asnprintf-tests: New file.
67126         * modules/unistdio/u8-vasnprintf-tests: New file.
67127         * modules/unistdio/u8-vasprintf-tests: New file.
67128         * modules/unistdio/u8-vsnprintf-tests: New file.
67129         * modules/unistdio/u8-vsprintf-tests: New file.
67130         * modules/unistdio/u16-asnprintf-tests: New file.
67131         * modules/unistdio/u16-vasnprintf-tests: New file.
67132         * modules/unistdio/u16-vasprintf-tests: New file.
67133         * modules/unistdio/u16-vsnprintf-tests: New file.
67134         * modules/unistdio/u16-vsprintf-tests: New file.
67135         * modules/unistdio/u32-asnprintf-tests: New file.
67136         * modules/unistdio/u32-vasnprintf-tests: New file.
67137         * modules/unistdio/u32-vasprintf-tests: New file.
67138         * modules/unistdio/u32-vsnprintf-tests: New file.
67139         * modules/unistdio/u32-vsprintf-tests: New file.
67140         * MODULES.html.sh (Unicode string functions): Add the new modules.
67141
67142 2007-07-01  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/sprintf.c (sprintf): Limit the available length estimation,
67145         to avoid address wraparound.
67146         * lib/vsprintf.c (vsprintf): Likewise.
67147         * modules/sprintf-posix (Dependencies): Add stdint.
67148         * modules/vsprintf-posix (Dependencies): Likewise.
67149
67150 2007-07-01  Bruno Haible  <bruno@clisp.org>
67151
67152         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67153         Windows PATH as well. Conservative double-quoting. Comments.
67154
67155 2007-07-01  Bruno Haible  <bruno@clisp.org>
67156             Eric Blake  <ebb9@byu.net>
67157             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67158
67159         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67160         empty components in $PATH, denoting '.'.
67161
67162 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67163
67164         * gnulib-tool: Fix indentation.
67165         (func_create_megatestdir): Likewise.
67166         Report by Bruno Haible.
67167
67168 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67169
67170         Sync from Automake.
67171         * build-aux/gnupload: Fix shell portability issues with for loops.
67172         Report by Karl Berry.
67173
67174 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67175
67176         * build-aux/maint.mk (POURL): Use translationproject.org.
67177
67178 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67179             Bruno Haible  <bruno@clisp.org>
67180
67181         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67182         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67183         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67184         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67185         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67186
67187 2007-06-27  Bruno Haible  <bruno@clisp.org>
67188
67189         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67190         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67191
67192 2007-06-26  Karl Berry  <karl@gnu.org>
67193
67194         * MODULES.html.sh: remove xreadlink-with-size.
67195
67196 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67199         method that I hope also handles the double-include problem noted
67200         by Bruno Haible in
67201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67202
67203 2007-06-23  Bruno Haible  <bruno@clisp.org>
67204
67205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67206         Don't let the 'mostlyclean' target fail if the last subdirectory could
67207         not be removed.
67208         Reported by Karl Berry.
67209
67210 2007-06-23  Bruno Haible  <bruno@clisp.org>
67211
67212         * gnulib-tool (echo): Add a speedier workaround for ksh.
67213         * tests/test-echo.sh: Likewise.
67214
67215 2007-06-23  Bruno Haible  <bruno@clisp.org>
67216
67217         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67218         * tests/test-echo.sh: Likewise.
67219
67220 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67221
67222         * gnulib-tool (IFS): Initialize early, so we don't set it to
67223         empty later.
67224         (self_abspathname): Rewrite algorithm to set it, reindent.
67225         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67226         (func_create_megatestdir): Merge some sed scripts.
67227
67228 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67231         exposed by Sun Studio 11 cc on Solaris 8.
67232
67233 2007-06-22  Bruno Haible  <bruno@clisp.org>
67234
67235         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67236         backslashes.
67237         * tests/test-echo.sh: New file.
67238
67239 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67240
67241         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67242         simplify `sed_replace_build_aux' scripts, they are portable but
67243         echoing them with `echo' is not.
67244         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67245
67246 2007-06-21  Karl Berry  <karl@gnu.org>
67247
67248         * config/srclist.txt: guess we can't handle the licenses via
67249         srclist at the moment.
67250
67251 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * MODULES.html.sh: Add include_next.
67254         * modules/include_next: New file.
67255
67256 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67259         INCLUDE_NEXT.
67260         (gl_CHECK_NEXT_HEADERS): New macro.
67261         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67262         the obsolescent gl_ABSOLUTE_HEADER.
67263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67264         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67265         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67266         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67267         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67268         * m4/math_h.m4 (gl_MATH_H): Likewise.
67269         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67270         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67271         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67272         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67273         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67274         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67275         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67277         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67280         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67281         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67282         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67283         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67284         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67285         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67286         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67287         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67288         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67289         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67290         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67291         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67292         * lib/float_.h: Likewise.
67293         * lib/inttypes_.h: Likewise.
67294         * lib/math_.h: Likewise.
67295         * lib/search_.h: Likewise.
67296         * lib/signal_.h: Likewise.
67297         * lib/stdint_.h: Likewise.
67298         * lib/stdio_.h: Likewise.
67299         * lib/stdlib_.h: Likewise.
67300         * lib/string_.h: Likewise.
67301         * lib/sys_stat_.h: Likewise.
67302         * lib/sys_time_.h: Likewise.
67303         * lib/time_.h: Likewise.
67304         * lib/unistd_.h: Likewise.
67305         * lib/wchar_.h: Likewise.
67306         * lib/wctype_.h: Likewise.
67307         * lib/dirent_.h: Likewise.
67308         * lib/iconv_.h: Likewise.
67309         * lib/locale_.h: Likewise.
67310         * lib/netinet_in_.h: Likewise.
67311         * lib/sys_select_.h: Likewise.
67312         * lib/sys_socket_.h: Likewise.
67313         * lib/sysexits_.h: Likewise.
67314         * modules/fcntl (Depends-on): Depend on include_next, not
67315         absolute_header.
67316         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67317         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67318         * modules/fchdir: Likewise.
67319         * modules/float: Likewise.
67320         * modules/iconv_open: Likewise.
67321         * modules/inttypes: Likewise.
67322         * modules/locale: Likewise.
67323         * modules/math: Likewise.
67324         * modules/netinet_in: Likewise.
67325         * modules/search: Likewise.
67326         * modules/signal: Likewise.
67327         * modules/stdint: Likewise.
67328         * modules/stdio: Likewise.
67329         * modules/stdlib: Likewise.
67330         * modules/string: Likewise.
67331         * modules/sys_select: Likewise.
67332         * modules/sys_socket: Likewise.
67333         * modules/sys_stat: Likewise.
67334         * modules/sys_time: Likewise.
67335         * modules/sysexits: Likewise.
67336         * modules/time: Likewise.
67337         * modules/unistd: Likewise.
67338         * modules/wchar: Likewise.
67339         * modules/wctype: Likewise.
67340         * modules/sys_stat: Change maintainer to "all".
67341         * modules/unistd: Likewise.
67342
67343 2007-06-20  Karl Berry  <karl@gnu.org>
67344
67345         * config/srclist.txt: track www changes in license files.
67346
67347 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67348
67349         * build-aux/bootstrap: Remove stray dot.
67350         Make sure build_aux settings are honored when linking
67351         gnulib_extra_files.
67352
67353 2007-06-19  Eric Blake  <ebb9@byu.net>
67354
67355         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67356         Allow compilation on cygwin.
67357
67358 2007-06-19  Jim Meyering  <jim@meyering.net>
67359
67360         xreadlink-with-size: Remove module.  No longer used.
67361         Ex-callers now use xreadlink or mreadlink-with-size.
67362         * modules/xreadlink-with-size: Remove module.
67363         * lib/xreadlink-with-size.c: Remove file.
67364         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67365         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67366         just before the function definition *is* accurate.
67367
67368         Eliminate one way canonicalize_filename_mode could exit.
67369         * lib/canonicalize.c (canonicalize_filename_mode):
67370         Use mreadlink_with_size, not xreadlink_with_size.
67371
67372 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         Detect porting problems to FreeBSD/arm, which has time_t wider than
67375         long int.  Original problem reported for GNU diff by Xin Li in
67376         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67377         * modules/getdate (Depends-on): Add intprops, verify.
67378         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67379         is an integer type no wider than long int.
67380
67381 2007-06-18  Jim Meyering  <jim@meyering.net>
67382
67383         New module: mreadlink-with-size.
67384         * MODULES.html.sh: Add mreadlink-with-size.
67385         * modules/mreadlink-with-size: New module
67386         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67387         not xreadlink-with-size.
67388         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67389
67390 2007-06-16  Bruno Haible  <bruno@clisp.org>
67391
67392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67393         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67394         Reported by Gary V. Vaughan <gary@gnu.org>.
67395
67396 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67397
67398         Revamp lchown so that it lives in unistd.h where it belongs.
67399         * lib/lchown.h: Remove.
67400         * lib/dirchownmod.c: Don't include lib/lchown.h.
67401         * lib/fchownat.c: Likewise.
67402         * lib/openat.c: Likewise.
67403         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67404         does not follow symlinks.
67405         (EOPNOTSUPP): Define if not defined.
67406         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67407         is defined to 0.
67408         (lchown): New decl.
67409         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67410         Do not check for lchown decl.
67411         Set REPLACE_LCHOWN.
67412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67413         REPLACE_LCHOWN.
67414         * modules/chown: Make it clear it follows symlinks.
67415         * modules/lchown: Make it clear it doesn't follow symlinks.
67416         (Files): Remove lib/lchown.h
67417         (Depends-on): Add unistd.
67418         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67419         (Include): Include <unistd.h>, not "lchown.h".
67420         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67421         REPLACE_LCHOWN.
67422
67423 2007-06-15  Jim Meyering  <jim@meyering.net>
67424
67425         Change license (GPL to LGPL) of fsusage and dependents.
67426         * modules/fsusage (License): Change to LGPL.
67427         * modules/full-read (License): Likewise.
67428         * modules/full-write (License): Likewise.
67429         * modules/safe-read (License): Likewise.
67430         * modules/safe-write (License): Likewise.
67431
67432 2007-06-14  Ben Pfaff  <blp@gnu.org>
67433
67434         Missing part of allocsa -> malloca transition.
67435         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67436         gl_MALLOCA.
67437
67438 2007-06-12  Bruno Haible  <bruno@clisp.org>
67439
67440         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67441         to ia64, x86_64, i386.
67442         Reported by Eric Blake.
67443
67444 2007-06-12  Bruno Haible  <bruno@clisp.org>
67445
67446         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67447         cross-compiling to x86_64.
67448
67449 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67450
67451         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67452         glitch reported by Ralf Wildenhues in
67453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67454
67455         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67456         Vin Shelton.
67457
67458 2007-06-11  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67461         replacement string.
67462         Reported by Eric Blake.
67463
67464 2007-06-10  Bruno Haible  <bruno@clisp.org>
67465
67466         Prepare vasnprintf code for use with Unicode strings.
67467         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67468         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67469         TYPE_U32_STRING.
67470         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67471         a_u32_string variants.
67472         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67473         * lib/printf-args.c: Don't include config.h and the specification
67474         header if PRINTF_FETCHARGS is already defined.
67475         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67476         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67477         TYPE_U16_STRING, TYPE_U32_STRING.
67478         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67479         u16_directive, u16_directives, u32_directive, u32_directives): New
67480         types.
67481         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67482         New declarations.
67483         * lib/printf-parse.c: Don't include config.h and the specification
67484         header if PRINTF_PARSE is already defined. Eliminate the set of
67485         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67486         them now. Include c-ctype.h.
67487         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67488         directive and CHAR_T_ONLY_ASCII.
67489         * lib/vasnprintf.c: Don't include config.h and the specification header
67490         if VASNPRINTF is already defined.
67491         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67492         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67493         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67494         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67495         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67496         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67497         code accordingly.
67498         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67499         pad_ourselves also in this case, with the 'c' and 's' directives, and
67500         with a different notion of "width".
67501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67502
67503 2007-06-10  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/unistr/u32-mbsnlen: New file.
67506         * lib/unistr/u32-mbsnlen.c: New file.
67507
67508         * modules/unistr/u16-mbsnlen: New file.
67509         * lib/unistr/u16-mbsnlen.c: New file.
67510
67511         * modules/unistr/u8-mbsnlen: New file.
67512         * lib/unistr/u8-mbsnlen.c: New file.
67513
67514         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67515         declarations.
67516
67517 2007-06-10  Bruno Haible  <bruno@clisp.org>
67518
67519         * lib/string_.h (mbsnlen): New declaration.
67520         * lib/mbsnlen.c: New file.
67521         * m4/mbsnlen.m4: New file.
67522         * modules/mbsnlen: New file.
67523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67524         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67525         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67526
67527 2007-06-10  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67530
67531 2007-06-10  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67534         * lib/mbuiter.h: Likewise.
67535
67536 2007-06-10  Bruno Haible  <bruno@clisp.org>
67537
67538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67539         declaration.
67540
67541 2007-06-10  Karl Berry  <karl@gnu.org>
67542
67543         * config/srclist.txt: remove gettext entries, Bruno prefers
67544         to update individually.
67545
67546 2007-06-10  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67549         'maxlen'. Ensure only length + width bytes are allocated, not
67550         length + 1 + width.
67551
67552 2007-06-09  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67555         (CHAR_T): Remove macro.
67556         (VASNPRINTF): Update.
67557
67558 2007-06-09  Bruno Haible  <bruno@clisp.org>
67559
67560         * MODULES.html.sh (Unicode string functions): Add the new modules.
67561
67562         * modules/uniconv/u32-conv-to-enc: New file.
67563         * lib/uniconv/u32-conv-to-enc.c: New file.
67564         * modules/uniconv/u32-conv-to-enc-tests: New file.
67565         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67566
67567         * modules/uniconv/u16-conv-to-enc: New file.
67568         * lib/uniconv/u16-conv-to-enc.c: New file.
67569         * lib/uniconv/u-conv-to-enc.h: New file.
67570         * modules/uniconv/u16-conv-to-enc-tests: New file.
67571         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67572
67573         * modules/uniconv/u8-conv-to-enc: New file.
67574         * lib/uniconv/u8-conv-to-enc.c: New file.
67575         * modules/uniconv/u8-conv-to-enc-tests: New file.
67576         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67577
67578         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67579         u32_conv_to_encoding): New declarations.
67580
67581 2007-06-09  Bruno Haible  <bruno@clisp.org>
67582
67583         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67584
67585 2007-06-09  Bruno Haible  <bruno@clisp.org>
67586
67587         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67588         * modules/malloca: Renamed from modules/allocsa, updated.
67589         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67590         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67591         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67592         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67593         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67594         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67595         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67596         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67597         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67598         * modules/c-strcasestr (Depends-on): Update.
67599         * lib/c-strcasestr.c: Update.
67600         * modules/c-strstr (Depends-on): Update.
67601         * lib/c-strstr.c: Update.
67602         * modules/canonicalize-lgpl (Depends-on): Update.
67603         * lib/canonicalize-lgpl.c: Update.
67604         * modules/clean-temp (Depends-on): Update.
67605         * lib/clean-temp.c: Update.
67606         * modules/csharpcomp (Depends-on): Update.
67607         * lib/csharpcomp.c: Update.
67608         * modules/csharpexec (Depends-on): Update.
67609         * lib/csharpexec.c: Update.
67610         * modules/javacomp (Depends-on): Update.
67611         * lib/javacomp.c: Update.
67612         * modules/javaexec (Depends-on): Update.
67613         * lib/javaexec.c: Update.
67614         * modules/mbscasestr (Depends-on): Update.
67615         * lib/mbscasestr.c: Update.
67616         * modules/mbsstr (Depends-on): Update.
67617         * lib/mbsstr.c: Update.
67618         * modules/setenv (Depends-on): Update.
67619         * lib/setenv.c: Update.
67620         * modules/strcasestr (Depends-on): Update.
67621         * lib/strcasestr.c: Update.
67622         * modules/striconveha (Depends-on): Update.
67623         * lib/striconveha.c: Update.
67624         * modules/relocatable-prog-wrapper (Files): Update.
67625         * lib/relocwrapper.c: Update.
67626         * build-aux/install-reloc: Update.
67627         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67628
67629 2007-06-08  Bruno Haible  <bruno@clisp.org>
67630
67631         Port to uClibc.
67632         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67633         * lib/fpurge.c (fpurge): Likewise.
67634         * lib/freading.c (freading): Likewise.
67635         * lib/fseeko.c (rpl_fseeko): Likewise.
67636         * lib/fseterr.c (fseterr): Likewise.
67637         * lib/fwriting.c (fwriting): Likewise.
67638         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67639
67640 2007-06-08  Bruno Haible  <bruno@clisp.org>
67641
67642         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67643         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67644         * modules/gettext (Files): Add m4/intlmacosx.m4.
67645
67646 2007-06-07  Bruno Haible  <bruno@clisp.org>
67647
67648         * modules/localename-tests: New file.
67649         * tests/test-localename.c: New file.
67650
67651         New module 'localename'.
67652         * lib/localename.h: New file.
67653         * lib/localename.c: New file, from GNU gettext.
67654         * m4/localename.m4: New file.
67655         * modules/localename: New file.
67656
67657 2007-06-07  Bruno Haible  <bruno@clisp.org>
67658
67659         Work around the lack of <wchar.h> on some builds of uClibc.
67660         * doc/headers/wchar.texi: Update.
67661         * lib/wchar_.h: Include <wchar.h> only if it exists.
67662         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67663         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67664         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67665         doesn't exist.
67666         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67667         * modules/mbfile (Depends-on): Add wchar.
67668         * modules/mbiter (Depends-on): Likewise.
67669         * modules/mbuiter (Depends-on): Likewise.
67670         Reported by Simon Josefsson.
67671
67672 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         Work around problem reported by Steven M. Schweda in
67675         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67676         Tru64 5.1B with the Compaq compiler environment installed declares
67677         an 'isblank' function but does not define it in the C library.
67678         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67679         * lib/regex_internal.h (isblank): Likewise.
67680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67682
67683 2007-06-05  Bruno Haible  <bruno@clisp.org>
67684
67685         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67686         ia64.
67687         * modules/printf-safe: New file.
67688         * modules/fprintf-posix (Depends-on): Add printf-safe.
67689         * modules/printf-posix (Depends-on): Likewise.
67690         * modules/snprintf-posix (Depends-on): Likewise.
67691         * modules/sprintf-posix (Depends-on): Likewise.
67692         * modules/vasnprintf-posix (Depends-on): Likewise.
67693         * modules/vasprintf-posix (Depends-on): Likewise.
67694         * modules/vfprintf-posix (Depends-on): Likewise.
67695         * modules/vprintf-posix (Depends-on): Likewise.
67696         * modules/vsnprintf-posix (Depends-on): Likewise.
67697         * modules/vsprintf-posix (Depends-on): Likewise.
67698         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67699         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67700         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67701         "no" on i386, x86_64, ia64.
67702         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67703         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67704         on i386, x86_64, ia64.
67705         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67706         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67707         on i386, x86_64, ia64.
67708         * tests/test-vasnprintf-posix.c: Include float.h.
67709         (LDBL80_WORDS): New macro.
67710         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67711         on i386, x86_64, ia64.
67712         * tests/test-vasprintf-posix.c: Include float.h.
67713         (LDBL80_WORDS): New macro.
67714         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67715         on i386, x86_64, ia64.
67716         * tests/test-snprintf-posix.c: Include float.h.
67717         * tests/test-sprintf-posix.c: Likewise.
67718         * tests/test-vsnprintf-posix.c: Likewise.
67719         * tests/test-vsprintf-posix.c: Likewise.
67720
67721 2007-06-05  Bruno Haible  <bruno@clisp.org>
67722
67723         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67724         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67725         non-IEEE numbers on i386, x86_64, ia64.
67726         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67727         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67728         * tests/test-isnanl.h: Include float.h.
67729         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67730
67731 2007-06-05  Bruno Haible  <bruno@clisp.org>
67732
67733         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67734         also the %a / %A. Handle the %a / %A code before this extra handling.
67735
67736 2007-06-05  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67739         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67740
67741 2007-06-05  Bruno Haible  <bruno@clisp.org>
67742
67743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67744         typo in variable name.
67745
67746 2007-06-05  Eric Blake  <ebb9@byu.net>
67747
67748         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67749         Reported by Simon Josefsson.
67750
67751 2007-06-04  Bruno Haible  <bruno@clisp.org>
67752
67753         Avoid test failures on some PowerPC platforms.
67754         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67755         Define differently for PowerPC.
67756         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67757         Reported by Gary V. Vaughan <gary@gnu.org>.
67758
67759 2007-06-02  Bruno Haible  <bruno@clisp.org>
67760
67761         Fix test-stdint failure on FreeBSD/ia64.
67762         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67763         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67764         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67765         * doc/headers/stdint.texi: Update.
67766
67767 2007-06-01  Bruno Haible  <bruno@clisp.org>
67768
67769         * tests/test-binary-io.c (main): Pass a third argument to open().
67770         Reported by Gary V. Vaughan <gary@gnu.org>.
67771
67772 2007-06-01  Bruno Haible  <bruno@clisp.org>
67773
67774         * doc/functions/frexpl.texi: Update for mingw.
67775
67776 2007-06-01  Bruno Haible  <bruno@clisp.org>
67777
67778         * tests/test-lseek.c (main): Disable test of errno for invalid third
67779         argument.
67780         * doc/functions/lseek.texi: Update.
67781         Reported by Gary V. Vaughan <gary@gnu.org>.
67782
67783 2007-05-28  Bruno Haible  <bruno@clisp.org>
67784
67785         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67786
67787 2007-05-31  Eric Blake  <ebb9@byu.net>
67788
67789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67790         cross compiling.
67791
67792 2007-05-30  Eric Blake  <ebb9@byu.net>
67793         and Bruno Haible  <bruno@clisp.org>
67794
67795         Work around mingw test failures exposed by m4-1.4.9b.
67796         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67797         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67798         moment.
67799
67800 2007-05-30  Bruno Haible  <bruno@clisp.org>
67801
67802         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67803         assuming that they are closed. Needed on HP-UX 11.
67804
67805 2007-05-29  Bruno Haible  <bruno@clisp.org>
67806
67807         Fix a problem with #include_next.
67808         * lib/dirent_.h: Split the double-inclusion guard.
67809         * lib/fcntl_.h: Likewise.
67810         * lib/float_.h: Likewise.
67811         * lib/iconv_.h: Likewise.
67812         * lib/inttypes_.h: Likewise.
67813         * lib/locale_.h: Likewise.
67814         * lib/math_.h: Likewise.
67815         * lib/netinet_in_.h: Likewise.
67816         * lib/search_.h: Likewise.
67817         * lib/signal_.h: Likewise.
67818         * lib/stdint_.h: Likewise.
67819         * lib/stdio_.h: Likewise.
67820         * lib/stdlib_.h: Likewise.
67821         * lib/string_.h: Likewise.
67822         * lib/sys_select_.h: Likewise.
67823         * lib/sys_socket_.h: Likewise.
67824         * lib/sys_stat_.h: Likewise.
67825         * lib/sys_time_.h: Likewise.
67826         * lib/sysexits_.h: Likewise.
67827         * lib/time_.h: Likewise.
67828         * lib/unistd_.h: Likewise.
67829         * lib/wchar_.h: Likewise.
67830         * lib/wctype_.h: Likewise.
67831
67832 2007-05-29  Bruno Haible  <bruno@clisp.org>
67833
67834         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67835         for the moment.
67836
67837 2007-05-29  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67840         invocation.
67841         Reported by Eric Blake.
67842
67843 2007-05-29  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67846         compiling case.
67847
67848 2007-05-29  Eric Blake  <ebb9@byu.net>
67849             Bruno Haible  <bruno@clisp.org>
67850
67851         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67852         cross compiles.
67853
67854 2007-05-28  Eric Blake  <ebb9@byu.net>
67855
67856         * modules/closein-tests (test_closein_LDADD): Support test on
67857         cygwin with libtool.
67858
67859 2007-05-28  Bruno Haible  <bruno@clisp.org>
67860
67861         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67862         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67863         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67864         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67865         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67866         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67867         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67868         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67869         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67870
67871 2007-05-28  Eric Blake  <ebb9@byu.net>
67872
67873         Unconditionally include <config.h> in unit tests.
67874         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67875         * tests/test-allocsa.c, tests/test-arcfour.c,
67876         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67877         tests/test-array_list.c, tests/test-array_oset.c,
67878         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67879         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67880         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67881         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67882         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67883         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67884         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67885         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67886         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67887         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67888         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67889         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67890         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67891         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67892         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67893         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67894         test-md5.c, test-memmem.c, test-printf-posix.c,
67895         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67896         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67897         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67898         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67899         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67900         test-vasnprintf-posix2.c, test-vasnprintf.c,
67901         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67902         test-vfprintf-posix.c, test-vprintf-posix.c,
67903         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67904         test-xvasprintf.c: Likewise.
67905
67906 2007-05-28  Bruno Haible  <bruno@clisp.org>
67907
67908         * gnulib-tool (func_import): Remember the --with-tests command-line
67909         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67910         Reported by Eric Blake.
67911
67912 2007-05-28  Bruno Haible  <bruno@clisp.org>
67913
67914         * modules/ftell-tests: New file.
67915         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67916         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67917
67918         * lib/ftell.c: New file.
67919         * modules/ftell: New file.
67920         * m4/ftell.m4: New file.
67921         * doc/functions/ftell.texi: Update.
67922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67923         REPLACE_FTELL.
67924         * lib/stdio_.h (rpl_ftell): New declaration.
67925         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67926         REPLACE_FTELL.
67927
67928 2007-05-28  Eric Blake  <ebb9@byu.net>
67929
67930         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67931
67932 2007-05-28  Bruno Haible  <bruno@clisp.org>
67933
67934         * modules/fseek-tests: New file.
67935         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67936         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67937
67938         * lib/fseek.c: New file.
67939         * modules/fseek: New file.
67940         * m4/fseek.m4: New file.
67941         * doc/functions/fseek.texi: Update.
67942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67943         REPLACE_FSEEK.
67944         * lib/stdio_.h (rpl_fseek): New declaration.
67945         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67946         REPLACE_FSEEK.
67947
67948 2007-05-28  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/stdio_.h (fflush): More comments.
67951
67952 2007-05-28  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67955         runtime test.
67956
67957 2007-05-28  Eric Blake  <ebb9@byu.net>
67958
67959         Improve lseek module.
67960         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67961         * lib/unistd_.h (lseek): Scale back link warning message.
67962         * tests/test-lseek.c: Beef up test.
67963         * tests/test-lseek.sh: Exercise more facets of lseek.
67964         Reported by Bruno Haible.
67965
67966 2007-05-28  Bruno Haible  <bruno@clisp.org>
67967
67968         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67969         to define.
67970
67971 2007-05-27  Bruno Haible  <bruno@clisp.org>
67972
67973         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67974
67975 2007-05-27  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/openmp: New file.
67978         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67979         Noah Misch.
67980
67981 2007-05-26  Bruno Haible  <bruno@clisp.org>
67982
67983         * modules/chdir-long (Depends-on): Add fchdir.
67984         * modules/chdir-safer (Depends-on): Likewise.
67985         * modules/fts (Depends-on): Likewise.
67986         * modules/fts-lgpl (Depends-on): Likewise.
67987         * modules/openat (Depends-on): Likewise.
67988         * modules/savewd (Depends-on): Likewise.
67989
67990 2007-05-24  Eric Blake  <ebb9@byu.net>
67991
67992         Fix lseek on mingw.
67993         * modules/lseek: New module.
67994         * m4/lseek.m4: New file.
67995         * lib/lseek.c: New file.
67996         * modules/lseek-tests: New file.
67997         * tests/test-lseek.c: New file.
67998         * tests/test-lseek.sh: New file.
67999         * MODULES.html.sh: Document lseek module.
68000         * modules/fflush (Depends-on): Add lseek, fseeko.
68001         * modules/fseeko (Depends-on): Likewise.
68002         * modules/ftello (Depends-on): Likewise.
68003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68004         broken.
68005         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68006         broken.
68007         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68008         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68009         * lib/ftello.c (rpl_ftello): Likewise.
68010         * tests/test-fseeko.c (main): Test this.
68011         * tests/test-fseeko.sh: Likewise.
68012         * tests/test-ftello.c (main): Likewise.
68013         * tests/test-ftello.sh: Likewise.
68014         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68015         implies replacing fseek.
68016         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68017         HAVE_FTELLO.
68018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68019         * modules/unistd (Makefile.am): Likewise.
68020         * lib/unistd_.h (lseek): Declare a replacement.
68021         * doc/functions/lseek.texi (lseek): Document this fix.
68022         * doc/functions/fseek.texi (fseek): Likewise.
68023         * doc/functions/ftell.texi (ftell): Likewise.
68024
68025 2007-05-24  Bruno Haible  <bruno@clisp.org>
68026
68027         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68028         in the printed representation of a NaN.
68029         * tests/test-vasprintf-posix.c (test_function): Likewise.
68030         * tests/test-snprintf-posix.h (test_function): Likewise.
68031         * tests/test-sprintf-posix.h (test_function): Likewise.
68032         Reported by Eric Blake.
68033
68034 2007-05-23  Eric Blake  <ebb9@byu.net>
68035
68036         Fix fseeko/ftello on cygwin 1.5.24.
68037         * doc/functions/fseeko.texi (fseeko): Document the fix.
68038         * doc/functions/ftello.texi (ftello): Document the fix.
68039         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68040         * doc/functions/stdout.text (stdout): New file.
68041         * doc/functions/stderr.text (stderr): New file.
68042         * doc/gnulib.texi (Function Substitutes): Use new files.
68043         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68044         prior to 1.7.0.
68045         * tests/test-ftello.c (main): Likewise for ftello.
68046         * tests/test-fseeko.sh: New file.
68047         * tests/test-ftello.sh: New file.
68048         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68049         with seekable stdin.
68050         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68052         (gl_REPLACE_FSEEKO): New macro.
68053         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68054         * modules/fseeko (Files): Distribute fseeko.c.
68055         * modules/ftello (Files): Distribute ftello.c.
68056         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68057         mode.
68058         * lib/ftello.c (rpl_ftello): New file.
68059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68060         fseeko, ftello.
68061         (gl_STDIN_LARGE_OFFSET): New macro.
68062         * modules/stdio (Makefile.am): Perform the replacement.
68063         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68064
68065 2007-05-23  Bruno Haible  <bruno@clisp.org>
68066
68067         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68068         GNULIB_POSIXCHECK is defined.
68069
68070 2007-05-21  Bruno Haible  <bruno@clisp.org>
68071
68072         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68073         Check also the output for NaN arguments. When cross-compiling, guess
68074         no on IRIX.
68075         * lib/vasnprintf.c: Update comments.
68076         * tests/test-vasnprintf-posix.c (strisnan): New function.
68077         (test_function): Use it.
68078         * tests/test-vasprintf-posix.c (strisnan): New function.
68079         (test_function): Use it.
68080         * tests/test-snprintf-posix.h (strisnan): New function.
68081         (test_function): Use it.
68082         * tests/test-sprintf-posix.h (strisnan): New function.
68083         (test_function): Use it.
68084         Reported by Eric Blake.
68085
68086 2007-05-20  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68089         numbers that fails on BeOS.
68090         * doc/functions/frexpl.texi: Update.
68091
68092 2007-05-20  Jim Meyering  <jim@meyering.net>
68093
68094         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68095         forced upon us by glibc-2.6.
68096
68097 2007-05-20  Bruno Haible  <bruno@clisp.org>
68098
68099         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68100         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68101         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68102         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68103         NEED_PRINTF_INFINITE.
68104         (is_infinitel): New function.
68105         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68106         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68107         gl_PREREQ_VASNPRINTF_INFINITE.
68108         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68110         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68111         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68112         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68113         gl_PREREQ_VASNPRINTF_INFINITE.
68114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68116         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68117         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68118         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68120         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68121         * doc/functions/fprintf.texi: Update.
68122         * doc/functions/printf.texi: Update.
68123         * doc/functions/snprintf.texi: Update.
68124         * doc/functions/sprintf.texi: Update.
68125         * doc/functions/vfprintf.texi: Update.
68126         * doc/functions/vprintf.texi: Update.
68127         * doc/functions/vsnprintf.texi: Update.
68128         * doc/functions/vsprintf.texi: Update.
68129
68130 2007-05-20  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68133         was not found in libc.
68134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68135
68136 2007-05-20  Bruno Haible  <bruno@clisp.org>
68137
68138         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68139         printed as "-nan" instead of "nan".
68140         * tests/test-vasprintf-posix.c (test_function): Likewise.
68141         * tests/test-snprintf-posix.h (test_function): Likewise.
68142         * tests/test-sprintf-posix.h (test_function): Likewise.
68143         Needed for HP-UX 11.
68144
68145 2007-05-20  Jim Meyering  <jim@meyering.net>
68146
68147         Fix buggy test for the fchownat-deref bug.
68148         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68149         symlink required for the run-test.  Without it, this test would
68150         always declare that fchownat doesn't work, and client code would
68151         unnecessarily use the replacement function with fixed libc.
68152         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68153         Reported by Greg Schafer.
68154
68155 2007-05-19  Bruno Haible  <bruno@clisp.org>
68156
68157         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68158         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68159         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68160         Needed for IRIX 6.5 and Solaris 2.5.1.
68161
68162 2007-05-19  Bruno Haible  <bruno@clisp.org>
68163
68164         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68165         (test_function): Skip tests involving -0.0 on platforms where
68166         -0.0 = 0.0.
68167         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68168         (test_function): Skip tests involving -0.0 on platforms where
68169         -0.0 = 0.0.
68170         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68171         (test_function): Skip tests involving -0.0 on platforms where
68172         -0.0 = 0.0.
68173         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68174         (test_function): Skip tests involving -0.0 on platforms where
68175         -0.0 = 0.0.
68176         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68177         tests.
68178         * tests/test-printf-posix.h (test_function): Likewise.
68179         * tests/test-printf-posix.output: Remove all -0.0 related results.
68180         Needed for IRIX 6.5.
68181
68182 2007-05-19  Bruno Haible  <bruno@clisp.org>
68183
68184         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68185         printed as "nan0x7fffffff" instead of "nan".
68186         * tests/test-vasprintf-posix.c (test_function): Likewise.
68187         * tests/test-snprintf-posix.h (test_function): Likewise.
68188         * tests/test-sprintf-posix.h (test_function): Likewise.
68189         * tests/test-fprintf-posix.h (NaN): Remove macro.
68190         (test_function): Remove all NaN related tests.
68191         * tests/test-printf-posix.h (NaN): Remove macro.
68192         (test_function): Remove all NaN related tests.
68193         * tests/test-printf-posix.output: Remove all NaN related results.
68194         Needed for IRIX 6.5.
68195
68196 2007-05-19  Bruno Haible  <bruno@clisp.org>
68197
68198         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68200
68201 2007-05-19  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/float_.h: New file.
68204         * m4/float_h.m4: New file.
68205         * modules/float: New file.
68206         * modules/isnanl (Dependencies): Add float.
68207         * modules/isnanl-nolibm (Dependencies): Likewise.
68208         * modules/mathl (Dependencies): Likewise.
68209         * modules/printf-frexpl (Dependencies): Likewise.
68210         * modules/signbit (Dependencies): Likewise.
68211         * modules/vasnprintf (Dependencies): Likewise.
68212         * doc/headers/float.texi: Update.
68213
68214 2007-05-19  Jim Meyering  <jim@meyering.net>
68215
68216         * lib/utimens.c (gl_futimens): Rename from futimens,
68217         now that glibc-2.6 declares futimens.
68218         * lib/utimens.h: Likewise.
68219
68220 2007-05-19  Bruno Haible  <bruno@clisp.org>
68221
68222         Avoid test failures on mingw.
68223         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68224         * tests/test-printf-posix.sh: Likewise.
68225         * tests/test-vfprintf-posix.sh: Likewise.
68226         * tests/test-vprintf-posix.sh: Likewise.
68227
68228 2007-05-19  Bruno Haible  <bruno@clisp.org>
68229
68230         Fix *printf result for NaN, Inf, -0.0 on mingw.
68231         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68232         * lib/vasnprintf.c: Include math.h and isnan.h.
68233         (is_infinite_or_zero): New function.
68234         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68235         values in the %f, %F, %e, %E, %g, %G directives.
68236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68238         gl_PRINTF_INFINITE and test its result. Invoke
68239         gl_PREREQ_VASNPRINTF_INFINITE.
68240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68241         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68247         * doc/functions/fprintf.texi: Update.
68248         * doc/functions/printf.texi: Update.
68249         * doc/functions/snprintf.texi: Update.
68250         * doc/functions/sprintf.texi: Update.
68251         * doc/functions/vfprintf.texi: Update.
68252         * doc/functions/vprintf.texi: Update.
68253         * doc/functions/vsnprintf.texi: Update.
68254         * doc/functions/vsprintf.texi: Update.
68255
68256 2007-05-19  Bruno Haible  <bruno@clisp.org>
68257
68258         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68259         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68260         Instead of multiplying with 10^k, set extra_zeroes to k.
68261         (scale10_round_long_double): Remove function.
68262
68263 2007-05-18  Bruno Haible  <bruno@clisp.org>
68264
68265         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68266         introduced on 2007-05-06.
68267
68268 2007-05-18  Bruno Haible  <bruno@clisp.org>
68269
68270         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68271         %g directives.
68272         * tests/test-vasprintf-posix.c (test_function): Likewise.
68273         * tests/test-snprintf-posix.h (test_function): Likewise.
68274         * tests/test-sprintf-posix.h (test_function): Likewise.
68275
68276 2007-05-18  Bruno Haible  <bruno@clisp.org>
68277
68278         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68279         (strmatch): New function.
68280         (test_function): Test the %f directive on numbers of various exponents.
68281         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68282         (strmatch): New function.
68283         (test_function): Test the %f directive on numbers of various exponents.
68284         * tests/test-snprintf-posix.h (strmatch): New function.
68285         (test_function): Test the %f directive on numbers of various exponents.
68286         * tests/test-sprintf-posix.h (strmatch): New function.
68287         (test_function): Test the %f directive on numbers of various exponents.
68288         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68289         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68290         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68291         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68292
68293 2007-05-18  Bruno Haible  <bruno@clisp.org>
68294
68295         Add support for 'long double' number output.
68296         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68297         * lib/vasnprintf.c: Include math.h and float+.h.
68298         (mp_limb_t): New type.
68299         (GMP_LIMB_BITS): New macro.
68300         (mp_twolimb_t): New type.
68301         (GMP_TWOLIMB_BITS): New macro.
68302         (mpn_t): New type.
68303         (multiply, divide, convert_to_decimal, decode_long_double,
68304         scale10_round_long_double, scale10_round_decimal_long_double,
68305         floorlog10l): New functions.
68306         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68307         for the %f, %F, %e, %E, %g, %G directives.
68308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68310         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68311         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68319         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68320         * modules/snprintf-posix (Depends-on): Likewise.
68321         * modules/sprintf-posix (Depends-on): Likewise.
68322         * modules/vasnprintf-posix (Depends-on): Likewise.
68323         * modules/vasprintf-posix (Depends-on): Likewise.
68324         * modules/vfprintf-posix (Depends-on): Likewise.
68325         * modules/vsnprintf-posix (Depends-on): Likewise.
68326         * modules/vsprintf-posix (Depends-on): Likewise.
68327         * modules/vasnprintf (Files): Add lib/float+.h.
68328         * doc/functions/fprintf.texi: Update.
68329         * doc/functions/printf.texi: Update.
68330         * doc/functions/snprintf.texi: Update.
68331         * doc/functions/sprintf.texi: Update.
68332         * doc/functions/vfprintf.texi: Update.
68333         * doc/functions/vprintf.texi: Update.
68334         * doc/functions/vsnprintf.texi: Update.
68335         * doc/functions/vsprintf.texi: Update.
68336
68337 2007-05-18  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68340
68341 2007-05-18  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68344         for printing 64-bit integers. Needed for mingw.
68345
68346 2007-05-18  Bruno Haible  <bruno@clisp.org>
68347
68348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68349         gl_FUNC_FREXPL_WORKS.
68350         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68351
68352 2007-05-18  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/frexpl-nolibm-tests: New file.
68355
68356         * modules/frexpl-nolibm: New file.
68357         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68358
68359 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68362         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68363         GCC 4.2, which otherwise issues a lot of warnings.
68364         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68365         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68366         Likewise.
68367         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68368         * modules/iconv_open (iconv.h): Likewise.
68369         * modules/locale (locale.h): Likewise.
68370         * modules/netinet_in (netinet/in.h): Likewise.
68371         * modules/sys_select (sys_select.h): Likewise.
68372         * modules/sys_socket (sys/socket.h): Likewise.
68373         * modules/sys_stat (sys/stat.h): Likewise.
68374         * modules/sysexits (sysexits.h): Likewise.
68375         * modules/unistd (unistd.h): Likewise.
68376
68377 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68378
68379         * modules/closein-tests (Makefile.am): Distribute
68380         `test-closein.sh'.
68381
68382 2007-05-17  Bruno Haible  <bruno@clisp.org>
68383
68384         * tests/test-printf-posix.output: Renamed from
68385         tests/test-fprintf-posix.out.
68386         * modules/fprintf-posix-tests: Update.
68387         * modules/printf-posix-tests: Update.
68388         * modules/vfprintf-posix-tests: Update.
68389         * modules/vprintf-posix-tests: Update.
68390         * tests/test-fprintf-posix.sh: Update.
68391         * tests/test-printf-posix.sh: Update.
68392         * tests/test-vfprintf-posix.sh: Update.
68393         * tests/test-vprintf-posix.sh: Update.
68394         Reported by Ralf Wildenhues.
68395
68396 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68399         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68400         GCC 4.2, which otherwise issues a lot of warnings.
68401         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68402         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68403         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68404         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68405         it should no longer be needed.
68406         * lib/string_.h: Likewise.
68407         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68408         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68409         * modules/inttypes (inttypes.h): Likewise.
68410         * modules/math (math.h): Likewise.
68411         * modules/search (search.h): Likewise.
68412         * modules/signal (signal.h): Likewise.
68413         * modules/stdint (stdint.h): Likewise.
68414         * modules/stdio (stdio.h): Likewise.
68415         * modules/stdlib (stdlib.h): Likewise.
68416         * modules/string (string.h): Likewise.
68417         * modules/sys_time (sys/time.h): Likewise.
68418         * modules/time (time.h): Likewise.
68419         * modules/wchar (wchar.h): Likewise.
68420         * modules/wctype (wtype.h): Likewise.
68421
68422 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68423
68424         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68425
68426 2007-05-13  Bruno Haible  <bruno@clisp.org>
68427
68428         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68429         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68430         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68431         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68432         (gl_PREREQ_STRTOK_R): Don't require it here.
68433
68434 2007-05-13  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68437         when used in C++ mode.
68438
68439 2007-05-12  Bruno Haible  <bruno@clisp.org>
68440
68441         * lib/linebuffer.h: Tweak doc.
68442         * lib/linebuffer.c: Likewise.
68443
68444 2007-05-12  James Youngman  <jay@gnu.org>
68445
68446         * lib/linebuffer.c (readlinebuffer_delim): New function,
68447         like readlinebuffer, but use a caller-specified delimiter.
68448         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68449         as the delimiter.
68450         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68451
68452 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68453
68454         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68455         * modules/openat (Files): Remove openat-die.c.
68456         (Depends-on): Add openat-die.
68457         * modules/openat-die: New module.
68458
68459 2007-05-06  Bruno Haible  <bruno@clisp.org>
68460
68461         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68462         Update with info about Cygwin.
68463         * doc/functions/fprintf.texi: Update.
68464         * doc/functions/printf.texi: Update.
68465         * doc/functions/snprintf.texi: Update.
68466         * doc/functions/sprintf.texi: Update.
68467         * doc/functions/vfprintf.texi: Update.
68468         * doc/functions/vprintf.texi: Update.
68469         * doc/functions/vsnprintf.texi: Update.
68470         * doc/functions/vsprintf.texi: Update.
68471         Reported by Eric Blake.
68472
68473 2007-05-06  Bruno Haible  <bruno@clisp.org>
68474
68475         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68476         padding ourselves for the floating-point directives.
68477         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68480         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68481         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68483         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68487         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68489         * tests/test-snprintf-posix.h (test_function): Also check the width
68490         and some flags in the %f directive.
68491         * tests/test-sprintf-posix.h (test_function): Likewise.
68492         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68493         * tests/test-vasprintf-posix.c (test_function): Likewise.
68494         * doc/functions/fprintf.texi: Update.
68495         * doc/functions/printf.texi: Update.
68496         * doc/functions/snprintf.texi: Update.
68497         * doc/functions/sprintf.texi: Update.
68498         * doc/functions/vfprintf.texi: Update.
68499         * doc/functions/vprintf.texi: Update.
68500         * doc/functions/vsnprintf.texi: Update.
68501         * doc/functions/vsprintf.texi: Update.
68502
68503 2007-05-06  Bruno Haible  <bruno@clisp.org>
68504
68505         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68506         pass the ' flag character to sprintf or snprintf.
68507         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68510         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68511         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68519         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68520         flag.
68521         * tests/test-sprintf-posix.h (test_function): Likewise.
68522         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68523         * tests/test-vasprintf-posix.c (test_function): Likewise.
68524         * doc/functions/fprintf.texi: Update.
68525         * doc/functions/printf.texi: Update.
68526         * doc/functions/snprintf.texi: Update.
68527         * doc/functions/sprintf.texi: Update.
68528         * doc/functions/vfprintf.texi: Update.
68529         * doc/functions/vprintf.texi: Update.
68530         * doc/functions/vsnprintf.texi: Update.
68531         * doc/functions/vsprintf.texi: Update.
68532
68533 2007-05-01  Bruno Haible  <bruno@clisp.org>
68534
68535         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68536
68537 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68540         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68541
68542 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68545         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68547
68548 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68549
68550         * lib/argp-help.c (struct hol_entry): New member `ord'.
68551         (HOL_ENTRY_PTRCMP): Use ord for comparison
68552         (hol_sort): Initialize ord.
68553
68554 2007-05-01  Bruno Haible  <bruno@clisp.org>
68555
68556         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68557         Reported by Eric Blake.
68558         * doc/gnulib.texi (Function Substitutes): Update.
68559
68560 2007-05-01  Bruno Haible  <bruno@clisp.org>
68561
68562         * doc/functions.texi: Remove file, now redundant through
68563         doc/functions/*.texi.
68564
68565 2007-05-01  Bruno Haible  <bruno@clisp.org>
68566
68567         * modules/argp (Depends-on): Add sleep.
68568
68569 2007-05-01  Bruno Haible  <bruno@clisp.org>
68570
68571         * modules/sleep-tests: New file.
68572         * tests/test-sleep.c: New file.
68573
68574         * modules/sleep: New file.
68575         * lib/sleep.c: New file.
68576         * m4/sleep.m4: New file.
68577         * lib/unistd_.h (sleep): New declaration.
68578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68579         HAVE_SLEEP.
68580         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68581         * doc/functions/sleep.texi: Document the sleep module.
68582
68583 2007-05-01  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/sigprocmask.h: Remove file.
68586         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68587         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68588         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68589         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68590         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68591         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68592         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68593         HAVE_SIGSET_T as a shell variable.
68594         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68595         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68596         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68597         (Depends-on): Add signal. Remove verify.
68598         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68599         (Include): Mention <signal.h> instead of sigprocmask.h.
68600         * NEWS: Mention the change.
68601         * lib/fatal-signal.c: Don't include sigprocmask.h.
68602
68603 2007-05-01  Bruno Haible  <bruno@clisp.org>
68604
68605         * modules/signal: New file.
68606         * lib/signal_.h: New file.
68607         * m4/signal_h.m4: New file.
68608
68609 2007-05-01  Bruno Haible  <bruno@clisp.org>
68610
68611         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68612         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68613         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68614         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68615
68616 2007-05-01  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68619         configure time.
68620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68621         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68622         * modules/sys_stat (Makefile.am): Substitute their values into
68623         sys/stat.h.
68624
68625 2007-05-01  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68628         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68629         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68630
68631 2007-05-01  Bruno Haible  <bruno@clisp.org>
68632
68633         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68634         'assert' module here.
68635
68636 2007-05-01  Bruno Haible  <bruno@clisp.org>
68637
68638         * doc/functions/*.texi: New files.
68639         * doc/functions/google-ranking.txt: New file.
68640         * doc/gnulib.texi (Function Substitutes): New chapter.
68641         (ctime, inet_ntoa): Remove sections.
68642         * doc/ctime.texi: Remove file.
68643         * doc/inet_ntoa.texi: Remove file.
68644         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68645         dependencies.
68646         (%.info): New rule, specifying a --reference-limit.
68647
68648 2007-05-01  Bruno Haible  <bruno@clisp.org>
68649
68650         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68651
68652 2007-05-01  Bruno Haible  <bruno@clisp.org>
68653
68654         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68655         the portability of 'mkdir' to mingw systems.
68656
68657 2007-05-01  Bruno Haible  <bruno@clisp.org>
68658
68659         * doc/headers/google-ranking.txt: New file.
68660
68661 2007-04-30  Eric Blake  <ebb9@byu.net>
68662
68663         Prefer fseeko to fseek.
68664         * modules/getpass (Depends-on): Add fseeko.
68665         * lib/getpass.c (getpass): Use fseeko, not fseek.
68666
68667 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68668
68669         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68670         assumes the sorting is stable, while most qsort implementations
68671         are not.  Use argument addresses to ensure they never compare as
68672         equal.
68673
68674         * tests/test-argp-2.sh (usage-indent test): Fix output
68675         (func_compare): Restore diff options
68676         * tests/test-argp.c: Restore #include "progname.h"
68677
68678 2007-04-29  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68682         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68684         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68685         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68686         (TESTS, check_PROGRAMS): Add test-snprintf.
68687         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68688         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68689         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68690         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68691         assertions that fail on HP-UX, OSF/1, or IRIX.
68692         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68693
68694 2007-04-29  Bruno Haible  <bruno@clisp.org>
68695
68696         * MODULES.html.sh (posix_functions): Remove 'contents'.
68697
68698 2007-04-29  Karl Berry  <karl@gnu.org>
68699
68700         * config/srclist.txt (gendocs_template_min): new entry.
68701
68702 2007-04-29  Bruno Haible  <bruno@clisp.org>
68703
68704         Work around fpurge bug on BSD systems.
68705         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68706         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68707         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68708         fpurge to rpl_fpurge if the system already has this function.
68709         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68710         the case where the system already has this function. Correct invariants
68711         on BSD systems.
68712         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68713         BSD systems.
68714
68715 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68716
68717         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68718         proposed by Sven Verdoolaege.
68719
68720         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68721         options.
68722         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68723         (usage and help tests): Update
68724
68725 2007-04-29  Bruno Haible  <bruno@clisp.org>
68726
68727         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68728         Print more information in case of failure. Disable a test on BeOS.
68729
68730 2007-04-29  Bruno Haible  <bruno@clisp.org>
68731
68732         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68733         This helps debugging on systems on which no gdb is available.
68734
68735 2007-04-29  Bruno Haible  <bruno@clisp.org>
68736
68737         * lib/freading.h: Improve comments.
68738         * lib/fwriting.h: Likewise.
68739         * tests/test-freading.c (main): Don't check freading immediately after
68740         repositioning. Needed for glibc.
68741
68742 2007-04-29  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/freading.c (freading): Trivial simplification.
68745
68746 2007-04-28  Bruno Haible  <bruno@clisp.org>
68747
68748         * tests/test-fwriting.c (main): Also test the interaction between
68749         fflush and fwriting.
68750         * modules/fwriting-tests (Depends-on): Add fflush.
68751
68752         * tests/test-freading.c (main): Also test the interaction between
68753         fflush and freading.
68754         * modules/freading-tests (Depends-on): Add fflush.
68755
68756 2007-04-28  Bruno Haible  <bruno@clisp.org>
68757
68758         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68759         fseeko and ftello.
68760         Suggested by Eric Blake.
68761
68762 2007-04-28  Jim Meyering  <jim@meyering.net>
68763
68764         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68765         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68766         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68767
68768 2007-04-27  Eric Blake  <ebb9@byu.net>
68769
68770         * doc/headers/assert.texi (assert.h): Document assert module use.
68771
68772 2007-04-27  Bruno Haible  <bruno@clisp.org>
68773
68774         * doc/headers/*.texi: New files.
68775         * doc/gnulib.texi (Header File Substitutes): New chapter.
68776         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68777         dependencies.
68778         (standards.info ,standards.html, standards.dvi): Update dependencies.
68779         (mostlyclean, clean): New targets.
68780
68781 2007-04-27  Bruno Haible  <bruno@clisp.org>
68782
68783         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68784         * modules/sysexits (Files, Makefile.am): Update.
68785
68786         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68787         * modules/sys_socket (Files, Makefile.am): Update.
68788
68789         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68790         * modules/sys_stat (Files, Makefile.am): Update.
68791
68792 2007-04-27  Eric Blake  <ebb9@byu.net>
68793
68794         * lib/freading.h: Improve comments.
68795         * lib/fwriting.h: Likewise.
68796         * lib/fflush.c: Likewise.
68797
68798         Fix closein for mingw.
68799         * modules/closein-tests: Add tests for closein.
68800         * tests/test-closein.c: New file.
68801         * tests/test-closein.sh: Likewise.
68802         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68803         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68804
68805 2007-04-27  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68808         version is < 6.
68809         * lib/math_.h [__DECC]: Likewise.
68810         * lib/stdio_.h [__DECC]: Likewise.
68811         * lib/stdlib_.h [__DECC]: Likewise.
68812         * lib/string_.h [__DECC]: Likewise.
68813         * lib/time_.h [__DECC]: Likewise.
68814         * lib/wchar_.h [__DECC]: Likewise.
68815         * lib/wctype_.h [__DECC]: Likewise.
68816
68817 2007-04-27  Bruno Haible  <bruno@clisp.org>
68818
68819         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68820
68821 2007-04-27  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/fflush.c: Add comments.
68824         * modules/fpurge-tests (Depends-on): Add fflush.
68825         * modules/freadable-tests (Depends-on): Likewise.
68826         * modules/fwritable-tests (Depends-on): Likewise.
68827
68828 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68829
68830         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68831         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68832         Report by Bruno Haible <bruno@clisp.org>.
68833
68834 2007-04-26  Eric Blake  <ebb9@byu.net>
68835
68836         Fix fflush on mingw.
68837         * modules/fflush (Depends-on): Add freading.
68838         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68839         but unread data.
68840
68841 2007-04-26  Eric Blake  <ebb9@byu.net>
68842         and Bruno Haible  <bruno@clisp.org>
68843
68844         Implement freading and fwriting.
68845         * lib/freading.c: New file.
68846         * lib/freading.h: Likewise.
68847         * m4/freading.m4: Likewise.
68848         * modules/freading: Likewise.
68849         * modules/freading-tests: Likewise.
68850         * tests/test-freading.c: Likewise.
68851         * lib/fwriting.c: New file.
68852         * lib/fwriting.h: Likewise.
68853         * m4/fwriting.m4: Likewise.
68854         * modules/fwriting: Likewise.
68855         * modules/fwriting-tests: Likewise.
68856         * tests/test-fwriting.c: Likewise.
68857         * MODULES.html.sh (File stream based Input/Output): Mention them.
68858
68859 2007-04-26  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68862         'long' when we assume it.
68863         Suggested by Eric Blake.
68864
68865 2007-04-26  Bruno Haible  <bruno@clisp.org>
68866
68867         Ensure fseeko, ftello are declared on glibc systems.
68868         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68869         * modules/fseeko (configure.ac-early): Likewise.
68870         * modules/ftello (configure.ac-early): Likewise.
68871         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68872         AC_FUNC_FSEEKO for this.
68873         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68874         (gl_CHECK_FSEEKO): Remove macro.
68875
68876 2007-04-26  Bruno Haible  <bruno@clisp.org>
68877
68878         * tests/test-fflush.c (main): Also check the ftell result after
68879         fflush and fseek/fseeko.
68880         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68881         file descriptor position cache in the stream.
68882         * lib/fseeko.c (rpl_fseeko): Likewise.
68883
68884 2007-04-26  Bruno Haible  <bruno@clisp.org>
68885
68886         * modules/fflush-tests (Depends-on): Add fseeko.
68887
68888 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68889             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68890
68891         * lib/argz_.h: ensure error_t definition is obtained in same
68892         mechanism system argz.h would have.
68893         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68894         argz facilities are known bad.  Err on the side of caution if
68895         cross-compiling.
68896
68897 2007-04-25  Eric Blake  <ebb9@byu.net>
68898
68899         * lib/fpurge.c (includes): Use stdlib.h for free.
68900         * tests/test-fflush.c (main): Also test fflush-fseeko.
68901
68902 2007-04-25  Bruno Haible  <bruno@clisp.org>
68903
68904         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68905         * lib/fseeko.c: New file.
68906         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68907         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68908         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68909         gl_FUNC_FSEEKO.
68910         (gl_FUNC_FSEEKO): Invoke it.
68911         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68912         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68913         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68914
68915 2007-04-25  Bruno Haible  <bruno@clisp.org>
68916
68917         * modules/fflush (Depends-on): Add ftello.
68918
68919 2007-04-25  Bruno Haible  <bruno@clisp.org>
68920
68921         * modules/ftello-tests: New file.
68922         * tests/test-ftello.c: New file.
68923
68924         * modules/ftello: New file.
68925         * m4/ftello.m4: New file.
68926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68927         HAVE_FTELLO.
68928         * lib/stdio_.h (ftello): New declaration.
68929         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68930         HAVE_FTELLO.
68931
68932 2007-04-25  Bruno Haible  <bruno@clisp.org>
68933
68934         * modules/fseeko-tests: New file.
68935         * tests/test-fseeko.c: New file.
68936
68937         * modules/fseeko: New file.
68938         * m4/fseeko.m4: New file.
68939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68940         HAVE_FSEEKO.
68941         * lib/stdio_.h (fseeko): New declaration.
68942         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68943         HAVE_FSEEKO.
68944
68945 2007-04-25  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68948
68949 2007-04-25  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68952         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68953         * tests/test-unistd.c: Likewise.
68954         * tests/test-fcntl.c: Likewise.
68955
68956 2007-04-23  Eric Blake  <ebb9@byu.net>
68957
68958         * lib/fflush.c: Fix missing include.
68959         Reported by Bruno Haible.
68960
68961 2007-04-23  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68964         Reported by Eric Blake.
68965
68966 2007-04-23  Bruno Haible  <bruno@clisp.org>
68967
68968         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68969
68970 2007-04-23  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68973
68974 2007-04-23  Bruno Haible  <bruno@clisp.org>
68975
68976         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68977         Needed on HP-UX 11.
68978
68979 2007-04-16  Eric Blake  <ebb9@byu.net>
68980
68981         Make fflush rely on fpurge.
68982         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68983         open coding all variants.
68984         * modules/fflush (Depends-on): Add fpurge and unistd.
68985         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68986         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68987
68988         Fix --with-tests compilation on cygwin.
68989         * modules/argmatch-tests (Makefile.am): List gnulib library first
68990         in LDADD.
68991         * modules/argp-tests (Makefile.am): Likewise.
68992         * modules/array-list-tests (Makefile.am): Likewise.
68993         * modules/array-oset-tests (Makefile.am): Likewise.
68994         * modules/avltree-list-tests (Makefile.am): Likewise.
68995         * modules/avltree-oset-tests (Makefile.am): Likewise.
68996         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68997         * modules/carray-list-tests (Makefile.am): Likewise.
68998         * modules/dirname-tests (Makefile.am): Likewise.
68999         * modules/frexp-tests (Makefile.am): Likewise.
69000         * modules/isnanl-tests (Makefile.am): Likewise.
69001         * modules/linked-list-tests (Makefile.am): Likewise.
69002         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69003         * modules/lock-tests (Makefile.am): Likewise.
69004         * modules/rbtree-list-tests (Makefile.am): Likewise.
69005         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69006         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69007         * modules/tls-tests (Makefile.am): Likewise.
69008         * modules/tsearch-tests (Makefile.am): Likewise.
69009         * modules/xvasprintf-tests (Makefile.am): Likewise.
69010
69011         Fix fpurge for cygwin.
69012         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69013         value.
69014         * modules/fpurge-tests (Depends-on): Clean up trash.
69015
69016 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69017
69018         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69019
69020         * m4/autobuild.m4: Re-indent.
69021
69022 2007-04-13  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/fpurge-tests: New file.
69025         * tests/test-fpurge.c: New file.
69026
69027         * modules/fpurge: New file.
69028         * lib/fpurge.h: New file.
69029         * lib/fpurge.c: New file.
69030         * m4/fpurge.m4: New file.
69031
69032 2007-04-13  Bruno Haible  <bruno@clisp.org>
69033
69034         * modules/fbufmode-tests: New file.
69035         * tests/test-fbufmode.c: New file.
69036
69037         * modules/fbufmode: New file.
69038         * lib/fbufmode.h: New file.
69039         * lib/fbufmode.c: New file.
69040         * m4/fbufmode.m4: New file.
69041
69042 2007-04-13  Bruno Haible  <bruno@clisp.org>
69043
69044         * modules/fwritable-tests: New file.
69045         * tests/test-fwritable.c: New file.
69046
69047         * modules/fwritable: New file.
69048         * lib/fwritable.h: New file.
69049         * lib/fwritable.c: New file.
69050         * m4/fwritable.m4: New file.
69051
69052 2007-04-13  Bruno Haible  <bruno@clisp.org>
69053
69054         * modules/freadable-tests: New file.
69055         * tests/test-freadable.c: New file.
69056
69057         * modules/freadable: New file.
69058         * lib/freadable.h: New file.
69059         * lib/freadable.c: New file.
69060         * m4/freadable.m4: New file.
69061
69062 2007-04-13  Bruno Haible  <bruno@clisp.org>
69063
69064         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69065         MOSTLYCLEANFILES.
69066
69067 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69070         gzip bootstrap.conf to avoid dragging in i18n machinery.
69071         (gnulib_tool_option): Use it.
69072
69073 2007-04-13  Bruno Haible  <bruno@clisp.org>
69074
69075         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69076         %F directives.
69077         * tests/test-vasprintf-posix.c (test_function): Likewise.
69078         * tests/test-snprintf-posix.h (test_function): Likewise.
69079         * tests/test-sprintf-posix.h (test_function): Likewise.
69080         * tests/test-fprintf-posix.h (test_function): Likewise.
69081         * tests/test-printf-posix.h (test_function): Likewise.
69082         * tests/test-fprintf-posix.out: Likewise.
69083
69084 2007-04-13  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69087         * modules/tls-tests (configure.ac): Likewise.
69088         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69089
69090 2007-04-13  Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/tls.c (glthread_tls_get): Fix return type.
69093         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69094
69095 2007-04-12  Eric Blake  <ebb9@byu.net>
69096
69097         * modules/gettime (Depends-on): Remove gettime.
69098         Reported by Dmitry V. Levin.
69099
69100 2007-04-12  Bruno Haible  <bruno@clisp.org>
69101
69102         * modules/fflush (Include): Mention <stdio.h>.
69103         * modules/strtoimax (Include): Mention <inttypes.h>.
69104         * modules/strtoumax (Include): Likewise.
69105
69106 2007-04-12  Eric Blake  <ebb9@byu.net>
69107
69108         * .cvsignore: New file.
69109         * .gitignore: Likewise.
69110
69111 2007-04-12  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69114         not before, since $(LDADD) often contains libgnu.a.
69115         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69116         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69117         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69118         Needed on Cygwin.
69119
69120 2007-04-12  Eric Blake  <ebb9@byu.net>
69121
69122         Work around glibc's failure to flush stdin on fclose.
69123         * lib/closein.c (close_stdin): Flush stdin before closing.
69124
69125         Work around glibc's failure to reset seekable stdin on exit.
69126         * modules/closein: New module.
69127         * lib/closein.c: New file.
69128         * lib/closein.h: Likewise.
69129         * m4/closein.m4: Likewise.
69130         * MODULES.html.sh (File stream based Input/Output): Document it.
69131
69132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69133
69134         * gnulib-tool: Rename generated 'autobuild' script to
69135         'do-autobuild' in --create-megatestdir output.
69136
69137         * doc/gnulib.texi (Build robot for gnulib): Fix.
69138
69139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69140
69141         * modules/sysexits (Depends-on): Add absolute-header.
69142
69143 2007-04-12  Eric Blake  <ebb9@byu.net>
69144
69145         No need to preserve errno on success.
69146         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69147         Reported by Bruno Haible.
69148
69149 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69150
69151         * MODULES.html.sh (Support for maintaining and releasing
69152         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69153
69154 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69155
69156         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69157
69158 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69159
69160         * modules/autobuild: New module.
69161
69162         * m4/autobuild.m4: New file.
69163
69164 2007-04-11  Bruno Haible  <bruno@clisp.org>
69165
69166         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69167         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69183         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69184         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69186         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69187         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69188         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69189         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69190         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69192         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69193         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69194         Reported by Eric Blake.
69195
69196 2007-04-11  Bruno Haible  <bruno@clisp.org>
69197
69198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69199
69200 2007-04-10  Bruno Haible  <bruno@clisp.org>
69201
69202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69203         for NaN and Infinity. Needed on FreeBSD 6.1.
69204         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69205         regarding results for "%010a" of Infinity and NaN.
69206         * tests/test-vasprintf-posix.c (test_function): Likewise.
69207         * tests/test-snprintf-posix.h (test_function): Likewise.
69208         * tests/test-sprintf-posix.h (test_function): Likewise.
69209         * tests/test-fprintf-posix.h (test_function): Likewise.
69210         * tests/test-printf-posix.h (test_function): Likewise.
69211         * tests/test-fprintf-posix.out: Likewise.
69212
69213 2007-04-10  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/locale-tests: New file.
69216         * tests/test-locale.c: New file.
69217
69218         * modules/locale: New file.
69219         * lib/locale_.h: New file.
69220         * m4/locale_h.m4: New file.
69221
69222 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69223             Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69226         be determined, test for availability of the copysignf, copysign,
69227         copysignl functions.
69228         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69229         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69230         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69231
69232 2007-04-09  Eric Blake  <ebb9@byu.net>
69233
69234         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69235         * modules/stdio (Makefile.am): Support fflush.
69236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69237         * modules/fflush: New file.
69238         * lib/fflush.c: Likewise.
69239         * m4/fflush.m4: Likewise.
69240         * modules/fflush-tests: New test.
69241         * tests/test-fflush.c: Likewise.
69242         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69243
69244 2007-04-06  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69247         (VASNPRINTF): Use signbit for faster determination whether to print a
69248         minus sign.
69249         * modules/vasnprintf (Files): Remove lib/float+.h.
69250         * modules/fprintf-posix (Depends-on): Add signbit.
69251         * modules/snprintf-posix (Depends-on): Likewise.
69252         * modules/sprintf-posix (Depends-on): Likewise.
69253         * modules/vasnprintf-posix (Depends-on): Likewise.
69254         * modules/vasprintf-posix (Depends-on): Likewise.
69255         * modules/vfprintf-posix (Depends-on): Likewise.
69256         * modules/vsnprintf-posix (Depends-on): Likewise.
69257         * modules/vsprintf-posix (Depends-on): Likewise.
69258
69259 2007-04-06  Bruno Haible  <bruno@clisp.org>
69260
69261         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69262         * tests/test-frexpl.c (main): Likewise.
69263         * tests/test-ldexpl.c (main): Likewise.
69264         * modules/frexp-tests (Depends-on): Add signbit.
69265         * modules/frexpl-tests (Depdends-on): Likewise.
69266         * modules/ldexpl-tests (Depdends-on): Likewise.
69267
69268 2007-04-06  Bruno Haible  <bruno@clisp.org>
69269
69270         * modules/signbit-tests: New file.
69271         * tests/test-signbit.c: New file.
69272
69273         * modules/signbit: New file.
69274         * lib/signbitf.c: New file.
69275         * lib/signbitd.c: New file.
69276         * lib/signbitl.c: New file.
69277         * m4/signbit.m4: New file.
69278         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69279         (signbit): New macro.
69280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69281         REPLACE_SIGNBIT.
69282         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69283         REPLACE_FREXPL into math.h.
69284
69285 2007-04-06  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/isnanf-nolibm-tests: New file.
69288         * tests/test-isnanf.c: New file.
69289
69290         * modules/isnanf-nolibm: New file.
69291         * lib/isnanf.h: New file.
69292         * lib/isnanf.c: New file.
69293         * lib/isnan.c: Consider the USE_FLOAT macro.
69294         * m4/isnanf.m4: New file.
69295
69296 2007-04-06  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69299         (Link): New section.
69300
69301         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69302
69303 2007-04-06  Bruno Haible  <bruno@clisp.org>
69304
69305         Assume the 'long double' type.
69306         * m4/longdouble.m4: Remove file.
69307         * config/srclist.txt: Don't mention longdouble.m4.
69308         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69309         * lib/float+.h: Likewise.
69310         * lib/frexp.c: Likewise.
69311         * lib/printf-args.h: Likewise.
69312         * lib/printf-args.c: Likewise.
69313         * lib/printf-frexp.c: Likewise.
69314         * lib/printf-parse.c: Likewise.
69315         * lib/vasnprintf.c: Likewise.
69316         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69317         * m4/intl.m4: Likewise.
69318         * m4/isnanl.m4: Likewise.
69319         * m4/printf.m4: Likewise.
69320         * m4/printf-frexpl.m4: Likewise.
69321         * m4/vasnprintf.m4: Likewise.
69322         * modules/allocsa (Files): Remove m4/longdouble.m4.
69323         * modules/gettext (Files): Likewise.
69324         * modules/relocatable-prog-wrapper (Files): Likewise.
69325         * modules/vasnprintf (Files): Likewise.
69326         * modules/isnanl (Files): Likewise.
69327         (Include): Simplify.
69328         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69329         (Include): Simplify.
69330         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69331         (Include): Simplify.
69332         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69334         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69336         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69337         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69338         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69339         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69340         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69341         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69342         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69343         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69344         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69345         * tests/test-isnanl.c: Likewise.
69346         * tests/test-snprintf-posix.h: Likewise.
69347         * tests/test-sprintf-posix.h: Likewise.
69348         * tests/test-vasnprintf-posix.c: Likewise.
69349         * tests/test-vasnprintf-posix2.c: Likewise.
69350         * tests/test-vasprintf-posix.c: Likewise.
69351
69352 2007-04-06  Bruno Haible  <bruno@clisp.org>
69353
69354         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69355         * lib/math_.h [__DECC]: Include the overridden include file through
69356         #include_next, outside the double-inclusion guard.
69357         * lib/stdio_.h [__DECC]: Likewise.
69358         * lib/stdlib_.h [__DECC]: Likewise.
69359         * lib/string_.h [__DECC]: Likewise.
69360         * lib/time_.h [__DECC]: Likewise.
69361         * lib/wchar_.h [__DECC]: Likewise.
69362         * lib/wctype_.h [__DECC]: Likewise.
69363         * lib/inttypes_.h [__DECC]: Likewise.
69364         Reported by Albert Chin <china@thewrittenword.com> in
69365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69366
69367 2007-04-04  Eric Blake  <ebb9@byu.net>
69368
69369         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69370         1.5.x.
69371
69372 2007-04-04  Bruno Haible  <bruno@clisp.org>
69373
69374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69375         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69376
69377 2007-04-04  Bruno Haible  <bruno@clisp.org>
69378
69379         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69380         results for "%010a" of Infinity and NaN.
69381         * tests/test-vasprintf-posix.c (test_function): Likewise.
69382         * tests/test-snprintf-posix.h (test_function): Likewise.
69383         * tests/test-sprintf-posix.h (test_function): Likewise.
69384         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69385         * tests/test-printf-posix.h (test_function): Likewise.
69386         * tests/test-fprintf-posix.out: Update.
69387         Needed for FreeBSD 6.1.
69388
69389 2007-04-04  Bruno Haible  <bruno@clisp.org>
69390
69391         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69392         directly used by the gnulib modules nor by gnulib-tool.
69393
69394 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * DEPENDENCIES: Give overall description of version dependency
69397         desirability.  Use more-typical names for apps.
69398         Add shell, coreutils, diffutils, grep, tar, gzip.
69399
69400 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69401
69402         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69403
69404 2007-04-04  Karl Berry  <karl@gnu.org>
69405
69406         * MODULES.html.sh (func_module): missing '.
69407
69408 2007-04-03  Bruno Haible  <bruno@clisp.org>
69409
69410         * modules/argmatch-tests (Makefile.am): New variable
69411         test_argmatch_LDADD.
69412         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69413         * modules/array-list-tests (Makefile.am): New variable
69414         test_array_list_LDADD.
69415         * modules/array-oset-tests (Makefile.am): New variable
69416         test_array_oset_LDADD.
69417         * modules/avltree-list-tests (Makefile.am): New variable
69418         test_avltree_list_LDADD.
69419         * modules/avltree-oset-tests (Makefile.am): New variable
69420         test_avltree_oset_LDADD.
69421         * modules/avltreehash-list-tests (Makefile.am): New variable
69422         test_avltreehash_list_LDADD.
69423         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69424         test_canonicalize_lgpl_LDADD.
69425         * modules/carray-list-tests (Makefile.am): New variable
69426         test_carray_list_LDADD.
69427         * modules/dirname-tests (Makefile.am): New variable
69428         test_dirname_LDADD.
69429         * modules/linked-list-tests (Makefile.am): New variable
69430         test_linked_list_LDADD.
69431         * modules/linkedhash-list-tests (Makefile.am): New variable
69432         test_linkedhash_list_LDADD.
69433         * modules/rbtree-list-tests (Makefile.am): New variable
69434         test_rbtree_list_LDADD.
69435         * modules/rbtree-oset-tests (Makefile.am): New variable
69436         test_rbtree_oset_LDADD.
69437         * modules/rbtreehash-list-tests (Makefile.am): New variable
69438         test_rbtreehash_list_LDADD.
69439         * modules/xvasprintf-tests (Makefile.am): New variable
69440         test_xvasprintf_LDADD.
69441         Reported by Eric Blake.
69442
69443 2007-04-03  Eric Blake  <ebb9@byu.net>
69444
69445         * DEPENDENCIES: Weaken m4 requirements.
69446
69447 2007-04-03  Bruno Haible  <bruno@clisp.org>
69448
69449         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69450         * modules/isnanl-tests (configure.ac): Likewise.
69451
69452 2007-04-03  Ben Pfaff  <blp@gnu.org>
69453
69454         * modules/iconv_open: Add $(srcdir)/ to source directory
69455         references in Makefile fragments that call gperf, to fix VPATH
69456         builds.
69457
69458 2007-04-03  Bruno Haible  <bruno@clisp.org>
69459
69460         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69461         * lib/ldexpl.c: Undo last change.
69462
69463 2007-04-03  Bruno Haible  <bruno@clisp.org>
69464
69465         * modules/printf-frexpl (Depends-on): Undo last change.
69466         (Files): Add m4/ldexpl.m4.
69467
69468 2007-04-03  Bruno Haible  <bruno@clisp.org>
69469
69470         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69471         * modules/isnanl (Link): New section.
69472
69473         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69474         * modules/frexp (Link): New section.
69475
69476         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69477         * modules/frexpl (Link): New section.
69478
69479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69480         * modules/ldexpl (Link): New section.
69481
69482 2007-04-03  Bruno Haible  <bruno@clisp.org>
69483
69484         * modules/TEMPLATE-EXTENDED: New file.
69485         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69486
69487 2007-04-03  Bruno Haible  <bruno@clisp.org>
69488
69489         * DEPENDENCIES: New file.
69490         Suggested by Simon Josefsson.
69491
69492 2007-04-03  Bruno Haible  <bruno@clisp.org>
69493
69494         * doc/gnulib.texi: Escape @.
69495
69496 2007-04-03  James Youngman  <jay@gnu.org>
69497         and Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69500         birthtime on all systems that have birthtime, not just those which
69501         use st_birthtimensec rather than st_birthtim.  Putting zero in
69502         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69503         that the birth time is not available for files on an NFS mount.
69504
69505 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69506
69507         * modules/memxor: Move back from crypto/, suggested by Bruno.
69508         * modules/crypto/hmac-sha1: Fix memxor dependency.
69509
69510         * modules/crypto/gc: Moved from ../.
69511
69512 2007-04-02  Eric Blake  <ebb9@byu.net>
69513
69514         * lib/ldexpl.c (includes): Avoid libm.
69515
69516         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69517
69518 2007-04-02  Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69521         on IRIX.
69522
69523 2007-04-02  Bruno Haible  <bruno@clisp.org>
69524
69525         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69526         x86 or x86_64 platforms running MacOS X.
69527         Reported by Ryan Schmidt <@ryandesign.com>.
69528
69529 2007-04-02  Bruno Haible  <bruno@clisp.org>
69530
69531         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69532         i386.
69533
69534 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69535
69536         * modules/crypto/arcfour: Moved from ../.
69537         * modules/crypto/arcfour-tests: Moved from ../.
69538         * modules/crypto/arctwo: Moved from ../.
69539         * modules/crypto/arctwo-tests: Moved from ../.
69540         * modules/crypto/des: Moved from ../.
69541         * modules/crypto/des-tests: Moved from ../.
69542         * modules/crypto/gc-arcfour: Moved from ../.
69543         * modules/crypto/gc-arcfour-tests: Moved from ../.
69544         * modules/crypto/gc-arctwo: Moved from ../.
69545         * modules/crypto/gc-arctwo-tests: Moved from ../.
69546         * modules/crypto/gc-des: Moved from ../.
69547         * modules/crypto/gc-des-tests: Moved from ../.
69548         * modules/crypto/gc-hmac-md5: Moved from ../.
69549         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69550         * modules/crypto/gc-hmac-sha1: Moved from ../.
69551         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69552         * modules/crypto/gc-md2: Moved from ../.
69553         * modules/crypto/gc-md2-tests: Moved from ../.
69554         * modules/crypto/gc-md4: Moved from ../.
69555         * modules/crypto/gc-md4-tests: Moved from ../.
69556         * modules/crypto/gc-md5: Moved from ../.
69557         * modules/crypto/gc-md5-tests: Moved from ../.
69558         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69559         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69560         * modules/crypto/gc-random: Moved from ../.
69561         * modules/crypto/gc-rijndael: Moved from ../.
69562         * modules/crypto/gc-rijndael-tests: Moved from ../.
69563         * modules/crypto/gc-sha1: Moved from ../.
69564         * modules/crypto/gc-sha1-tests: Moved from ../.
69565         * modules/crypto/gc-tests: Moved from ../.
69566         * modules/crypto/hmac-md5: Moved from ../.
69567         * modules/crypto/hmac-md5-tests: Moved from ../.
69568         * modules/crypto/hmac-sha1: Moved from ../.
69569         * modules/crypto/hmac-sha1-tests: Moved from ../.
69570         * modules/crypto/md2: Moved from ../.
69571         * modules/crypto/md2-tests: Moved from ../.
69572         * modules/crypto/md4: Moved from ../.
69573         * modules/crypto/md4-tests: Moved from ../.
69574         * modules/crypto/md5: Moved from ../.
69575         * modules/crypto/md5-tests: Moved from ../.
69576         * modules/crypto/memxor: Moved from ../.
69577         * modules/crypto/rijndael: Moved from ../.
69578         * modules/crypto/rijndael-tests: Moved from ../.
69579         * modules/crypto/sha1: Moved from ../.
69580
69581 2007-03-30  James Youngman  <jay@gnu.org>
69582
69583         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69584         rename() to change the ctime of a file (because ctime is unaffected
69585         by rename on jfs2 on AIX 5.1).
69586         (main): Start by doing cleanup, in case a previous run failed leaving
69587         test files behind.
69588
69589 2007-03-31  Bruno Haible  <bruno@clisp.org>
69590
69591         Support old proprietary implementations of iconv.
69592         * modules/iconv_open: New file.
69593         * lib/iconv_.h: New file.
69594         * m4/iconv_h.m4: New file.
69595         * lib/iconv_open.c: New file.
69596         * lib/iconv_open-aix.gperf: New file.
69597         * lib/iconv_open-hpux.gperf: New file.
69598         * lib/iconv_open-irix.gperf: New file.
69599         * lib/iconv_open-osf.gperf: New file.
69600         * m4/iconv_open.m4: New file.
69601         * modules/linebreak (Depends-on): Add iconv_open.
69602         * modules/striconv (Depends-on): Likewise.
69603         * modules/striconveh (Depends-on): Likewise.
69604         * modules/unicodeio (Depends-on): Likewise.
69605         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69606         (iconv_t)(-1).
69607         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69608         conversion if cd is (iconv_t)(-1).
69609         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69610         is not possible.
69611
69612 2007-03-31  Bruno Haible  <bruno@clisp.org>
69613
69614         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69615         work on Solaris either. Protect also second use of "autodetect_jp".
69616
69617 2007-03-31  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69620         the function is not present.
69621
69622 2007-03-31  Bruno Haible  <bruno@clisp.org>
69623
69624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69625         the function is not present.
69626
69627 2007-03-31  Bruno Haible  <bruno@clisp.org>
69628
69629         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69630         a bug in HP-UX iconv_open().
69631
69632 2007-03-31  Bruno Haible  <bruno@clisp.org>
69633
69634         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69635         (Mathematics <math.h>): New section, add fpieee.
69636         (Input/output <stdio.h>): Add fseterr.
69637         (Mathematics <math.h>): New section, add printf-frexp.
69638         (Container data structures): Add sublist.
69639         (Core language properties): Add fpucw, inline.
69640         (Functions for greatest-width integer types <inttypes.h>): Add
69641         imaxabs, imaxdiv, inttypes.
69642         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69643         isnanl-nolibm, ldexp.
69644         (Mathematics <math.h>): New section, add printf-frexpl.
69645         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69646         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69647         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69648         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69649         (Unicode string functions): Add unistr/u*-mbtoucr.
69650         (Java): Add javacomp-script, javaexec-script.
69651         (C#): Add csharpcomp-script, csharpexec-script.
69652         (Support for building libraries and executables): Add havelib,
69653         relocatable-*.
69654         (Support for maintaining and releasing projects): Renamed from
69655         'Support for maintaining and release projects'. Add announce-gen.
69656
69657 2007-03-31  Bruno Haible  <bruno@clisp.org>
69658
69659         * README: Talk primarily about git.
69660         (git and CVS): Renamed from CVS.
69661         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69662         gnulib is available through git.
69663         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69664
69665 2007-03-30  Bruno Haible  <bruno@clisp.org>
69666
69667         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69668         * lib/poll_.h: Likewise.
69669         * lib/stat_.h: Likewise.
69670         * lib/sys_time_.h: Likewise.
69671         * lib/sysexit_.h: Likewise.
69672         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69673         * lib/stdbool_.h: Likewise.
69674         * lib/byteswap_.h: Add double-inclusion guard.
69675
69676 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69677
69678         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69679
69680 2007-03-30  Karl Berry  <karl@gnu.org>
69681
69682         * config/srclist-update: double space after USA in the license
69683         substitution, since that's how it's usually (?) written.
69684
69685 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69688         reported by Bruno Haible.
69689
69690 2007-03-29  Bruno Haible  <bruno@clisp.org>
69691
69692         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69693         a bug in AIX iconv().
69694
69695 2007-03-29  Bruno Haible  <bruno@clisp.org>
69696
69697         * modules/ldexpl-tests: New file.
69698         * tests/test-ldexpl.c: New file.
69699
69700 2007-03-29  Bruno Haible  <bruno@clisp.org>
69701
69702         * lib/ldexpl.c: Include fpucw.h.
69703         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69704         multiplication.
69705         * modules/ldexpl (Depends-on): Add fpucw.
69706
69707 2007-03-29  Bruno Haible  <bruno@clisp.org>
69708
69709         * modules/ldexpl: New file.
69710         * m4/ldexpl.m4: New file.
69711         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69712         set.
69713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69714         REPLACE_LDEXPL.
69715         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69716         REPLACE_LDEXPL.
69717         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69718         gl_FUNC_LDEXPL_WORKS.
69719         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69720         * modules/mathl (Files): Remove lib/ldexpl.c.
69721         (Depends-on): Add ldexpl.
69722
69723 2007-03-29  Bruno Haible  <bruno@clisp.org>
69724
69725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69726
69727 2007-03-29  Bruno Haible  <bruno@clisp.org>
69728
69729         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69730         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69731         and possibly also HP-UX.
69732         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69733         work on AIX, IRIX, HP-UX, OSF/1.
69734         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69735         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69736         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69737         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69738         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69739         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69740
69741 2007-03-29  Bruno Haible  <bruno@clisp.org>
69742
69743         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69744
69745 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69748         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69749
69750 2007-03-29  Eric Blake  <ebb9@byu.net>
69751
69752         * lib/acl-internal.h: Remove redundant include.
69753         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69754         Cygwin when a file is locked.
69755
69756 2007-03-29  Bruno Haible  <bruno@clisp.org>
69757
69758         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69759         file.
69760         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69761
69762 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69763
69764         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69765         try to remove a parent directory if the child couldn't be removed
69766         (except for the first rmdir, which could fail because the child
69767         doesn't exist).  Problem reported by Jeff Blaine in
69768         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69769
69770 2007-03-28  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/striconveh.c (utf8conv_carefully): New function.
69773         (mem_cd_iconveh_internal): Invoke it.
69774
69775 2007-03-28  Bruno Haible  <bruno@clisp.org>
69776
69777         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69778         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69779         input.
69780         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69781         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69782         unistr/u8-uctomb.
69783
69784 2007-03-28  Bruno Haible  <bruno@clisp.org>
69785
69786         * modules/unistr/u8-mbtoucr: New file.
69787         * lib/unistr/u8-mbtoucr.c: New file.
69788         * modules/unistr/u16-mbtoucr: New file.
69789         * lib/unistr/u16-mbtoucr.c: New file.
69790         * modules/unistr/u16-mbtoucr: New file.
69791         * lib/unistr/u16-mbtoucr.c: New file.
69792         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69793
69794 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69795             Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69798         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69799         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69800
69801         * m4/stdio_h.m4: Add stubs for vasprintf too.
69802
69803         * modules/stdio: Support vasprintf in sed command.
69804
69805         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69806         vasprintf.h.  Add stdio module indicator.
69807
69808         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69809         vasprintf.h.
69810
69811         * lib/vasprintf.h: File removed.
69812
69813         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69814         * lib/vasprintf.c: Ditto.
69815         * lib/xvasprintf.c: Ditto.
69816         * tests/test-vasprintf-posix.c: Ditto.
69817         * tests/test-vasprintf.c: Ditto.
69818
69819 2007-03-27  Bruno Haible  <bruno@clisp.org>
69820
69821         Make vasnprintf multithread-safe.
69822         * lib/vasnprintf.c (decimal_point_char): New function.
69823         (VASNPRINTF): Use it.
69824         Suggested by Simon Josefsson.
69825
69826 2007-03-27  Eric Blake  <ebb9@byu.net>
69827
69828         Support sub-second birthtime on cygwin.
69829         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69830         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69831         (get_stat_birthtime): Also work with st_birthtim.
69832
69833 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69836         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69837         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69838         (get_stat_birthtime_ns): Simplify compile-time tests.
69839         (get_stat_birthtime): Change the API to look like
69840         get_stat_mtime etc., except return a negative tv_nsec on error.
69841         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69842         Don't check for "spare" fields.
69843         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69844         or for struct stat.st_birthtime, as these tests aren't used.
69845         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69846
69847 2007-03-27  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/stat-time.h: Include <sys/stat.h>.
69850
69851 2007-03-27  James Youngman  <jay@gnu.org>
69852
69853         * lib/stat-time.h (get_stat_birthtime): New function for
69854           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69855         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69856           and its variants.
69857         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69858         * modules/stat-time-test: New file.
69859         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69860
69861 2007-03-26  Bruno Haible  <bruno@clisp.org>
69862
69863         Better support of signalling NaNs.
69864         * lib/atanl.c: Include isnanl.h.
69865         (atanl): Perform test for NaN at the beginning of the function and
69866         through a call to isnanl.
69867         * lib/cosl.c: Include isnanl.h.
69868         (cosl): Perform test for NaN at the beginning of the function and
69869         through a call to isnanl.
69870         * lib/ldexpl.c: Include isnanl.h.
69871         (ldexpl): Perform test for NaN through a call to isnanl.
69872         * lib/logl.c: Include isnanl.h.
69873         (logl): Perform test for NaN at the beginning of the function and
69874         through a call to isnanl.
69875         * lib/sinl.c: Include isnanl.h.
69876         (sinl): Perform test for NaN at the beginning of the function and
69877         through a call to isnanl.
69878         * lib/sqrtl.c: Include isnanl.h.
69879         (sqrtl): Perform test for NaN at the beginning of the function and
69880         through a call to isnanl.
69881         * lib/tanl.c: Include isnanl.h.
69882         (tanl): Perform test for NaN at the beginning of the function and
69883         through a call to isnanl.
69884         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69885         * modules/mathl (Depends-on): Add isnanl.
69886
69887 2007-03-26  Eric Blake  <ebb9@byu.net>
69888
69889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69890         regression in logic sense of previous patch.
69891
69892 2007-03-26  Bruno Haible  <bruno@clisp.org>
69893
69894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69895         unportable shell command "if ! ...".
69896         Reported by Ralf Wildenhues.
69897
69898 2007-03-25  Bruno Haible  <bruno@clisp.org>
69899
69900         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69901         <sysexits.h> file, and only add EX_CONFIG.
69902         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69903         absolute file name and whether it is sufficient. Substitute also
69904         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69905         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69906         ABSOLUTE_SYSEXITS_H into sysexits.h.
69907
69908 2007-03-25  Bruno Haible  <bruno@clisp.org>
69909
69910         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69911         hints is NULL.
69912
69913 2007-03-25  Bruno Haible  <bruno@clisp.org>
69914
69915         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69916         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69917
69918 2007-03-25  Bruno Haible  <bruno@clisp.org>
69919
69920         * lib/vasnprintf.c: Include langinfo.h.
69921         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69922         multithread-safe.
69923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69932         Reported by Simon Josefsson.
69933
69934 2007-03-25  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69937         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69938         * modules/vasnprintf (Depends-on): Add stdint.
69939
69940 2007-03-25  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/fpieee: New file.
69943         * m4/fpieee.m4: New file.
69944         * modules/isnan-nolibm (Depends-on): Add fpieee.
69945         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69946         * modules/isnanl (Depends-on): Add fpieee.
69947
69948 2007-03-25  Bruno Haible  <bruno@clisp.org>
69949
69950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69951
69952 2007-03-25  Bruno Haible  <bruno@clisp.org>
69953
69954         Avoid test failures on IRIX 6.5.
69955         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69956         (main): Use it.
69957         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69958         macros.
69959         (main): Use them.
69960
69961 2007-03-25  Bruno Haible  <bruno@clisp.org>
69962
69963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69964         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69965         exists but doesn't work.
69966         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69967         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69969         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69970         math.h.
69971
69972 2007-03-25  Bruno Haible  <bruno@clisp.org>
69973
69974         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69975         returns inf. Needed on IRIX 6.5.
69976
69977 2007-03-25  Bruno Haible  <bruno@clisp.org>
69978
69979         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69980         (main): Use isnanl instead of x != x idiom.
69981         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69982
69983         * tests/test-frexp.c: Include isnan.h.
69984         (main): Use isnan instead of x != x idiom.
69985         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69986
69987 2007-03-25  Bruno Haible  <bruno@clisp.org>
69988
69989         * tests/test-frexp.c (NaN): New function/macro.
69990         (main): Use it instead of 0.0 / 0.0.
69991         * tests/test-isnan.c (NaN): New function/macro.
69992         (main): Use it instead of 0.0 / 0.0.
69993         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69994         (test_function): Use it instead of 0.0 / 0.0.
69995         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69996         (test_function): Use it instead of 0.0 / 0.0.
69997         * tests/test-snprintf-posix.h (NaN): New function/macro.
69998         (test_function): Use it instead of 0.0 / 0.0.
69999         * tests/test-sprintf-posix.h (NaN): New function/macro.
70000         (test_function): Use it instead of 0.0 / 0.0.
70001         * tests/test-fprintf-posix.h (NaN): New function/macro.
70002         (test_function): Use it instead of 0.0 / 0.0.
70003         * tests/test-printf-posix.h (NaN): New function/macro.
70004         (test_function): Use it instead of 0.0 / 0.0.
70005
70006         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70007
70008 2007-03-25  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70011
70012 2007-03-25  Bruno Haible  <bruno@clisp.org>
70013
70014         * lib/regexec.c (merge_state_with_log): Make static.
70015
70016 2007-03-25  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/trigl.c (kernel_rem_pio2): Make static.
70019
70020 2007-03-25  Bruno Haible  <bruno@clisp.org>
70021
70022         * lib/sincosl.c (sincosl_table): Make static.
70023
70024 2007-03-25  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70027         if the compiler does not support C99.
70028
70029 2007-03-25  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/time (Makefile.am): Ensure all rule action lines start with a
70032         tab.
70033
70034 2007-03-24  Bruno Haible  <bruno@clisp.org>
70035
70036         * modules/tsearch-tests: New file.
70037         * tests/test-tsearch.sh: New file.
70038         * tests/test-tsearch.c: New file, mostly copied from glibc.
70039
70040         * modules/search-tests: New file.
70041         * tests/test-search.c: New file.
70042
70043         * modules/search: New file.
70044         * lib/search_.h: New file, incorporating lib/tsearch.h.
70045         * m4/search_h.m4: New file.
70046         * lib/tsearch.h: Remove file.
70047         * lib/tsearch.c: Include search.h instead of tsearch.h.
70048         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70049         HAVE_TSEARCH.
70050         * modules/tsearch (Files): Remove lib/tsearch.h.
70051         (Depends-on): Add search.
70052         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70053         (Include): Change tsearch.h into search.h.
70054
70055 2007-03-24  Bruno Haible  <bruno@clisp.org>
70056
70057         * modules/fpucw: New file.
70058         * lib/fpucw.h: New file.
70059         * lib/frexp.c: Include fpucw.h.
70060         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70061         (FUNC): Use them.
70062         * lib/printf-frexp.c: Include fpucw.h.
70063         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70064         (FUNC): Use them.
70065         * lib/vasnprintf.c: Include fpucw.h.
70066         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70067         'long double' calculations.
70068         * tests/test-frexpl.c: Include fpucw.h.
70069         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70070         * tests/test-printf-frexpl.c: Include fpucw.h.
70071         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70072         * modules/frexpl (Depends-on): Add fpucw.
70073         * modules/printf-frexpl (Depends-on): Likewise.
70074         * modules/fprintf-posix (Depends-on): Likewise.
70075         * modules/snprintf-posix (Depends-on): Likewise.
70076         * modules/sprintf-posix (Depends-on): Likewise.
70077         * modules/vasnprintf-posix (Depends-on): Likewise.
70078         * modules/vasprintf-posix (Depends-on): Likewise.
70079         * modules/vfprintf-posix (Depends-on): Likewise.
70080         * modules/vsnprintf-posix (Depends-on): Likewise.
70081         * modules/vsprintf-posix (Depends-on): Likewise.
70082         * modules/frexpl-tests (Depends-on): Likewise.
70083         * modules/printf-frexpl-tests (Depends-on): Likewise.
70084
70085 2007-03-24  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/float+.h: New file.
70088         * lib/isnan.c: Include float+.h.
70089         (SIZE): New macro.
70090         (FUNC): Compare only SIZE bytes of the value.
70091         * lib/vasnprintf.c: Include float+.h.
70092         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70093         SIZEOF_LDBL or SIZEOF_DBL bytes.
70094         * modules/isnan-nolibm (Files): Add lib/float+.h.
70095         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70096         * modules/isnanl (Files): Add lib/float+.h.
70097         * modules/vasnprintf (Files): Add lib/float+.h.
70098
70099 2007-03-24  Bruno Haible  <bruno@clisp.org>
70100
70101         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70102         include isnanl-nolibm.h.
70103
70104 2007-03-24  Bruno Haible  <bruno@clisp.org>
70105
70106         * tests/test-read-file.c (main): Don't produce spurious output for
70107         expected situations. Make the test fail if it encountered unexpected
70108         results.
70109
70110 2007-03-24  Bruno Haible  <bruno@clisp.org>
70111
70112         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70113         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70114
70115 2007-03-24  Bruno Haible  <bruno@clisp.org>
70116
70117         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70118
70119 2007-03-24  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70122         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70123
70124         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70125         * modules/utf8-ucs4: Turn into a symbolic link to module
70126         unistr/u8-mbtouc.
70127
70128         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70129         utf8-ucs4-unsafe.
70130         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70131         unistr/u8-mbtouc-unsafe.
70132
70133         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70134         * modules/utf16-ucs4: Turn into a symbolic link to module
70135         unistr/u16-mbtouc.
70136
70137         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70138         utf16-ucs4-unsafe.
70139         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70140         unistr/u16-mbtouc-unsafe.
70141
70142         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70143         * modules/ucs4-utf8: Turn into a symbolic link to module
70144         unistr/u8-ubtomb.
70145
70146         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70147         * modules/ucs4-utf16: Turn into a symbolic link to module
70148         unistr/u16-ubtomb.
70149
70150 2007-03-24  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70153         Enable the function only if HAVE_INLINE.
70154         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70155         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70156         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70157         Enable the function only if HAVE_INLINE.
70158         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70159         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70160         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70161         Enable the function only if HAVE_INLINE.
70162         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70163         Enable the function only if HAVE_INLINE.
70164         * modules/utf8-ucs4: Update.
70165         * modules/utf8-ucs4-unsafe: Update.
70166         * modules/utf16-ucs4: Update.
70167         * modules/utf16-ucs4-unsafe: Update.
70168         * modules/ucs4-utf8: Update.
70169         * modules/ucs4-utf16: Update.
70170
70171 2007-03-24  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/utf8-ucs4.h: Remove file.
70174         * lib/utf8-ucs4-unsafe.h: Remove file.
70175         * lib/utf16-ucs4.h: Remove file.
70176         * lib/utf16-ucs4-unsafe.h: Remove file.
70177         * lib/ucs4-utf8.h: Remove file.
70178         * lib/ucs4-utf16.h: Remove file.
70179         * lib/unistr.h: Include their previous contents.
70180         * m4/utf-ucs4.m4: Remove file.
70181         * m4/ucs4-utf.m4: Remove file.
70182         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70183         (Depends-on): Add unistr/base.
70184         (configure.ac): Remove gl_UTF_UCS4.
70185         (Makefile.am): Update.
70186         (Include): Change to unistr.h.
70187         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70188         (Depends-on): Add unistr/base.
70189         (configure.ac): Remove gl_UTF_UCS4.
70190         (Makefile.am): Update.
70191         (Include): Change to unistr.h.
70192         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70193         (Depends-on): Add unistr/base.
70194         (configure.ac): Remove gl_UTF_UCS4.
70195         (Makefile.am): Update.
70196         (Include): Change to unistr.h.
70197         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70198         (Depends-on): Add unistr/base.
70199         (configure.ac): Remove gl_UTF_UCS4.
70200         (Makefile.am): Update.
70201         (Include): Change to unistr.h.
70202         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70203         (Depends-on): Add unistr/base.
70204         (configure.ac): Remove gl_UCS4_UTF.
70205         (Makefile.am): Update.
70206         (Include): Change to unistr.h.
70207         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70208         (Depends-on): Add unistr/base.
70209         (configure.ac): Remove gl_UCS4_UTF.
70210         (Makefile.am): Update.
70211         (Include): Change to unistr.h.
70212         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70213         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70214         utf8-ucs4-unsafe.h.
70215         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70216         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70217         utf16-ucs4-unsafe.h.
70218         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70219         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70220         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70221         * lib/unistr/u8-strchr.c: Likewise.
70222         * lib/unistr/u8-strrchr.c: Likewise.
70223         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70224         * lib/unistr/u16-strchr.c: Likewise.
70225         * lib/unistr/u16-strrchr.c: Likewise.
70226         * lib/striconveh.c: Update.
70227         * lib/linebreak.c: Update.
70228
70229 2007-03-24  Bruno Haible  <bruno@clisp.org>
70230
70231         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70232         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70233
70234 2007-03-22  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70237
70238 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * MODULES.html.sh (File system functions): New module write-any-file.
70241         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70242         * m4/write-any-file.m4: New files.
70243
70244 2007-03-23  Eric Blake  <ebb9@byu.net>
70245
70246         * gnulib-tool: Rearrange space-tab sequences, since some editors
70247         like to eat them.
70248
70249 2007-03-23  Eric Blake  <ebb9@byu.net>
70250
70251         * lib/version-etc.c (version_etc_va): Update license wording to
70252         be more concise.  Recommended by Richard Stallman.
70253
70254 2007-03-22  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/poll.c (MSG_PEEK): New fallback definition.
70257
70258 2007-03-22  Bruno Haible  <bruno@clisp.org>
70259
70260         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70261         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70262         (main): Update.
70263         Fixes a compilation error on BeOS.
70264
70265 2007-03-22  Bruno Haible  <bruno@clisp.org>
70266
70267         * modules/frexpl-tests: New file.
70268         * tests/test-frexpl.c: New file.
70269
70270         * modules/frexpl: New file.
70271         * m4/frexpl.m4: New file.
70272         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70273         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70275         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70276         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70277         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70278
70279 2007-03-22  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/frexpl.c: Share code with lib/frexp.c.
70282         * modules/mathl (Files): Add lib/frexp.c.
70283         (Depends-on): Add isnanl-nolibm.
70284
70285 2007-03-22  Bruno Haible  <bruno@clisp.org>
70286
70287         * modules/printf-frexp (Files): Add m4/frexp.m4.
70288         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70289         only if the found frexp function actually works.
70290
70291 2007-03-22  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/frexp.c: Remove older implementation that uses divisions.
70294
70295 2007-03-21  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/frexp-tests: New file.
70298         * tests/test-frexp.c: New file.
70299
70300         * modules/frexp: New file.
70301         * lib/frexp.c: New file.
70302         * m4/frexp.m4: New file.
70303         * lib/math_.h (frexp): New declaration.
70304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70305         REPLACE_FREXP.
70306         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70307
70308 2007-03-21  Bruno Haible  <bruno@clisp.org>
70309
70310         * modules/isnanl-tests: New file.
70311         * tests/test-isnanl.c: New file.
70312
70313         * modules/isnanl: New file.
70314         * lib/isnanl.h: New file.
70315         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70316         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70317         gl_FUNC_ISNANL_WORKS.
70318         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70319         New macros.
70320
70321 2007-03-21  Bruno Haible  <bruno@clisp.org>
70322
70323         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70324         lib/isnanl.h.
70325         (Include): Update.
70326         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70327         * lib/vasnprintf.c: Update.
70328         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70329         tests/test-isnanl.h, remove tests/test-isnanl.c.
70330         (Makefile.am): Update.
70331         * tests/test-isnanl-nolibm.c: New file.
70332         * tests/test-isnanl.h: New file.
70333         * tests/test-isnanl.c: Remove file.
70334
70335 2007-03-21  Jim Meyering  <jim@meyering.net>
70336
70337         When trying to open ".", treat ESTALE like EACCES.
70338         * lib/savewd.c (savewd_save): Resort to forking not just upon
70339         failure with EACCES, but also when errno is ESTALE.
70340
70341 2007-03-20  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70344         Needed on AIX 5.1. Reported by Matthew Woehlke.
70345
70346 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         Suggestions by Bruno Haible:
70349         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70350         our own.
70351         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70352         * modules/acl (Depends-on): Add gettext.
70353
70354 2007-03-19  Bruno Haible  <bruno@clisp.org>
70355
70356         * modules/iconvme: Remove file.
70357         * lib/iconvme.h: Remove file.
70358         * lib/iconvme.c: Remove file.
70359         * m4/iconvme.m4: Remove file.
70360
70361 2007-03-19  Bruno Haible  <bruno@clisp.org>
70362
70363         * doc/relocatable-maint.texi: Break long shell script line.
70364         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70365
70366 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70369         handle file_has_acl.
70370         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70371         * lib/acl.c: Move header inclusions and related macro defns into
70372         lib/acl-internal.h.
70373         (S_ISLNK): Remove defn, since that's now done for us.
70374         (file_has_acl): Move to lib/file-has-acl.c.
70375         Call acl_trivial if available.  This is the crucial part of the fix.
70376         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70377         shared within the library.  Rewrite a bit, partly to make it compatible
70378         with the GNU coding style.
70379         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70380         Remove unnecessary double-quotes.
70381         Don't test for acl_to_text; the build will catch that.
70382         Replace acl_entries if it doesn't exist and it is needed.
70383         Check for -lsec and acl_trivial (as used on Solaris 10).
70384         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70385         lib/file-has-acl.c.
70386         (Depends-on): Add sys_stat, for S_ISLNK.
70387
70388 2007-03-19  Ben Pfaff  <blp@gnu.org>
70389
70390         * doc/gnulib.texi: Fix typos.
70391         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70392
70393 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70396         If size is zero here, buf must be zero.
70397
70398 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70399
70400         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70401         <bruno@clisp.org>.
70402
70403 2007-03-18  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70406         Suggested by Eric Blake.
70407
70408 2007-03-18  Ben Pfaff  <blp@gnu.org>
70409
70410         * doc/relocatable.texi: Recommend using as prefix a directory
70411         that does not exist and will never be created.  Based on
70412         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70413         and others.
70414
70415 2007-03-17  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/fchownat.c: Include lchown.h.
70418
70419 2007-03-17  Bruno Haible  <bruno@clisp.org>
70420
70421         Fix endless loop when the given allocated size was > INT_MAX.
70422         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70423         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70424         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70425         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70426         * lib/sprintf.c (sprintf): Likewise.
70427
70428 2007-03-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * tests/test-argp-2.sh (func_compare): Output a context diff.
70431
70432 2007-03-17  Bruno Haible  <bruno@clisp.org>
70433
70434         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70435         locale's decimal-point character.
70436
70437 2007-03-17  Bruno Haible  <bruno@clisp.org>
70438
70439         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70440         before comparing it. Needed because on some platforms (e.g. x86) a
70441         'long double' occupies less bytes than sizeof (long double).
70442
70443 2007-03-17  Bruno Haible  <bruno@clisp.org>
70444
70445         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70446         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70447         * tests/test-getaddrinfo.c (simple): Likewise.
70448         * tests/test-read-file.c (main): Likewise.
70449
70450 2007-03-17  Bruno Haible  <bruno@clisp.org>
70451
70452         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70453
70454 2007-03-17  Bruno Haible  <bruno@clisp.org>
70455
70456         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70457         unused variable.
70458
70459 2007-03-17  Bruno Haible  <bruno@clisp.org>
70460
70461         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70462         * tests/test-c-strncasecmp.c: Likewise.
70463
70464 2007-03-17  Bruno Haible  <bruno@clisp.org>
70465
70466         * modules/stdlib (Depends-on): Add unistd.
70467         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70468         Needed for MacOS X 10.3.
70469
70470 2007-03-17  Bruno Haible  <bruno@clisp.org>
70471
70472         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70473
70474 2007-03-17  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70477
70478 2007-03-17  Bruno Haible  <bruno@clisp.org>
70479
70480         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70481         to reflect files copied from gnulib (with or without modifications).
70482         Suggested by Jim Meyering.
70483
70484 2007-03-17  Eric Blake  <ebb9@byu.net>
70485
70486         * NEWS: Document stdlib change from 2007-02-18.
70487
70488 2007-03-17  Jim Meyering  <jim@meyering.net>
70489
70490         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70491         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70492         someone uses a name containing shell meta-characters.
70493         Reported by Alfred M. Szmidt.
70494
70495         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70496
70497 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70498
70499         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70500         and copy gettext configuration files only if configure.ac contains
70501         a use of AM_GNU_GETTEXT_VERSION.
70502
70503 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70504
70505         * build-aux/bootstrap (gnulib_name): New variable.
70506         (gnulib_tool_options): Use it.
70507
70508 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70509
70510         * tests/test-des.c: Use new namespace.
70511
70512 2007-03-15  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70515         Reported by James Youngman <jay@gnu.org>.
70516
70517 2007-03-15  Bruno Haible  <bruno@clisp.org>
70518
70519         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70520         declared prototype. Needed with cc on OSF/1 5.1.
70521
70522 2007-03-15  Bruno Haible  <bruno@clisp.org>
70523
70524         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70525         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70526         (struct gl_list_implementation): Add dispose_fn argument to the
70527         'create_empty', 'create' methods.
70528         (struct gl_list_impl_base): Add field 'dispose_fn'.
70529         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70530         argument.
70531         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70532         dispose_fn argument.
70533         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70534         dispose_fn on the dropped values.
70535         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70536         dispose_fn argument.
70537         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70538         dropped values.
70539         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70540         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70541         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70542         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70543         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70544         argument.
70545         (gl_tree_list_free): Call dispose_fn on the dropped values.
70546         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70547         the dropped values.
70548         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70549         Add dispose_fn argument.
70550         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70551         Call dispose_fn on the dropped values.
70552         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70553         Add dispose_fn argument.
70554         (gl_sublist_create): Initialize the 'dispose_fn' field.
70555         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70556         * tests/test-array_list.c (main): Update.
70557         * tests/test-carray_list.c (main): Update.
70558         * tests/test-avltree_list.c (main): Update.
70559         * tests/test-rbtree_list.c (main): Update.
70560         * tests/test-avltreehash_list.c (main): Update.
70561         * tests/test-rbtreehash_list.c (main): Update.
70562         * tests/test-linked_list.c (main): Update.
70563         * tests/test-linkedhash_list.c (main): Update.
70564         * tests/test-array_oset.c (main): Update.
70565
70566 2007-03-15  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70569         (gl_oset_create_empty): Add dispose_fn argument.
70570         (struct gl_oset_implementation): Add dispose_fn argument to
70571         'create_empty' method.
70572         (struct gl_oset_impl_base): Add dispose_fn field.
70573         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70574         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70575         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70576         values.
70577         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70578         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70579         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70580         dropped value.
70581         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70582         dropped value.
70583         * tests/test-array_oset.c (main): Update.
70584         * tests/test-avltree_oset.c (main): Update.
70585         * tests/test-rbtree_oset.c (main): Update.
70586         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70587
70588 2007-03-13  Bruno Haible  <bruno@clisp.org>
70589
70590         * tests/test-stdbool.c (i): Update after last patch.
70591
70592 2007-03-12  Bruno Haible  <bruno@clisp.org>
70593
70594         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70595         the iswprint macro. Needed on Solaris 2.5.1.
70596
70597 2007-03-12  Bruno Haible  <bruno@clisp.org>
70598
70599         * tests/test-printf-frexp.c (main): Declare x as volatile.
70600
70601 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70602
70603         * doc/gnulib.texi (Build robot for gnulib): New section.
70604
70605 2007-03-12  Jim Meyering  <jim@meyering.net>
70606
70607         * build-aux/bootstrap: New file.
70608         * build-aux/bootstrap.conf: New file, from coreutils.
70609
70610 2007-03-11  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70613
70614 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70615
70616         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70617         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70618         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70619
70620 2007-03-11  Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70623         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70624
70625 2007-03-11  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70628         formula. Needed for SunPRO C 5.0.
70629
70630 2007-03-11  Bruno Haible  <bruno@clisp.org>
70631
70632         * modules/long-options (Depends-on): Add getopt.
70633
70634 2007-03-11  Bruno Haible  <bruno@clisp.org>
70635
70636         * modules/modechange (Depends-on): Add stdbool.
70637
70638 2007-03-11  Bruno Haible  <bruno@clisp.org>
70639
70640         * modules/i-ring (Depends-on): Add stdbool.
70641
70642 2007-03-11  Bruno Haible  <bruno@clisp.org>
70643
70644         * modules/gc-des (Depends-on): Add stdbool.
70645
70646 2007-03-11  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70649
70650 2007-03-11  Bruno Haible  <bruno@clisp.org>
70651
70652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70653
70654 2007-03-11  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70657
70658 2007-03-11  Bruno Haible  <bruno@clisp.org>
70659
70660         * lib/vasnprintf.c (sprintf): Undefine.
70661
70662 2007-03-11  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70665         initializers in SunPRO C and Compaq C compilers.
70666
70667 2007-03-11  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70670         decrementing code ANSI C compliant.
70671
70672 2007-03-11  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70675         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70676
70677 2007-03-11  Bruno Haible  <bruno@clisp.org>
70678
70679         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70680         <stdbool.h> substitute doesn't pass.
70681
70682 2007-03-11  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70685
70686 2007-03-11  Bruno Haible  <bruno@clisp.org>
70687
70688         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70689         script, for submission to autobuild.josefsson.org.
70690
70691 2007-03-10  Bruno Haible  <bruno@clisp.org>
70692
70693         * modules/canonicalize-lgpl-tests: New file.
70694         * tests/test-canonicalize-lgpl.sh: New file.
70695         * tests/test-canonicalize-lgpl.c: New file.
70696
70697         * modules/c-strcase-tests: New file.
70698         * tests/test-c-strcase.sh: New file.
70699         * tests/test-c-strcasecmp.c: New file.
70700         * tests/test-c-strncasecmp.c: New file.
70701
70702         * modules/atexit-tests: New file.
70703         * tests/test-atexit.sh: New file.
70704         * tests/test-atexit.c: New file.
70705
70706 2007-03-10  Bruno Haible  <bruno@clisp.org>
70707
70708         * tests/test-binary-io.sh: Use temporary filenames that are not so
70709         likely to clash with those of other tests (in a parallel make).
70710         * tests/test-binary-io.c: Likewise.
70711
70712 2007-03-10  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70715         fallback; use #error instead.
70716         Suggested by Simon Josefsson.
70717
70718 2007-03-10  Bruno Haible  <bruno@clisp.org>
70719
70720         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70721         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70722         first and the last.
70723
70724 2007-03-10  Bruno Haible  <bruno@clisp.org>
70725
70726         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70727
70728 2007-03-10  Bruno Haible  <bruno@clisp.org>
70729
70730         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70731         "make distcheck".
70732         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70733         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70734         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70735
70736 2007-03-10  Bruno Haible  <bruno@clisp.org>
70737
70738         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70739         variable.
70740         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70741         variable.
70742
70743 2007-03-09  Eric Blake  <ebb9@byu.net>
70744         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70745
70746         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70747         types are not being provided by gnulib.
70748         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70749         types are supported.
70750
70751 2007-03-10  Bruno Haible  <bruno@clisp.org>
70752
70753         * lib/stdio_.h (__attribute__): New macro.
70754         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70755         vsprintf): Specify __attribute__ __format__ for GCC.
70756         Suggested by Eric Blake.
70757
70758 2007-03-09  Bruno Haible  <bruno@clisp.org>
70759
70760         * modules/printf-posix-tests: New file.
70761         * tests/test-printf-posix.sh: New file.
70762         * tests/test-printf-posix.c: New file.
70763
70764         * modules/printf-posix: New file.
70765         * lib/printf.c: New file.
70766         * m4/printf-posix-rpl.m4: New file.
70767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70768         REPLACE_PRINTF.
70769         * lib/stdio_.h (printf): New declaration.
70770         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70771         ____strfmon____): New macros.
70772         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70773         REPLACE_PRINTF.
70774
70775 2007-03-09  Bruno Haible  <bruno@clisp.org>
70776
70777         * tests/test-vasnprintf-posix2.sh: New file.
70778         * tests/test-vasnprintf-posix2.c: New file.
70779         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70780         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70781         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70782
70783         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70784         a locale dependent decimal point, rather than always '.'.
70785
70786 2007-03-09  Eric Blake  <ebb9@byu.net>
70787
70788         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70789         spite of platforms like Tandem/NSK that define it to -1.
70790
70791 2007-03-08  Bruno Haible  <bruno@clisp.org>
70792
70793         * modules/vprintf-posix-tests: New file.
70794         * tests/test-vprintf-posix.sh: New file.
70795         * tests/test-vprintf-posix.c: New file.
70796         * tests/test-printf-posix.h: New file.
70797
70798         * modules/vprintf-posix: New file.
70799         * lib/vprintf.c: New file.
70800         * m4/vprintf-posix.m4: New file.
70801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70802         REPLACE_VPRINTF.
70803         * lib/stdio_.h (vprintf): New declaration.
70804         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70805         REPLACE_VPRINTF.
70806
70807 2007-03-08  Bruno Haible  <bruno@clisp.org>
70808
70809         * modules/fprintf-posix-tests: New file.
70810         * tests/test-fprintf-posix.sh: New file.
70811         * tests/test-fprintf-posix.c: New file.
70812
70813         * modules/fprintf-posix: New file.
70814         * lib/fprintf.c: New file.
70815         * m4/fprintf-posix.m4: New file.
70816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70817         REPLACE_FPRINTF.
70818         * lib/stdio_.h (fprintf): New declaration.
70819         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70820         REPLACE_FPRINTF.
70821
70822 2007-03-08  Bruno Haible  <bruno@clisp.org>
70823
70824         * modules/vfprintf-posix-tests: New file.
70825         * tests/test-vfprintf-posix.sh: New file.
70826         * tests/test-vfprintf-posix.c: New file.
70827         * tests/test-fprintf-posix.h: New file.
70828         * tests/test-fprintf-posix.out: New file.
70829
70830         * modules/vfprintf-posix: New file.
70831         * lib/vfprintf.c: New file.
70832         * m4/vfprintf-posix.m4: New file.
70833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70834         REPLACE_VFPRINTF.
70835         * lib/stdio_.h (vfprintf): New declaration.
70836         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70837         REPLACE_VFPRINTF.
70838
70839 2007-03-08  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70842
70843 2007-03-08  Bruno Haible  <bruno@clisp.org>
70844
70845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70846         instead of 'expr' invocations.
70847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70852         Suggested by Paul Eggert.
70853
70854 2007-03-08  Bruno Haible  <bruno@clisp.org>
70855
70856         * modules/fseterr-tests: New file.
70857         * tests/test-fseterr.c: New file.
70858
70859         * modules/fseterr: New file.
70860         * lib/fseterr.h: New file.
70861         * lib/fseterr.c: New file.
70862
70863 2007-03-08  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70866         * lib/getopt_.h: Likewise.
70867         * lib/mbswidth.h: Likewise.
70868         * lib/setenv.h: Likewise.
70869         * lib/vasnprintf.h: Likewise.
70870         * lib/vasprintf.h: Likewise.
70871         * lib/verror.h: Likewise.
70872         * lib/xsetenv.h: Likewise.
70873         * lib/xvasprintf.h: Likewise.
70874
70875 2007-03-08  Jim Meyering  <jim@meyering.net>
70876
70877         * users.txt: Add parted.
70878
70879         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70880
70881 2007-03-07  Bruno Haible  <bruno@clisp.org>
70882
70883         * m4/printf.m4: Make the shell script snippets copy&pastable.
70884
70885 2007-03-02  Bruno Haible  <bruno@clisp.org>
70886
70887         * lib/netinet_in_.h: New file.
70888         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70889         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70890         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70891         (Depends-on): Add absolute-header.
70892         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70893         into netinet/in.h.
70894
70895 2007-03-03  Bruno Haible  <bruno@clisp.org>
70896
70897         * lib/sys_select_.h: New file.
70898         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70899         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70900         * modules/sys_select (Files): Add lib/sys_select_.h.
70901         (Depends-on): Add absolute-header.
70902         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70903         into sys/select.h.
70904
70905 2007-03-02  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70908         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70909         values.
70910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70911         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70912         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70913         * modules/sys_socket (Depends-on): Add absolute-header.
70914         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70915         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70916         (Include): Remove requirement of inclusion of <sys/types.h>.
70917
70918 2007-03-02  Bruno Haible  <bruno@clisp.org>
70919
70920         * lib/byteswap_.h (bswap_32): Fix formula.
70921
70922 2007-03-06  Bruno Haible  <bruno@clisp.org>
70923
70924         * modules/sprintf-posix-tests: New file.
70925         * tests/test-sprintf-posix.c: New file.
70926
70927         * modules/sprintf-posix: New file.
70928         * lib/sprintf.c: New file.
70929         * m4/sprintf-posix.m4: New file.
70930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70931         REPLACE_SPRINTF.
70932         * lib/stdio_.h (sprintf): New declaration.
70933         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70934         REPLACE_SPRINTF.
70935
70936 2007-03-06  Bruno Haible  <bruno@clisp.org>
70937
70938         * modules/vsprintf-posix-tests: New file.
70939         * tests/test-vsprintf-posix.c: New file.
70940         * tests/test-sprintf-posix.h: New file.
70941
70942         * modules/vsprintf-posix: New file.
70943         * lib/vsprintf.c: New file.
70944         * m4/vsprintf-posix.m4: New file.
70945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70946         REPLACE_VSPRINTF.
70947         * lib/stdio_.h (vsprintf): New declaration.
70948         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70949         REPLACE_VSPRINTF.
70950
70951 2007-03-06  Bruno Haible  <bruno@clisp.org>
70952
70953         * modules/vsnprintf (Depend-on): Remove minmax.
70954
70955 2007-03-06  Bruno Haible  <bruno@clisp.org>
70956
70957         * modules/snprintf-posix-tests: New file.
70958         * tests/test-snprintf-posix.c: New file.
70959
70960         * modules/snprintf-posix: New file.
70961         * m4/snprintf-posix.m4: New file.
70962         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70963         gl_FUNC_SNPRINTF.
70964         (gl_FUNC_SNPRINTF): Invoke it.
70965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70966         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70967         is set.
70968         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70969
70970 2007-03-06  Bruno Haible  <bruno@clisp.org>
70971
70972         * modules/vsnprintf-posix-tests: New file.
70973         * tests/test-vsnprintf-posix.c: New file.
70974         * tests/test-snprintf-posix.h: New file.
70975
70976         * modules/vsnprintf-posix: New file.
70977         * m4/vsnprintf-posix.m4: New file.
70978         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70979         gl_FUNC_VSNPRINTF.
70980         (gl_FUNC_VSNPRINTF): Invoke it.
70981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70982         * lib/stdio_.h (vsnprintf): Define as a replacement if
70983         REPLACE_VSNPRINTF is set.
70984         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70985
70986 2007-03-06  Bruno Haible  <bruno@clisp.org>
70987
70988         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70990
70991 2007-03-06  Bruno Haible  <bruno@clisp.org>
70992
70993         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70994         (asinl): Declare also if HAVE_DECL_ASINL is set.
70995         (atanl): Declare also if HAVE_DECL_ATANL is set.
70996         (ceill): Declare also if HAVE_DECL_CEILL is set.
70997         (cosl): Declare also if HAVE_DECL_COSL is set.
70998         (expl): Declare also if HAVE_DECL_EXPL is set.
70999         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71000         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71001         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71002         (logl): Declare also if HAVE_DECL_LOGL is set.
71003         (sinl): Declare also if HAVE_DECL_SINL is set.
71004         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71005         (tanl): Declare also if HAVE_DECL_TANL is set.
71006         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71008         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71009         declaration of frexpl, ldexpl.
71010         * modules/printf-frexpl (Depends-on): Add math.
71011         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71012
71013 2007-03-05  Bruno Haible  <bruno@clisp.org>
71014
71015         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71016         frexpl and ldexpl are declared.
71017         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71018
71019 2007-03-05  Bruno Haible  <bruno@clisp.org>
71020
71021         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71022         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71023
71024 2007-03-05  Bruno Haible  <bruno@clisp.org>
71025
71026         * lib/stdio_.h: Include <stddef.h>.
71027
71028 2007-03-05  Bruno Haible  <bruno@clisp.org>
71029
71030         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71031
71032 2007-03-05  Bruno Haible  <bruno@clisp.org>
71033
71034         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71035         NetBSD 4, from Ralf Wildenhues.
71036
71037 2007-03-04  Bruno Haible  <bruno@clisp.org>
71038
71039         * lib/vasprintf.h: Update #if logic for the case when the functions
71040         exist but are overridden.
71041
71042 2007-03-04  Bruno Haible  <bruno@clisp.org>
71043
71044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71045         implementations: glibc-2.4 and MacOS X 10.3.
71046         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71047         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71048         * tests/test-vasprintf-posix.c (test_function): Likewise.
71049
71050 2007-03-04  Bruno Haible  <bruno@clisp.org>
71051
71052         * modules/vasprintf-posix-tests: New file.
71053         * tests/test-vasprintf-posix.c: New file.
71054
71055         * modules/vasprintf-posix: New file.
71056         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71057         defined.
71058         * m4/vasprintf-posix.m4: New file.
71059         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71060         gl_FUNC_VASPRINTF.
71061         (gl_FUNC_VASPRINTF): Invoke it.
71062         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71063         here.
71064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71065
71066 2007-03-04  Bruno Haible  <bruno@clisp.org>
71067
71068         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71069         REPLACE_GETTIMEOFDAY.
71070         * modules/sys_time (Makefile.am): Likewise.
71071         * m4/sys_time_h.m4: Likewise.
71072         * m4/gettimeofday.m4: Likewise.
71073
71074 2007-03-04  Bruno Haible  <bruno@clisp.org>
71075
71076         * modules/vasnprintf-posix-tests: New file.
71077         * tests/test-vasnprintf-posix.c: New file.
71078
71079         * modules/vasnprintf-posix: New file.
71080         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71081         printf-frexpl.h.
71082         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71083         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71084         REPLACE_VASNPRINTF is defined.
71085         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71086         gl_FUNC_VASNPRINTF.
71087         (gl_FUNC_VASNPRINTF): Invoke it.
71088         * m4/vasnprintf-posix.m4: New file.
71089         * m4/printf.m4: New file.
71090
71091 2007-03-04  Bruno Haible  <bruno@clisp.org>
71092
71093         Compile progreloc.c only if --enable-relocatable is specified.
71094         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71095         if --enable-relocatable was specified.
71096         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71097         lib_SOURCES.
71098
71099 2007-03-04  Jim Meyering  <jim@meyering.net>
71100
71101         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71102         Use it consistently, rather than enumerating errno constants.
71103
71104 2007-03-04  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/xvasprintf-tests: New file.
71107         * tests/test-xvasprintf.c: New file.
71108
71109         * modules/vasprintf-tests: New file.
71110         * tests/test-vasprintf.c: New file.
71111
71112         * modules/vasnprintf-tests: New file.
71113         * tests/test-vasnprintf.c: New file.
71114
71115         * modules/vsnprintf-tests: New file.
71116         * tests/test-vsnprintf.c: New file.
71117
71118         * modules/snprintf-tests: New file.
71119         * tests/test-snprintf.c: New file.
71120
71121 2007-03-04  Bruno Haible  <bruno@clisp.org>
71122
71123         Compile relocatable.c only if --enable-relocatable is specified.
71124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71125         gl_RELOCATABLE_LIBRARY.
71126         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71127         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71128         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71129         gl_RELOCATABLE_LIBRARY.
71130         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71131         (Makefile.am): Remove lib_SOURCES.
71132         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71133         gl_RELOCATABLE_LIBRARY.
71134         (Makefile.am): Remove lib_SOURCES.
71135         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71136         always.
71137         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71138         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71139
71140 2007-03-04  Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/argmatch-tests: New file.
71143         * tests/test-argmatch.c: New file.
71144
71145         * tests/test-allocsa.c (main): Halve the number of loop runs.
71146
71147         * modules/alloca-opt-tests: New file.
71148         * tests/test-alloca-opt.c: New file.
71149
71150 2007-03-04  Jim Meyering  <jim@meyering.net>
71151
71152         Work around difference between Linux ACLs and Solaris 10 ZFS.
71153         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71154         for EINVAL.
71155
71156 2007-03-03  Bruno Haible  <bruno@clisp.org>
71157
71158         * modules/relocatable-prog (Depends-on): Add back progreloc's
71159         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71160
71161 2007-03-03  Bruno Haible  <bruno@clisp.org>
71162
71163         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71164         * modules/relocatable-lib: New file.
71165
71166 2007-03-03  Bruno Haible  <bruno@clisp.org>
71167
71168         * modules/relocatable-prog: Renamed from modules/relocatable.
71169         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71170
71171 2007-03-03  Bruno Haible  <bruno@clisp.org>
71172
71173         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71174         m4/relocatable-lib.m4.
71175         (Depends-on): Remove 'relocatable'.
71176         (configure.ac): Add gl_RELOCATABLE_NOP.
71177
71178 2007-03-03  Bruno Haible  <bruno@clisp.org>
71179
71180         * modules/relocatable-prog-wrapper: New file.
71181         * modules/relocatable (Depends-on): Add it. Remove all other
71182         dependencies except progname.
71183         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71184
71185         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71186         (gl_FUNC_STRERROR): Nop.
71187         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71188
71189         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71190         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71191
71192         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71193         (gl_FUNC_READLINK): Update.
71194
71195         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71196
71197 2007-03-03  Bruno Haible  <bruno@clisp.org>
71198
71199         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71200         * modules/xreadlink (Depends-on): Add unistd.
71201         * modules/xreadlink-with-size (Depends-on): Likewise.
71202
71203 2007-03-03  Bruno Haible  <bruno@clisp.org>
71204
71205         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71206         extracted from gt_FUNC_SETENV.
71207         (gt_FUNC_SETENV): Remove macro.
71208         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71209         remove gt_FUNC_SETENV.
71210
71211 2007-03-03  Bruno Haible  <bruno@clisp.org>
71212
71213         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71214         ENABLE_RELOCATABLE here.
71215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71216
71217 2007-03-03  Bruno Haible  <bruno@clisp.org>
71218
71219         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71220         * tests/test-rbtreehash_list.c: Include progname.h.
71221         (main): Call set_program_name.
71222
71223         * modules/rbtree-oset-tests (Depends-on): Add progname.
71224         * tests/test-rbtree_oset.c: Include progname.h.
71225         (main): Call set_program_name.
71226
71227         * modules/rbtree-list-tests (Depends-on): Add progname.
71228         * tests/test-rbtree_list.c: Include progname.h.
71229         (main): Call set_program_name.
71230
71231         * modules/linked-list-tests (Depends-on): Add progname.
71232         * tests/test-linked_list.c: Include progname.h.
71233         (main): Call set_program_name.
71234
71235 2007-03-03  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71238         All uses of __restrict changed to _Restrict_.
71239         * lib/glob_.h (__restrict): Remove macro.
71240
71241 2007-03-02  Bruno Haible  <bruno@clisp.org>
71242
71243         * modules/gettext (configure.ac): Require gettext infrastructure
71244         from version 0.16.1.
71245
71246 2007-03-02  Bruno Haible  <bruno@clisp.org>
71247
71248         * modules/linkedhash-list-tests (Depends-on): Add progname.
71249         * tests/test-linkedhash_list.c: Include progname.h.
71250         (main): Call set_program_name.
71251
71252         * modules/carray-list-tests (Depends-on): Add progname.
71253         * tests/test-carray_list.c: Include progname.h.
71254         (main): Call set_program_name.
71255
71256         * modules/avltreehash-list-tests (Depends-on): Add progname.
71257         * tests/test-avltreehash_list.c: Include progname.h.
71258         (main): Call set_program_name.
71259
71260         * modules/avltree-oset-tests (Depends-on): Add progname.
71261         * tests/test-avltree_oset.c: Include progname.h.
71262         (main): Call set_program_name.
71263
71264         * modules/avltree-list-tests (Depends-on): Add progname.
71265         * tests/test-avltree_list.c: Include progname.h.
71266         (main): Call set_program_name.
71267
71268         * modules/array-oset-tests (Depends-on): Add progname.
71269         * tests/test-array_oset.c: Include progname.h.
71270         (main): Call set_program_name.
71271
71272         * modules/array-list-tests (Depends-on): Add progname.
71273         * tests/test-array_list.c: Include progname.h.
71274         (main): Call set_program_name.
71275
71276         * modules/argp-tests (Depends-on): Add progname.
71277         * tests/test-argp.c: Include argp.h first. Include progname.h.
71278         (main): Call set_program_name.
71279
71280 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         * doc/gnulib-tool.texi (Initial import): Reword description of
71283         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71284         limited effect even if defined after the first system include.
71285
71286 2007-03-01  Bruno Haible  <bruno@clisp.org>
71287
71288         * build-aux/config.libpath: Update to libtool-1.5.22.
71289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71290
71291 2007-03-01  Bruno Haible  <bruno@clisp.org>
71292
71293         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71294         foo_CFLAGS.
71295         Reported by Ralf Wildenhues.
71296
71297 2007-03-01  Bruno Haible  <bruno@clisp.org>
71298
71299         * build-aux/install-reloc: Remove object files left over by some
71300         compilers.
71301         Reported by Ralf Wildenhues.
71302
71303 2007-03-01  Bruno Haible  <bruno@clisp.org>
71304
71305         * build-aux/install-reloc: Break long lines.
71306
71307 2007-03-01  Bruno Haible  <bruno@clisp.org>
71308
71309         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71310         Reported by Ralf Wildenhues.
71311
71312 2007-03-01  Bruno Haible  <bruno@clisp.org>
71313
71314         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71315         include ordering constraints.
71316
71317 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71321         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71322         as another example.
71323         * lib/time_.h: Fix misspelling.
71324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71325         Require gl_HEADER_TIME_H_DEFAULTS.
71326         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71327         * m4/time_r.m4 (gl_TIME_R): Likewise.
71328         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71329
71330 2007-03-01  Bruno Haible  <bruno@clisp.org>
71331
71332         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71333         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71334
71335 2007-03-01  Jim Meyering  <jim@meyering.net>
71336
71337         * modules/xreadlink (Maintainer): Add my name.
71338         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71339
71340 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71341             Bruno Haible  <bruno@clisp.org>
71342
71343         * build-aux/install-reloc: Compile also c-ctype.c.
71344         * build-aux/relocatable.sh.in: New file.
71345         * doc/relocatable.texi: New file.
71346         * doc/relocatable-maint.texi: New file.
71347         * doc/gnulib.texi: Include relocatable-maint.texi.
71348         * lib/progreloc.c: Include unistd.h unconditionally.
71349         * lib/relocwrapper.c: Include unistd.h unconditionally.
71350         Include c-ctype.h.
71351         (add_dotbin): Use c_tolower.
71352         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71353         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71354         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71355         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71356         to m4/relocatable-lib.m4.
71357         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71358         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71359         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71360         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71361         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71362         * modules/relocatable: New file.
71363         * modules/relocatable-lib: New file.
71364         * modules/relocatable-script: New file.
71365
71366 2007-02-28  Bruno Haible  <bruno@clisp.org>
71367
71368         Import --enable-relocatable infrastructure.
71369         * build-aux/config.libpath: New file, from GNU gettext.
71370         * build-aux/install-reloc: New file, from GNU gettext.
71371         * build-aux/reloc-ldflags: New file, from GNU gettext.
71372         * lib/relocatable.h: New file, from GNU gettext.
71373         * lib/relocatable.c: New file, from GNU gettext.
71374         * lib/relocwrapper.c: New file, from GNU gettext.
71375         * m4/relocatable.m4: New file, from GNU gettext.
71376
71377 2007-02-28  Bruno Haible  <bruno@clisp.org>
71378
71379         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71380
71381         * modules/xreadlink: New file, from GNU gettext with modifications.
71382         * lib/xreadlink.c: New file, from GNU gettext.
71383         * lib/xreadlink.h: Add comments.
71384         (xreadlink): New declaration.
71385
71386         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71387         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71388         lib/xreadlink-with-size.c.
71389         (configure.ac): Remove gl_XREADLINK invocation.
71390         (Makefile.am): Augment lib_SOURCES.
71391         * m4/xreadlink.m4: Remove file.
71392         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71393         (xreadlink_with_size): Renamed from xreadink.
71394         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71395         * modules/canonicalize (Depends-on): Replace xreadlink with
71396         xreadlink-with-size.
71397         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71398
71399 2007-02-25  Jim Meyering  <jim@meyering.net>
71400
71401         * build-aux/announce-gen: When complaining about excess arguments,
71402         list them.
71403
71404 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         * README: Document signed integer overflow situation more
71407         accurately.
71408
71409 2007-02-25  Bruno Haible  <bruno@clisp.org>
71410
71411         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71412         'a' or 'A' conversion.
71413
71414 2007-02-25  Bruno Haible  <bruno@clisp.org>
71415
71416         * modules/filename: Renamed from modules/pathname.
71417         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71418         lib/concatpath.c with lib/concat-filename.c.
71419         (Makefile.am): Update.
71420         (Include): Replace pathname.h with filename.h.
71421         * lib/filename.h: Renamed from lib/pathname.h.
71422         (concatenated_filename): Renamed from concatenated_pathname.
71423         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71424         (concatenated_filename): Renamed from concatenated_pathname.
71425         * lib/findprog.c: Include filename.h instead of pathname.h.
71426         (find_in_path): Update.
71427         * lib/javacomp.c: Include filename.h instead of pathname.h.
71428         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71429         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71430         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71431         is_oldgcj_14_13_usable, is_javac_usable): Update.
71432         * lib/javaexec.c: Include filename.h instead of pathname.h.
71433         (execute_java_class): Update.
71434         * modules/findprog: Update.
71435         * modules/javacomp: Update.
71436         * modules/javaexec: Update.
71437         * MODULES.html.sh (File system functions): Add 'filename', remove
71438         'pathname'.
71439
71440 2007-02-25  Bruno Haible  <bruno@clisp.org>
71441
71442         * modules/printf-frexpl-tests: New file.
71443         * tests/test-printf-frexpl.c: New file.
71444
71445         * modules/printf-frexpl: New file.
71446         * lib/printf-frexpl.h: New file.
71447         * lib/printf-frexpl.c: New file.
71448         * m4/printf-frexpl.m4: New file.
71449
71450 2007-02-25  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/printf-frexp-tests: New file.
71453         * tests/test-printf-frexp.c: New file.
71454
71455         * modules/printf-frexp: New file.
71456         * lib/printf-frexp.h: New file.
71457         * lib/printf-frexp.c: New file.
71458         * m4/printf-frexp.m4: New file.
71459
71460 2007-02-25  Bruno Haible  <bruno@clisp.org>
71461
71462         Assume automake >= 1.10 for the tests.
71463         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71464         * modules/arctwo-tests: Likewise.
71465         * modules/argp-tests: Likewise.
71466         * modules/avltree-list-tests: Likewise.
71467         * modules/avltree-oset-tests: Likewise.
71468         * modules/avltreehash-list-tests: Likewise.
71469         * modules/carray-list-tests: Likewise.
71470         * modules/crc-tests: Likewise.
71471         * modules/des-tests: Likewise.
71472         * modules/gc-arcfour-tests: Likewise.
71473         * modules/gc-arctwo-tests: Likewise.
71474         * modules/gc-des-tests: Likewise.
71475         * modules/gc-hmac-md5-tests: Likewise.
71476         * modules/gc-hmac-sha1-tests: Likewise.
71477         * modules/gc-md2-tests: Likewise.
71478         * modules/gc-md4-tests: Likewise.
71479         * modules/gc-md5-tests: Likewise.
71480         * modules/gc-pbkdf2-sha1-tests: Likewise.
71481         * modules/gc-rijndael-tests: Likewise.
71482         * modules/gc-sha1-tests: Likewise.
71483         * modules/gc-tests: Likewise.
71484         * modules/getaddrinfo-tests: Likewise.
71485         * modules/hmac-md5-tests: Likewise.
71486         * modules/hmac-sha1-tests: Likewise.
71487         * modules/linked-list-tests: Likewise.
71488         * modules/linkedhash-list-tests: Likewise.
71489         * modules/lock-tests: Likewise.
71490         * modules/md2-tests: Likewise.
71491         * modules/md4-tests: Likewise.
71492         * modules/md5-tests: Likewise.
71493         * modules/rbtree-list-tests: Likewise.
71494         * modules/rbtree-oset-tests: Likewise.
71495         * modules/rbtreehash-list-tests: Likewise.
71496         * modules/read-file-tests: Likewise.
71497         * modules/rijndael-tests: Likewise.
71498         * modules/stdint-tests: Likewise.
71499         * modules/tls-tests: Likewise.
71500
71501 2007-02-24  Bruno Haible  <bruno@clisp.org>
71502
71503         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71504         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71505         function; instead check whether isnan with a double argument links.
71506         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71507         function; instead check whether isnan with a 'long double' argument
71508         links.
71509         Reported by Eric Blake <ebb9@byu.net>.
71510
71511 2007-02-24  Bruno Haible  <bruno@clisp.org>
71512
71513         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71514         defined.
71515         * lib/isnanl.c: Remove all code. Just include isnan.c.
71516         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71517
71518 2007-02-25  Jim Meyering  <jim@meyering.net>
71519
71520         Avoid conflicting types for 'unsetenv' on FreeBSD.
71521         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71522         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71523         in stdlib.h.
71524
71525 2007-02-24  Bruno Haible  <bruno@clisp.org>
71526
71527         * modules/isnanl-nolibm-tests: New file.
71528         * tests/test-isnanl.c: New file.
71529
71530         * modules/isnanl-nolibm: New file.
71531         * lib/isnanl.h: New file.
71532         * lib/isnanl.c: New file.
71533         * m4/isnanl.m4: New file.
71534
71535 2007-02-24  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/isnan-nolibm-tests: New file.
71538         * tests/test-isnan.c: New file.
71539
71540         * modules/isnan-nolibm: New file.
71541         * lib/isnan.h: New file.
71542         * lib/isnan.c: New file.
71543         * m4/isnan.m4: New file.
71544
71545 2007-02-24  Bruno Haible  <bruno@clisp.org>
71546
71547         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71548         assume that an exponent fits in 20 bits.
71549
71550 2007-02-24  Jim Meyering  <jim@meyering.net>
71551
71552         * m4/regex.m4: Update the description of the configure-time option,
71553         --without-included-regex, to state accurately what the defaults are,
71554         and perhaps to give people an idea why using this option is risky.
71555
71556 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71559         loops on small arguments.  This attempts to avoid the problem
71560         Bruno Haible reported for AIX 4.3.2 in
71561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71562
71563 2007-02-23  Bruno Haible  <bruno@clisp.org>
71564
71565         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71566         Needed for help2man.
71567
71568 2007-02-23  Karl Berry  <karl@gnu.org>
71569
71570         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71571         exists, foo.h should be cvs-ignored, not committed.
71572
71573 2007-02-23  Eric Blake  <ebb9@byu.net>
71574
71575         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71576         * lib/stat-time.h (includes): Likewise.
71577         * lib/utimecmp.c (includes): Likewise.
71578         * lib/utimens.h (includes): Likewise.
71579         * lib/getdate.y (includes): Also include "timespec.h" for use
71580         internal to the module.
71581         * modules/utimens (Depends-on): Revert yesterday's patch.
71582         * modules/nanosleep (Depends-on): Add missing dependency.
71583
71584 2007-02-22  Bruno Haible  <bruno@clisp.org>
71585
71586         * lib/glob.c: Don't include getlogin_r.h.
71587
71588 2007-02-22  Jim Meyering  <jim@meyering.net>
71589
71590         * modules/utimens (Depends-on): Add timespec, required for
71591         utimens.h's inclusion of timespec.h.
71592
71593 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71596         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71597         Schwab in
71598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71599         I'll try to think of a better way to fix the Solaris problem.
71600
71601         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71602         like glibc; on Solaris 10, it fails with errno == EINVAL.
71603         POSIX says the behavior is unspecified if the first argument is NULL,
71604         so play it safe and never pass NULL to the system getcwd.
71605
71606 2007-02-21  Jim Meyering  <jim@meyering.net>
71607
71608         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71609         of gettimeofday.  It would conflict with the one now always
71610         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71611         an IRIX 6.5 build failure.
71612
71613 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         Minor fixups to port to Solaris 10 with Sun C 5.8.
71616         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71617         * modules/getcwd (Depends-on): Add dirfd.
71618         * lib/putenv.c (putenv): #undef it.
71619         (rpl_putenv): New decl.
71620         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71621
71622 2007-02-20  Bruno Haible  <bruno@clisp.org>
71623
71624         * modules/stdio-tests: New file.
71625         * tests/test-stdio.c: New file.
71626
71627         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71628         (Depends-on): Add stdio.
71629         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71630         (Include): Use <stdio.h> instead of vsnprintf.h.
71631         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71632         HAVE_DECL_VSNPRINTF.
71633         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71634
71635         * modules/snprintf (Files): Remove lib/snprintf.h.
71636         (Depends-on): Add stdio.
71637         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71638         (Include): Use <stdio.h> instead of snprintf.h.
71639         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71640         HAVE_DECL_SNPRINTF.
71641         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71642         * lib/getaddrinfo.c: Likewise.
71643
71644         * modules/stdio: New file.
71645         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71646         * lib/snprintf.h: Remove file.
71647         * lib/vsnprintf.h: Remove file.
71648         * lib/.cppi-disable: Remove snprintf.h.
71649         * m4/stdio_h.m4: New file.
71650         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71651
71652 2007-02-20  Jim Meyering  <jim@meyering.net>
71653
71654         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71655         used by e.g., mingw.  From Bruno Haible.
71656
71657 2007-02-19  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71660         warnings.
71661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71662
71663 2007-02-19  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71666         from mingw users.
71667
71668 2007-02-19  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71671         warnings.
71672         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71673
71674 2007-02-19  Jim Meyering  <jim@meyering.net>
71675
71676         Don't use FD after a successful "fdopendir (fd)".
71677         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71678         Reset it by calling dirfd on the just-obtained DIR*.
71679
71680         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71681         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71682
71683 2007-02-18  Bruno Haible  <bruno@clisp.org>
71684
71685         * lib/readlink.c: Include <unistd.h>.
71686         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71687         HAVE_READLINK.
71688         * modules/readlink (Depends-on): Add unistd.
71689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71690         (Include): Add <unistd.h>.
71691
71692         * lib/getlogin_r.h: Remove file.
71693         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71694         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71695         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71696         HAVE_DECL_GETLOGIN_R.
71697         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71698         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71699         (Include): Use <unistd.h> instead of getlogin_r.h.
71700
71701         * lib/getcwd.h: Remove file.
71702         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71703         * lib/xgetcwd.c: Likewise.
71704         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71705         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71706         * modules/getcwd (Files): Remove lib/getcwd.h.
71707         (Depends-on): Add unistd.
71708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71709         (Include): Use <unistd.h> instad of getcwd.h.
71710
71711         * lib/ftruncate.c: Include <unistd.h> first.
71712         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71713         Set HAVE_FTRUNCATE.
71714         * modules/ftruncate (Depends-on): Add unistd.
71715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71716
71717         * lib/fchdir.c: Include <unistd.h> first.
71718         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71720         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71721         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71722         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71723
71724         * lib/dup2.c: Include <unistd.h> first.
71725         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71726         HAVE_DUP2.
71727         * modules/dup2 (Depends-on): Add unistd.
71728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71729
71730         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71731         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71732         REPLACE_CHOWN. Don't define chown as a macro here.
71733         * modules/chown (Depends-on): Add unistd.
71734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71735
71736         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71737         Add definition for GL_LINK_WARNING.
71738         (chown, dup2): New declarations.
71739         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71740         link warning.
71741         (ftruncate): New declaration.
71742         (getcwd): New declaration, taken from old getcwd.h.
71743         (getlogin_r): New declaration, taken from old getlogin_r.h.
71744         (readlink): New declaration.
71745         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71746         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71747         (gl_PREREQ_UNISTD): Remove macro.
71748         (gl_UNISTD_MODULE_INDICATOR): New macro.
71749         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71750         many new variables. Don't set UNISTD_H.
71751         * modules/unistd (Description): Change.
71752         (Depends-on): Add link-warning.
71753         (configure.ac): Update.
71754         (Makefile.am): Create unistd.h always. Substitute many new variables
71755         into it.
71756
71757 2007-02-18  Bruno Haible  <bruno@clisp.org>
71758
71759         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71760         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71761         HAVE_GETSUBOPT.
71762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71763         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71764         * lib/getsubopt.h: Remove file.
71765         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71766         (Depends-on): Add stdlib.
71767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71768         (Includes): Use <stdlib.h> instead of getsubopt.h.
71769         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71770         Set HAVE_GETSUBOPT.
71771         * lib/getsubopt.c: Don't include getsubopt.h.
71772
71773 2007-02-18  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/fchdir (Depends-on): Add dup2.
71776
71777 2007-02-18  Bruno Haible  <bruno@clisp.org>
71778
71779         * lib/stdlib_.h: Handle glibc's special invocation convention
71780         specially.
71781
71782 2007-02-18  Bruno Haible  <bruno@clisp.org>
71783
71784         * modules/stdlib-tests: New file.
71785         * tests/test-stdlib.c: New file.
71786
71787         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71788         (Depends-on): Add stdlib.
71789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71790         (Includes): Use <stdlib.h> instead of mkstemp.h.
71791         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71792         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71793         * lib/mkstemp.c: Don't include mkstemp.h.
71794         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71795         * lib/stdlib--.h: Don't include mkstemp.h.
71796
71797         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71798         (Depends-on): Add stdlib.
71799         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71800         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71801         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71802         HAVE_MKDTEMP.
71803         * lib/mkdtemp.c: Don't include mkdtemp.h.
71804         * lib/clean-temp.c: Don't include mkdtemp.h.
71805
71806         * modules/exit (Files): Remove lib/exit.h.
71807         (Depends-on): Add stdlib.
71808         (Makefile.am): Remove lib_SOURCES.
71809         (Include): Use <stdlib.h> instead of exit.h.
71810         * lib/argmatch.c: Don't include exit.h.
71811         * lib/execute.c: Likewise.
71812         * lib/pagealign_alloc.c: Likewise.
71813         * lib/pipe.c: Likewise.
71814         * lib/wait-process.c: Likewise.
71815         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71816         * lib/exitfail.c: Likewise.
71817         * lib/savewd.c: Likewise.
71818         * lib/xsetenv.c: Likewise.
71819
71820         * modules/stdlib: New file.
71821         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71822         and extra comments about mkstemp().
71823         * lib/exit.h: Remove file.
71824         * lib/mkdtemp.h: Remove file.
71825         * lib/mkstemp.h: Remove file.
71826         * m4/stdlib_h.m4: New file.
71827         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71828
71829 2007-02-18  Bruno Haible  <bruno@clisp.org>
71830
71831         * modules/math-tests: New file.
71832         * tests/test-math.c: New file.
71833
71834         * modules/math: New file.
71835         * modules/mathl (Files): Remove lib/mathl.h.
71836         (Depends-on): Add math.
71837         (Makefile.am): Don't mention mathl.h.
71838         (Include): Use <math.h> instead of mathl.h.
71839         * lib/math_.h: New file.
71840         * lib/mathl.h: Remove file.
71841         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71842         mathl.h.
71843         * lib/asinl.c: Likewise.
71844         * lib/atanl.c: Likewise.
71845         * lib/ceill.c: Likewise.
71846         * lib/cosl.c: Likewise.
71847         * lib/expl.c: Likewise.
71848         * lib/floorl.c: Likewise.
71849         * lib/frexpl.c: Likewise.
71850         * lib/ldexpl.c: Likewise.
71851         * lib/logl.c: Likewise.
71852         * lib/sincosl.c: Likewise.
71853         * lib/sinl.c: Likewise.
71854         * lib/sqrtl.c: Likewise.
71855         * lib/tanl.c: Likewise.
71856         * lib/trigl.c: Likewise.
71857         * m4/math_h.m4: New file.
71858         * MODULES.html.sh (Mathematics): Add math.
71859
71860 2007-02-17  Bruno Haible  <bruno@clisp.org>
71861
71862         * modules/wctype-tests: New file.
71863         * tests/test-wctype.c: New file.
71864
71865         * modules/wchar-tests: New file.
71866         * tests/test-wchar.c: New file.
71867
71868         * modules/unistd-tests: New file.
71869         * tests/test-unistd.c: New file.
71870
71871         * modules/time-tests: New file.
71872         * tests/test-time.c: New file.
71873
71874         * modules/sysexits-tests: New file.
71875         * tests/test-sysexits.c: New file.
71876
71877         * modules/sys_time-tests: New file.
71878         * tests/test-sys_time.c: New file.
71879
71880         * modules/sys_stat-tests: New file.
71881         * tests/test-sys_stat.c: New file.
71882
71883         * modules/sys_socket-tests: New file.
71884         * tests/test-sys_socket.c: New file.
71885
71886         * modules/sys_select-tests: New file.
71887         * tests/test-sys_select.c: New file.
71888
71889         * modules/string-tests: New file.
71890         * tests/test-string.c: New file.
71891
71892         * modules/stdbool-tests: New file.
71893         * tests/test-stdbool.c: New file.
71894
71895         * modules/netinet_in-tests: New file.
71896         * tests/test-netinet_in.c: New file.
71897
71898         * modules/inttypes-tests: New file.
71899         * tests/test-inttypes.c: New file.
71900
71901         * modules/fcntl-tests: New file.
71902         * tests/test-fcntl.c: New file.
71903
71904         * modules/byteswap-tests: New file.
71905         * tests/test-byteswap.c: New file.
71906
71907         * modules/arpa_inet-tests: New file.
71908         * tests/test-arpa_inet.c: New file.
71909
71910 2007-02-17  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71913         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71914         if the corresponding module is not enabled. Emit link warnings if
71915         the function is used nevertheless.
71916         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71917         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71918         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71919         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71920         * modules/inttypes (Depends-on): Add link-warning.
71921         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71922         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71923         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71924         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71925         * modules/imaxdiv (configure.ac): Likewise.
71926         * modules/strtoimax (configure.ac): Likewise.
71927         * modules/strtoumax (configure.ac): Likewise.
71928
71929 2007-02-17  Bruno Haible  <bruno@clisp.org>
71930
71931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71932         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71934         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71935
71936 2007-02-17  Bruno Haible  <bruno@clisp.org>
71937
71938         * modules/link-warning: New file.
71939         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71940         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71941         * modules/string (Depends-on): Add link-warning.
71942         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71943         string.h.
71944         * MODULES.html.sh (Support for building libraries and executables): Add
71945         link-warning.
71946
71947 2007-02-17  Bruno Haible  <bruno@clisp.org>
71948
71949         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71950         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71951         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71952         long lines.
71953
71954 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71955             Bruno Haible  <bruno@clisp.org>
71956
71957         * modules/tmpfile: New file.
71958         * lib/tmpfile.c: New file.
71959         * m4/tmpfile.m4: New file.
71960         * MODULES.html.sh (func_all_modules): New section "Input/output".
71961
71962 2007-02-15  Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71965         (supports_delete_on_close): New function.
71966         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71967
71968 2007-02-14  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/mbspcasecmp-tests: New file.
71971         * tests/test-mbspcasecmp.sh: New file.
71972         * tests/test-mbspcasecmp.c: New file.
71973
71974         New module mbspcasecmp.
71975         * modules/mbspcasecmp: New file.
71976         * lib/mbspcasecmp.c: New file.
71977         * lib/string_.h (strncasecmp): Change warning message.
71978         (mbspcasecmp): New declaration.
71979         * m4/mbspcasecmp.m4: New file.
71980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71981         GNULIB_MBSPCASECMP.
71982         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71983         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71984
71985 2007-02-14  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/mbsncasecmp-tests: New file.
71988         * tests/test-mbsncasecmp.sh: New file.
71989         * tests/test-mbsncasecmp.c: New file.
71990
71991         New module mbsncasecmp.
71992         * modules/mbsncasecmp: New file.
71993         * lib/mbsncasecmp.c: New file.
71994         * lib/string_.h (mbsncasecmp): New declaration.
71995         * m4/mbsncasecmp.m4: New file.
71996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71997         GNULIB_MBSNCASECMP.
71998         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71999         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72000
72001 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72004         Verify that it doesn't overlap with our flags.
72005         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72006         do not have the desired effect in multibyte locales; instead, use
72007         mbscasecmp.
72008         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72009         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72010         we don't require GNU fnmatch ourselves (if our users require it, they
72011         should do so explicitly).
72012
72013         Fix regex code so it doesn't rely on strcasecmp.
72014         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72015         Otherwise, include gnulib's langinfo.h.
72016         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72017         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72018         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72019         * modules/regex (FILES): Remove m4/codeset.m4.
72020         (Depends-on): Add localcharset.  Remove strcase.
72021
72022 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72023
72024         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72026
72027 2007-02-13  Bruno Haible  <bruno@clisp.org>
72028
72029         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72031
72032 2007-02-12  Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72035         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72036         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72037         time warning rather than a link error.
72038
72039 2007-02-12  Bruno Haible  <bruno@clisp.org>
72040
72041         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72042         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72044
72045 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72046
72047         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72048         args, not 2.
72049
72050 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         New module 'time', so that apps can include <time.h> as per
72053         POSIX and GNU instead of separate include files like time_r.h
72054         and timegm.h.  This implementation tries out a simpler approach
72055         for replacing decls in standard include files (as compared to
72056         the string module), somewhat as an experiment.
72057
72058         * config/srclist.txt: Comment out mktime.c for now.
72059         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72060         since it doesn't apply any more.  Use generic wording instead.
72061         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72062         'time'.
72063         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72064         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72065         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72066         Don't include <sys/types.h>; no longer needed since we assume C89.
72067         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72068         * lib/strftime.c: Likewise.
72069         * lib/time_r.c: Likewise.
72070         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72071         * lib/nanosleep.c: Include <time.h> first, to check interface.
72072         * lib/strptime.c: Likewise.
72073         * lib/time_r.c: Likewise.
72074         * lib/timegm.c: Likewise.
72075         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72076         needed.
72077         * lib/timegm.c: Don't include timegm.h; no longer needed.
72078         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72079         time.h now handles any problems in that area.
72080         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72081         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72082         that time.h defines struct timespec.
72083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72084         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72085         handles that.
72086         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72087         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72088         needed.  Set REPLACE_LOCALTIME.
72089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72090         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72091         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72092         nanosleep; time_h.m4 now does that.  Don't require
72093         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72094         module handles this now.
72095         * modules/getdate (Depends-on): Remove timespec.  Add time.
72096         * modules/nanosleep (Depends-on): Likewise.
72097         * modules/stat-time (Depends-on): Likewise.
72098         * modules/nanosleep (Include): Include time.h, not timespec.h.
72099         * modules/strptime (Files): Remove lib/strptime.h.
72100         (Depends-on): Add extensions, time.
72101         (Include): Include time.h, not strptime.h.
72102         * modules/time_r (Files): Remove lib/time_r.h.
72103         (Depends-on): Add time.
72104         (Include): Include time.h, not time_r.h.
72105         * modules/timegm: Likewise.
72106         * modules/timespec (Description): Now does timespec-related decls
72107         of our own, instead of struct timespec itself.
72108         (Depends-on): Add time; remove extensions.
72109         (Maintainer): Add self.
72110         * modules/utimecmp (Depends-on): Add time; remove timespec.
72111         * modules/utimens (Depends-on): Likewise.
72112         * modules/xnanosleep (Depends-on): Likewise.
72113
72114 2007-02-11  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/c-strstr.c: Include allocsa.h.
72117         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72118         * lib/c-strcasestr.c: Include allocsa.h.
72119         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72120         * lib/strcasestr.c: Include allocsa.h.
72121         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72122         * lib/mbsstr.c: Include allocsa.h.
72123         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72124         allocsa/freesa instead of malloc/free.
72125         * lib/mbscasestr.c: Include allocsa.h.
72126         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72127         allocsa/freesa instead of malloc/free.
72128         * modules/c-strstr (Depends-on): Add allocsa.
72129         * modules/c-strcasestr (Depends-on): Likewise.
72130         * modules/strcasestr (Depends-on): Likewise.
72131         * modules/mbsstr (Depends-on): Likewise.
72132         * modules/mbscasestr (Depends-on): Likewise.
72133
72134 2007-02-11  Bruno Haible  <bruno@clisp.org>
72135
72136         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72137
72138         * modules/mbsspn-tests: New file.
72139         * tests/test-mbsspn.sh: New file.
72140         * tests/test-mbsspn.c: New file.
72141
72142 2007-02-11  Bruno Haible  <bruno@clisp.org>
72143
72144         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72145
72146         * modules/mbspbrk-tests: New file.
72147         * tests/test-mbspbrk.sh: New file.
72148         * tests/test-mbspbrk.c: New file.
72149
72150 2007-02-11  Bruno Haible  <bruno@clisp.org>
72151
72152         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72153         unneeded cast.
72154
72155         * modules/mbscspn-tests: New file.
72156         * tests/test-mbscspn.sh: New file.
72157         * tests/test-mbscspn.c: New file.
72158
72159 2007-02-11  Bruno Haible  <bruno@clisp.org>
72160
72161         * modules/mbscasecmp-tests: New file.
72162         * tests/test-mbscasecmp.sh: New file.
72163         * tests/test-mbscasecmp.c: New file.
72164
72165 2007-02-11  Bruno Haible  <bruno@clisp.org>
72166
72167         Ensure O(n) worst-case complexity of mbscasestr.
72168         * lib/mbscasestr.c: Include stdbool.h.
72169         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72170         functions.
72171         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72172         the bookkeeping indicates that it's worth it.
72173         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72174
72175         * modules/mbscasestr-tests: New file.
72176         * tests/test-mbscasestr1.c: New file.
72177         * tests/test-mbscasestr2.sh: New file.
72178         * tests/test-mbscasestr2.c: New file.
72179         * tests/test-mbscasestr3.sh: New file.
72180         * tests/test-mbscasestr3.c: New file.
72181         * tests/test-mbscasestr4.sh: New file.
72182         * tests/test-mbscasestr4.c: New file.
72183         * m4/locale-tr.m4: New file.
72184
72185 2007-02-11  Bruno Haible  <bruno@clisp.org>
72186
72187         Ensure O(n) worst-case complexity of mbsstr.
72188         * lib/mbsstr.c: Include stdbool.h.
72189         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72190         functions.
72191         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72192         bookkeeping indicates that it's worth it.
72193         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72194
72195         * modules/mbsstr-tests: New file.
72196         * tests/test-mbsstr1.c: New file.
72197         * tests/test-mbsstr2.sh: New file.
72198         * tests/test-mbsstr2.c: New file.
72199         * tests/test-mbsstr3.sh: New file.
72200         * tests/test-mbsstr3.c: New file.
72201         * m4/locale-fr.m4: New file.
72202
72203 2007-02-11  Bruno Haible  <bruno@clisp.org>
72204
72205         * lib/mbsrchr.c (mbsrchr): Fix bug.
72206
72207         * modules/mbsrchr-tests: New file.
72208         * tests/test-mbsrchr.sh: New file.
72209         * tests/test-mbsrchr.c: New file.
72210
72211 2007-02-11  Bruno Haible  <bruno@clisp.org>
72212
72213         * lib/mbschr.c (mbschr): Fix bug.
72214
72215         * modules/mbschr-tests: New file.
72216         * tests/test-mbschr.sh: New file.
72217         * tests/test-mbschr.c: New file.
72218         * m4/locale-zh.m4: New file.
72219
72220 2007-02-11  Bruno Haible  <bruno@clisp.org>
72221
72222         Support for copying multibyte string iterators.
72223         * lib/mbiter.h: Include <string.h>.
72224         (mbiter_multi_copy): New function.
72225         (mbi_copy): New macro.
72226         * lib/mbuiter.h: Include <string.h>.
72227         (mbuiter_multi_copy): New function.
72228         (mbui_copy): New macro.
72229
72230 2007-02-11  Bruno Haible  <bruno@clisp.org>
72231
72232         New module mbslen.
72233         * modules/mbslen: New file.
72234         * lib/mbslen.c: New file.
72235         * lib/string_.h (mbslen): New declaration.
72236         * m4/mbslen.m4: New file.
72237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72238         GNULIB_MBSLEN.
72239         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72240         * MODULES.html.sh (Internationalization functions): Add mbslen.
72241
72242 2007-02-11  Bruno Haible  <bruno@clisp.org>
72243
72244         Ensure O(n) worst-case complexity of strcasestr substitute.
72245         * lib/strcasestr.c: Include stdbool.h.
72246         (knuth_morris_pratt): New function.
72247         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72248         bookkeeping indicates that it's worth it.
72249         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72250
72251         * modules/strcasestr-tests: New file.
72252         * tests/test-strcasestr.c: New file.
72253
72254 2007-02-11  Bruno Haible  <bruno@clisp.org>
72255
72256         Ensure O(n) worst-case complexity of c_strcasestr.
72257         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72258         (knuth_morris_pratt): New function.
72259         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72260         the bookkeeping indicates that it's worth it.
72261         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72262
72263         * modules/c-strcasestr-tests: New file.
72264         * tests/test-c-strcasestr.c: New file.
72265
72266 2007-02-11  Bruno Haible  <bruno@clisp.org>
72267
72268         Ensure O(n) worst-case complexity of c_strstr.
72269         * lib/c-strstr.c: Include stdbool.h, string.h.
72270         (knuth_morris_pratt): New function.
72271         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72272         bookkeeping indicates that it's worth it.
72273         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72274
72275         * lib/c-strstr.c: Complete rewrite for maintainability.
72276
72277         * modules/c-strstr-tests: New file.
72278         * tests/test-c-strstr.c: New file.
72279
72280 2007-02-11  Bruno Haible  <bruno@clisp.org>
72281
72282         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72283         5.2.1 and earlier, whereby \055 was treated just like the range
72284         delimiter '-'.
72285         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72286
72287 2007-02-08  Bruno Haible  <bruno@clisp.org>
72288
72289         * modules/regex (Depends-on): Add stdbool.
72290         Reported by Dalibor Topic <robilad@kaffe.org>.
72291
72292 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72295         Prefer returning from main to exiting from it.
72296         Remove unnecessary parens after sizeof.
72297
72298 2007-02-05  Bruno Haible  <bruno@clisp.org>
72299
72300         New module mbssep.
72301         * modules/mbssep: New file.
72302         * lib/mbssep.c: New file.
72303         * lib/string_.h (strsep): Add a conditional link warning.
72304         (mbssep): New declaration.
72305         * m4/mbssep.m4: New file.
72306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72307         GNULIB_MBSSEP.
72308         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72309         * MODULES.html.sh (Internationalization functions): Add mbssep.
72310
72311 2007-02-05  Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72314         Optimize search in case of 1 delimiter.
72315
72316 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72317
72318         * lib/acl.h: Include sys/types.h before sys/acl.h.
72319
72320 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72321
72322         Merge upstream fix for glibc bugzilla #3957:
72323
72324         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72325
72326         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72327         bit for RE_HAT_LISTS_NOT_NEWLINE.
72328         (build_charclass_op): Remove bogus comment.
72329
72330 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72331
72332         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72333
72334 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72337         * lib/memmem.c [!defined _LIBC]: Include config.h.
72338
72339 2007-02-04  Bruno Haible  <bruno@clisp.org>
72340
72341         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72342         warning message.
72343
72344 2007-02-04  Bruno Haible  <bruno@clisp.org>
72345
72346         New module mbstok_r.
72347         * modules/mbstok_r: New file.
72348         * lib/mbstok_r.c: New file.
72349         * lib/string_.h (strtok_r): Change argument names to match the
72350         comments. Add a conditional link warning.
72351         (mbstok_r): New declaration.
72352         * m4/mbstok_r.m4: New file.
72353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72354         GNULIB_MBSTOK_R.
72355         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72356         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72357
72358 2007-02-04  Bruno Haible  <bruno@clisp.org>
72359
72360         New module mbsspn.
72361         * modules/mbsspn: New file.
72362         * lib/mbsspn.c: New file.
72363         * lib/string_.h (strspn): Add a conditional link warning.
72364         (mbsspn): New declaration.
72365         * m4/mbsspn.m4: New file.
72366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72367         GNULIB_MBSSPN.
72368         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72369         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72370
72371 2007-02-04  Bruno Haible  <bruno@clisp.org>
72372
72373         New module mbspbrk.
72374         * modules/mbspbrk: New file.
72375         * lib/mbspbrk.c: New file.
72376         * lib/string_.h (strpbrk): Add a conditional link warning.
72377         (mbspbrk): New declaration.
72378         * m4/mbspbrk.m4: New file.
72379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72380         GNULIB_MBSPBRK.
72381         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72382         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72383
72384 2007-02-04  Bruno Haible  <bruno@clisp.org>
72385
72386         New module mbscspn.
72387         * modules/mbscspn: New file.
72388         * lib/mbscspn.c: New file.
72389         * lib/string_.h (strcspn): Add a conditional link warning.
72390         (mbscspn): New declaration.
72391         * m4/mbscspn.m4: New file.
72392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72393         GNULIB_MBSCSPN.
72394         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72395         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72396
72397 2007-02-04  Bruno Haible  <bruno@clisp.org>
72398
72399         New module mbscasestr, reduced goal of strcasestr.
72400         * modules/mbscasestr: New file.
72401         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72402         (mbscasestr): Renamed from strcasestr.
72403         * lib/strcasestr.c: Don't include mbuiter.h.
72404         (strcasestr): Remove support for multibyte locales.
72405         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72406         Change the conditional link warning.
72407         (mbscasestr): New declaration.
72408         * m4/mbscasestr.m4: New file.
72409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72410         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72411         REPLACE_STRCASESTR.
72412         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72414         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72415         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72416         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72417         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72418         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72419         (Depends-on): Remove mbuiter.
72420         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72421
72422 2007-02-04  Bruno Haible  <bruno@clisp.org>
72423
72424         Simplify handling of strncasecmp.
72425         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72426         the conditional link warning.
72427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72428         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72430         * modules/strcase (configure.ac): Don't invoke
72431         gl_STRING_MODULE_INDICATOR.
72432         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72433
72434 2007-02-04  Bruno Haible  <bruno@clisp.org>
72435
72436         New module mbscasecmp, reduced goal of strcasecmp.
72437         * modules/mbscasecmp: New file.
72438         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72439         (mbscasecmp): Renamed from strcasecmp.
72440         * lib/strcasecmp.c: Don't include mbuiter.h.
72441         (strcasecmp): Remove support for multibyte locales.
72442         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72443         Change the conditional link warning.
72444         (mbscasecmp): New declaration.
72445         * m4/mbscasecmp.m4: New file.
72446         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72447         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72448         REPLACE_STRCASECMP.
72449         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72451         GNULIB_MBSCASECMP.
72452         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72453         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72454         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72455         (Depends-on): Remove mbuiter.
72456         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72457
72458 2007-02-04  Bruno Haible  <bruno@clisp.org>
72459
72460         New module mbsstr. Remove module strstr.
72461         * modules/mbsstr: New file.
72462         * modules/strstr: Remove file.
72463         * lib/mbsstr.c: Renamed from lib/strstr.c.
72464         (mbsstr): Renamed from strstr.
72465         * lib/string_.h (strstr): Remove declaration. Change the conditional
72466         link warning.
72467         (mbsstr): New declaration.
72468         * m4/mbsstr.m4: New file.
72469         * m4/strstr.m4: Remove file.
72470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72471         REPLACE_STRSTR.
72472         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72473         Don't initialize GNULIB_STRSTR.
72474         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72475         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72476         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72477         (Support for systems lacking ANSI C 89): Remove strstr.
72478
72479 2007-02-04  Bruno Haible  <bruno@clisp.org>
72480
72481         New module mbsrchr.
72482         * modules/mbsrchr: New file.
72483         * lib/mbsrchr.c: New file.
72484         * lib/string_.h (strrchr): Add a conditional link warning.
72485         (mbsrchr): New declaration.
72486         * m4/mbsrchr.m4: New file.
72487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72488         GNULIB_MBSRCHR.
72489         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72490         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72491
72492 2007-02-04  Bruno Haible  <bruno@clisp.org>
72493
72494         New module mbschr.
72495         * modules/mbschr: New file.
72496         * lib/mbschr.c: New file.
72497         * lib/string_.h (strchr): Add a conditional link warning.
72498         (mbschr): New declaration.
72499         * m4/mbschr.m4: New file.
72500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72501         GNULIB_MBSCHR.
72502         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72503         * MODULES.html.sh (Internationalization functions): Add mbschr.
72504
72505 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72508
72509         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72510
72511 2007-02-04  Bruno Haible  <bruno@clisp.org>
72512
72513         New module description section 'configure.ac-early'.
72514         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72515         (func_get_autoconf_early_snippet): New function.
72516         (func_import, func_create_testdir): Use it. Remove special cases for
72517         modules 'extensions' and 'lock'.
72518         * modules/extensions (configure.ac-early): Require
72519         gl_USE_SYSTEM_EXTENSIONS.
72520         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72521
72522 2007-02-04  Bruno Haible  <bruno@clisp.org>
72523
72524         Make use of gcj-4.3's -fsource and -ftarget option.
72525         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72526         and if so try the options -fsource and -ftarget.
72527         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72528         source_version, ftarget_option, target_version arguments.
72529         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72530         (is_envjavac_oldgcj_14_14_usable): Renamed from
72531         is_envjavac_gcj_14_14_usable.
72532         (is_envjavac_oldgcj_14_13_usable): Renamed from
72533         is_envjavac_gcj_14_13_usable.
72534         (is_gcj_present): Update.
72535         (is_gcj_43, is_gcj43_usable): New functions.
72536         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72537         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72538         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72539         try the options -fsource and -ftarget.
72540
72541 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72544         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72545         larger value.
72546
72547 2007-02-03  Jim Meyering  <jim@meyering.net>
72548
72549         Give tools a better chance to allocate space for very large buffers.
72550         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72551
72552         Make pwd and readlink work also when run with an unreadable parent dir
72553         on systems with openat support.
72554         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72555         provided getcwd function, even when we have openat support.
72556         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72557
72558 2007-02-02  Bruno Haible  <bruno@clisp.org>
72559
72560         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72561         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72562         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72563         portability problems if one of these functions is only used on specific
72564         platforms.
72565         Reported by Paul Eggert.
72566
72567 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72570         is causing more trouble than it's curing.
72571         * lib/regex_internal.h (__mempcpy): Remove.
72572         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72573         (and make the code a tad smaller to boot).
72574         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72575
72576 2007-02-02  Jim Meyering  <jim@meyering.net>
72577
72578         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72579         section, not in the Makefile.am: one.
72580
72581 2007-02-02  Eric Blake  <ebb9@byu.net>
72582
72583         * lib/strchrnul.c: Always include config.h first.
72584
72585         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72586         gnulib strstr is not necessary here.
72587
72588 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72589
72590         * m4/socklen.m4: Fix typo.
72591
72592 2007-02-02  Eric Blake  <ebb9@byu.net>
72593
72594         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72595         * modules/netinet_in (Makefile.am): Likewise.
72596
72597 2007-02-01  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/string_.h (GL_LINK_WARNING): New macro.
72600         (strcasecmp, strstr, strcasestr): If provided by the system,
72601         conditionally define as a macro that leads to a warning instead of to
72602         an error.
72603         (strncasecmp): Conditionally define as a macro that leads to a warning.
72604
72605 2007-02-01  Karl Berry  <karl@gnu.org>
72606
72607         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72608
72609 2007-02-01  Bruno Haible  <bruno@clisp.org>
72610
72611         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72612         renamings.
72613
72614 2007-02-01  Eric Blake  <ebb9@byu.net>
72615
72616         * modules/regex (Depends-on): Revert dependence on mempcpy.
72617         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72618         module's definition of mempcpy.
72619         Reported by Paul Eggert.
72620
72621 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72624         the symbol XYZ before redefining it.  This fixes a problem with
72625         programs that don't use XYZ, when compiled on systems that define
72626         XYZ to something else.
72627
72628 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72631         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72632         writeable to group or other and (2) is intended to have a special
72633         mode bit that is set or cleared.  In such a case, the directory
72634         should be neither group- nor other-writeable until the special
72635         mode bits are right.
72636
72637 2007-01-31  Eric Blake  <ebb9@byu.net>
72638
72639         * modules/mountlist (Depends-on): Add strstr.
72640
72641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72642         bug.
72643         * modules/string (Makefile.am): Remove redundant replacement.
72644         * modules/regex (Depends-on): Add mempcpy.
72645
72646 2007-01-31  Bruno Haible  <bruno@clisp.org>
72647
72648         New module description field 'Link'.
72649         * gnulib-tool (func_usage): Document --extract-link-directive.
72650         (sed_extract_prog): Recognize 'Link' directive.
72651         (func_get_link_directive): New function.
72652         (func_import): Show summary of link directives.
72653         Handle --extract-link-directive option.
72654         * modules/acl (Link): New section.
72655         * modules/clock-time (Link): New section.
72656         * modules/euidaccess (Link): New section.
72657         * modules/gettext (Link): New section.
72658         * modules/iconv (Link): New section.
72659         * modules/lock (Link): New section.
72660         * modules/nanosleep (Link): New section.
72661         * modules/readline (Link): New section.
72662
72663 2007-01-27  Bruno Haible  <bruno@clisp.org>
72664
72665         Enforce the use of gnulib modules for unportable <string.h> functions.
72666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72667         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72668         (gl_HEADER_STRING_H_BODY): Require it.
72669         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72670         the symbol XYZ to one that gives a link error.
72671         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72672         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72673         * modules/mempcpy (configure.ac): Likewise.
72674         * modules/memrchr (configure.ac): Likewise.
72675         * modules/stpcpy (configure.ac): Likewise.
72676         * modules/stpncpy (configure.ac): Likewise.
72677         * modules/strcase (configure.ac): Likewise.
72678         * modules/strcasestr (configure.ac): Likewise.
72679         * modules/strchrnul (configure.ac): Likewise.
72680         * modules/strdup (configure.ac): Likewise.
72681         * modules/strndup (configure.ac): Likewise.
72682         * modules/strnlen (configure.ac): Likewise.
72683         * modules/strpbrk (configure.ac): Likewise.
72684         * modules/strsep (configure.ac): Likewise.
72685         * modules/strstr (configure.ac): Likewise.
72686         * modules/strtok_r (configure.ac): Likewise.
72687
72688 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72689
72690         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72691
72692 2007-01-30  Jim Meyering  <jim@meyering.net>
72693
72694         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72695
72696 2007-01-29  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72699         * lib/execute.c: Likewise.
72700         * lib/pipe.c: Likewise.
72701         * lib/printf-args.h: Likewise.
72702         * lib/printf-args.c: Likewise.
72703         * lib/printf-parse.c: Likewise.
72704         * lib/vasnprintf.c: Likewise.
72705
72706 2007-01-29  Eric Blake  <ebb9@byu.net>
72707
72708         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72709         declaration.
72710
72711 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/strptime.h (strptime): Use 'restrict' for args where
72714         POSIX requires this.
72715         * lib/strptime.c (strptime): Likewise.
72716         Change license notice from LGPL to GPL, since gnulib-tool will
72717         change this as needed.
72718         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72719         defined.
72720         Include "strptime.h" first, to check interface.
72721         Do not #undef _LIBC and _NL_CURRENT.
72722         Do not include <stdlib.h>; no longer needed.
72723         Include "time_r.h" and declare ptime_locale_status
72724         only if _LIBC is not defined.
72725         (__P): Remove unused macro.
72726         (match_string): Bring back glibc version, but use it only if _LIBC
72727         is defined.
72728         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72729         Remove unnecessary assertion and abort() call.
72730         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72731         * m4/strptime.m4: Fix serial number comment.
72732         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72733         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72734         (Depends-on): Add time_r.
72735
72736 2007-01-29  Bruno Haible  <bruno@clisp.org>
72737
72738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72739         strptime.
72740         * modules/strptime (Depends-on): Add stdbool.
72741         * lib/strptime.h: Include <time.h> always. Add comments.
72742
72743 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72744
72745         * modules/strptime: New file.
72746         * lib/strptime.h: New file.
72747         * lib/strptime.c: New file.
72748         * m4/strptime.m4: New file.
72749
72750 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         * MODULES.html.sh: New module mpsort.
72753         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72754
72755         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72756         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72758         All uses changed.
72759         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72760         All uses changed.
72761         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72762         to _Restrict_.
72763         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72764         the parameter matches the prototype.
72765
72766 2007-01-28  Jim Meyering  <jim@meyering.net>
72767
72768         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72769         sys/time.h here, reverting that part of the previous patch:
72770         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72771
72772 2007-01-28  Bruno Haible  <bruno@clisp.org>
72773
72774         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72775         value of $(SYS_TIME_H).
72776         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72777         remove it conditionally, too. [added by Jim Meyering]
72778         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72779         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72780         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72781         GETTIMEOFDAY_REPLACEMENT to 1.
72782
72783 2007-01-28  Bruno Haible  <bruno@clisp.org>
72784
72785         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72786         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72788         Set UNISTD_H instead of UNISTD_H2.
72789         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72790
72791 2007-01-28  Bruno Haible  <bruno@clisp.org>
72792
72793         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72794         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72795
72796 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72797
72798         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72799         (func_create_testdir): Ensure C locale for `grep' and `tr'
72800         character ranges.
72801         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72802         ACLOCAL_AMFLAGS parsing state machine.
72803
72804 2007-01-27  Bruno Haible  <bruno@clisp.org>
72805
72806         * modules/unistr/base: Update.
72807
72808 2007-01-27  Bruno Haible  <bruno@clisp.org>
72809
72810         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72811         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72812         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72813         modules/unistr/u32-mbtouc.
72814         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72815         * lib/unistr.h: Update.
72816         * lib/linebreak.c: Update.
72817         * modules/unistr/u32-mbtouc: Renamed from
72818         modules/unistr/u32-mbtouc-safe.
72819         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72820         * lib/unistr.h: Update.
72821         * lib/unistr/u32-to-u8.c: Update.
72822         * lib/unistr/u32-to-u16.c: Update.
72823
72824 2007-01-27  Bruno Haible  <bruno@clisp.org>
72825
72826         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72827         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72828         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72829         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72830         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72831         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72832         modules/unistr/u16-mbtouc.
72833         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72834         * lib/unistr.h: Update.
72835         * lib/linebreak.c: Update.
72836         * modules/linebreak: Update.
72837         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72838         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72839         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72840         * modules/unistr/u16-mbtouc: Renamed from
72841         modules/unistr/u16-mbtouc-safe.
72842         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72843         * lib/unistr.h: Update.
72844         * lib/unistr/u16-to-u8.c: Update.
72845         * modules/unistr/u16-to-u8: Update.
72846         * lib/unistr/u16-to-u32.c: Update.
72847         * modules/unistr/u16-to-u32: Update.
72848
72849 2007-01-27  Bruno Haible  <bruno@clisp.org>
72850
72851         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72852         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72853         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72854         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72855         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72856         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72857         modules/unistr/u8-mbtouc.
72858         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72859         * lib/unistr.h: Update.
72860         * lib/striconveh.c: Update.
72861         * modules/striconveh: Update.
72862         * lib/linebreak.c: Update.
72863         * modules/linebreak: Update.
72864         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72865         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72866         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72867         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72868         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72869         * lib/unistr.h: Update.
72870         * lib/striconveh.c: Update.
72871         * modules/striconveh: Update.
72872         * lib/unistr/u8-to-u16.c: Update.
72873         * modules/unistr/u8-to-u16: Update.
72874         * lib/unistr/u8-to-u32.c: Update.
72875         * modules/unistr/u8-to-u32: Update.
72876
72877 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72878
72879         Sync from Libtool.
72880         * lib/argz.c: Do not include strings.h nor memory.h, include
72881         string.h unconditionally.  Patch by Simon Josefsson.
72882
72883 2007-01-27  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72886         from gl_HEADER_STRING_H_BODY.
72887         (gl_HEADER_STRING_H_BODY): Require it.
72888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72891         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72893         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72895         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72896         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72898         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72899         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72900         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72901         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72902         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72903
72904 2007-01-27  Bruno Haible  <bruno@clisp.org>
72905
72906         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72907         check_PROGRAMS into noinst_PROGRAMS.
72908         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72909         check_PROGRAMS in this case.
72910         (func_import): Set for_test to false.
72911         (func_create_testdir): Set for_test to true.
72912
72913 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72914             Bruno Haible  <bruno@clisp.org>
72915
72916         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72917         (Depends-on): Add string.
72918         (Includes): Use <string.h> instead of strcasestr.h.
72919         * modules/string (Makefile.am): Also substitute the value of
72920         REPLACE_STRCASESTR.
72921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72922         assume strcasestr is declared in <string.h> not <strings.h>. Also
72923         set REPLACE_STRCASESTR.
72924         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72925         REPLACE_STRCASESTR.
72926         * lib/strcasestr.h: Remove file.
72927         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72928         * lib/string_.h (strcasestr): New declaration.
72929
72930 2007-01-27  Bruno Haible  <bruno@clisp.org>
72931
72932         * lib/string_.h: Use 'extern'.
72933
72934 2007-01-27  Jim Meyering  <jim@meyering.net>
72935
72936         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72937         of set-but-not-used local, "q".
72938
72939         * lib/mempcpy.c: Include <config.h> before <string.h>.
72940         This fixes a compilation error on HP-UX, due to the system's
72941         "restrict"-using mempcpy prototype.
72942
72943 2007-01-26  Bruno Haible  <bruno@clisp.org>
72944
72945         Small optimization.
72946         * lib/javacomp.c: Include c-strstr.h.
72947          (is_envjavac_gcj): Use c_strstr instead of strstr.
72948         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72949
72950 2007-01-26  Bruno Haible  <bruno@clisp.org>
72951
72952         * MODULES.html.sh (Unicode string functions): Add the new modules.
72953
72954         * modules/uniconv/u32-strconv-to-locale: New file.
72955         * lib/uniconv/u32-strconv-to-locale.c: New file.
72956
72957         * modules/uniconv/u16-strconv-to-locale: New file.
72958         * lib/uniconv/u16-strconv-to-locale.c: New file.
72959
72960         * modules/uniconv/u8-strconv-to-locale: New file.
72961         * lib/uniconv/u8-strconv-to-locale.c: New file.
72962
72963         * modules/uniconv/u32-strconv-from-locale: New file.
72964         * lib/uniconv/u32-strconv-from-locale.c: New file.
72965
72966         * modules/uniconv/u16-strconv-from-locale: New file.
72967         * lib/uniconv/u16-strconv-from-locale.c: New file.
72968
72969         * modules/uniconv/u8-strconv-from-locale: New file.
72970         * lib/uniconv/u8-strconv-from-locale.c: New file.
72971
72972         * modules/uniconv/u32-strconv-to-enc: New file.
72973         * lib/uniconv/u32-strconv-to-enc.c: New file.
72974         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72975         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72976
72977         * modules/uniconv/u16-strconv-to-enc: New file.
72978         * lib/uniconv/u16-strconv-to-enc.c: New file.
72979         * lib/uniconv/u-strconv-to-enc.h: New file.
72980         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72981         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72982
72983         * modules/uniconv/u8-strconv-to-enc: New file.
72984         * lib/uniconv/u8-strconv-to-enc.c: New file.
72985         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72986         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72987
72988         * modules/uniconv/u32-strconv-from-enc: New file.
72989         * lib/uniconv/u32-strconv-from-enc.c: New file.
72990         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72991         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72992
72993         * modules/uniconv/u16-strconv-from-enc: New file.
72994         * lib/uniconv/u16-strconv-from-enc.c: New file.
72995         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72996         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72997
72998         * modules/uniconv/u8-strconv-from-enc: New file.
72999         * lib/uniconv/u8-strconv-from-enc.c: New file.
73000         * lib/uniconv/u-strconv-from-enc.h: New file.
73001         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73002         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73003
73004         * modules/uniconv/u32-conv-from-enc: New file.
73005         * lib/uniconv/u32-conv-from-enc.c: New file.
73006         * modules/uniconv/u32-conv-from-enc-tests: New file.
73007         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73008
73009         * modules/uniconv/u16-conv-from-enc: New file.
73010         * lib/uniconv/u16-conv-from-enc.c: New file.
73011         * lib/uniconv/u-conv-from-enc.h: New file.
73012         * modules/uniconv/u16-conv-from-enc-tests: New file.
73013         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73014
73015         * modules/uniconv/u8-conv-from-enc: New file.
73016         * lib/uniconv/u8-conv-from-enc.c: New file.
73017         * modules/uniconv/u8-conv-from-enc-tests: New file.
73018         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73019
73020         * modules/uniconv/base: New file.
73021         * lib/uniconv.h: New file.
73022
73023 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         * doc/gnulib-tool.texi (Initial import): Update to match current
73026         behavior with strdup module.
73027         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73028         * lib/memmem.h: Remove; all uses removed.  This is now done
73029         by <string.h>.
73030         * lib/mempcpy.h: Likewise.
73031         * lib/memrchr.h: Likewise.
73032         * lib/stpcpy.h: Likewise.
73033         * lib/stpncpy.h: Likewise.
73034         * lib/strcase.h: Likewise.
73035         * lib/strchrnul.h: Likewise.
73036         * lib/strdup.h: Likewise.
73037         * lib/strndup.h: Likewise.
73038         * lib/strnlen.h: Likewise.
73039         * lib/strpbrk.h: Likewise.
73040         * lib/strsep.h: Likewise.
73041         * lib/strstr.h: Likewise.
73042         * lib/strtok_r.h: Likewise.
73043         * lib/string_.h: New file.
73044         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73045         Rely on <string.h> instead.
73046         * lib/canon-host.c: Likewise.
73047         * lib/chdir-long.c: Likewise.
73048         * lib/concatpath.c: Likewise.
73049         * lib/exclude.c: Likewise.
73050         * lib/fchdir.c: Likewise.
73051         * lib/getaddrinfo.c: Likewise.
73052         * lib/getcwd.c: Likewise.
73053         * lib/getsubopt.c: Likewise.
73054         * lib/glob.c: Likewise.
73055         * lib/hard-locale.c: Likewise.
73056         * lib/iconvme.c: Likewise.
73057         * lib/javacomp.c: Likewise.
73058         * lib/mempcpy.c: Likewise.
73059         * lib/memrchr.c: Likewise.
73060         * lib/regex_internal.h: Likewise.
73061         * lib/stpncpy.c: Likewise.
73062         * lib/strcasecmp.c: Likewise.
73063         * lib/strchrnul.c: Likewise.
73064         * lib/strdup.c: Likewise.
73065         * lib/striconv.c: Likewise.
73066         * lib/striconveh.c: Likewise.
73067         * lib/striconveha.c: Likewise.
73068         * lib/strncasecmp.c: Likewise.
73069         * lib/strndup.c: Likewise.
73070         * lib/strnlen.c: Likewise.
73071         * lib/strsep.c: Likewise.
73072         * lib/strstr.c: Likewise.
73073         * lib/strtok_r.c: Likewise.
73074         * lib/userspec.c: Likewise.
73075         * lib/w32spawn.h: Likewise.
73076         * lib/xstrndup.c: Likewise.
73077         * lib/mountlist.c (strstr): Remove decl.
73078         * m4/string_h.m4: New file.
73079         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73083         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73084         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73085         Set REPLACE_STRCASECMP if necessary.
73086         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73087         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73088         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73089         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73090         HAVE_DECL_STRDUP if necessary.
73091         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73092         since gl_FUNC_STRNDUP does that now.
73093         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73094         Check for decl here...
73095         (gl_PREREQ_STRNLEN): ... not here.
73096         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73097         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73098         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73099         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73100         necessary.
73101         * modules/string: New file.
73102         * modules/memmem (Files): Remove special-purpose include file.
73103         (Depends-on): Add string.
73104         (Include): Include <string.h>, not the removed file.
73105         * modules/mempcpy: Likewise.
73106         * modules/memrchr: Likewise.
73107         * modules/stpcpy: Likewise.
73108         * modules/stpncpy: Likewise.
73109         * modules/strcase: Likewise.
73110         * modules/strchrnul: Likewise.
73111         * modules/strdup: Likewise.
73112         * modules/strndup: Likewise.
73113         * modules/strnlen: Likewise.
73114         * modules/strpbrk: Likewise.
73115         * modules/strsep: Likewise.
73116         * modules/strstr: Likewise.
73117         * modules/strtok_r: Likewise.
73118         * tests/test-dirname.c: Don't include "strdup.h", since
73119         <string.h> now suffices.
73120         * tests/test-memmem.c: Don't include "memmem.h", since
73121         <string.h> now suffices.
73122
73123 2007-01-25  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73126         *resultp is 0.
73127
73128         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73129         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73130         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73131         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73132
73133         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73134         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73135         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73136         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73137         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73138         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73139
73140 2007-01-24  Bruno Haible  <bruno@clisp.org>
73141
73142         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73144         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73145         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73146         gl_FUNC_FTS_CORE.
73147         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73148         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73149         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73150         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73151         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73152         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73153         gl_FUNC_FCHOWNAT.
73154         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73155         gl_FUNC_STRFTIME.
73156         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73157         Reported by Ralf Wildenhues.
73158
73159 2007-01-24  Bruno Haible  <bruno@clisp.org>
73160
73161         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73162         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73163         gl_GETADDRINFO.
73164         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73165         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73166         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73167
73168 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73171         Don't use 'exit'; just return from 'main'.
73172         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73173
73174         * lib/fnmatch_.h: Readjust white space and comments to match
73175         glibc, to avoid spurious diffs.
73176
73177 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73178
73179         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73180         2004-12-01 change by Jakub Jelinek, since this code won't compile
73181         if !LIBC.  Problem reported by Bob Proulx.
73182
73183 2007-01-23  Bruno Haible  <bruno@clisp.org>
73184
73185         * lib/striconveh.c: Include c-strcaseeq.h.
73186         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73187         * modules/striconveh (Depends-on): Add c-strcaseeq.
73188
73189 2007-01-23  Bruno Haible  <bruno@clisp.org>
73190
73191         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73192
73193         * modules/c-strcaseeq: New file.
73194         * lib/c-strcaseeq.h: New file.
73195
73196         * modules/streq: New file.
73197         * lib/streq.h: New file.
73198
73199 2007-01-23  Bruno Haible  <bruno@clisp.org>
73200
73201         * modules/striconveha-tests: New file.
73202         * tests/test-striconveha.c: New file.
73203
73204         * lib/striconveha.h: Include <stdbool.h>.
73205         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73206         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73207         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73208         (mem_iconveha): New function.
73209         (str_iconveha_notranslit): Renamed from str_iconveha.
73210         (str_iconveha): New function.
73211         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73212         c-strcase.
73213
73214 2007-01-23  Bruno Haible  <bruno@clisp.org>
73215
73216         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73217         encodings without forgiving before trying any encoding with handler.
73218         (str_iconveha): Try all encodings without forgiving before trying any
73219         encoding with handler.
73220
73221 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         Import the following changes from libc.
73224
73225         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73226
73227         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73228
73229         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73230
73231         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73232         normal_bracket label.
73233
73234         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73235
73236         [BZ #361]
73237         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73238         to normal_bracket after fetching the next character.
73239
73240 2007-01-22  Bruno Haible  <bruno@clisp.org>
73241
73242         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73243         argument.
73244         * lib/striconveh.c (iconv_carefully_1): New function.
73245         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73246         argument.
73247         (str_cd_iconveh): Update.
73248         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73249         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73250         * tests/test-striconveh.c (MAGIC): New macro.
73251         (new_offsets): New function.
73252         (main): Test call with and without offsets.
73253
73254 2007-01-22  Bruno Haible  <bruno@clisp.org>
73255
73256         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73257         * modules/sys_select (Makefile.am): Likewise.
73258         * modules/sys_socket (Makefile.am): Likewise.
73259         * modules/sys_time (Makefile.am): Likewise.
73260
73261 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * modules/gettimeofday (License): Change from GPL to LGPL, since
73264         gettimeofday is a library function.
73265
73266 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73267
73268         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73269
73270 2007-01-21  Bruno Haible  <bruno@clisp.org>
73271
73272         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73273
73274 2007-01-21  Bruno Haible  <bruno@clisp.org>
73275
73276         * modules/striconveha: New file.
73277         * lib/striconveha.h: New file.
73278         * lib/striconveha.c: New file.
73279         * MODULES.html.sh (Internationalization functions): Add striconveha.
73280         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73281         string.
73282         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73283
73284 2007-01-21  Bruno Haible  <bruno@clisp.org>
73285
73286         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73287         * lib/striconveh.c (str_iconveh): Likewise.
73288
73289 2007-01-21  Bruno Haible  <bruno@clisp.org>
73290
73291         * lib/striconveh.h (mem_iconveh): New declaration.
73292         * lib/striconveh.c (mem_iconveh): New function.
73293         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73294
73295 2007-01-21  Bruno Haible  <bruno@clisp.org>
73296
73297         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73298
73299         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73300         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73301         original result buffer.
73302         (str_cd_iconveh): Update.
73303         * tests/test-striconveh.c (main): Update.
73304
73305         * lib/striconv.h (mem_cd_iconv): Change specification.
73306         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73307         result buffer.
73308         (str_cd_iconv): Update.
73309         * tests/test-striconv.c (main): Update.
73310
73311 2007-01-21  Bruno Haible  <bruno@clisp.org>
73312
73313         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73314
73315 2007-01-20  Jim Meyering  <jim@meyering.net>
73316
73317         * lib/userspec.c (parse_with_separator): If a user or group string
73318         starts with "+", skip the corresponding name-to-ID look-up, since
73319         such a look-up must fail: user and group names may not include "+".
73320
73321 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73324         since we now assume the sys_time module.
73325         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73326         check for sys/time.h; no longer needed.
73327         * modules/poll (Depends-on): Depend on sys_time.
73328
73329 2007-01-18  Bruno Haible  <bruno@clisp.org>
73330
73331         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73332         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73333
73334         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73335         gettimeofday.
73336
73337         * tests/test-gettimeofday.c: Include <time.h>.
73338         (dummy): Remove variable.
73339
73340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73341         gl_HEADER_SYS_TIME_H.
73342         (gl_HEADER_SYS_TIME_H): New macro.
73343
73344         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73345         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73347         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73348         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73349         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73350         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73351         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73352         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73353         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73354         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73355
73356         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73357         last change; it caused a compilation error when cross-compiling to
73358         Cygwin.
73359
73360 2007-01-18  Jim Meyering  <jim@meyering.net>
73361
73362         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73363         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73364         than the race-prone "test -d sys || mkdir sys".
73365         (configure.ac): Use AC_PROG_MKDIR_P.
73366         * modules/sys_select: Likewise.
73367         * modules/sys_socket: Likewise.
73368         * modules/sys_time: Likewise.
73369
73370 2007-01-18  Eric Blake  <ebb9@byu.net>
73371
73372         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73373         replace gettimeofday.
73374         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73375         name, to avoid infinite recursion.
73376
73377 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73380         module sys_time.
73381         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73382         assume timespec.h defines struct timeval.
73383         * lib/settime.c: Likewise.
73384         * lib/utimens.c: Likewise.
73385         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73386         since we now assume the gettimeofday module.
73387         * lib/tempname.c (__gen_tempname): Likewise.
73388         * lib/gettimeofday.h: Remove.
73389         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73390         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73391         Include <time.h>, for 'time()'.
73392         (localtime_buffer_addr): Also use this workaround if
73393         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73394         to simplify the uses.  All uses changed.
73395         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73396         that #undef is inside {}, and 'const' follows type name consistently.
73397         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73398         (gettimeofday): Do not use the maximum possible value for
73399         tv->tv_usec, since that might break usages other than ls.c.
73400         Instead, we'll leave ls.c alone.  This undoes today's patch
73401         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73402         we've never observed the problem but might as well keep the
73403         canary.
73404         * lib/nanosleep.c: Include timespec.h first, for interface check.
73405         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73406         now assume the sys_time module.
73407         * lib/tempname.c: Likewise.
73408         * lib/timespec.h: Likewise.
73409         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73410         needed.
73411         * lib/strftime.c: Likewise.
73412         * lib/timespec.h: Likewise.
73413         * lib/posixtm.c: Include posixtm.h first, for interface check.
73414         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73415         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73416         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73417         * lib/sys_time_.h: New file.
73418         * lib/timespec.h (struct timespec): Use long int, not long.
73419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73420         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73421         Remove obsolescent call to AC_HEADER_TIME.
73422         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73424         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73425         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73426         Likewise.
73427         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73428         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73430         into the sys_time module.  Check for gettimeofday just once.
73431         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73432         for gettimeofday signature to just check the signature.  Merely
73433         compile it, since linking doesn't test signature.  Improve test for
73434         whether gettimeofday.o is actually needed.
73435         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73436         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73437         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73438         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73439         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73440         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73441         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73442         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73443         than worrying about sys/time.h.
73444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73445         Don't bother worrying about TIME_WITH_SYS_TIME.
73446         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73447         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73448         * m4/sys_time_h.m4: New file.
73449         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73450         Don't include sys/time.h.  Return from main rather than exiting.
73451         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73452         all uses changed.
73453         * modules/gethrxtime (Depends-on): Add sys_time.
73454         * modules/gettime (Depends-on): Likewise.
73455         * modules/gettimeofday (Depends-on): Likewise.
73456         * modules/nanosleep (Depends-on): Likewise.
73457         * modules/settime (Depends-on): Likewise.
73458         * modules/tempname (Depends-on): Likewise.
73459         * modules/utimens (Depends-on): Likewise.
73460         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73461         (Include): Change back to <sys/time.h>.
73462         (Maintainer): Add self.
73463         * modules/sys_time: New file.
73464         * modules/tempname (Depends-on): Add gettimeofday.
73465         * tests/test-gettimeofday.c: Include <sys/time.h>
73466         rather than gettimeofday.h.
73467
73468 2007-01-17  Bruno Haible  <bruno@clisp.org>
73469
73470         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73471         the license default to GPL.
73472         (func_create_testdir): Don't complain if a module is LGPL and its
73473         tests module depends on GPLed modules.
73474
73475 2007-01-17  Bruno Haible  <bruno@clisp.org>
73476
73477         * lib/gettimeofday.c (gettimeofday): Add code for the case
73478         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73479         maximum possible value for tv->tv_usec, rather than the minimum one.
73480
73481 2005-10-08  Martin Lambers  <marlam@marlam.de>
73482 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73483 2007-01-16  Bruno Haible  <bruno@clisp.org>
73484
73485         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73486         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73487         gl_FUNC_GETTIMEOFDAY.
73488         (Include): Add gettimeofday.h.
73489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73490         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73491         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73492         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73493         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73494         * lib/gettimeofday.h: New file.
73495         * lib/gettimeofday.c: Include <sys/timeb.h>.
73496         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73497         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73498         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73499         fall back on time().
73500
73501         * tests/test-gettimeofday.c: New file.
73502         * modules/gettimeofday-tests: New file.
73503
73504 2007-01-16  Eric Blake  <ebb9@byu.net>
73505
73506         * modules/fnmatch (Depends-on): Depend on wchar.
73507         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73508         * m4/fnmatch.m4: Likewise.
73509         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73510         * m4/mbchar.m4: Likewise.
73511         * modules/mbswidth (Depends-on): Depend on wchar.
73512         * lib/mbswidth.c: Assume <wchar.h>.
73513         * m4/mbswidth.m4: Likewise.
73514         * modules/quotearg (Depends-on): Depend on wchar.
73515         * lib/quotearg.c: Assume <wchar.h>.
73516         * m4/quotearg.m4: Likewise.
73517         * modules/regex (Depends-on): Depend on wchar.
73518         * lib/regex_internal.h: Assume <wchar.h>.
73519         * m4/regex.m4: Likewise.
73520         * modules/stdint (Depends-on): Depend on wchar.
73521         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73522         * m4/stdint.m4: Likewise.
73523         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73524         * modules/strftime (Depends-on): Depend on wchar.
73525         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73526         * modules/strtol (Depends-on): Depend on wchar.
73527         * lib/strtol.c: Assume <wchar.h>.
73528         * modules/wcwidth (Depends-on): Depend on wchar.
73529         * lib/wcwidth.h: Assume <wchar.h>.
73530         * m4/wcwidth.m4: Likewise.
73531
73532 2007-01-16  Bruno Haible  <bruno@clisp.org>
73533
73534         * modules/csharpexec-script: New, created from...
73535         * modules/csharpexec: ... this.
73536
73537 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73538
73539         * modules/javaexec-script: New, created from...
73540         * modules/javaexec: ... this.
73541
73542 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73543
73544         * modules/poll (Dependencies): Add sys_select.
73545
73546 2007-01-15  Jim Meyering  <jim@meyering.net>
73547
73548         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73549         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73550         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73551         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73552
73553 2007-01-15  Bruno Haible  <bruno@clisp.org>
73554
73555         * modules/striconveh: New file.
73556         * lib/striconveh.h: New file.
73557         * lib/striconveh.c: New file.
73558         * MODULES.html.sh (Internationalization functions): Add striconveh.
73559
73560         * modules/striconveh-tests: New file.
73561         * tests/test-striconveh.c: New file.
73562
73563 2007-01-15  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73566         not from GNU libiconv or GNU libc.
73567
73568 2007-01-15  Bruno Haible  <bruno@clisp.org>
73569
73570         * doc/gnulib-intro.texi (Copyright): Explain the different license
73571         terms for module descriptions, autoconf macros, tests, documentation.
73572
73573 2007-01-14  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/striconv-tests: New file.
73576         * tests/test-striconv.c: New file.
73577
73578 2007-01-14  Bruno Haible  <bruno@clisp.org>
73579
73580         * modules/iconv-tests: New file.
73581         * tests/test-iconv.c: New file.
73582
73583 2007-01-14  Bruno Haible  <bruno@clisp.org>
73584
73585         * gnulib-tool (func_get_license): For test modules, use the license of
73586         the main module.
73587
73588 2007-01-14  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73591         if iconv is found to exist.
73592
73593 2007-01-14  Bruno Haible  <bruno@clisp.org>
73594
73595         * modules/c-ctype-tests: New file.
73596         * tests/test-c-ctype.c: New file.
73597
73598 2007-01-14  Bruno Haible  <bruno@clisp.org>
73599
73600         * modules/binary-io-tests: New file.
73601         * tests/test-binary-io.sh: New file.
73602         * tests/test-binary-io.c: New file.
73603
73604 2007-01-14  Bruno Haible  <bruno@clisp.org>
73605
73606         * modules/array-oset-tests: New file.
73607         * tests/test-array_oset.c: New file.
73608
73609 2007-01-14  Bruno Haible  <bruno@clisp.org>
73610
73611         * modules/array-list-tests: New file.
73612         * tests/test-array_list.c: New file.
73613
73614 2007-01-14  Bruno Haible  <bruno@clisp.org>
73615
73616         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73617         and make.
73618         Reported by Simon Josefsson in
73619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73620
73621 2007-01-14  Bruno Haible  <bruno@clisp.org>
73622
73623         * modules/allocsa-tests: New file.
73624         * tests/test-allocsa.c: New file.
73625
73626 2007-01-14  Bruno Haible  <bruno@clisp.org>
73627
73628         * modules/fchdir (Depends-on): Add absolute-header.
73629         * modules/unistd (Depends-on): Likewise.
73630
73631 2006-12-30  Bruno Haible  <bruno@clisp.org>
73632
73633         * modules/fchdir: New file.
73634         * modules/unistd (Files): Add lib/unistd_.h.
73635         (Makefile.am): Generate unistd.h from unistd_.h.
73636         * lib/fchdir.c: New file.
73637         * lib/dirent_.h: New file.
73638         * lib/unistd_.h: New file.
73639         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73640         * m4/fchdir.m4: New file.
73641         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73642         (gl_HEADER_UNISTD): Invoke it.
73643         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73644         function.
73645         * lib/backupfile.c (opendir, closedir): Undefine.
73646         * lib/chown.c (open, close): Undefine.
73647         * lib/clean-temp.c (open, close): Undefine.
73648         * lib/copy-file.c (open, close): Undefine.
73649         * lib/execute.c (open, close): Undefine.
73650         * lib/fsusage.c (open, close): Undefine.
73651         * lib/gc-gnulib.c (open, close): Undefine.
73652         * lib/getcwd.c (opendir, closedir): Undefine.
73653         * lib/glob.c (opendir, closedir): Undefine.
73654         * lib/javacomp.c (open, close): Undefine.
73655         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73656         * lib/openat-proc.c (open, close): Undefine.
73657         * lib/pagealign_alloc.c (open, close): Undefine.
73658         * lib/pipe.c (open, close): Undefine.
73659         * lib/progreloc.c (open, close): Undefine.
73660         * lib/savedir.c (opendir, closedir): Undefine.
73661         * lib/utime.c (open, close): Undefine.
73662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73663
73664 2007-01-10  Bruno Haible  <bruno@clisp.org>
73665
73666         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73667
73668 2007-01-12  Eric Blake  <ebb9@byu.net>
73669
73670         Provide a robust <wchar.h>.  Further simplifications are now
73671         possible in other modules, but not included here.
73672         * modules/wchar: New module.
73673         * m4/wchar.m4: New file.
73674         * lib/wchar_.h: Likewise.
73675         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73676         of the new module.
73677         * MODULES.html.sh (Extended multibyte and wide character utilities):
73678         New section.
73679
73680 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73683         to a reasonable default for memory allocation.
73684         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73685         file system that reports garbage st_size values for symlinks.
73686         Problem reported by Liyang Hu.
73687
73688 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73689
73690         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73691         Emacs .#* auto-save files).
73692
73693 2007-01-11  Bruno Haible  <bruno@clisp.org>
73694
73695         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73696         directory.
73697
73698 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         Use @...@ consistently in lib/wctype_.h.
73701         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73702         on it being set to 1 or 0.
73703         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73704         go back to AC_SUBSTing it.
73705         * modules/wctype (Makefile.am): Undo previous change.
73706
73707 2007-01-10  Eric Blake  <ebb9@byu.net>
73708
73709         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73710         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73711         * modules/wctype (Makefile.am): Likewise.
73712         Reported by Chris McGuire.
73713
73714 2007-01-10  Jim Meyering  <jim@meyering.net>
73715
73716         fts.c: a small readability/maintainability improvement
73717         * lib/fts.c (fts_read): Make this code slightly more readable and
73718         maintainable by hoisting the "sp->fts_cur = p" assignments to
73719         immediately follow the statements that set P.  Derived from
73720         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73721
73722 2007-01-10  Eric Blake  <ebb9@byu.net>
73723
73724         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73725         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73727         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73728         Reported by Chris McGuire.
73729
73730 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73731
73732         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73733         in sed script.
73734
73735 2007-01-09  Bruno Haible  <bruno@clisp.org>
73736
73737         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73738         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73739         variables.
73740         (func_module): Use them.
73741
73742 2007-01-09  Bruno Haible  <bruno@clisp.org>
73743
73744         * modules/unistr/base: New file.
73745         * lib/unistr.h: New file.
73746
73747         * modules/unistr/u8-to-u16: New file.
73748         * lib/unistr/u8-to-u16.c: New file.
73749
73750         * modules/unistr/u8-to-u32: New file.
73751         * lib/unistr/u8-to-u32.c: New file.
73752
73753         * modules/unistr/u16-to-u8: New file.
73754         * lib/unistr/u16-to-u8.c: New file.
73755
73756         * modules/unistr/u16-to-u32: New file.
73757         * lib/unistr/u16-to-u32.c: New file.
73758
73759         * modules/unistr/u32-to-u8: New file.
73760         * lib/unistr/u32-to-u8.c: New file.
73761
73762         * modules/unistr/u32-to-u16: New file.
73763         * lib/unistr/u32-to-u16.c: New file.
73764
73765         * modules/unistr/u8-check: New file.
73766         * modules/unistr/u16-check: New file.
73767         * modules/unistr/u32-check: New file.
73768         * lib/unistr/u8-check.c: New file.
73769         * lib/unistr/u16-check.c: New file.
73770         * lib/unistr/u32-check.c: New file.
73771
73772         * modules/unistr/u8-chr: New file.
73773         * modules/unistr/u16-chr: New file.
73774         * modules/unistr/u32-chr: New file.
73775         * lib/unistr/u8-chr.c: New file.
73776         * lib/unistr/u16-chr.c: New file.
73777         * lib/unistr/u32-chr.c: New file.
73778
73779         * modules/unistr/u8-cmp: New file.
73780         * modules/unistr/u16-cmp: New file.
73781         * modules/unistr/u32-cmp: New file.
73782         * lib/unistr/u8-cmp.c: New file.
73783         * lib/unistr/u16-cmp.c: New file.
73784         * lib/unistr/u32-cmp.c: New file.
73785
73786         * modules/unistr/u8-cpy: New file.
73787         * modules/unistr/u16-cpy: New file.
73788         * modules/unistr/u32-cpy: New file.
73789         * lib/unistr/u8-cpy.c: New file.
73790         * lib/unistr/u16-cpy.c: New file.
73791         * lib/unistr/u32-cpy.c: New file.
73792         * lib/unistr/u-cpy.h: New file.
73793
73794         * modules/unistr/u8-cpy-alloc: New file.
73795         * modules/unistr/u16-cpy-alloc: New file.
73796         * modules/unistr/u32-cpy-alloc: New file.
73797         * lib/unistr/u8-cpy-alloc.c: New file.
73798         * lib/unistr/u16-cpy-alloc.c: New file.
73799         * lib/unistr/u32-cpy-alloc.c: New file.
73800         * lib/unistr/u-cpy-alloc.h: New file.
73801
73802         * modules/unistr/u8-endswith: New file.
73803         * modules/unistr/u16-endswith: New file.
73804         * modules/unistr/u32-endswith: New file.
73805         * lib/unistr/u8-endswith.c: New file.
73806         * lib/unistr/u16-endswith.c: New file.
73807         * lib/unistr/u32-endswith.c: New file.
73808         * lib/unistr/u-endswith.h: New file.
73809
73810         * modules/unistr/u8-mblen: New file.
73811         * modules/unistr/u16-mblen: New file.
73812         * modules/unistr/u32-mblen: New file.
73813         * lib/unistr/u8-mblen.c: New file.
73814         * lib/unistr/u16-mblen.c: New file.
73815         * lib/unistr/u32-mblen.c: New file.
73816
73817         * modules/unistr/u8-mbtouc: New file.
73818         * modules/unistr/u16-mbtouc: New file.
73819         * modules/unistr/u32-mbtouc: New file.
73820         * lib/unistr/u8-mbtouc.c: New file.
73821         * lib/unistr/u16-mbtouc.c: New file.
73822         * lib/unistr/u32-mbtouc.c: New file.
73823
73824         * modules/unistr/u8-mbtouc-safe: New file.
73825         * modules/unistr/u16-mbtouc-safe: New file.
73826         * modules/unistr/u32-mbtouc-safe: New file.
73827         * lib/unistr/u8-mbtouc-safe.c: New file.
73828         * lib/unistr/u16-mbtouc-safe.c: New file.
73829         * lib/unistr/u32-mbtouc-safe.c: New file.
73830
73831         * modules/unistr/u8-move: New file.
73832         * modules/unistr/u16-move: New file.
73833         * modules/unistr/u32-move: New file.
73834         * lib/unistr/u8-move.c: New file.
73835         * lib/unistr/u16-move.c: New file.
73836         * lib/unistr/u32-move.c: New file.
73837         * lib/unistr/u-move.h: New file.
73838
73839         * modules/unistr/u8-next: New file.
73840         * modules/unistr/u16-next: New file.
73841         * modules/unistr/u32-next: New file.
73842         * lib/unistr/u8-next.c: New file.
73843         * lib/unistr/u16-next.c: New file.
73844         * lib/unistr/u32-next.c: New file.
73845
73846         * modules/unistr/u8-prev: New file.
73847         * modules/unistr/u16-prev: New file.
73848         * modules/unistr/u32-prev: New file.
73849         * lib/unistr/u8-prev.c: New file.
73850         * lib/unistr/u16-prev.c: New file.
73851         * lib/unistr/u32-prev.c: New file.
73852
73853         * modules/unistr/u8-set: New file.
73854         * modules/unistr/u16-set: New file.
73855         * modules/unistr/u32-set: New file.
73856         * lib/unistr/u8-set.c: New file.
73857         * lib/unistr/u16-set.c: New file.
73858         * lib/unistr/u32-set.c: New file.
73859         * lib/unistr/u-set.h: New file.
73860
73861         * modules/unistr/u8-startswith: New file.
73862         * modules/unistr/u16-startswith: New file.
73863         * modules/unistr/u32-startswith: New file.
73864         * lib/unistr/u8-startswith.c: New file.
73865         * lib/unistr/u16-startswith.c: New file.
73866         * lib/unistr/u32-startswith.c: New file.
73867         * lib/unistr/u-startswith.h: New file.
73868
73869         * modules/unistr/u8-stpcpy: New file.
73870         * modules/unistr/u16-stpcpy: New file.
73871         * modules/unistr/u32-stpcpy: New file.
73872         * lib/unistr/u8-stpcpy.c: New file.
73873         * lib/unistr/u16-stpcpy.c: New file.
73874         * lib/unistr/u32-stpcpy.c: New file.
73875         * lib/unistr/u-stpcpy.h: New file.
73876
73877         * modules/unistr/u8-stpncpy: New file.
73878         * modules/unistr/u16-stpncpy: New file.
73879         * modules/unistr/u32-stpncpy: New file.
73880         * lib/unistr/u8-stpncpy.c: New file.
73881         * lib/unistr/u16-stpncpy.c: New file.
73882         * lib/unistr/u32-stpncpy.c: New file.
73883         * lib/unistr/u-stpncpy.h: New file.
73884
73885         * modules/unistr/u8-strcat: New file.
73886         * modules/unistr/u16-strcat: New file.
73887         * modules/unistr/u32-strcat: New file.
73888         * lib/unistr/u8-strcat.c: New file.
73889         * lib/unistr/u16-strcat.c: New file.
73890         * lib/unistr/u32-strcat.c: New file.
73891         * lib/unistr/u-strcat.h: New file.
73892
73893         * modules/unistr/u8-strchr: New file.
73894         * modules/unistr/u16-strchr: New file.
73895         * modules/unistr/u32-strchr: New file.
73896         * lib/unistr/u8-strchr.c: New file.
73897         * lib/unistr/u16-strchr.c: New file.
73898         * lib/unistr/u32-strchr.c: New file.
73899
73900         * modules/unistr/u8-strcmp: New file.
73901         * modules/unistr/u16-strcmp: New file.
73902         * modules/unistr/u32-strcmp: New file.
73903         * lib/unistr/u8-strcmp.c: New file.
73904         * lib/unistr/u16-strcmp.c: New file.
73905         * lib/unistr/u32-strcmp.c: New file.
73906
73907         * modules/unistr/u8-strcpy: New file.
73908         * modules/unistr/u16-strcpy: New file.
73909         * modules/unistr/u32-strcpy: New file.
73910         * lib/unistr/u8-strcpy.c: New file.
73911         * lib/unistr/u16-strcpy.c: New file.
73912         * lib/unistr/u32-strcpy.c: New file.
73913         * lib/unistr/u-strcpy.h: New file.
73914
73915         * modules/unistr/u8-strcspn: New file.
73916         * modules/unistr/u16-strcspn: New file.
73917         * modules/unistr/u32-strcspn: New file.
73918         * lib/unistr/u8-strcspn.c: New file.
73919         * lib/unistr/u16-strcspn.c: New file.
73920         * lib/unistr/u32-strcspn.c: New file.
73921         * lib/unistr/u-strcspn.h: New file.
73922
73923         * modules/unistr/u8-strdup: New file.
73924         * modules/unistr/u16-strdup: New file.
73925         * modules/unistr/u32-strdup: New file.
73926         * lib/unistr/u8-strdup.c: New file.
73927         * lib/unistr/u16-strdup.c: New file.
73928         * lib/unistr/u32-strdup.c: New file.
73929         * lib/unistr/u-strdup.h: New file.
73930
73931         * modules/unistr/u8-strlen: New file.
73932         * modules/unistr/u16-strlen: New file.
73933         * modules/unistr/u32-strlen: New file.
73934         * lib/unistr/u8-strlen.c: New file.
73935         * lib/unistr/u16-strlen.c: New file.
73936         * lib/unistr/u32-strlen.c: New file.
73937         * lib/unistr/u-strlen.h: New file.
73938
73939         * modules/unistr/u8-strmblen: New file.
73940         * modules/unistr/u16-strmblen: New file.
73941         * modules/unistr/u32-strmblen: New file.
73942         * lib/unistr/u8-strmblen.c: New file.
73943         * lib/unistr/u16-strmblen.c: New file.
73944         * lib/unistr/u32-strmblen.c: New file.
73945
73946         * modules/unistr/u8-strmbtouc: New file.
73947         * modules/unistr/u16-strmbtouc: New file.
73948         * modules/unistr/u32-strmbtouc: New file.
73949         * lib/unistr/u8-strmbtouc.c: New file.
73950         * lib/unistr/u16-strmbtouc.c: New file.
73951         * lib/unistr/u32-strmbtouc.c: New file.
73952
73953         * modules/unistr/u8-strncat: New file.
73954         * modules/unistr/u16-strncat: New file.
73955         * modules/unistr/u32-strncat: New file.
73956         * lib/unistr/u8-strncat.c: New file.
73957         * lib/unistr/u16-strncat.c: New file.
73958         * lib/unistr/u32-strncat.c: New file.
73959         * lib/unistr/u-strncat.h: New file.
73960
73961         * modules/unistr/u8-strncmp: New file.
73962         * modules/unistr/u16-strncmp: New file.
73963         * modules/unistr/u32-strncmp: New file.
73964         * lib/unistr/u8-strncmp.c: New file.
73965         * lib/unistr/u16-strncmp.c: New file.
73966         * lib/unistr/u32-strncmp.c: New file.
73967
73968         * modules/unistr/u8-strncpy: New file.
73969         * modules/unistr/u16-strncpy: New file.
73970         * modules/unistr/u32-strncpy: New file.
73971         * lib/unistr/u8-strncpy.c: New file.
73972         * lib/unistr/u16-strncpy.c: New file.
73973         * lib/unistr/u32-strncpy.c: New file.
73974         * lib/unistr/u-strncpy.h: New file.
73975
73976         * modules/unistr/u8-strnlen: New file.
73977         * modules/unistr/u16-strnlen: New file.
73978         * modules/unistr/u32-strnlen: New file.
73979         * lib/unistr/u8-strnlen.c: New file.
73980         * lib/unistr/u16-strnlen.c: New file.
73981         * lib/unistr/u32-strnlen.c: New file.
73982         * lib/unistr/u-strnlen.h: New file.
73983
73984         * modules/unistr/u8-strpbrk: New file.
73985         * modules/unistr/u16-strpbrk: New file.
73986         * modules/unistr/u32-strpbrk: New file.
73987         * lib/unistr/u8-strpbrk.c: New file.
73988         * lib/unistr/u16-strpbrk.c: New file.
73989         * lib/unistr/u32-strpbrk.c: New file.
73990         * lib/unistr/u-strpbrk.h: New file.
73991
73992         * modules/unistr/u8-strrchr: New file.
73993         * modules/unistr/u16-strrchr: New file.
73994         * modules/unistr/u32-strrchr: New file.
73995         * lib/unistr/u8-strrchr.c: New file.
73996         * lib/unistr/u16-strrchr.c: New file.
73997         * lib/unistr/u32-strrchr.c: New file.
73998
73999         * modules/unistr/u8-strspn: New file.
74000         * modules/unistr/u16-strspn: New file.
74001         * modules/unistr/u32-strspn: New file.
74002         * lib/unistr/u8-strspn.c: New file.
74003         * lib/unistr/u16-strspn.c: New file.
74004         * lib/unistr/u32-strspn.c: New file.
74005         * lib/unistr/u-strspn.h: New file.
74006
74007         * modules/unistr/u8-strstr: New file.
74008         * modules/unistr/u16-strstr: New file.
74009         * modules/unistr/u32-strstr: New file.
74010         * lib/unistr/u8-strstr.c: New file.
74011         * lib/unistr/u16-strstr.c: New file.
74012         * lib/unistr/u32-strstr.c: New file.
74013         * lib/unistr/u-strstr.h: New file.
74014
74015         * modules/unistr/u8-strtok: New file.
74016         * modules/unistr/u16-strtok: New file.
74017         * modules/unistr/u32-strtok: New file.
74018         * lib/unistr/u8-strtok.c: New file.
74019         * lib/unistr/u16-strtok.c: New file.
74020         * lib/unistr/u32-strtok.c: New file.
74021         * lib/unistr/u-strtok.h: New file.
74022
74023         * modules/unistr/u8-uctomb: New file.
74024         * modules/unistr/u16-uctomb: New file.
74025         * modules/unistr/u32-uctomb: New file.
74026         * lib/unistr/u8-uctomb.c: New file.
74027         * lib/unistr/u16-uctomb.c: New file.
74028         * lib/unistr/u32-uctomb.c: New file.
74029
74030         * MODULES.html.sh (Unicode string functions): Add the new modules.
74031
74032 2007-01-08  Bruno Haible  <bruno@clisp.org>
74033
74034         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74035         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74036         subdirectories.
74037
74038 2007-01-08  Karl Berry  <karl@gnu.org>
74039
74040         * doc/error.texi: mention that main() fns must set program_name
74041         when progname is used.
74042
74043 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74046         WCTYPE_H is empty, for the benefit of builds from non-distclean
74047         directories.  Problem reported by Eric Blake in
74048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74049
74050 2007-01-08  Bruno Haible  <bruno@clisp.org>
74051
74052         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74053         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74054         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74055         PROVIDE_CANONICALIZE_FILENAME_MODE.
74056         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74057
74058 2007-01-08  Bruno Haible  <bruno@clisp.org>
74059
74060         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74061         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74062         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74063         * lib/fts.c: Likewise.
74064         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74065
74066 2006-12-25  Bruno Haible  <bruno@clisp.org>
74067
74068         * modules/utf8-ucs4-safe: New file.
74069         * lib/utf8-ucs4-safe.h: New file.
74070         * lib/unistr/utf8-ucs4-safe.c: New file.
74071
74072         * modules/utf16-ucs4-safe: New file.
74073         * lib/utf16-ucs4-safe.h: New file.
74074         * lib/unistr/utf16-ucs4-safe.c: New file.
74075
74076         * MODULES.html.sh (Unicode string functions): Add the new modules.
74077
74078 2007-01-08  Bruno Haible  <bruno@clisp.org>
74079
74080         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74081         (Depends-on): Add unitypes.
74082         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74083         (u8_mbtouc_aux): Move out to separate file.
74084         (u8_mbtouc): Use ucs4_t, uint8_t types.
74085         * lib/unistr/utf8-ucs4.c: New file.
74086
74087         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74088         (Depends-on): Add unitypes.
74089         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74090         (u16_mbtouc_aux): Move out to separate file.
74091         (u16_mbtouc): Use ucs4_t, uint16_t types.
74092         * lib/unistr/utf16-ucs4.c: New file.
74093
74094         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74095         (Depends-on): Add unitypes.
74096         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74097         (u8_uctomb_aux): Move out to separate file.
74098         (u8_uctomb): Use ucs4_t, uint8_t types.
74099         * lib/unistr/ucs4-utf8.c: New file.
74100
74101         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74102         (Depends-on): Add unitypes.
74103         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74104         (u16_uctomb_aux): Move out to separate file.
74105         (u16_uctomb): Use ucs4_t, uint16_t types.
74106         * lib/unistr/ucs4-utf16.c: New file.
74107
74108 2006-12-25  Bruno Haible  <bruno@clisp.org>
74109
74110         * modules/unitypes: New file.
74111         * lib/unitypes.h: New file.
74112         * MODULES.html.sh (func_all_modules): New section "Unicode string
74113         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74114         this section. Add unitypes.
74115
74116 2007-01-08  Bruno Haible  <bruno@clisp.org>
74117
74118         Avoid variable names that conflict with those from libtool.
74119         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74120         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74121         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74122         library_names_spec to acl_library_names_spec, hardcode_* to
74123         acl_hardcode_*.
74124         Reported by Ralf Wildenhues.
74125
74126 2007-01-08  Bruno Haible  <bruno@clisp.org>
74127
74128         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74129         definition.
74130         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74131         definition.
74132         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74133         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74134         definition.
74135         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74136         definition.
74137         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74138         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74139         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74140         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74141         definition.
74142         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74143         definition.
74144         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74145         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74146         GC_USE_<algorithm>.
74147         * lib/gc-libgcrypt.c: Likewise.
74148         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74149         * modules/gc-arctwo (configure.ac): Likewise.
74150         * modules/gc-des (configure.ac): Likewise.
74151         * modules/gc-hmac-md5 (configure.ac): Likewise.
74152         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74153         * modules/gc-md2 (configure.ac): Likewise.
74154         * modules/gc-md4 (configure.ac): Likewise.
74155         * modules/gc-md5 (configure.ac): Likewise.
74156         * modules/gc-random (configure.ac): Likewise.
74157         * modules/gc-rijndael (configure.ac): Likewise.
74158         * modules/gc-sha1 (configure.ac): Likewise.
74159
74160 2007-01-08  Bruno Haible  <bruno@clisp.org>
74161
74162         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74163         macro definition.
74164         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74165         definition.
74166         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74167         definition.
74168         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74169         * modules/fcntl-safer (configure.ac): Likewise.
74170         * modules/fopen-safer (configure.ac): Likewise.
74171         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74172         GNULIB_FWRITEERROR macro definition.
74173
74174 2007-01-08  Bruno Haible  <bruno@clisp.org>
74175
74176         * m4/gnulib-common.m4: New file.
74177         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74178         (func_get_filelist): Add m4/gnulib-common.m4.
74179
74180 2007-01-08  Bruno Haible  <bruno@clisp.org>
74181
74182         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74183         command.
74184
74185 2007-01-08  Jim Meyering  <jim@meyering.net>
74186
74187         Use a more robust test for a "can't happen" condition.
74188         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74189         narrowed the st_size value.  Presuming the "can't happen" condition
74190         is true, that narrowing could conceivably convert an invalid st_size
74191         value into a valid one.  Instead, use a change based on Matthew
74192         Woehlke's original patch.
74193
74194         Slight readability improvement: use an assert-like macro
74195         in place of literal "abort ()" uses.
74196         * lib/fts.c (fts_assert): Define.
74197         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74198         Use this macro instead of a bare 'abort'.
74199
74200 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74203         simply work around them.
74204         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74205         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74206         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74207         declaring.
74208         Don't bother to define as macros, since the standard doesn't require it.
74209         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74210         longer worry about IRIX 5.3.
74211         (HAVE_WCTYPE_CTMP_BUG): Remove.
74212
74213 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74214
74215         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74216         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74217         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74218         Problems reported by Georg Schwarz for IRIX 5.3.
74219
74220         * gnulib-tool (autoconf_minversion): Take the maximum version number
74221         found, not the minimum.  Problem reported by James Youngman.
74222
74223 2007-01-03  Karl Berry  <karl@gnu.org>
74224
74225         * doc/error.texi: new file, explaining interaction with progname.
74226         * doc/gnulib.texi: include it.  Update copyright.
74227
74228 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74229
74230         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74231         AC_CANONICAL_HOST, to improve autobuild outputs.
74232
74233 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74234             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74235
74236         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74237         sockets, server sockets, and other file descriptors.  Count errors
74238         to compute the return value.  Reorder the code a bit to be easier
74239         to follow.  Don't set event bits that were not requested (except
74240         POLLERR and POLLHUP).
74241
74242 2007-01-01  Bruno Haible  <bruno@clisp.org>
74243
74244         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74245
74246 2007-01-03  Jim Meyering  <jim@meyering.net>
74247
74248         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74249
74250 2007-01-02  Bruno Haible  <bruno@clisp.org>
74251
74252         * modules/settime (Include): Require timespec.h.
74253         * modules/nanosleep (Include): Likewise.
74254
74255 2007-01-01  Bruno Haible  <bruno@clisp.org>
74256
74257         * gnulib-tool (func_emit_copyright_notice): Bump year.
74258         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74259
74260 2007-01-01  Bruno Haible  <bruno@clisp.org>
74261
74262         Improve support for OpenBSD.
74263         * build-aux/config.rpath (libname_spec): Export.
74264         (library_names_spec): New variable. Export.
74265         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74266         library_names_spec from the config.rpath output. Locate shared library
74267         through the name pattern in library_names_spec.
74268
74269 2007-01-01  Eric Blake  <ebb9@byu.net>
74270
74271         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74272
74273 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74276         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74277         assume the C locale, and avoid an "eval" that could cause trouble.
74278         Problem with SORT reported by Bob Proulx.
74279
74280         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74281         Define.  Trivial patch from Henning Nielsen Lund, originally
74282         sent to bug-grep@gnu.org today.
74283
74284 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74287         struct stat.  Problem reported by Henning Nielsen Lund.
74288         * lib/acl.c: Include acl.h first, to check interface.  Don't
74289         bother to include sys/types.h and sys/stat.h again.
74290
74291 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74292
74293         Import the following change from libc; problem reported by
74294         Sven Verdoolaege.
74295
74296         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74297
74298         [BZ #1373]
74299         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74300
74301 2006-12-28  Jim Meyering  <jim@meyering.net>
74302
74303         * build-aux/announce-gen: Do not assume that the package
74304         builds any of tar.gz, tar.bz2, and .xdelta files.
74305         Suggestion from Simon Josefsson.
74306
74307 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74308
74309         * modules/announce-gen: New file.
74310
74311 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74314         handles its gotchas now.
74315         * lib/mbswidth.c: Likewise.
74316         * lib/wcwidth.h: Likewise.
74317         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74318         and iswcntrl; the wctype module does this stuff now.
74319         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74321         * modules/mbchar (Depends-on): Add wctype.
74322         * modules/mbswidth (Depends-on): Likewise.
74323         * modules/wcwidth (Depends-on): Likewise.
74324
74325 2006-12-27  Eric Blake  <ebb9@byu.net>
74326
74327         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74328         module uses more than what <wctype.h> is required to provide.
74329
74330 2006-12-26  Eric Blake  <ebb9@byu.net>
74331
74332         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74333
74334 2006-12-26  Eric Blake  <ebb9@byu.net>
74335
74336         * modules/absolute-header: New module.
74337         * modules/fcntl (Depends-on): Depend on it.
74338         * modules/inttypes (Depends-on): Likewise.
74339         * modules/stdint (Depends-on): Likewise.
74340         * modules/sys_stat (Depends-on): Likewise.
74341         * modules/wctype (Depends-on): Likewise.
74342         * MODULES.html.sh (Support for building libraries and
74343         executables): Document it.
74344
74345 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * gnulib-tool (SED): Remove, undoing previous change.
74348         The problem was that it broke coreutils on Solaris, because
74349         "sed --posix" leaked into a makefile.
74350         (sed): New alias, if 'alias' and GNU sed.
74351
74352 2006-12-24  Jim Meyering  <jim@meyering.net>
74353
74354         Work around an fchownat bug in glibc-2.4:
74355         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74356         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74357         in spite of the -P option.
74358         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74359         New macros.
74360         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74361         * modules/openat (Files): Add lib/fchownat.c.
74362         * lib/openat.c (fchownat): Don't define here.  Move to...
74363         * lib/fchownat.c: ...this new file.
74364
74365 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         Fix bug reported by Bruno Haible in
74368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74369         where quotearg.c didn't compile on Mac OS X 10.2 because it
74370         lacks <wchar.h> and wint_t.
74371         * lib/wctype_.h (__wctype_wint_t): New type.
74372         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74373         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74374         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74375         Arg is now of type __wctype_wint_t, not wint_t.
74376         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74377         substitute HAVE_WINT_T.
74378         * modules/wctype (Files): Add m4/wint_t.m4.
74379         (wctype.h): Substitute HAVE_WINT_T.
74380
74381 2006-12-23  Bruno Haible  <bruno@clisp.org>
74382
74383         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74384
74385 2006-12-23  Bruno Haible  <bruno@clisp.org>
74386
74387         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74388         S_ISLNK.
74389         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74390         mingw.
74391
74392 2006-12-22  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/copy-file.c: Include acl.h.
74395         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74396         Close the file descriptors only after being done with copy_acl.
74397         * modules/copy-file (Depends-on): Add acl.
74398
74399 2006-12-22  Bruno Haible  <bruno@clisp.org>
74400
74401         * gnulib-tool (SED): New variable.
74402         Use $SED instead of sed everywhere.
74403
74404 2006-12-22  Bruno Haible  <bruno@clisp.org>
74405
74406         * modules/no-c++: New file.
74407         * m4/no-c++.m4: New file.
74408         * MODULES.html.sh (Support for building libraries and executables):
74409         Add no-c++.
74410
74411 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74414         Include <limits.h>, and use its INT_MAX to rewrite the
74415         j loop so that it does not overflow 'int'.  Problem reported by
74416         Ralf Wildenhues in
74417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74418         Play it safe by shifting left by 1 rather than multiplying by 2,
74419         as GCC is less likely to optimize this away when the value
74420         is signed (when it assumes overflow leads to undefined behavior).
74421         Also, don't assume time_t uses two's complement.
74422
74423 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * MODULES.html.sh: New module wctype.
74426         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74427         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74428         <wctype.h>, since the new wctype module should fix this.
74429         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74430         the wctype module should arrange for it.
74431         * lib/regex_internal.h: Likewise.
74432         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74433         since the wctype module should handle this now.
74434         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74435         * modules/fnmatch (Depends-on): Add wctype.
74436         * modules/quotearg (Depends-on): Likewise.
74437         * modules/regex (Depends-on): Likewise.
74438
74439 2006-12-19  Bruno Haible  <bruno@clisp.org>
74440
74441         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74442         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74443
74444 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74445
74446         * modules/savewd (Depends-on): Fix dependency on fcntl.
74447
74448 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74451         conforms to C99, rather than relying on the user's environment
74452         setting of STDINT_H.
74453
74454 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74455         and Eric Blake  <ebb9@byu.net>
74456
74457         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74458         This is more consistent with the other defines here.
74459         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74460         Port to z/OS.  Problem reported by Paul Gilmartin.
74461         Change local vars to use gl_ prefix rather than ac_.
74462         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74463         with other defines.
74464         * modules/double-slash-root: New module.
74465         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74466         (Depends-on): Add double-slash-root.
74467         * MODULES.html.sh (File system functions): Mention new module.
74468
74469 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74472         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74473         This is for the benefit of gzip, which doesn't do i18n.
74474
74475 2006-12-12  Jim Meyering  <jim@meyering.net>
74476
74477         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74478         Reported by Andreas Schwab <schwab@suse.de>.
74479
74480 2006-12-12  Bruno Haible  <bruno@clisp.org>
74481
74482         Merge these changes.
74483         2006-09-05  Bruno Haible  <bruno@clisp.org>
74484         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74485         iconv_alloc succeeded.
74486         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74487         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74488         test for " && dest " at the end - dest is always != NULL there. Call
74489         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74490         with 2xNULL arguments, also to flush the state storage. Handle the
74491         IRIX iconv behaviour. Realloc the final result, to throw away unused
74492         memory.
74493
74494 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74497         and fchmodat unconditionally, since glibc 2.4 has them.
74498         Problem reported by Arkadiusz Miskiewicz.
74499
74500 2006-12-10  Bruno Haible  <bruno@clisp.org>
74501
74502         * gnulib-tool (func_import): Show the include files only for those
74503         modules that are copied and specified.
74504         Reported by Karl Berry.
74505
74506 2006-12-08  Jim Meyering  <jim@meyering.net>
74507
74508         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74509         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74510
74511         * build-aux/announce-gen: Add two new options, both optional:
74512         --bootstrap-tools=TOOL_LIST
74513               a comma-separated list of tools, e.g.,
74514               autoconf,automake,bison,gnulib
74515         --gnulib-snapshot-date=DATE
74516               if gnulib is in the bootstrap tool list,
74517               then report this as the snapshot date.
74518               If not specified, use the current date/time.
74519               If you specify a date here, be sure it's UTC.
74520
74521 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74522
74523         * tests/test-argp-2.sh: Fix test to match actual output.
74524         (func_compare): Fix sed script to be portable.
74525
74526 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74529         workaround for this case.  It is not autoconfigured now; offhand
74530         it's hard to see how to autoconfigure it.
74531
74532 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74535         a directory that is about to be chowned.  Such a directory's
74536         initial file permissions should permit the owner only and this
74537         should not be changed until after the chown, since the group and
74538         other bits would be incorrect if they granted permission before
74539         the chown.
74540
74541         Fix porting problem for iswctype reported by Georg Schwarz in:
74542         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74543         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74544         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74545         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74546         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74547
74548 2006-12-03  Jim Meyering  <jim@meyering.net>
74549
74550         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74551         p->fts_statp may not yet be defined.
74552         (fts_read): Instead, set it in the caller, once p->fts_statp is
74553         sure to be defined, and corresponds to a top-level directory.
74554         This bug made du -x fail.  Here's the coreutils test case:
74555         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74556         Reported by Mike Frysinger.
74557
74558 2006-12-01  Jim Meyering  <jim@meyering.net>
74559
74560         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74561         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74562         Reported by Simon Josefsson.
74563
74564 2006-11-30  Jim Meyering  <jim@meyering.net>
74565
74566         * m4/warning.m4: Use the all-permissive copyright notice
74567         recommended by RMS (rather than LGPL).
74568         * m4/vararrays.m4: Likewise.
74569         * m4/flexmember.m4: Likewise.
74570
74571 2006-11-29  Bruno Haible  <bruno@clisp.org>
74572
74573         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74574         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74575         using +=.
74576         Reported by Simon Josefsson <simon@josefsson.org>.
74577
74578 2006-11-28  James Youngman <jay@gnu.org>
74579
74580         * README: Advise users that they might find the bug-gnulib@gnu.org
74581         and autotools-announce@gnu.org mailing lists useful.
74582
74583 2006-11-28  Bruno Haible  <bruno@clisp.org>
74584
74585         * m4/ptrdiff_max.m4: Remove file.
74586
74587 2006-11-21  Bruno Haible  <bruno@clisp.org>
74588
74589         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74590         _AC_COMPUTE_INT.
74591         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74592         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74593         _AC_COMPUTE_INT.
74594         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74595         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74596         _AC_COMPUTE_INT.
74597         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74598
74599 2006-11-28  Jim Meyering  <jim@meyering.net>
74600
74601         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74602         warning from "gcc -Wshadow" about shadowing the builtin.
74603
74604 2006-11-27  Bruno Haible  <bruno@clisp.org>
74605
74606         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74607         _AC_COMPUTE_INT.
74608         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74609
74610 2006-11-27  Bruno Haible  <bruno@clisp.org>
74611             Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74614
74615 2006-11-26  Bruno Haible  <bruno@clisp.org>
74616
74617         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74618         noinst_LTLIBRARIES.
74619
74620 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74621             Bruno Haible  <bruno@clisp.org>
74622
74623         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74624         if compiling with "gcc -ansi".
74625
74626 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74627
74628         Fix some incompatibilities with gcc -ansi -pedantic.
74629         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74630         if compiling pedantically with GCC, unless it's C99 or later.
74631         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74632         it mishandles gcc -ansi -pedantic as well.
74633         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74634         if gcc -pedantic.
74635         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74636         initializers for struct if -pedantic, unless it's C99 or later.
74637
74638 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74639
74640         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74641         Don't close an fd more than once. Identical atimes indicate
74642         success, not failure.
74643
74644 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74645
74646         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74647
74648 2006-11-23  Jim Meyering  <jim@meyering.net>
74649
74650         * build-aux/announce-gen: New file.  From coreutils.
74651
74652 2006-11-22  Jim Meyering  <jim@meyering.net>
74653
74654         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74655         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74656         (fts_read): Use a temporary to narrow the overused st_size member
74657         before using it in a switch statement.  Reported by Matthew Woehlke.
74658
74659         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74660         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74661
74662 2006-11-20  Bruno Haible  <bruno@clisp.org>
74663
74664         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74665         changequote instead of pairs of brackets.
74666         Reported by Andreas Schwab <schwab@suse.de>.
74667
74668 2006-11-21  Jim Meyering  <jim@meyering.net>
74669
74670         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74671         so as to remain compatible with older compilers.
74672         Patch from Michael Deutschmann.
74673
74674 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * MODULES.html.sh (File system functions): Add openat.
74677
74678         * lib/openat.h (rpl_fstatat): New macro, if
74679         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74680         (fstatat): Define to rpl_fstatat under the same conditions,
74681         unless COMPILING_FSTATAT.
74682         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74683         seems to have the bug.
74684         * lib/fstatat.c: New file.
74685         * modules/openat (Files): Add it.
74686
74687 2006-11-20  Bruno Haible  <bruno@clisp.org>
74688
74689         * Makefile: New file.
74690
74691 2006-11-20  Jim Meyering  <jim@meyering.net>
74692
74693         The beginnings of syntax-related checks for gnulib.
74694         * lib/Makefile: New file.
74695         * lib/t-idcache: New script.  Ensure that the two halves of
74696         idcache.c stay in sync.
74697
74698         * lib/idcache.c: Adjust comments in user- and group- portions to
74699         be more accurate, and to be consistent with one another.
74700
74701 2006-11-20  Jim Meyering  <jim@meyering.net>
74702
74703         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74704         continue using the flexible array member (thus, this module performs
74705         half as many malloc calls), with the addition that...
74706         (getgroup, getuser): Consistently record a non-match via an empty
74707         "name" string, and map an empty string match to a NULL return value.
74708         * modules/idcache (Depends-on): Re-add flexmember.
74709
74710         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74711         (getuidbyname, getgroup, getgidbyname): Likewise.
74712
74713         Use cleaner syntax: NULL rather than 0.
74714         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74715
74716 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74719         It mishandled the case where the group was missing.
74720         Problem reported by Greg Schafer.
74721         * modules/idcache: Likewise.
74722
74723 2006-11-18  Jim Meyering  <jim@meyering.net>
74724
74725         * check-module (%exempt_header): Add exception for some
74726         conditionally-included headers.
74727
74728         * modules/i-ring (Depends-on): Add verify.
74729         (License): Change to LGPL.
74730
74731 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74734         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74735         and inttostr.h.  Use snprintf rather than uinttostr, so that
74736         LGPLed code doesn't depend on GPLed.
74737
74738 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * modules/inline (License): Change from GPL to LGPL.
74741
74742 2006-11-17  Jim Meyering  <jim@meyering.net>
74743
74744         * modules/d-type (License): Switch to LGPL.
74745
74746 2006-11-15  Bruno Haible  <bruno@clisp.org>
74747
74748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74749
74750 2006-11-15  Eric Blake  <ebb9@byu.net>
74751
74752         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74753         the module dependency.
74754
74755 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74756             Bruno Haible  <bruno@clisp.org>
74757
74758         * gnulib-tool (func_create_testdir): Add license consistency check.
74759
74760 2006-11-15  Eric Blake  <ebb9@byu.net>
74761
74762         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74763         random "(cached)" in configure output.
74764
74765 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74766
74767         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74768         test for conforming inttypes.h is both announced and cached.
74769
74770         * MODULES.html.sh (seen_modules, seen_files): New variables.
74771         (func_module): Rewrite to use a few less gnulib-tool and sed
74772         invocations.  Avoid a couple of quadratic algorithms for ...
74773         (missed_modules, missed_files): ... these, with ...
74774         (func_append, func_tmpdir): ... these new functions, from
74775         gnulib-tool.  Analogously, install traps for cleanup.
74776
74777         * tests/test-gc.c (main): Remove unused variables.
74778         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74779
74780 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/inttostr (License): Change to LGPL.
74783
74784 2006-11-14  Eric Blake  <ebb9@byu.net>
74785
74786         * modules/tempname (License): Change to LGPL.
74787
74788 2006-11-14  Eric Blake  <ebb9@byu.net>
74789
74790         * doc/functions.texi (Function Portability): *printf functions on
74791         Cygwin now understand all POSIX size specifiers.
74792
74793 2006-11-14  Bruno Haible  <bruno@clisp.org>
74794
74795         * modules/c-ctype (License): Change to LGPL.
74796
74797 2006-11-12  Bruno Haible  <bruno@clisp.org>
74798
74799         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74800         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74801         for GNOME libraries, for which the include files are installed in
74802         subdirectories of $prefix/include.
74803
74804 2006-11-12  Bruno Haible  <bruno@clisp.org>
74805
74806         * m4/lib-link.m4: Require at least autoconf-2.54.
74807         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74808         name to underscores for the --with option.
74809
74810 2006-11-13  Bruno Haible  <bruno@clisp.org>
74811
74812         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74813         the tests directory.
74814         Reported by Ralf Wildenhues.
74815
74816 2006-11-13  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74819         (func_emit_initmacro_end): Undo the override here.
74820         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74821         Works around the famous automake error in coreutils.
74822
74823 2006-11-13  Eric Blake  <ebb9@byu.net>
74824
74825         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74826         element, not its node.
74827
74828 2006-11-12  Bruno Haible  <bruno@clisp.org>
74829
74830         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74831         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74832
74833 2006-11-12  Bruno Haible  <bruno@clisp.org>
74834
74835         * gnulib-tool: New option --local-symlink.
74836         (func_usage): Document it.
74837         (lsymbolic): New variable.
74838         (func_import, func_create_testdir): If --symlink was not specified,
74839         test whether --local-symlink was specified and the file comes from
74840         the local_gnulib_dir.
74841
74842 2006-11-12  Bruno Haible  <bruno@clisp.org>
74843
74844         * gnulib-tool (func_ln): New function.
74845         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74846
74847 2006-11-12  Bruno Haible  <bruno@clisp.org>
74848
74849         Finish support for source files in subdirectories.
74850         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74851         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74852         AUTOMAKE_OPTIONS.
74853         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74854
74855 2006-11-12  Bruno Haible  <bruno@clisp.org>
74856
74857         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74858         EXTRA_lib_SOURCES augmentation.
74859         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74860
74861 2006-11-12  Jim Meyering  <jim@meyering.net>
74862
74863         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74864         file descriptors.  This also averts a failure on systems with
74865         native openat support when a traversed directory lacks "x" access.
74866         * lib/fts_.h: Include "i-ring.h"
74867         (struct FTS) [fts_fd_ring]: New member.
74868         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74869         (FCHDIR): Add parentheses.
74870         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74871         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74872         When descending, rather than simply closing the previous
74873         fts_cwd_fd value, push that file descriptor onto the ring.
74874         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74875         (fts_open): Initialize the new fd_ring member.
74876         (fts_close): Clear the ring.
74877         (fts_safe_changedir): When possible, use our new fd_ring to skip
74878         the diropen and fstat and dev/ino comparison that would normally
74879         accompany a virtual `chdir ("..")'.
74880
74881         * modules/fts (Depends-on): Add i-ring.
74882         * modules/i-ring: New module.
74883         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74884         * m4/i-ring.m4: New file.
74885
74886 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74887
74888         * gnulib-tool (func_create_testdir): Fix replacement of
74889         `build-aux' in configure.ac.  Run autotools in gltests
74890         subdirectory.
74891         (func_create_testdir, func_create_megatestdir, test): There is
74892         no need for '--force' in most autotool invocations in a new
74893         tree.  Actually fail the whole test if any of the tools, or the
74894         configure or make stages fail.
74895
74896         Sync from Automake.
74897         * build-aux/gnupload: Revert last change.  Add pointer to upload
74898         instructions of the GNU Maintenance Instructions.
74899         Suggestion by Karl Berry.
74900
74901 2006-11-10  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74904
74905 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74906
74907         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74908         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74909         (bind_textdomain_codeset) [! ENABLE_NLS]:
74910         Evaluate all the arguments.  That way, callers get compatible behavior
74911         if the arguments have side effects.  Also, it avoids some GCC
74912         diagnostics in some cases; Joel E. Denny reported problems when Bison
74913         was configured with --enable-gcc-warnigs.
74914
74915 2006-11-10  Jim Meyering  <jim@meyering.net>
74916
74917         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74918         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74919         account.
74920
74921 2006-11-10  Jim Meyering  <jim@meyering.net>
74922
74923         * modules/inline: New file/module.
74924         * modules/xalloc (Files): Remove m4/inline.m4.
74925         (Depends-on): Add inline, instead.
74926         * modules/oset: Likewise.
74927         * modules/list: Likewise.
74928
74929 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74932         Problem reported by Matthew Woehlke.
74933
74934 2006-11-09  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/tempname.c (gen_tempname): Remove variant that invokes
74937         __gen_tempname.
74938         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74939         __gen_tempname.
74940
74941 2006-11-08  Bruno Haible  <bruno@clisp.org>
74942
74943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74944         to 'yes' instead of 'cross-compiling'.
74945
74946 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/quotearg.h (quotearg_free): New decl.
74949         * lib/quotearg.c (quotearg_free): New function.
74950         (slot0, nslots, slotvec0, slotvec):
74951         Now file-scope so that quotearg_free can get at them.
74952
74953 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74954
74955         Sync from Automake.
74956         * build-aux/gnupload: Add missing 'gnu' to example URL.
74957         Report by Karl Berry.
74958
74959 2006-11-08  Bruno Haible  <bruno@clisp.org>
74960
74961         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74962         Suggested by Paul Eggert.
74963
74964 2006-11-08  Jim Meyering  <jim@meyering.net>
74965
74966         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74967         It's already included if !_LIBC.
74968         (fts_safe_changedir): Add a comment.
74969
74970 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74973         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74974         Matthew Woehlke.
74975
74976         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74977         definitions up, to avoid colliding with change below.
74978         (static_inline) [HAVE_INLINE]: New macro.
74979         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74980         Provide extern decls when !HAVE_INLINE.  Do not define unless
74981         static_inline is defined, either by us or by xmalloc.c.  Use
74982         static_inline rather than static inline.
74983         (XCALLOC): Optimize sizeof(T) = 1 case.
74984         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74985
74986 2006-11-07  Bruno Haible  <bruno@clisp.org>
74987
74988         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74989         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74990         AC_C_INLINE.
74991         * modules/xalloc (Files): Add m4/inline.m4.
74992
74993 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74994
74995         * README: Fix typo.
74996         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74997         (Miscellanous Notes): ...from this.
74998
74999 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75002         Mention that offsetof should be used instead of sizeof.
75003         From Bruno Haible.
75004
75005 2006-11-07  Bruno Haible  <bruno@clisp.org>
75006
75007         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75008
75009 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75012         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75013         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75014         (gl_tree_add_before, gl_tree_add_after):
75015         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75016         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75017         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75018         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75019         (gl_linked_add_after, gl_linked_add_at): Likewise.
75020         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75021         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75022         (gl_tree_add_before, gl_tree_add_after): Likewise.
75023         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75024         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75025         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75026
75027 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75028
75029         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75030
75031 2006-11-06  Bruno Haible  <bruno@clisp.org>
75032
75033         * m4/inline.m4: New file.
75034         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75035         * modules/list (Files): Add m4/inline.m4.
75036         * modules/oset (Files): Likewise.
75037
75038 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * lib/idcache.c: Include <stddef.h>, for offsetof.
75041         (struct userid.name): Change from char * to a flexible array member.
75042         All uses changed.
75043         * modules/idcache (Depends-on): Add flexmember.
75044
75045         * MODULES.html.sh (Core language properties): New module flexmember.
75046         * modules/flexmember, m4/flexmember.m4: New files.
75047
75048         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75049         inline functions that are identical with the old xnmalloc_inline,
75050         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75051         that we can avoid some unnecessary integer multiplications and
75052         divisions in the common case where the element size is known at
75053         compile time.
75054         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75055         needed.
75056         (xnboundedmalloc): Remove.
75057         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75058         arguments, for consistency with rest of this header.
75059         (xcharalloc): Rewrite using XNMALLOC.
75060         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75061         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75062         versions have been moved to lib/xalloc.h and renamed to be the
75063         non-*_inline versions.
75064         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75065         and xnrealloc functions, since those functions are now inline and
75066         now call us.
75067         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75068         renaming described above.
75069         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75070         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75071         captures the dependency in AC_C_INLINE.
75072
75073         New module canonicalize-lgpl, proposed by Charles Wilson in
75074         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75075         with a few small changes afterwards.
75076         * MODULES.html.sh (File system functions): New module
75077         canonicalize-lgpl.
75078         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75079         and canonicalize_file_name.
75080         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75081         * modules/canonicalize-lgpl: New files.
75082
75083 2006-11-05  Bruno Haible  <bruno@clisp.org>
75084
75085         * gnulib-tool (func_import, func_create_testdir): Create directories
75086         also for files in subdirectories of lib/.
75087
75088 2006-11-05  Bruno Haible  <bruno@clisp.org>
75089
75090         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75091         ANSI C compliant.
75092
75093 2006-11-03  Bruno Haible  <bruno@clisp.org>
75094
75095         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75096         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75097         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75098         (xnboundedmalloc): New inline function.
75099         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75100         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75101         xmalloc.
75102         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75103         xmalloc.
75104         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75105         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75106         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75107         xmalloc.
75108         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75109         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75110         xmalloc.
75111         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75112         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75113         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75114         xmalloc.
75115         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75116         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75117         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75118         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75119         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75120         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75121         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75122
75123 2006-11-03  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/c-ctype.h [C++]: Define functions without name mangling.
75126         * lib/fwriteerror.h [C++]: Likewise.
75127         * lib/gcd.h [C++]: Likewise.
75128         * lib/linebreak.h [C++]: Likewise.
75129
75130 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75133         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75134         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75135         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75136         Check for functions and headers just once.
75137         Check for declaration of canonicalize_file_name.
75138         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75139
75140 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75141
75142         * gnulib-tool (func_import): Fix typo in actioncmd.
75143
75144 2006-11-02  Bruno Haible  <bruno@clisp.org>
75145
75146         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75147         newline sequence in the Makefile.am snippet as a space, like "make"
75148         does.
75149         Reported by Roger Persson <perrog@gmail.com>.
75150
75151 2006-11-01  Bruno Haible  <bruno@clisp.org>
75152
75153         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75154         already declared in <string.h>.
75155         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75156
75157 2006-11-01  Bruno Haible  <bruno@clisp.org>
75158
75159         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75160         * lib/strcase.h: Include <string.h>.
75161         (strcasecmp): Define to rpl_strcasecmp here.
75162
75163 2006-11-01  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75166
75167 2006-11-01  Eric Blake  <ebb9@byu.net>
75168
75169         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75170
75171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75172
75173 2006-10-29  Bruno Haible  <bruno@clisp.org>
75174
75175         Make it compile in C++ mode.
75176         * lib/full-write.c (full_rw): Add a cast.
75177
75178 2006-11-01  Bruno Haible  <bruno@clisp.org>
75179
75180         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75181         be POSIX compliant.
75182         Reported by Roger Persson <perrog@gmail.com>.
75183
75184 2006-11-01  Eric Blake  <ebb9@byu.net>
75185
75186         * lib/getopt_.h: Fix comments.
75187
75188 2006-10-31  Eric Blake  <ebb9@byu.net>
75189
75190         * modules/tmpdir (Depends-on): Add sys_stat.
75191         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75192         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75193         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75194         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75195         tempname.
75196
75197 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         Avoid some C++ diagnostics reported by Bruno Haible.
75200         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75201         xmalloc.
75202         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75203         (struct slotvec): Move to top level.
75204         (quotearg_n_options): Rewrite to avoid xmalloc.
75205         * lib/xalloc.h (xcharalloc): New function.
75206         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75207         [defined __cplusplus]: Add function template that provides result
75208         type propagation.  This part of the change is from Bruno Haible.
75209
75210 2006-10-29  Bruno Haible  <bruno@clisp.org>
75211
75212         Make it compile in C++ mode.
75213         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75214         * lib/strnlen1.c (strnlen1): Cast memchr result.
75215         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75216         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75217         (create_temp_dir): Rename local variable 'template'.
75218         (compile_csharp_using_sscli): Add cast.
75219         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75220         * lib/findprog.c (find_in_path): Likewise.
75221         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75222         * lib/wait-process.c (register_slave_subprocess): Likewise.
75223
75224 2006-10-22  Bruno Haible  <bruno@clisp.org>
75225
75226         * modules/tsearch: New file.
75227         * lib/tsearch.h: New file.
75228         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75229         * m4/tsearch.m4: New file.
75230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75231
75232 2006-10-29  Eric Blake  <ebb9@byu.net>
75233
75234         * lib/arcfour.c: Assume config.h.
75235         * lib/arctwo.c: Likewise.
75236         * lib/base64.c: Likewise.
75237         * lib/check-version.c: Likewise.
75238         * lib/crc.c: Likewise.
75239         * lib/des.c: Likewise.
75240         * lib/gc-gnulib.c: Likewise.
75241         * lib/gc-libgcrypt.c: Likewise.
75242         * lib/gc-pbkdf2-sha1.c: Likewise.
75243         * lib/getaddrinfo.c: Likewise.
75244         * lib/getdelim.c: Likewise.
75245         * lib/getline.c: Likewise.
75246         * lib/hmac-md5.c: Likewise.
75247         * lib/hmac-sha1.c: Likewise.
75248         * lib/iconvme.c: Likewise.
75249         * lib/md2.c: Likewise.
75250         * lib/md4.c: Likewise.
75251         * lib/memxor.c: Likewise.
75252         * lib/read-file.c: Likewise.
75253         * lib/readline.c: Likewise.
75254         * lib/rijndael-alg-fst.c: Likewise.
75255         * lib/rijndael-api-fst.c: Likewise.
75256         * lib/xgetdomainname.c: Likewise.
75257
75258 2006-10-28  Eric Blake  <ebb9@byu.net>
75259
75260         * lib/xstrndup.c: Assume config.h.
75261
75262 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75265         stat-macros.h is now for our own macros, whereas stat_h is for
75266         macros in the <sys/stat.h> name space.
75267         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75268         (STAT_MACROS_H): Remove.
75269         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75270         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75271         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75272         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75273         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75274         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75275         Move these macros to ...
75276         * lib/stat_.h: here.  Don't include stat-macros.h.
75277         * lib/canonicalize.c: Don't include stat-macros.h.
75278         * lib/chown.c: Likewise.
75279         * lib/euidaccess.c: Likewise.
75280         * lib/file-type.c: Likewise.
75281         * lib/filemode.c: Likewise.
75282         * lib/glob.c: Likewise.
75283         * lib/isapipe.c: Likewise.
75284         * lib/lchown.c: Likewise.
75285         * lib/lstat.c: Likewise.
75286         * lib/mkdir-p.c: Likewise.
75287         * lib/rmdir.c: Likewise.
75288         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75290         unless mkdir isn't declared, to speed up 'configure'.
75291         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75292         would define all the S_* symbols.
75293         * modules/canonicalize (Depends-on):
75294         Depend on sys_stat, not stat-macros.
75295         * modules/chown: Likewise.
75296         * modules/euidaccess: Likewise.
75297         * modules/filemode: Likewise.
75298         * modules/file-type: Likewise.
75299         * modules/glob: Likewise.
75300         * modules/isapipe: Likewise.
75301         * modules/lchown: Likewise.
75302         * modules/lstat: Likewise.
75303         * modules/mkancesdirs: Likewise.
75304         * modules/rmdir: Likewise.
75305         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75306         * modules/modechange: Likewise.
75307         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75308         (configure.ac): Remove gl_STAT_MACROS.
75309         * modules/sys_stat (Depends-on): Remove stat-macros.
75310
75311 2006-10-27  Bruno Haible  <bruno@clisp.org>
75312
75313         * m4/signed.m4: Remove file.
75314         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75315         invocation.
75316         * modules/vasnprintf (Files): Remove m4/signed.m4.
75317
75318 2006-10-27  Bruno Haible  <bruno@clisp.org>
75319
75320         Update to GNU gettext 0.16.
75321         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75322         m4/inttypes-h.m4, m4/signed.m4.
75323         * m4/gettext.m4: Update to GNU gettext 0.16.
75324         * m4/intl.m4: New file, from GNU gettext.
75325         * m4/intldir.m4: New file, from GNU gettext.
75326         * config/srclist.txt: Update
75327
75328 2006-10-27  Eric Blake  <ebb9@byu.net>
75329
75330         * MODULES.html.sh: Document tempname.
75331         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75332         dependencies.
75333         (Files): Move lib/tempname.c...
75334         * modules/tempname: ...to this new module.
75335         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75336         (gl_PREREQ_TEMPNAME): Move...
75337         * m4/tempname.m4: ...to this new file.
75338         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75339         * modules/sys_stat (Depends-on): Add stat-macros.
75340         * lib/stat_.h (includes): Pick up stat macros.
75341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75342         if stat macros are broken.
75343         * lib/tempname.c (includes): No need to include "stat-macros.h".
75344         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75345         (direxists, __path_search) [!_LIBC]: Don't compile these in
75346         gnulib; the tmpdir module covers that.
75347         * lib/tempname.h: New file.
75348
75349 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         * COPYING: Explain how gnulib-tool converts licence headers.
75352         Almost all wording by Eric Blake.
75353
75354 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         * lib/mbchar.h (is_basic_table): Make read-only.
75357         * lib/mbchar.c (is_basic_table): Likewise.
75358         Reported by John Darrington.
75359
75360 2006-10-25  Bruno Haible  <bruno@clisp.org>
75361
75362         * lib/progname.h (set_program_name): Undefine before defining.
75363
75364 2006-10-25  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75367         false for non-gcc C++ compilers.
75368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75369
75370 2006-10-24  Bruno Haible  <bruno@clisp.org>
75371
75372         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75373         iconv implementations like Irix iconv.
75374
75375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * modules/vararrays: New file.
75378         * m4/vararrays.m4: New file, taken from diffutils.
75379         * MODULES.html.sh: New module vararrays.
75380
75381 2006-10-24  Karl Berry  <karl@gnu.org>
75382
75383         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75384         Don't call GNU Unix.
75385
75386 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75387
75388         * users.txt: Add Libtool.
75389
75390         Sync from Libtool:
75391
75392         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75395         to gnulib's policy of including config.h unconditionally.
75396
75397 2006-10-24  Bruno Haible  <bruno@clisp.org>
75398
75399         * modules/wcwidth (Files): Add m4/wint_t.m4.
75400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75401         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75402
75403 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75406         to pacify GCC with some -W flags enabled.  Problem reported by
75407         Bruno Haible.
75408
75409 2006-10-24  Jim Meyering  <jim@meyering.net>
75410
75411         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75412         Reported by Karl Berry.
75413
75414 2006-10-23  Bruno Haible  <bruno@clisp.org>
75415
75416         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75417
75418 2006-10-24  Bruno Haible  <bruno@clisp.org>
75419
75420         * lib/gl_list.h: Use C comment style, not C++ comment style.
75421
75422 2006-10-23  Eric Blake  <ebb9@byu.net>
75423
75424         * lib/getaddrinfo.c (includes): Add missing include.
75425
75426 2006-10-23  Bruno Haible  <bruno@clisp.org>
75427             Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         Ability to rename obstack_free.
75430         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75431         obstack_free.
75432         (obstack_free): Invoke the __obstack_free macro.
75433         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75434
75435 2006-10-23  Bruno Haible  <bruno@clisp.org>
75436             Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75439         __argc, __argv from the declaration. (They are defined as macros on
75440         mingw.)
75441
75442 2006-10-22  Bruno Haible  <bruno@clisp.org>
75443
75444         * doc/gnulib-intro.texi: New file.
75445         * doc/gnulib.texi: Include it.
75446
75447 2006-10-21  Bruno Haible  <bruno@clisp.org>
75448
75449         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75450         "Introduction", "Miscellanous Notes", "Particular Modules".
75451
75452 2006-10-21  Bruno Haible  <bruno@clisp.org>
75453
75454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75455         Change mostlyclean-local rule to avoid sh syntax error from bash
75456         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75457
75458 2006-10-23  Jim Meyering  <jim@meyering.net>
75459
75460         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75461         in place of snprintf.
75462
75463         * modules/inttostr (Files): Add lib/uinttostr.c.
75464         * lib/uinttostr.c (inttostr): New file/function.
75465         * lib/inttostr.h (uinttostr): Declare.
75466         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75467         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75468         Add uinttostr.
75469         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75470
75471 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75472
75473         * lib/canonicalize.c (ELOOP): Define if not already defined.
75474         Problem reported by Bruno Haible in
75475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75476
75477 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75480         Problem reported by Perry Smith and Ville Laurikari.
75481
75482         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75483         uses.
75484
75485 2006-10-19  Bruno Haible  <bruno@clisp.org>
75486
75487         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75488         for mingw.
75489
75490 2006-10-19  Bruno Haible  <bruno@clisp.org>
75491
75492         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75493         Needed for mingw.
75494
75495 2006-10-19  Bruno Haible  <bruno@clisp.org>
75496
75497         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75498
75499 2006-10-19  Bruno Haible  <bruno@clisp.org>
75500
75501         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75502         it.
75503
75504 2006-10-19  Bruno Haible  <bruno@clisp.org>
75505
75506         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75507         invocation.
75508
75509 2006-10-19  Bruno Haible  <bruno@clisp.org>
75510
75511         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75512         mountlist by default.
75513
75514 2006-10-16  Bruno Haible  <bruno@clisp.org>
75515
75516         * lib/c-strstr.c: Include c-strstr.h.
75517
75518 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75519
75520         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75521         in a slash.
75522
75523 2006-10-18  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/lock.h [C++]: Wrap definitions in extern "C".
75526
75527 2006-10-18  Bruno Haible  <bruno@clisp.org>
75528
75529         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75530         gl_LIBOBJS list.
75531
75532 2006-10-18  Bruno Haible  <bruno@clisp.org>
75533
75534         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75535
75536 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * lib/xstrtol.h: Include gettext.h.
75539         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75540         Problem reported by Eric Blake.
75541         * modules/xstrtol (Depends-on): Add gettext-h.
75542
75543 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75544
75545         * lib/strftime.c (advance): New macro.
75546         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75547         incomplete type, so you can't add 0 to it.  Problem and patch
75548         reported by Eelco Dolstra for dietlibc.
75549
75550 2006-10-18  Jim Meyering  <jim@meyering.net>
75551
75552         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75553         type for a local, and rename it: s/up/user_proc/.
75554
75555 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75556
75557         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75558         READ_UTMP_USER_PROCESS.
75559         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75560
75561 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75564         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75565
75566 2006-10-17  Eric Blake  <ebb9@byu.net>
75567
75568         * lib/sigprocmask.c (sigprocmask): Fix typo.
75569
75570         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75571
75572         * modules/clean-temp (Makefile.am): Don't add to make output...
75573         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75574         config.h.
75575
75576 2006-10-17  Bruno Haible  <bruno@clisp.org>
75577
75578         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75579         differently if DEFAULT_TEXT_DOMAIN is set.
75580
75581 2006-10-16  Bruno Haible  <bruno@clisp.org>
75582
75583         * lib/clean-temp.c: Include fwriteerror.h.
75584
75585 2006-10-16  Bruno Haible  <bruno@clisp.org>
75586
75587         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75588
75589 2006-10-16  Bruno Haible  <bruno@clisp.org>
75590
75591         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75592         * lib/sigprocmask.h: Include <sys/types.h>.
75593         (sigset_t): Use the system's definition if present.
75594
75595 2006-10-17  Eric Blake  <ebb9@byu.net>
75596
75597         * lib/xvasprintf.c (includes): Assume config.h.
75598         * lib/xasprintf.c (includes): Likewise.
75599
75600 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75603         at least as wide as intmax_t.
75604
75605 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75606
75607         (Imported from Automake.)
75608         * build-aux/gnupload: Update to version 1.1 of directive file.
75609
75610 2006-10-16  Eric Blake  <ebb9@byu.net>
75611
75612         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75613         match Automake 1.10a.
75614
75615 2006-10-14  Bruno Haible  <bruno@clisp.org>
75616
75617         * modules/sigprocmask: New file.
75618         * lib/sigprocmask.h: New file.
75619         * lib/sigprocmask.c: New file.
75620         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75621         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75622         request sigprocmask.o.
75623         (gl_PREREQ_SIGPROCMASK): New macro.
75624         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75625         (Depends-on): Add sigprocmask.
75626         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75627         gt_SIGNALBLOCKING. Test for 'raise' only once.
75628         * lib/fatal-signal.c: Include sigprocmask.h.
75629         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75630         unblock_fatal_signals): Define always.
75631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75632         sigprocmask.
75633
75634 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         Sync from Automake.
75637         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75638         which incorrectly sets the mode of an existing destination
75639         directory.  In some cases the unpatched install-sh could do the
75640         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75641         system.  We hope this is rare in practice, but it's clearly worth
75642         fixing.  Problem reported by Alex Unleashed in
75643         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75644         Also, don't bother to check for -m bugs unless we're using -m;
75645         suggested by Stepan Kasal.
75646
75647 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75648
75649         Sync from Automake.
75650         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75651         `-c' flag, so they appear at the same position as in %FASTDEP%
75652         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75653         which ignores unknown options only after the first non-option.
75654         Bug report against M4 by Nelson H. F. Beebe.
75655
75656 2006-10-13  Jim Meyering  <jim@meyering.net>
75657
75658         Fix a bug in yesterday's change.
75659         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75660         p->fts_statp->st_dev would be used uninitialized.
75661         Ensures that we always call fts_stat on the very first entry.
75662         Miklos Szeredi reported that find -xdev stopped working.
75663
75664 2006-10-12  Bruno Haible  <bruno@clisp.org>
75665
75666         * gnulib-tool (func_get_automake_snippet): Append an automatically
75667         computed EXTRA_DIST augmentation.
75668         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75669         * modules/alloca-opt (Makefile.am): Likewise.
75670         * modules/allocsa (Makefile.am): Likewise.
75671         * modules/arcfour (Makefile.am): Likewise.
75672         * modules/arctwo (Makefile.am): Likewise.
75673         * modules/argmatch (Makefile.am): Likewise.
75674         * modules/argz (Makefile.am): Likewise.
75675         * modules/atexit (Makefile.am): Likewise.
75676         * modules/backupfile (Makefile.am): Likewise.
75677         * modules/byteswap (Makefile.am): Likewise.
75678         * modules/c-strtod (Makefile.am): Likewise.
75679         * modules/c-strtold (Makefile.am): Likewise.
75680         * modules/calloc (Makefile.am): Likewise.
75681         * modules/canon-host (Makefile.am): Likewise.
75682         * modules/canonicalize (Makefile.am): Likewise.
75683         * modules/chdir-long (Makefile.am): Likewise.
75684         * modules/chdir-safer (Makefile.am): Likewise.
75685         * modules/check-version (Makefile.am): Likewise.
75686         * modules/chown (Makefile.am): Likewise.
75687         * modules/cloexec (Makefile.am): Likewise.
75688         * modules/close-stream (Makefile.am): Likewise.
75689         * modules/closeout (Makefile.am): Likewise.
75690         * modules/crc (Makefile.am): Likewise.
75691         * modules/csharpexec (Makefile.am): Likewise.
75692         * modules/cycle-check (Makefile.am): Likewise.
75693         * modules/des (Makefile.am): Likewise.
75694         * modules/dev-ino (Makefile.am): Likewise.
75695         * modules/dirfd (Makefile.am): Likewise.
75696         * modules/dirname (Makefile.am): Likewise.
75697         * modules/dup2 (Makefile.am): Likewise.
75698         * modules/eealloc (Makefile.am): Likewise.
75699         * modules/error (Makefile.am): Likewise.
75700         * modules/euidaccess (Makefile.am): Likewise.
75701         * modules/exclude (Makefile.am): Likewise.
75702         * modules/exitfail (Makefile.am): Likewise.
75703         * modules/fcntl-safer (Makefile.am): Likewise.
75704         * modules/fcntl (Makefile.am): Likewise.
75705         * modules/file-type (Makefile.am): Likewise.
75706         * modules/fileblocks (Makefile.am): Likewise.
75707         * modules/filemode (Makefile.am): Likewise.
75708         * modules/filenamecat (Makefile.am): Likewise.
75709         * modules/fnmatch (Makefile.am): Likewise.
75710         * modules/fopen-safer (Makefile.am): Likewise.
75711         * modules/fpending (Makefile.am): Likewise.
75712         * modules/fprintftime (Makefile.am): Likewise.
75713         * modules/free (Makefile.am): Likewise.
75714         * modules/fsusage (Makefile.am): Likewise.
75715         * modules/ftruncate (Makefile.am): Likewise.
75716         * modules/fts (Makefile.am): Likewise.
75717         * modules/gc-arcfour (Makefile.am): Likewise.
75718         * modules/gc-des (Makefile.am): Likewise.
75719         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75720         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75721         * modules/gc-md4 (Makefile.am): Likewise.
75722         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75723         * modules/gc-sha1 (Makefile.am): Likewise.
75724         * modules/gc (Makefile.am): Likewise.
75725         * modules/getaddrinfo (Makefile.am): Likewise.
75726         * modules/getcwd (Makefile.am): Likewise.
75727         * modules/getdelim (Makefile.am): Likewise.
75728         * modules/getdomainname (Makefile.am): Likewise.
75729         * modules/getgroups (Makefile.am): Likewise.
75730         * modules/gethostname (Makefile.am): Likewise.
75731         * modules/gethrxtime (Makefile.am): Likewise.
75732         * modules/getline (Makefile.am): Likewise.
75733         * modules/getloadavg (Makefile.am): Likewise.
75734         * modules/getlogin_r (Makefile.am): Likewise.
75735         * modules/getndelim2 (Makefile.am): Likewise.
75736         * modules/getopt (Makefile.am): Likewise.
75737         * modules/getpagesize (Makefile.am): Likewise.
75738         * modules/getpass-gnu (Makefile.am): Likewise.
75739         * modules/getpass (Makefile.am): Likewise.
75740         * modules/getsubopt (Makefile.am): Likewise.
75741         * modules/gettime (Makefile.am): Likewise.
75742         * modules/gettimeofday (Makefile.am): Likewise.
75743         * modules/getugroups (Makefile.am): Likewise.
75744         * modules/getusershell (Makefile.am): Likewise.
75745         * modules/glob (Makefile.am): Likewise.
75746         * modules/group-member (Makefile.am): Likewise.
75747         * modules/hard-locale (Makefile.am): Likewise.
75748         * modules/hash (Makefile.am): Likewise.
75749         * modules/hmac-md5 (Makefile.am): Likewise.
75750         * modules/hmac-sha1 (Makefile.am): Likewise.
75751         * modules/human (Makefile.am): Likewise.
75752         * modules/idcache (Makefile.am): Likewise.
75753         * modules/imaxabs (Makefile.am): Likewise.
75754         * modules/imaxdiv (Makefile.am): Likewise.
75755         * modules/inet_ntop (Makefile.am): Likewise.
75756         * modules/inet_pton (Makefile.am): Likewise.
75757         * modules/intprops (Makefile.am): Likewise.
75758         * modules/inttostr (Makefile.am): Likewise.
75759         * modules/inttypes (Makefile.am): Likewise.
75760         * modules/isapipe (Makefile.am): Likewise.
75761         * modules/javaversion (Makefile.am): Likewise.
75762         * modules/lchmod (Makefile.am): Likewise.
75763         * modules/lchown (Makefile.am): Likewise.
75764         * modules/localcharset (Makefile.am): Likewise.
75765         * modules/long-options (Makefile.am): Likewise.
75766         * modules/lstat (Makefile.am): Likewise.
75767         * modules/malloc (Makefile.am): Likewise.
75768         * modules/mathl (Makefile.am): Likewise.
75769         * modules/mbchar (Makefile.am): Likewise.
75770         * modules/md2 (Makefile.am): Likewise.
75771         * modules/md4 (Makefile.am): Likewise.
75772         * modules/md5 (Makefile.am): Likewise.
75773         * modules/memcasecmp (Makefile.am): Likewise.
75774         * modules/memchr (Makefile.am): Likewise.
75775         * modules/memcmp (Makefile.am): Likewise.
75776         * modules/memcoll (Makefile.am): Likewise.
75777         * modules/memcpy (Makefile.am): Likewise.
75778         * modules/memmem (Makefile.am): Likewise.
75779         * modules/memmove (Makefile.am): Likewise.
75780         * modules/mempcpy (Makefile.am): Likewise.
75781         * modules/memrchr (Makefile.am): Likewise.
75782         * modules/memset (Makefile.am): Likewise.
75783         * modules/memxor (Makefile.am): Likewise.
75784         * modules/mkancesdirs (Makefile.am): Likewise.
75785         * modules/mkdir-p (Makefile.am): Likewise.
75786         * modules/mkdir (Makefile.am): Likewise.
75787         * modules/mkdtemp (Makefile.am): Likewise.
75788         * modules/mkstemp (Makefile.am): Likewise.
75789         * modules/mktime (Makefile.am): Likewise.
75790         * modules/modechange (Makefile.am): Likewise.
75791         * modules/mountlist (Makefile.am): Likewise.
75792         * modules/nanosleep (Makefile.am): Likewise.
75793         * modules/obstack (Makefile.am): Likewise.
75794         * modules/openat (Makefile.am): Likewise.
75795         * modules/pagealign_alloc (Makefile.am): Likewise.
75796         * modules/pathmax (Makefile.am): Likewise.
75797         * modules/physmem (Makefile.am): Likewise.
75798         * modules/poll (Makefile.am): Likewise.
75799         * modules/posixtm (Makefile.am): Likewise.
75800         * modules/posixver (Makefile.am): Likewise.
75801         * modules/putenv (Makefile.am): Likewise.
75802         * modules/quote (Makefile.am): Likewise.
75803         * modules/quotearg (Makefile.am): Likewise.
75804         * modules/raise (Makefile.am): Likewise.
75805         * modules/read-file (Makefile.am): Likewise.
75806         * modules/readline (Makefile.am): Likewise.
75807         * modules/readlink (Makefile.am): Likewise.
75808         * modules/readtokens (Makefile.am): Likewise.
75809         * modules/readutmp (Makefile.am): Likewise.
75810         * modules/realloc (Makefile.am): Likewise.
75811         * modules/regex (Makefile.am): Likewise.
75812         * modules/rename-dest-slash (Makefile.am): Likewise.
75813         * modules/rename (Makefile.am): Likewise.
75814         * modules/rijndael (Makefile.am): Likewise.
75815         * modules/rmdir (Makefile.am): Likewise.
75816         * modules/rpmatch (Makefile.am): Likewise.
75817         * modules/safe-read (Makefile.am): Likewise.
75818         * modules/safe-write (Makefile.am): Likewise.
75819         * modules/same-inode (Makefile.am): Likewise.
75820         * modules/same (Makefile.am): Likewise.
75821         * modules/save-cwd (Makefile.am): Likewise.
75822         * modules/savedir (Makefile.am): Likewise.
75823         * modules/setenv (Makefile.am): Likewise.
75824         * modules/settime (Makefile.am): Likewise.
75825         * modules/sha1 (Makefile.am): Likewise.
75826         * modules/sig2str (Makefile.am): Likewise.
75827         * modules/snprintf (Makefile.am): Likewise.
75828         * modules/stat-macros (Makefile.am): Likewise.
75829         * modules/stat-time (Makefile.am): Likewise.
75830         * modules/stdbool (Makefile.am): Likewise.
75831         * modules/stdint (Makefile.am): Likewise.
75832         * modules/stdlib-safer (Makefile.am): Likewise.
75833         * modules/stpcpy (Makefile.am): Likewise.
75834         * modules/stpncpy (Makefile.am): Likewise.
75835         * modules/strcase (Makefile.am): Likewise.
75836         * modules/strcasestr (Makefile.am): Likewise.
75837         * modules/strchrnul (Makefile.am): Likewise.
75838         * modules/strcspn (Makefile.am): Likewise.
75839         * modules/strdup (Makefile.am): Likewise.
75840         * modules/strerror (Makefile.am): Likewise.
75841         * modules/strftime (Makefile.am): Likewise.
75842         * modules/strndup (Makefile.am): Likewise.
75843         * modules/strnlen (Makefile.am): Likewise.
75844         * modules/strpbrk (Makefile.am): Likewise.
75845         * modules/strsep (Makefile.am): Likewise.
75846         * modules/strstr (Makefile.am): Likewise.
75847         * modules/strtod (Makefile.am): Likewise.
75848         * modules/strtoimax (Makefile.am): Likewise.
75849         * modules/strtok_r (Makefile.am): Likewise.
75850         * modules/strtol (Makefile.am): Likewise.
75851         * modules/strtoll (Makefile.am): Likewise.
75852         * modules/strtoul (Makefile.am): Likewise.
75853         * modules/strtoull (Makefile.am): Likewise.
75854         * modules/strtoumax (Makefile.am): Likewise.
75855         * modules/strverscmp (Makefile.am): Likewise.
75856         * modules/sys_socket (Makefile.am): Likewise.
75857         * modules/sys_stat (Makefile.am): Likewise.
75858         * modules/sysexits (Makefile.am): Likewise.
75859         * modules/time_r (Makefile.am): Likewise.
75860         * modules/timegm (Makefile.am): Likewise.
75861         * modules/timespec (Makefile.am): Likewise.
75862         * modules/tmpfile-safer (Makefile.am): Likewise.
75863         * modules/trim (Makefile.am): Likewise.
75864         * modules/unistd-safer (Makefile.am): Likewise.
75865         * modules/unlinkdir (Makefile.am): Likewise.
75866         * modules/unlocked-io (Makefile.am): Likewise.
75867         * modules/userspec (Makefile.am): Likewise.
75868         * modules/utime (Makefile.am): Likewise.
75869         * modules/utimecmp (Makefile.am): Likewise.
75870         * modules/utimens (Makefile.am): Likewise.
75871         * modules/vasnprintf (Makefile.am): Likewise.
75872         * modules/vasprintf (Makefile.am): Likewise.
75873         * modules/vsnprintf (Makefile.am): Likewise.
75874         * modules/xalloc (Makefile.am): Likewise.
75875         * modules/xgetcwd (Makefile.am): Likewise.
75876         * modules/xnanosleep (Makefile.am): Likewise.
75877         * modules/xreadlink (Makefile.am): Likewise.
75878         * modules/xstrtod (Makefile.am): Likewise.
75879         * modules/xstrtol (Makefile.am): Likewise.
75880         * modules/xstrtold (Makefile.am): Likewise.
75881         * modules/yesno (Makefile.am): Likewise.
75882         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75883
75884 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * modules/error (Makefile.am): Distribute files through
75887         EXTRA_DIST, not lib_SOURCES.
75888
75889 2006-10-12  Eric Blake  <ebb9@byu.net>
75890
75891         * modules/error (Makefile.am): Distribute files in /lib.
75892         * modules/obstack (Makefile.am): Likewise.
75893
75894 2006-10-12  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/acl (Makefile.am): Distribute all files in lib/ through
75897         EXTRA_DIST.
75898         * modules/arcfour (Makefile.am): Likewise.
75899         * modules/arctwo (Makefile.am): Likewise.
75900         * modules/argmatch (Makefile.am): Likewise.
75901         * modules/argz (Makefile.am): Likewise.
75902         * modules/atexit (Makefile.am): Likewise.
75903         * modules/backupfile (Makefile.am): Likewise.
75904         * modules/c-strtod (Makefile.am): Likewise.
75905         * modules/c-strtold (Makefile.am): Likewise.
75906         * modules/calloc (Makefile.am): Likewise.
75907         * modules/canon-host (Makefile.am): Likewise.
75908         * modules/canonicalize (Makefile.am): Likewise.
75909         * modules/chdir-long (Makefile.am): Likewise.
75910         * modules/chdir-safer (Makefile.am): Likewise.
75911         * modules/check-version (Makefile.am): Likewise.
75912         * modules/chown (Makefile.am): Likewise.
75913         * modules/cloexec (Makefile.am): Likewise.
75914         * modules/close-stream (Makefile.am): Likewise.
75915         * modules/closeout (Makefile.am): Likewise.
75916         * modules/crc (Makefile.am): Likewise.
75917         * modules/cycle-check (Makefile.am): Likewise.
75918         * modules/des (Makefile.am): Likewise.
75919         * modules/dirfd (Makefile.am): Likewise.
75920         * modules/dirname (Makefile.am): Likewise.
75921         * modules/dup2 (Makefile.am): Likewise.
75922         * modules/euidaccess (Makefile.am): Likewise.
75923         * modules/exclude (Makefile.am): Likewise.
75924         * modules/exitfail (Makefile.am): Likewise.
75925         * modules/fcntl-safer (Makefile.am): Likewise.
75926         * modules/file-type (Makefile.am): Likewise.
75927         * modules/fileblocks (Makefile.am): Likewise.
75928         * modules/filemode (Makefile.am): Likewise.
75929         * modules/filenamecat (Makefile.am): Likewise.
75930         * modules/fnmatch (Makefile.am): Likewise.
75931         * modules/fopen-safer (Makefile.am): Likewise.
75932         * modules/fpending (Makefile.am): Likewise.
75933         * modules/fprintftime (Makefile.am): Likewise.
75934         * modules/free (Makefile.am): Likewise.
75935         * modules/fsusage (Makefile.am): Likewise.
75936         * modules/ftruncate (Makefile.am): Likewise.
75937         * modules/fts (Makefile.am): Likewise.
75938         * modules/gc (Makefile.am): Likewise.
75939         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75940         * modules/getaddrinfo (Makefile.am): Likewise.
75941         * modules/getcwd (Makefile.am): Likewise.
75942         * modules/getdelim (Makefile.am): Likewise.
75943         * modules/getdomainname (Makefile.am): Likewise.
75944         * modules/getgroups (Makefile.am): Likewise.
75945         * modules/gethostname (Makefile.am): Likewise.
75946         * modules/gethrxtime (Makefile.am): Likewise.
75947         * modules/getline (Makefile.am): Likewise.
75948         * modules/getloadavg (Makefile.am): Likewise.
75949         * modules/getlogin_r (Makefile.am): Likewise.
75950         * modules/getopt (Makefile.am): Likewise.
75951         * modules/getpass (Makefile.am): Likewise.
75952         * modules/getpass-gnu (Makefile.am): Likewise.
75953         * modules/getsubopt (Makefile.am): Likewise.
75954         * modules/gettime (Makefile.am): Likewise.
75955         * modules/gettimeofday (Makefile.am): Likewise.
75956         * modules/getugroups (Makefile.am): Likewise.
75957         * modules/getusershell (Makefile.am): Likewise.
75958         * modules/glob (Makefile.am): Likewise.
75959         * modules/group-member (Makefile.am): Likewise.
75960         * modules/hard-locale (Makefile.am): Likewise.
75961         * modules/hash (Makefile.am): Likewise.
75962         * modules/hmac-md5 (Makefile.am): Likewise.
75963         * modules/hmac-sha1 (Makefile.am): Likewise.
75964         * modules/human (Makefile.am): Likewise.
75965         * modules/idcache (Makefile.am): Likewise.
75966         * modules/imaxabs (Makefile.am): Likewise.
75967         * modules/imaxdiv (Makefile.am): Likewise.
75968         * modules/inet_ntop (Makefile.am): Likewise.
75969         * modules/inet_pton (Makefile.am): Likewise.
75970         * modules/inttostr (Makefile.am): Likewise.
75971         * modules/isapipe (Makefile.am): Likewise.
75972         * modules/lchown (Makefile.am): Likewise.
75973         * modules/long-options (Makefile.am): Likewise.
75974         * modules/lstat (Makefile.am): Likewise.
75975         * modules/malloc (Makefile.am): Likewise.
75976         * modules/mathl (Makefile.am): Likewise.
75977         * modules/mbchar (Makefile.am): Likewise.
75978         * modules/md2 (Makefile.am): Likewise.
75979         * modules/md4 (Makefile.am): Likewise.
75980         * modules/md5 (Makefile.am): Likewise.
75981         * modules/memcasecmp (Makefile.am): Likewise.
75982         * modules/memchr (Makefile.am): Likewise.
75983         * modules/memcmp (Makefile.am): Likewise.
75984         * modules/memcoll (Makefile.am): Likewise.
75985         * modules/memcpy (Makefile.am): Likewise.
75986         * modules/memmem (Makefile.am): Likewise.
75987         * modules/memmove (Makefile.am): Likewise.
75988         * modules/mempcpy (Makefile.am): Likewise.
75989         * modules/memrchr (Makefile.am): Likewise.
75990         * modules/memset (Makefile.am): Likewise.
75991         * modules/memxor (Makefile.am): Likewise.
75992         * modules/mkancesdirs (Makefile.am): Likewise.
75993         * modules/mkdir (Makefile.am): Likewise.
75994         * modules/mkdir-p (Makefile.am): Likewise.
75995         * modules/mkdtemp (Makefile.am): Likewise.
75996         * modules/mkstemp (Makefile.am): Likewise.
75997         * modules/mktime (Makefile.am): Likewise.
75998         * modules/modechange (Makefile.am): Likewise.
75999         * modules/mountlist (Makefile.am): Likewise.
76000         * modules/nanosleep (Makefile.am): Likewise.
76001         * modules/openat (Makefile.am): Likewise.
76002         * modules/pagealign_alloc (Makefile.am): Likewise.
76003         * modules/physmem (Makefile.am): Likewise.
76004         * modules/poll (Makefile.am): Likewise.
76005         * modules/posixtm (Makefile.am): Likewise.
76006         * modules/posixver (Makefile.am): Likewise.
76007         * modules/putenv (Makefile.am): Likewise.
76008         * modules/quote (Makefile.am): Likewise.
76009         * modules/quotearg (Makefile.am): Likewise.
76010         * modules/raise (Makefile.am): Likewise.
76011         * modules/read-file (Makefile.am): Likewise.
76012         * modules/readline (Makefile.am): Likewise.
76013         * modules/readlink (Makefile.am): Likewise.
76014         * modules/readtokens (Makefile.am): Likewise.
76015         * modules/readutmp (Makefile.am): Likewise.
76016         * modules/realloc (Makefile.am): Likewise.
76017         * modules/regex (Makefile.am): Likewise.
76018         * modules/rename (Makefile.am): Likewise.
76019         * modules/rename-dest-slash (Makefile.am): Likewise.
76020         * modules/rijndael (Makefile.am): Likewise.
76021         * modules/rmdir (Makefile.am): Likewise.
76022         * modules/rpmatch (Makefile.am): Likewise.
76023         * modules/safe-read (Makefile.am): Likewise.
76024         * modules/safe-write (Makefile.am): Likewise.
76025         * modules/same (Makefile.am): Likewise.
76026         * modules/save-cwd (Makefile.am): Likewise.
76027         * modules/savedir (Makefile.am): Likewise.
76028         * modules/setenv (Makefile.am): Likewise.
76029         * modules/settime (Makefile.am): Likewise.
76030         * modules/sha1 (Makefile.am): Likewise.
76031         * modules/sig2str (Makefile.am): Likewise.
76032         * modules/snprintf (Makefile.am): Likewise.
76033         * modules/stdlib-safer (Makefile.am): Likewise.
76034         * modules/stpcpy (Makefile.am): Likewise.
76035         * modules/stpncpy (Makefile.am): Likewise.
76036         * modules/strcase (Makefile.am): Likewise.
76037         * modules/strcasestr (Makefile.am): Likewise.
76038         * modules/strchrnul (Makefile.am): Likewise.
76039         * modules/strcspn (Makefile.am): Likewise.
76040         * modules/strdup (Makefile.am): Likewise.
76041         * modules/strerror (Makefile.am): Likewise.
76042         * modules/strftime (Makefile.am): Likewise.
76043         * modules/strndup (Makefile.am): Likewise.
76044         * modules/strnlen (Makefile.am): Likewise.
76045         * modules/strpbrk (Makefile.am): Likewise.
76046         * modules/strsep (Makefile.am): Likewise.
76047         * modules/strstr (Makefile.am): Likewise.
76048         * modules/strtod (Makefile.am): Likewise.
76049         * modules/strtoimax (Makefile.am): Likewise.
76050         * modules/strtok_r (Makefile.am): Likewise.
76051         * modules/strtol (Makefile.am): Likewise.
76052         * modules/strtoll (Makefile.am): Likewise.
76053         * modules/strtoul (Makefile.am): Likewise.
76054         * modules/strtoull (Makefile.am): Likewise.
76055         * modules/strtoumax (Makefile.am): Likewise.
76056         * modules/strverscmp (Makefile.am): Likewise.
76057         * modules/time_r (Makefile.am): Likewise.
76058         * modules/timegm (Makefile.am): Likewise.
76059         * modules/tmpfile-safer (Makefile.am): Likewise.
76060         * modules/unistd-safer (Makefile.am): Likewise.
76061         * modules/unlinkdir (Makefile.am): Likewise.
76062         * modules/userspec (Makefile.am): Likewise.
76063         * modules/utime (Makefile.am): Likewise.
76064         * modules/utimecmp (Makefile.am): Likewise.
76065         * modules/utimens (Makefile.am): Likewise.
76066         * modules/vasnprintf (Makefile.am): Likewise.
76067         * modules/vasprintf (Makefile.am): Likewise.
76068         * modules/vsnprintf (Makefile.am): Likewise.
76069         * modules/xalloc (Makefile.am): Likewise.
76070         * modules/xgetcwd (Makefile.am): Likewise.
76071         * modules/xnanosleep (Makefile.am): Likewise.
76072         * modules/xreadlink (Makefile.am): Likewise.
76073         * modules/xstrtod (Makefile.am): Likewise.
76074         * modules/xstrtol (Makefile.am): Likewise.
76075         * modules/xstrtold (Makefile.am): Likewise.
76076         * modules/yesno (Makefile.am): Likewise.
76077
76078 2006-10-12  Jim Meyering  <jim@meyering.net>
76079
76080         * m4/getloadavg.m4: Revert the change below.
76081
76082         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76083         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76084         fail with a symlink, which is what coreutils' ./bootstrap now
76085         creates by default.
76086
76087 2006-10-12  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76090         mingw.
76091         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76092         MSVC and mingw explicitly.
76093
76094 2006-10-11  Simon Josefsson  <jas@extundo.com>
76095             Bruno Haible  <bruno@clisp.org>
76096
76097         Add support for multiple gnulib-tool invocations in the scope of a
76098         single configure.ac file.
76099         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76100         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76101         with the same contents as the _LIBADD variable.
76102         (func_emit_initmacro_start, func_emit_initmacro_end,
76103         func_emit_initmacro_done): New functions.
76104         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76105         gl_LIBOBJS and gl_LTLIBOBJS.
76106
76107 2006-10-11  Bruno Haible  <bruno@clisp.org>
76108
76109         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76110         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76111         autoreconf. Instead, invoke autopoint explicitly but move back the
76112         *.m4 files from gnulib.
76113
76114 2006-10-11  Bruno Haible  <bruno@clisp.org>
76115
76116         * gnulib-tool (func_usage): Make module names after --create-testdir
76117         optional.
76118         (func_create_testdir): If no module was specified, use nearly all
76119         modules.
76120
76121 2006-10-12  Jim Meyering  <jim@meyering.net>
76122
76123         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76124         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76125         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76126         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76127         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76128         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76129         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76130         (fts_set_stat_required): New function.
76131         (fts_open): Defer the calls to fts_stat, if possible or requested.
76132         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76133         into fts_stat itself.
76134         (fts_read): Perform any required (deferred) fts_stat call.
76135         (fts_build): Likewise, for the directory we're about to open and read.
76136         In the readdir loop, carefully decide whether each entry will require
76137         an eventual call to fts_stat, using dirent.d_type info if available.
76138         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76139         a command line argument into this function.  Update all callers.
76140         Map a return value of FTS_DOT to FTS_D for a command line argument.
76141         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76142         Thanks to Miklos Szeredi for his tenacity and for the initial
76143         bug report about "find" failing on a FUSE-based file system.
76144
76145         * lib/fts.c (fts_open): Use consistent indentation.
76146
76147 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76150         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76151         reported by Jim Meyering.  All uses of cache variables renamed
76152         to match Autoconf's.
76153         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76154         the other one.
76155
76156         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76157         Fix misspelling in diagnostic.
76158
76159 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76162         defined.  Problem reported by Matthew Woehlke.
76163
76164         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76165         Add support for Tandem NonStop R series.
76166         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76167         Use new macro.
76168
76169         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76170         (has_trailing_slash): Omit size arg; all callers changed.
76171         Omit 'inline', since it doesn't help performance and we'd
76172         need to configure it.
76173         Don't count //, ///, etc. as having a trailing slash.
76174         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76175         (rpl_rename_dest_slash): On failure, use rename's errno rather
76176         than (in some cases) an incorrect or junk errno.
76177         Simplify code by removing need to compute length; this does
76178         cause it to make two passes instead of one over the file name,
76179         but it's worth it.
76180
76181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76182         change, since Autoconf's version may no longer be appropriate now
76183         that we are using CVS Autoconf's version.  Add support for Tandem.
76184
76185 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76186             Bruno Haible  <bruno@clisp.org>
76187
76188         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76189         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76190         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76191         gl_AC_TYPE_LONG_LONG.
76192
76193         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76194         instead of HAVE_LONG_LONG.
76195         * lib/printf-args.c (printf_fetchargs): Likewise.
76196         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76197         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76198         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76199         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76200         gl_AC_TYPE_LONG_LONG.
76201
76202 2006-10-11  Bruno Haible  <bruno@clisp.org>
76203
76204         * m4/longlong.m4: Add comments.
76205         * m4/ulonglong.m4: Likewise.
76206
76207 2006-10-10  Bruno Haible  <bruno@clisp.org>
76208
76209         Make it possible to #define stpcpy, strdup to aliases.
76210         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76211         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76212
76213 2006-10-10  Bruno Haible  <bruno@clisp.org>
76214
76215         Make it possible to #define gcd to an alias.
76216         * lib/gcd.c: Include config.h.
76217
76218 2006-10-10  Bruno Haible  <bruno@clisp.org>
76219
76220         Make it possible to #define c_isascii to an alias.
76221         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76222         defined. Undefine the macros before defining them, to avoid gcc
76223         warnings.
76224         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76225         define NO_C_CTYPE_MACROS early.
76226
76227 2006-10-10  Bruno Haible  <bruno@clisp.org>
76228
76229         Make it possible to #define set_program_name to an alias.
76230         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76231         ENABLE_RELOCATABLE early.
76232
76233 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76236         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76237         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76238         More generally, don't assume that 64-bit signed int is available
76239         if unsigned int is, and vice versa.
76240         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76241         unsigned symbols, not on their signed counterparts.
76242         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76243         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76244         (UINT64_C, UINTMAX_C):
76245         Likewise.
76246         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76247         unsigned counterparts.
76248         (Have_long_long, Unsigned): New macros.
76249         (Int): Renamed from INT.
76250         (strtoimax): Use the new macros.
76251         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76252         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76253         * modules/inttypes (inttypes.h): Substitute
76254         HAVE_UNSIGNED_LONG_LONG_INT.
76255         * modules/stdint (stdint.h): Likewise.
76256         (Files): Add m4/ulonglong.m4.
76257
76258 2006-10-10  Bruno Haible  <bruno@clisp.org>
76259
76260         Fix a gcc -Wshadow warning.
76261         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76262         to 'bucket'.
76263         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76264         gl_linked_indexof_from_to): Likewise.
76265         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76266         Likewise.
76267         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76268         Likewise.
76269         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76270         Reported by Eric Blake.
76271
76272 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76275         for NetBSD.  Problem reported by Bruno Haible.
76276
76277 2006-10-09  Jim Meyering  <jim@meyering.net>
76278
76279         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76280         Patch from Bruno Haible.
76281
76282 2006-10-09  Jim Meyering  <jim@meyering.net>
76283
76284         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76285         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76286         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76287
76288 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         Don't include <config.h> twice; this doesn't work in some cases,
76291         e.g., when config.h has "#define intmax_t long long int" and
76292         we include <config.h>, <inttypes.h>, <config.h> in that order.
76293         Problem reported by Matthew Woehlke in:
76294         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76295         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76296         * lib/fts-cycle.c: Don't include config.h.
76297         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76298         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76299         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76300         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76301         inttypes.h.
76302         * lib/xstrtoumax.c: Likewise.
76303         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76304         __strtol and the like, so that this module is more like its siblings.
76305         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76306         Remove; no longer needed now that we assume gnulib inttypes.h.
76307
76308 2006-10-08  Bruno Haible  <bruno@clisp.org>
76309
76310         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76311         option.
76312
76313 2006-10-07  Jim Meyering  <jim@meyering.net>
76314
76315         * modules/inttypes (inttypes.h): Revert what seems to have been
76316         an inadvertent part of today's change: use "|", not "/" in the
76317         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76318
76319 2006-10-07  Bruno Haible  <bruno@clisp.org>
76320
76321         * modules/sublist: New file.
76322
76323 2006-10-07  Bruno Haible  <bruno@clisp.org>
76324
76325         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76326         * modules/argz (argz.h): Likewise.
76327         * modules/arpa_inet (arpa/inet.h): Likewise.
76328         * modules/byteswap (byteswap.h): Likewise.
76329         * modules/configmake (configmake.h): Likewise.
76330         * modules/fcntl (fcntl.h): Likewise.
76331         * modules/fnmatch (fnmatch.h): Likewise.
76332         * modules/getopt (getopt.h): Likewise.
76333         * modules/glob (glob.h): Likewise.
76334         * modules/inttypes (inttypes.h): Likewise.
76335         * modules/netinet_in (netinet/in.h): Likewise.
76336         * modules/poll (poll.h): Likewise.
76337         * modules/stdbool (stdbool.h): Likewise.
76338         * modules/stdint (stdint.h): Likewise.
76339         * modules/sys_select (sys/select.h): Likewise.
76340         * modules/sys_socket (sys/socket.h): Likewise.
76341         * modules/sys_stat (sys/stat.h): Likewise.
76342         * modules/sysexits (sysexits.h): Likewise.
76343         * modules/unistd (unistd.h): Likewise.
76344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76345         Add a "DO NOT EDIT" comment to the generated file.
76346         (func_import): Likewise for gnulib-comp.m4.
76347
76348 2006-10-07  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/gl_sublist.h: New file.
76351         * lib/gl_sublist.c: New file.
76352
76353 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76356         name (relative to the original working directory) and the file
76357         name component (relative to the temporary working directory).  All
76358         callers changed.
76359         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76360         * lib/mkdir-p.c (make_dir_parents): Likewise.
76361         * lib/mkdir-p.h (make_dir_parents): Likewise.
76362
76363 2006-10-06  Eric Blake  <ebb9@byu.net>
76364
76365         Define several macros for use by the clean-temp module.
76366         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76367         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76368         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76369
76370         * lib/clean-temp.h (close_stream_temp): New declaration.
76371         * lib/clean-temp.c (includes): Pull in headers according to what
76372         other modules are in use.
76373         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76374
76375 2006-10-06  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76378         instead of fopen, fwriteerror.
76379
76380 2006-10-06  Bruno Haible  <bruno@clisp.org>
76381
76382         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76383         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76384         int.
76385         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76386         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76387         Return an error indicator.
76388         Suggested by Eric Blake.
76389
76390 2006-10-06  Bruno Haible  <bruno@clisp.org>
76391
76392         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76393         Reported by Eric Blake.
76394
76395 2006-10-06  Bruno Haible  <bruno@clisp.org>
76396
76397         * modules/closeout (Description): Mention stderr too.
76398
76399 2006-10-06  Bruno Haible  <bruno@clisp.org>
76400         and Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         * lib/closeout.c (close_stdout): Also close stderr.
76403         * lib/closeout.h: Update comment.
76404
76405 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76408         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76409         * lib/dirchownmod.c: Include lchown.h.
76410         * lib/lchown.c: Don't include files that lchown.h now includes.
76411         Don't declare chown, since lchown.h now does that.
76412         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76413         (lchown): Define to rpl_chown if lchown is declared but
76414         does not exist.  Declare using a prototype if lchown is not
76415         declared.  Add a copyright notice.
76416         * lib/mkstemp.h: Include <unistd.h>.
76417         * lib/openat.c: Include lchown.h.
76418
76419         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76420         we now test for that separately.
76421         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76422         rather than O_NOFOLLOW, when testing whether it's possible to
76423         avoid a race condition reliably.
76424         * lib/savewd.c (savewd_chdir): Likewise.
76425
76426         Remove macros that are no longer needed now that stdint.h is
76427         reliable.
76428         * lib/fsusage.c (UINTMAX_MAX): Remove.
76429         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76430         * lib/utimecmp.c (SIZE_MAX): Remove.
76431
76432         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76433
76434         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76435         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76436         O_NOATIME works.
76437
76438 2006-10-05  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/gl_list.h (gl_sortedlist_search_from_to,
76441         gl_sortedlist_indexof_from_to): New declarations.
76442         (gl_list_implementation): New fields sortedlist_search_from_to,
76443         sortedlist_indexof_from_to.
76444         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76445         inline functions.
76446         * lib/gl_list.c (gl_sortedlist_search_from_to,
76447         gl_sortedlist_indexof_from_to): New functions.
76448         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76449         function.
76450         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76451         (gl_array_sortedlist_search_from_to): New function.
76452         (gl_array_list_implementation): Update.
76453         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76454         function.
76455         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76456         (gl_carray_sortedlist_search_from_to): New function.
76457         (gl_carray_list_implementation): Update.
76458         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76459         gl_linked_sortedlist_indexof_from_to): New functions.
76460         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76461         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76462         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76463         gl_tree_sortedlist_indexof_from_to): New functions.
76464         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76465         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76466         Update.
76467         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76468         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76469         Update.
76470
76471 2006-10-05  Bruno Haible  <bruno@clisp.org>
76472
76473         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76474         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76475         (struct gl_list_implementation): Add fields search_from_to,
76476         indexof_from_to. Remove fields search, indexof.
76477         (gl_list_search): Use the search_from_to method.
76478         (gl_list_search_from, gl_list_search_from_to): New functions.
76479         (gl_list_indexof): Use the indexof_from_to method.
76480         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76481         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76482         (gl_list_search_from, gl_list_search_from_to): New functions.
76483         (gl_list_indexof): Use the indexof_from_to method.
76484         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76485         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76486         gl_array_indexof. Add start_index, end_index arguments.
76487         (gl_array_search_from_to): Renamed from gl_array_search. Add
76488         start_index, end_index arguments.
76489         (gl_array_remove, gl_array_list_implementation): Update.
76490         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76491         gl_carray_indexof. Add start_index, end_index arguments.
76492         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76493         start_index, end_index arguments.
76494         (gl_carray_remove, gl_carray_list_implementation): Update.
76495         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76496         gl_linked_search. Add start_index, end_index arguments.
76497         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76498         start_index, end_index arguments.
76499         (gl_linked_remove): Update.
76500         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76501         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76502         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76503         field to 'size_t'.
76504         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76505         gl_tree_search. Add start_index, end_index arguments.
76506         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76507         start_index, end_index arguments.
76508         (gl_tree_remove): Update.
76509         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76510         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76511         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76512         function.
76513         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76514         gl_tree_search. Add start_index, end_index arguments.
76515         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76516         start_index, end_index arguments.
76517         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76518         Update.
76519         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76520
76521 2006-10-05  Bruno Haible  <bruno@clisp.org>
76522
76523         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76524
76525         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76526         fwriteerror_temp): New declarations.
76527         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76528         (descriptors): New variable.
76529         (cleanup): First, close the descriptors.
76530         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76531         fclose_temp, fwriteerror_temp): New functions.
76532
76533 2006-10-04  Jim Meyering  <jim@meyering.net>
76534
76535         * lib/fts.c (fts_open): Tiny comment change.
76536
76537 2006-10-04  Bruno Haible  <bruno@clisp.org>
76538
76539         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76540         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76541         gl_LOCK_BODY.
76542         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76543         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76544         gl_LOCK_EARLY_BODY.
76545         (gl_LOCK): Require gl_LOCK_BODY.
76546
76547 2006-10-04  Bruno Haible  <bruno@clisp.org>
76548
76549         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76550         (gl_oset_search_atleast): New declaration.
76551         (struct gl_oset_implementation): Add field 'search_atleast'.
76552         (gl_oset_search_atleast): New inline function.
76553         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76554         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76555         (gl_array_oset_implementation): Update.
76556         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76557         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76558         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76559
76560 2006-10-04  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76563
76564 2006-10-03  Bruno Haible  <bruno@clisp.org>
76565
76566         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76567         from gl_avltreehash_list_implementation.
76568
76569 2006-10-03  Bruno Haible  <bruno@clisp.org>
76570
76571         * lib/gl_oset.c (gl_oset_add): Fix return type.
76572
76573 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76574
76575         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76576
76577 2006-10-02  Eric Blake  <ebb9@byu.net>
76578
76579         * modules/strnlen (Depends-on): Add extensions.
76580
76581 2006-10-02  Eric Blake  <ebb9@byu.net>
76582
76583         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76584         definition in 2.60+.
76585
76586 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76587
76588         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76589         checks.
76590
76591 2006-10-02  Bruno Haible  <bruno@clisp.org>
76592
76593         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76594         to the AUTOMAKE_OPTIONS.
76595         Reported by Jim Meyering.
76596
76597 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         Work around bug in Solaris 10 /proc file system:
76600         /proc/self/fd/NNN/.. isn't the parent directory of
76601         the directory whose file descriptor is NNN.  This needs to
76602         be worked around at run time, not compile time, since a
76603         program might be built on Solaris 8, where things work, and
76604         run on Solaris 10.
76605         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76606         to use the following interface instead:
76607         (OPENAT_BUFFER_SIZE): New macro.
76608         (openat_proc_name): New function.
76609         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76610         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76611         Likewise.
76612         * lib/openat-proc.c: New file.
76613         * modules/openat (Files): Add lib/openat-proc.c.
76614         (Depends-on): Add same-inode, stdbool.
76615         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76616
76617 2006-09-29  Bruno Haible  <bruno@clisp.org>
76618
76619         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76620         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76621         argument. Set stdout_closed before testing for ferror, not after.
76622         (fwriteerror, fwriteerror_no_ebadf): New functions.
76623
76624 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76625
76626         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76627
76628 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76629
76630         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76631         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76632
76633 2006-09-28  Jim Meyering  <jim@meyering.net>
76634
76635         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76636         Include <unistd.h>.
76637
76638 2006-09-28  Bruno Haible  <bruno@clisp.org>
76639
76640         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76641         * modules/linkedhash-list (Depends-on): Likewise.
76642         * modules/rbtreehash-list (Depends-on): Likewise.
76643
76644 2006-09-28  Bruno Haible  <bruno@clisp.org>
76645
76646         * lib/strndup.h: Simplify the redefinition of strndup.
76647         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76648         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76649
76650 2006-09-28  Bruno Haible  <bruno@clisp.org>
76651
76652         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76653         * lib/gl_linkedhash_list.c: Likewise.
76654         * lib/gl_rbtreehash_list.c: Likewise.
76655
76656 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76657
76658         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76659         getaddrinfo.
76660
76661         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76662         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76663         it causes <stdio_ext.h> to cause a compile-time error.
76664         Problem reported by Nelson H. F. Beebe.
76665         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76666         of HAVE_DECL___PENDING.
76667
76668         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76669         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76670         declaration.
76671
76672 2006-09-27  Jim Meyering  <jim@meyering.net>
76673
76674         This file could end up with a definition for a function
76675         named __strndup, rather than rpl_strndup on a system with
76676         incomplete weak_alias support.
76677         * lib/strndup.c (strndup): Rename from __strndup.
76678         Remove #defines that used to map __strndup to strndup.
76679         Don't use K&R prototypes.
76680         Remove LIBC-related code, since this file is not sync'd with glibc.
76681         * lib/strndup.h: Revamp, accordingly.
76682         * m4/strndup.m4: Modernize.
76683
76684 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * modules/savewd (Depends-on): Add 'raise'.
76687         * lib/savewd.c: Include <signal.h>, for 'raise'.
76688
76689 2006-09-26  Jim Meyering  <jim@meyering.net>
76690
76691         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76692         when we detect Darwin 8.7.0's acl_get_file bug.
76693         Rearrange to perform the new (below) run-test while $LIBS
76694         contains any acl-related library.  Set USE_ACL at the end.
76695         (gl_ACL_GET_FILE): New function.
76696
76697 2006-09-26  Eric Blake  <ebb9@byu.net>
76698
76699         * lib/verror.c: Include <config.h> unconditionally.
76700
76701 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * modules/clock-time (Maintainer): Add self.
76704         * modules/getlogin_r (Depends-on): Add extensions.
76705
76706 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76707
76708         * modules/clock-time: New module.
76709         * modules/nanosleep (Depends-on): Add clock-time.
76710         * modules/gethrxtime (Depends-on): Likewise.
76711         * modules/gettime (Depends-on): Likewise.
76712         * modules/settime (Depends-on): Likewise.
76713
76714         * modules/fts-lgpl: Depend on openat.
76715         * modules/mkancesdirs: Depend on savewd.
76716         * modules/mkdir-p: Likewise.
76717
76718 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76719
76720         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76721
76722         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76723         `gl_have_arbitrary_file_name_length_limit' to
76724         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76725         actually works between configure runs.
76726
76727 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76728             Bruno Haible  <bruno@clisp.org>
76729
76730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76731
76732 2006-09-25  Jim Meyering  <jim@meyering.net>
76733
76734         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76735         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76736
76737 2006-09-25  Eric Blake  <ebb9@byu.net>
76738
76739         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76740         exec's in 2006-09-18 patch when shuffling fds.
76741
76742 2006-09-25  Bruno Haible  <bruno@clisp.org>
76743
76744         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76745         Reported by Jim Meyering.
76746
76747 2006-09-24  Jim Meyering  <jim@meyering.net>
76748
76749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76750         compare a pointer against a literal "0".  That caused failures with
76751         at least HP-UX's hpcc.
76752
76753 2006-09-22  Simon Josefsson  <jas@extundo.com>
76754
76755         * modules/gc-sha1:
76756         * modules/gc-md4:
76757         * modules/gc-hmac-sha1:
76758         * modules/gc-hmac-md5:
76759         * modules/gc-des:
76760         * modules/gc-arcfour: Distribute more files.
76761
76762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76763
76764         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76765         (gl_linked_iterator_from_to): Initialize struct completely.
76766         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76767         (gl_tree_iterator_from_to): Likewise
76768         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76769         * lib/gl_array_list.c [lint] (gl_array_iterator)
76770         (gl_array_iterator_from_to): Likewise.
76771         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76772         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76773         (gl_carray_iterator_from_to): Likewise.
76774
76775         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76776         * lib/md4.c (md4_process_block): Remove unused variable.
76777         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76778         parentheses for clarity.
76779
76780 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76781
76782         * modules/bison-i18n (Depends-on): Add gettext.
76783
76784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76785
76786         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76787         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76788         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76789         also add missing comma that caused broken test.
76790         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76791         stdlib.h, for `abort'.
76792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76793         variables.
76794         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76795         include unistd.h if present, for `rmdir'.
76796         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76797         variables.
76798         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76799         in the process include standard headers for prototypes.
76800         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76801         gets declared on GNU/Linux.
76802         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76803         unistd.h, for `rmdir'.
76804         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76805
76806         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76807         always true.
76808         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76809
76810         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76811
76812 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76813
76814         * gnulib-tool (func_version): Create output all at once.  This
76815         may help avoid triggering unnecessary SIGPIPEs, and at any
76816         rate it doesn't hurt.
76817
76818 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76819             Bruno Haible  <bruno@clisp.org>
76820
76821         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76822         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76823         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76824
76825         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76826         (gl_FUNC_VASPRINTF): Invoke it.
76827
76828 2006-09-22  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76831         getloadavg.c as first argument.
76832
76833 2006-09-22  Bruno Haible  <bruno@clisp.org>
76834
76835         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76836         at the beginning of the gl_INIT macro.
76837         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76838         gl_GETLOADAVG.
76839
76840 2006-09-22  Bruno Haible  <bruno@clisp.org>
76841
76842         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76843         module.
76844         Suggested by Ralf Wildenhues.
76845
76846 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         Import this patch from libc:
76849
76850         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76851
76852         * lib/regex_internal.c (re_string_reconstruct): Handle
76853         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76854         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76855         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76856         re_string_context_at.
76857
76858         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76859         now requires it.
76860         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76861         gl_REGEX now does it for us.
76862         (gl_REGEX): Add test taken from
76863         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76864
76865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76866         Check that large offsets work.  Modernize Autoconf usages.
76867         Prefer "yes" to mean a good thing rather than a bad.
76868         Don't put "#define mkstemp" in config.h, as this might interfere
76869         with standard system headers that "#define mkstemp mkstemp64".
76870
76871         * modules/mkstemp (Depends-on): Add extensions, so that
76872         mkstemp is visible on some platforms.
76873         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76874         (Include): Change to "mkstemp.h" from <stdlib.h>.
76875         (Files): Add mkstemp.h.
76876
76877         * lib/mkstemp.h: New file, since some standard headers
76878         #define mkstemp.
76879         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76880         Include "mkstemp.h".
76881         Make the _LIBC code resemble glibc original more,
76882         e.g., use K&R style.
76883         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76884         (mkstemp): Remove, since mkstemp.h does this for us.
76885         * lib/stdlib--.h: Include mkstemp.h.
76886
76887         Import this patch from libc:
76888
76889         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76890
76891         * lib/tempname.c (__gen_tempname): Change attempts_min
76892         into a macro.  Use preprocessor to decide how to initialize
76893         attempts [Coverity CID 67].
76894
76895 2006-09-20  Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/mkdtemp.c: Import from libc.
76898         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76899                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76900                 attempts_min into a macro.  Use preprocessor to decide how to
76901                 initialize attempts [Coverity CID 67].
76902         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76903                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76904                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76905
76906 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76907
76908         * gnulib-tool (func_exit): New function, to allow to pass the
76909         exit status portably through the trap.  Use everywhere.
76910         (--help, --version): Signal a write error.
76911         (trap): catch SIGPIPE, for write errors.
76912         Exit at the end of the trap, with the correct exit status.
76913
76914 2006-09-19  Karl Berry  <karl@gnu.org>
76915
76916         * doc/gnulib.texi: note about the license texinfo files.
76917
76918 2006-09-19  Eric Blake  <ebb9@byu.net>
76919
76920         * gnulib-tool: Avoid space-tab.
76921
76922 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76925         that prevented coreutils 6.1 from building.  Problem reported
76926         by Petter Reinholdtsen.
76927
76928 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * gnulib-tool (avoidlist): Fix typo that broke options like
76931         --avoid=lock that are used by coreutils bootstrap.
76932
76933 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76934
76935         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76936         more systematically.
76937
76938 2006-09-18  Jim Meyering  <jim@meyering.net>
76939
76940         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76941
76942 2006-09-18  Bruno Haible  <bruno@clisp.org>
76943
76944         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76945
76946 2006-09-18  Bruno Haible  <bruno@clisp.org>
76947
76948         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76949         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76950         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76951         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76952         * m4/gettext.m4: Require autoconf >= 2.52.
76953         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76954         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76955         of gl_cv_header_inttypes_h.
76956
76957 2006-09-18  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/javaversion.c: Include configmake.h.
76960
76961 2006-09-18  Bruno Haible  <bruno@clisp.org>
76962
76963         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76964         avoid that the while loops be executed in a subshell.
76965
76966 2006-09-18  Bruno Haible  <bruno@clisp.org>
76967
76968         * MODULES.html.sh (func_module): Break long lines.
76969         Suggested by Bruce Korb <bkorb@gnu.org>.
76970
76971 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76972
76973         Speed up by a factor of 1.12.
76974         * gnulib-tool (nl): New variable.
76975         (func_import): Rewrite include directive extraction to only read each
76976         directive once.
76977
76978 2006-09-17  Bruno Haible  <bruno@clisp.org>
76979
76980         * modules/javaversion (Makefile.am): Remove DEFS setting.
76981         (Depends-on): Add configmake, for PKGDATADIR definition.
76982
76983 2006-09-17  Bruno Haible  <bruno@clisp.org>
76984
76985         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76986
76987 2006-09-17  Bruno Haible  <bruno@clisp.org>
76988
76989         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76990         (func_modules_transitive_closure, func_modules_add_dummy,
76991         func_modules_to_filelist, func_import, func_create_testdir,
76992         func_create_megatestdir, ...): Use it wherever possible.
76993         Suggested by Ralf Wildenhues.
76994
76995 2006-09-16  Karl Berry  <karl@gnu.org>
76996
76997         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76998         to avoid sectioning errors.
76999         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77000         [ifinfo]: blank line after @center-ed titles.
77001         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77002         Spell FSF address consistently with others.
77003         (These changes approved by rms.)
77004
77005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77006
77007         Speed up by a factor of 1.61.
77008         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77009         already checked module names again.
77010
77011 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77012
77013         Speed up by a factor of 1.13.
77014         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77015         for new_files, and the input to func_add_or_update.
77016
77017 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77018
77019         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77020         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77021
77022 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * modules/mkancesdirs (Depends-on): Add fcntl.
77025         * modules/savewd: New file.
77026         * MODULES.html.sh (File system functions): Add savewd.
77027
77028         * modules/configmake (Makefile.am): Add support for the
77029         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77030
77031 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         * m4/savewd.m4: New file.
77034
77035 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77038         (dirchownmod): New arg FD.  All callers changed.
77039         Use FD rather than opening the directory ourself, as opening is
77040         now the caller's responsibility.
77041         * lib/dirchownmod.h: Likewise.
77042         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77043         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77044         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77045         (test_dir): Remove.
77046         (mkancesdirs): Return length of prefix of FILE that has already
77047         been made, or -2 if there is a child doing the work.  Redo
77048         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77049         ".", and treat ".." specially since it might stray back into
77050         already-created areas.  Use a subprocess if necessary.  New arg
77051         WD; all users changed.  MAKE_DIR function should now return 1
77052         if it creates a directory that is not readable.  Return -2 if
77053         a child process is spun off.
77054         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77055         Adjust signature to match code.
77056         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77057         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77058         all users changed.
77059         * lib/savewd.c, lib/savewd.h: New files.
77060
77061 2006-09-15  Jim Meyering  <jim@meyering.net>
77062
77063         * modules/rename-dest-slash: New module.
77064         * MODULES.html.sh (posix_compat): Add it here.
77065
77066         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77067
77068 2006-09-15  Jim Meyering  <jim@meyering.net>
77069
77070         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77071         file.
77072
77073         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77074
77075 2006-09-15  Jim Meyering  <jim@meyering.net>
77076
77077         * lib/rename-dest-slash.c (has_trailing_slash): Use
77078         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77079         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77080         test before testing whether SRC is a directory.
77081         Suggestions from Bruno Haible.
77082
77083         Avoid a warning about an unused variable.
77084         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77085         into the #ifdef block where it's used.
77086
77087         * lib/rename-dest-slash.c: New file.
77088
77089 2006-09-14  Bruno Haible  <bruno@clisp.org>
77090
77091         * lib/allocsa.c: Include <config.h> unconditionally.
77092         * lib/asnprintf.c: Likewise.
77093         * lib/asprintf.c: Likewise.
77094         * lib/c-strcasecmp.c: Likewise.
77095         * lib/c-strcasestr.c: Likewise.
77096         * lib/c-strncasecmp.c: Likewise.
77097         * lib/c-strstr.c: Likewise.
77098         * lib/classpath.c: Likewise.
77099         * lib/clean-temp.c: Likewise.
77100         * lib/concatpath.c: Likewise.
77101         * lib/copy-file.c: Likewise.
77102         * lib/csharpcomp.c: Likewise.
77103         * lib/csharpexec.c: Likewise.
77104         * lib/execute.c: Likewise.
77105         * lib/fatal-signal.c: Likewise.
77106         * lib/findprog.c: Likewise.
77107         * lib/fwriteerror.c: Likewise.
77108         * lib/gl_array_list.c: Likewise.
77109         * lib/gl_array_oset.c: Likewise.
77110         * lib/gl_avltree_list.c: Likewise.
77111         * lib/gl_avltree_oset.c: Likewise.
77112         * lib/gl_avltreehash_list.c: Likewise.
77113         * lib/gl_carray_list.c: Likewise.
77114         * lib/gl_linked_list.c: Likewise.
77115         * lib/gl_linkedhash_list.c: Likewise.
77116         * lib/gl_list.c: Likewise.
77117         * lib/gl_oset.c: Likewise.
77118         * lib/gl_rbtree_list.c: Likewise.
77119         * lib/gl_rbtree_oset.c: Likewise.
77120         * lib/gl_rbtreehash_list.c: Likewise.
77121         * lib/imaxabs.c: Likewise.
77122         * lib/imaxdiv.c: Likewise.
77123         * lib/javacomp.c: Likewise.
77124         * lib/javaexec.c: Likewise.
77125         * lib/javaversion.c: Likewise.
77126         * lib/linebreak.c: Likewise.
77127         * lib/localcharset.c: Likewise.
77128         * lib/lock.c: Likewise.
77129         * lib/mbchar.c: Likewise.
77130         * lib/mbswidth.c: Likewise.
77131         * lib/mkdtemp.c: Likewise.
77132         * lib/pipe.c: Likewise.
77133         * lib/printf-args.c: Likewise.
77134         * lib/printf-parse.c: Likewise.
77135         * lib/progname.c: Likewise.
77136         * lib/progreloc.c: Likewise.
77137         * lib/readlink.c: Likewise.
77138         * lib/sh-quote.c: Likewise.
77139         * lib/stpcpy.c: Likewise.
77140         * lib/stpncpy.c: Likewise.
77141         * lib/strcasecmp.c: Likewise.
77142         * lib/strcasestr.c: Likewise.
77143         * lib/strcspn.c: Likewise.
77144         * lib/striconv.c: Likewise.
77145         * lib/strncasecmp.c: Likewise.
77146         * lib/strnlen1.c: Likewise.
77147         * lib/strstr.c: Likewise.
77148         * lib/strtok_r.c: Likewise.
77149         * lib/tls.c: Likewise.
77150         * lib/tmpdir.c: Likewise.
77151         * lib/unicodeio.c: Likewise.
77152         * lib/unsetenv.c: Likewise.
77153         * lib/vasnprintf.c: Likewise.
77154         * lib/vasprintf.c: Likewise.
77155         * lib/wait-process.c: Likewise.
77156         * lib/xallocsa.c: Likewise.
77157         * lib/xsetenv.c: Likewise.
77158         * lib/xstriconv.c: Likewise.
77159
77160 2006-09-13  Simon Josefsson  <jas@extundo.com>
77161
77162         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77163         that internally, suggested by Ralf Wildenhues
77164         <Ralf.Wildenhues@gmx.de>.
77165
77166 2006-09-13  Simon Josefsson  <jas@extundo.com>
77167
77168         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77169         @LIBOBJS@.
77170         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77171
77172 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77175         longer worry about uses that don't define HAVE_CONFIG_H.
77176         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77177         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77178         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77179         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77180         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77181         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77182         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77183         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77184         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77185         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77186         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77187         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77188         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77189         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77190         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77191         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77192         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77193         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77194         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77195         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77196         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77197         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77198         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77199         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77200         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77201         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77202         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77203         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77204         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77205         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77206         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77207         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77208         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77209         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77210         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77211         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77212         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77213         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77214         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77215         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77216         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77217         Likewise.
77218
77219 2006-09-13  Eric Blake  <ebb9@byu.net>
77220
77221         * lib/getopt.c: Fix typo in last commit.
77222
77223 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77224
77225         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77226         dgettext.
77227
77228 2006-09-12  Jim Meyering  <jim@meyering.net>
77229
77230         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77231         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77232         Reported by Nelson H. F. Beebe.
77233
77234 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77235
77236         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77237         program_invocation_name and program_invocation_short_name are
77238         initialized.
77239         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77240         and program_invocation_short_name to argp.h, so they are visible
77241         to user programs.
77242         * lib/argp.h: Likewise
77243
77244 2006-09-10  Bruno Haible  <bruno@clisp.org>
77245
77246         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77247         m4/inttypes_h.m4, m4/uintmax_t.m4.
77248
77249 2006-09-10  Bruno Haible  <bruno@clisp.org>
77250
77251         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77252         gl_AC_TYPE_UINTMAX_T.
77253
77254 2006-09-10  Bruno Haible  <bruno@clisp.org>
77255
77256         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77257
77258 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77259
77260         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77261         convention.  Text proposed by Bruno Haible.
77262         (struct argp_option): Document the use of N_() wrappers.
77263
77264         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77265         '\v', and translate the two parts separately, instead of feeding
77266         the whole string to gettext.  This allows to exclude
77267         '\v' from the strings visible to the translator by writing doc
77268         strings as N_("..") "\v" N_("..").
77269
77270 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * config/srclist.txt: Undo latest change; the bug was fixed.
77273
77274 2006-09-09  Bruno Haible  <bruno@clisp.org>
77275
77276         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77277         assignments if building a library without libtool.
77278         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77279         in func_emit_lib_Makefile_am.
77280         (func_import): When building a static library libfoo.a, arrange to
77281         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77282         (func_create_testdir): Likewise.
77283         * modules/gc (configure.ac, Makefile.am): If building statically,
77284         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77285         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77286         * modules/striconv (configure.ac, Makefile.am): Likewise.
77287         Based on a suggestion by Ralf Wildenhues.
77288
77289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77292         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77293         Also:
77294
77295         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77296         Add year_2050_test to catch glibc bug 2821
77297         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77298
77299         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77300         Prefer #ifdef to #if.
77301
77302         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77303         Return from 'main' instead of calling 'exit'.
77304
77305 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77308         returned the maximum time_t value rather than (time_t) -1.
77309         Problem originally reported by William Bardwell
77310         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77311
77312         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77313         Moved to here ...
77314         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77315         ... from here.
77316
77317 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77320         2821 is fixed.
77321
77322 2006-09-08  Jim Meyering  <jim@meyering.net>
77323
77324         Don't make generated files read-only.  That would bother too many
77325         people.  However, do retain the ability to work when targets are
77326         read-only: remove the destination and temporary files before writing
77327         them (when generated via sed or echo), or by using the -f option for
77328         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
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-08  Jim Meyering  <jim@meyering.net>
77337
77338         Avoid new build failure on FreeBSD 6.0.
77339         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77340         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77341         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77342
77343 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77344
77345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77346
77347 2006-09-07  Jim Meyering  <jim@meyering.net>
77348
77349         Fix global typo in last change: use chmod u-w, not chmod u-x.
77350         Spotted by Paul Eggert and Bruce Korb.
77351         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77352         * modules/byteswap, modules/configmake, modules/fcntl:
77353         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77354         * modules/localcharset, modules/netinet_in, modules/poll:
77355         * modules/stdbool, modules/stdint, modules/sys_select:
77356         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77357
77358 2006-09-06  Jim Meyering  <jim@meyering.net>
77359
77360         Make generated files be read-only.
77361         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77362         Ensure that each generated file is now read-only.
77363         * modules/argz: Likewise.
77364         * modules/arpa_inet: Likewise.
77365         * modules/byteswap: Likewise.
77366         * modules/configmake: Likewise.
77367         * modules/fcntl: Likewise.
77368         * modules/fnmatch: Likewise.
77369         * modules/getopt: Likewise.
77370         * modules/glob: Likewise.
77371         * modules/inttypes: Likewise.
77372         * modules/netinet_in: Likewise.
77373         * modules/poll: Likewise.
77374         * modules/stdbool: Likewise.
77375         * modules/stdint: Likewise.
77376         * modules/sys_select: Likewise.
77377         * modules/sys_socket: Likewise.
77378         * modules/sys_stat: Likewise.
77379         * modules/sysexits: Likewise.
77380         * modules/localcharset: Same as above, but continue using temporary
77381         file named "t-$@" (why different?) rather than the "$@-t" used
77382         everywhere else.
77383
77384         * modules/sysexits (Makefile.am): Replace literal occurrences
77385         of "sysexit.h" more readable, and more consistent, "$@".
77386
77387 2006-09-06  Bruno Haible  <bruno@clisp.org>
77388
77389         * modules/striconv: New file.
77390         * modules/xstriconv: New file.
77391         * MODULES.html.sh (Internationalization functions): Add striconv,
77392         xstriconv.
77393
77394 2006-09-06  Bruno Haible  <bruno@clisp.org>
77395
77396         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77397         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77398         not using libtool correctly.
77399
77400 2006-09-06  Bruno Haible  <bruno@clisp.org>
77401
77402         * lib/striconv.h: New file.
77403         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77404         iconvstring.c.
77405         * lib/xstriconv.h: New file.
77406         * lib/xstriconv.c: New file.
77407
77408 2006-09-06  Bruno Haible  <bruno@clisp.org>
77409
77410         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77411         lib_..._LDFLAGS.
77412
77413 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77414
77415         * lib/argz_.h: Sync from Libtool.
77416
77417         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77418                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77419
77420         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77421
77422 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77423
77424         * modules/trim: New file.
77425
77426 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77427
77428         * lib/trim.h: New file.
77429         * lib/trim.c: New file.
77430
77431 2006-09-05  Bruno Haible  <bruno@clisp.org>
77432
77433         * MODULES.html.sh (String handling): Add trim.
77434
77435 2006-09-04  Karl Berry  <karl@gnu.org>
77436
77437         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77438         until next release.
77439
77440 2006-09-03  Bruno Haible  <bruno@clisp.org>
77441
77442         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77443         correctly.
77444
77445 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77448         not gl_GETLOADAVG.  Omit unneeded semicolons.
77449         Problems reported by Ralf Wildenhues in
77450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77451         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77452         at the end, which is the usual gnulib style.
77453
77454         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77455         of doing all the work ourselves.
77456         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77457         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77458
77459 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77462         Problem reported by Ralf Wildenhues in
77463         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77464
77465         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77466         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77467
77468 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77471         yesterday's patch by changing test -n to test -z.
77472
77473 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77476         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77477         the former is now obsolescent.
77478
77479         * modules/chdir-long (Depends-on): Add fcntl.
77480
77481 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77484         obsolescent, and programs should use gnulib instead.
77485         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77486         but with prefixes changed.
77487
77488 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77489
77490         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77491         or stdbool.h, because they might not exist while configuring.
77492
77493         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77494         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77495         does that for us.
77496         (O_DIRECTORY): Remove.
77497
77498 2006-08-31  Eric Blake  <ebb9@byu.net>
77499
77500         * gnulib-tool: Don't let emacs change spaces to TAB.
77501
77502 2006-08-31  Bruno Haible  <bruno@clisp.org>
77503
77504         * gnulib-tool: When calling func_import more than once, do it in a
77505         subshell.
77506         Reported by Eric Blake <ebb9@byu.net>.
77507
77508 2006-08-31  Bruno Haible  <bruno@clisp.org>
77509
77510         * gnulib-tool (nl): Remove variable.
77511         (sed_transform_lib_file): Use more robust test for config-h module.
77512         (func_import): Fix typo in 2006-08-25 patch.
77513
77514 2006-08-31  Bruno Haible  <bruno@clisp.org>
77515
77516         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77517         specified, augment Makefile.am variables instead of assigning them.
77518
77519 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         Work around a bug in both the Linux and SunOS 64-bit kernels:
77522         nanosleep mishandles sleeps for longer than 2**31 seconds.
77523         Problem reported by Frank v Waveren in
77524         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77526         Check for nanosleep bug.
77527         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77528
77529 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         Work around a bug in both the Linux and SunOS 64-bit kernels:
77532         nanosleep mishandles sleeps for longer than 2**31 seconds.
77533         Problem reported by Frank v Waveren in
77534         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77535         * lib/nanosleep.c (BILLION): New constant.
77536         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77537         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77538         implementation.
77539
77540 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * modules/nanosleep (Depends-on): Add gettime.
77543
77544 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77545         and Simon Josefsson  <jas@extundo.com>
77546         and Oskar Liljeblad  <oskar@osk.mine.nu>
77547
77548         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77549         * gnulib-tool (func_import): New license type 'unmodifiable license
77550         text'.
77551         * modules/fdl: Use it.  Longer description.
77552         * module/gpl, module/lgpl: New files.
77553
77554 2006-08-30  Jim Meyering  <jim@meyering.net>
77555
77556         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77557         shadowing the parameter.
77558
77559 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77560
77561         Sync from Libtool:
77562
77563         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77564
77565         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77566         sharing with gnulib.  Report by Eric Blake.
77567
77568 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * modules/isapipe: New file.
77571         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77572
77573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * modules/configmake (Makefile.am): Add a comment, and omit
77576         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77577         by Bruno Haible.
77578
77579 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         * m4/isapipe.m4: New file.
77582
77583 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * lib/isapipe.c, lib/isapipe.h: New files.
77586
77587 2006-08-29  Jim Meyering  <jim@meyering.net>
77588
77589         * modules/configmake (Makefile.am): Make configmake.h depend on
77590         Makefile.  Otherwise, a stale configmake.h could hang around.
77591
77592 2006-08-29  Eric Blake  <ebb9@byu.net>
77593
77594         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77595         resolution of upstream bug 3044.
77596
77597 2006-08-29  Bruno Haible  <bruno@clisp.org>
77598
77599         * modules/localcharset (Depends-on): Add configmake.
77600         (Makefile.am): Remove setting of LIBDIR through DEFS.
77601
77602 2006-08-29  Bruno Haible  <bruno@clisp.org>
77603
77604         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77605         defined.
77606
77607 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * modules/fcntl: New file.
77610         * modules/chdir-safer (Depends-on): Add fcntl.
77611         * modules/fts: Likewise.
77612         * modules/mkdir-p: Likewise.
77613
77614         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77615         This undoes the most recent change, since we're now addressing the
77616         problem in a different way.
77617
77618         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77619         into output, since the output might be called Makefile.am even
77620         if $makefile_name is something different.
77621         (func_import): Use $makefile_am rather than
77622         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77623         empty.
77624
77625         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77626
77627 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77628
77629         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77630         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77631         recent change to stdint.m4, since we're now addressing the problem in a
77632         different way.
77633
77634 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * m4/fcntl_h.m4: New file.
77637
77638 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * lib/fcntl_.h: New file.
77641         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77642         the fcntl module.
77643         * lib/dirchownmod.c: Likewise.
77644         * lib/fts.c: Likewise.
77645
77646         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77647         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77648         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77649         just before including <inttypes.h>, to avoid circular inclusion.
77650
77651 2006-08-28  Jim Meyering  <jim@meyering.net>
77652
77653         * doc/visibility.texi: Actually read and correct the grammar of the
77654         sentence affected by yesterday's change.
77655
77656 2006-08-28  Eric Blake  <ebb9@byu.net>
77657
77658         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77659         needs wrapper.
77660
77661 2006-08-28  Eric Blake  <ebb9@byu.net>
77662
77663         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77664
77665 2006-08-28  Eric Blake  <ebb9@byu.net>
77666
77667         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77668
77669 2006-08-28  Bruno Haible  <bruno@clisp.org>
77670
77671         * modules/c-strstr: New file, from GNU gettext.
77672         * MODULES.html.sh (String handling): Add c-strstr.
77673
77674 2006-08-28  Bruno Haible  <bruno@clisp.org>
77675
77676         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77677         macros.
77678         Reported by Eric Blake.
77679
77680 2006-08-28  Bruno Haible  <bruno@clisp.org>
77681
77682         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77683         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77684         * lib/vasprintf.c: Include errno.h, limits.h.
77685         (EOVERFLOW): New fallback definition.
77686         (vasprintf): Test here whether the string length is > INT_MAX.
77687         * lib/vsnprintf.c: Include errno.h, limits.h.
77688         (EOVERFLOW): New fallback definition.
77689         (vsnprintf): Fix bug when generated string was too long for the buffer.
77690         Test here whether the string length is > INT_MAX.
77691
77692 2006-08-28  Bruno Haible  <bruno@clisp.org>
77693
77694         * lib/inttypes_.h (SCNX*): Remove definitions.
77695         Reported by Eric Blake.
77696
77697 2006-08-28  Bruno Haible  <bruno@clisp.org>
77698
77699         * lib/c-strstr.h: New file, from GNU gettext.
77700         * lib/c-strstr.c: New file, from GNU gettext.
77701
77702 2006-08-28  Bruno Haible  <bruno@clisp.org>
77703
77704         * gnulib-tool: Reorder some statements.
77705
77706 2006-08-28  Bruno Haible  <bruno@clisp.org>
77707
77708         * gnulib-tool: New option --makefile-name.
77709         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77710         $makefile_name.
77711         (func_import): Write $makefile_name to the cache file, and read it from
77712         there unless explicitly specified. Use $makefile_name as file name
77713         instead of Makefile.am. Adjust the recommendations accordingly.
77714
77715 2006-08-28  Bruno Haible  <bruno@clisp.org>
77716
77717         * gnulib-tool (func_verify_module): Check against misapplying patch.
77718
77719 2006-08-28  Bruno Haible  <bruno@clisp.org>
77720
77721         * gnulib-tool (func_relativize, func_relconcat): New functions.
77722         Give an error if --local-dir is given with --update.
77723         Remove trailing slashes from $local_gnulib_dir.
77724         (func_import): Store the relativized $local_gnulib_dir in
77725         gnulib-cache.m4, and read it from there if not specified explicitly.
77726
77727 2006-08-28  Bruno Haible  <bruno@clisp.org>
77728
77729         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77730         is the current directory. Respect also $local_gnulib_dir.
77731
77732 2006-08-28  Bruno Haible  <bruno@clisp.org>
77733             Simon Josefsson  <jas@extundo.com>
77734
77735         BeOS portability.
77736         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77737
77738 2006-08-27  Jim Meyering  <jim@meyering.net>
77739
77740         * doc/visibility.texi: Remove duplicate word: "pointer".
77741
77742 2006-08-26  Bruno Haible  <bruno@clisp.org>
77743
77744         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77745         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77746         (Makefile.am): Create inttypes.h from inttypes_.h.
77747         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77748
77749         * modules/imaxabs: New file.
77750
77751         * modules/imaxdiv: New file.
77752
77753 2006-08-26  Bruno Haible  <bruno@clisp.org>
77754
77755         * m4/inttypes.m4: New file.
77756         * m4/_inttypes_h.m4: Remove file.
77757         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77758         PRI_MACROS_BROKEN.
77759         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77760
77761         * m4/imaxabs.m4: New file.
77762
77763         * m4/imaxdiv.m4: New file.
77764
77765 2006-08-26  Bruno Haible  <bruno@clisp.org>
77766
77767         * lib/inttypes_.h: New file.
77768         * lib/inttypes.h: Remove file.
77769         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77770
77771         * lib/imaxabs.c: New file.
77772
77773         * lib/imaxdiv.c: New file.
77774
77775 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         New config-h module, so that "make" output needn't be cluttered
77778         by -DHAVE_CONFIG_H.
77779         * MODULES.html.sh (Support for building libraries and executables):
77780         Add config-h.
77781         * modules/config-h: New file.
77782         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77783         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77784         the config-h module is used.
77785
77786         New configmake module, so that "make" output needn't be cluttered
77787         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77788         * MODULES.html.sh (Support for building libraries and executables):
77789         Add configmake.
77790         * modules/configmake: New file.
77791
77792 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * m4/config-h.m4: New file.
77795
77796 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * config/srclist.txt: Add elisp-comp.
77799
77800 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * MODULES.html.sh (Support for building libraries and executables):
77803         Add elisp-comp.
77804         * build-aux/elisp-comp: New file.
77805         * modules/elisp-comp: New file.
77806
77807 2006-08-24  Bruno Haible  <bruno@clisp.org>
77808
77809         * gnulib-tool (func_create_testdir): Use non-default values of
77810         sourcebase and m4base.
77811
77812 2006-08-24  Bruno Haible  <bruno@clisp.org>
77813
77814         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77815         HTML structure.
77816
77817 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * modules/openat (Depends-on): Add lchown.
77820
77821 2006-08-23  Bruno Haible  <bruno@clisp.org>
77822
77823         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77824         of gl_LOCK_EARLY instead of gl_LOCK.
77825
77826 2006-08-23  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77829         on OSF/1 to no.
77830         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77831
77832 2006-08-23  Bruno Haible  <bruno@clisp.org>
77833
77834         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77835         as unusable.
77836
77837         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77838         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77839         (gl_LOCK): New macro.
77840
77841 2006-08-22  Simon Josefsson  <jas@extundo.com>
77842
77843         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77844         to md5 module.
77845
77846 2006-08-22  Simon Josefsson  <jas@extundo.com>
77847
77848         * MODULES.html.sh: Add "Support for maintaining and release
77849         projects".
77850
77851         * build-aux/gnupload: New file, from coreutils.
77852
77853 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         Avoid the need for AC_LIBSOURCES in m4 macros.
77856         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77857         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77858         * modules/check-version (EXTRA_DIST): Add check-version.h.
77859         * modules/crc (EXTRA_DIST): Add crc.h.
77860         * modules/des (EXTRA_DIST): Add des.h.
77861         * modules/gc (EXTRA_DIST): Add gc.h.
77862         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77863         * modules/getline (EXTRA_DIST): Add getline.h.
77864         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77865         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77866         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77867         * modules/md2 (EXTRA_DIST): Add md2.h.
77868         * modules/md4 (EXTRA_DIST): Add md4.h.
77869         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77870         * modules/read-file (EXTRA_DIST): Add read-file.h.
77871         * modules/readline (EXTRA_DIST): Add readline.h.
77872         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77873         rijndael-api-fst.h.
77874
77875 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * m4/rijndael.m4 (gl_ARCFOUR):
77878         * m4/arctwo.m4 (gl_ARCTWO):
77879         * m4/check-version.m4 (gl_CHECK_VERSION):
77880         * m4/crc.m4 (gl_CRC):
77881         * m4/des.m4 (gl_DES):
77882         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77883         * m4/gc.m4 (gl_GC):
77884         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77885         * m4/getline.m4 (gl_FUNC_GETLINE):
77886         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77887         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77888         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77889         * m4/md2.m4 (gl_MD2):
77890         * m4/md4.m4 (gl_MD4):
77891         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77892         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77893         * m4/readline.m4 (gl_FUNC_READLINE):
77894         * m4/rijndael.m4 (gl_RIJNDAEL):
77895         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77896         to get the necessary .h files and whatnot.
77897
77898 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77899
77900         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77901         gnulib rather than the other way around.
77902         * config/srclistvars.sh (COREUTILS): Remove.
77903
77904 2006-08-22  Jim Meyering  <jim@meyering.net>
77905
77906         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77907
77908         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77909
77910 2006-08-22  Eric Blake  <ebb9@byu.net>
77911
77912         * modules/regexprops-generic: New file.
77913         * MODULES.html.sh (Support for building documentation): List it.
77914
77915 2006-08-22  Eric Blake  <ebb9@byu.net>
77916
77917         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77918         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77919         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77920         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77921
77922 2006-08-22  Bruno Haible  <bruno@clisp.org>
77923
77924         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77925         and lib_LTLIBRARIES like the other lib_* variables.
77926
77927 2006-08-22  Bruno Haible  <bruno@clisp.org>
77928
77929         * build-aux/x-to-1.in: New file, from GNU gettext.
77930
77931 2006-08-22  Bruno Haible  <bruno@clisp.org>
77932
77933         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77934         <utmpx.h> exists.
77935
77936 2006-08-22  Bruno Haible  <bruno@clisp.org>
77937
77938         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77939         <utmpx.h> exists.
77940
77941 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         BeOS portability.
77944         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77945         exist.
77946         Problem reported by Bruno Haible.
77947
77948 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         Avoid the need for AC_LIBSOURCES in m4 macros.
77951         * modules/acl (EXTRA_DIST): Add acl.h.
77952         * modules/argmatch (Files): Add m4/argmatch.m4.
77953         (configure.ac): Add gl_ARGMATCH.
77954         (EXTRA_DIST): Renamed from lib_SOURCES, for
77955         consistency with the other modules.  Remove argmatch.c.
77956         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77957         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77958         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77959         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77960         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77961         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77962         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77963         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77964         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77965         * modules/closeout (EXTRA_DIST): Add closeout.h.
77966         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77967         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77968         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77969         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77970         dirname.h; remove basename.c and stripslash.c.
77971         * modules/exclude (EXTRA_DIST): Add exclude.h.
77972         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77973         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77974         * modules/file-type (EXTRA_DIST): Add file-type.h.
77975         * modules/filemode (EXTRA_DIST): Add filemode.h.
77976         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77977         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77978         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77979         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77980         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77981         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77982         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77983         * modules/getdate (EXTRA_DIST): Add getdate.c.
77984         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77985         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77986         * modules/getpass (EXTRA_DIST): Add getpass.h.
77987         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77988         * modules/group-member (EXTRA_DIST): Add group-member.h.
77989         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77990         * modules/hash (EXTRA_DIST): Add hash.h.
77991         * modules/human (EXTRA_DIST): Add human.h.
77992         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77993         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77994         * modules/lchown (EXTRA_DIST): Add lchown.h.
77995         * modules/long-options (EXTRA_DIST): Add long-options.h.
77996         * modules/lstat (EXTRA_DIST): Add lstat.h.
77997         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77998         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77999         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78000         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78001         * modules/memxor (EXTRA_DIST): Add memxor.h.
78002         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78003         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78004         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78005         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78006         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78007         * modules/physmem (EXTRA_DIST): Add physmem.h.
78008         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78009         * modules/posixver (EXTRA_DIST): Add posixver.h.
78010         * modules/quote (EXTRA_DIST): Add quote.h.
78011         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78012         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78013         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78014         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78015         regex_internal.h regexec.c.
78016         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78017         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78018         * modules/same (EXTRA_DIST): Add same.h.
78019         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78020         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78021         * modules/savedir (EXTRA_DIST): Add savedir.h.
78022         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78023         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78024         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78025         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78026         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78027         * modules/strdup (EXTRA_DIST): Add strdup.h.
78028         * modules/strftime (EXTRA_DIST): Add strftime.h.
78029         * modules/strndup (EXTRA_DIST): Add strndup.h.
78030         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78031         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78032         * modules/time_r (EXTRA_DIST): Add time_r.h.
78033         * modules/timespec (EXTRA_DIST): Add timespec.h.
78034         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78035         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78036         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78037         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78038         * modules/userspec (EXTRA_DIST): Add userspec.h.
78039         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78040         * modules/utimens (EXTRA_DIST): Add utimens.h.
78041         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78042         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78043         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78044         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78045         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78046         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78047         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78048         * modules/yesno (EXTRA_DIST): Add yesno.h.
78049
78050 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78053
78054         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78055         * m4/dev-ino.m4, same-inode.m4: Remove.
78056
78057         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78058         * m4/acl.m4 (AC_FUNC_ACL):
78059         * m4/backupfile.m4 (gl_BACKUPFILE):
78060         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78061         * m4/canon-host.m4 (gl_CANON_HOST):
78062         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78063         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78064         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78065         * m4/cloexec.m4 (gl_CLOEXEC):
78066         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78067         * m4/closeout.m4 (gl_CLOSEOUT):
78068         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78069         * m4/dirname.m4 (gl_DIRNAME):
78070         * m4/exclude.m4 (gl_EXCLUDE):
78071         * m4/exitfail.m4 (gl_EXITFAIL):
78072         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78073         * m4/file-type.m4 (gl_FILE_TYPE):
78074         * m4/filemode.m4 (gl_FILEMODE):
78075         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78076         * m4/fpending.m4 (gl_FUNC_FPENDING):
78077         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78078         * m4/fts.m4 (gl_FUNC_FTS):
78079         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78080         * m4/getdate.m4 (gl_GETDATE):
78081         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78082         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78083         * m4/getpass.m4 (gl_FUNC_GETPASS):
78084         * m4/gettime.m4 (gl_GETTIME):
78085         * m4/getugroups.m4 (gl_GETUGROUPS):
78086         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78087         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78088         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78089         * m4/hash.m4 (gl_HASH):
78090         * m4/idcache.m4 (gl_IDCACHE):
78091         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78092         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78093         * m4/long-options.m4 (gl_LONG_OPTIONS):
78094         * m4/lstat.m4 (gl_FUNC_LSTAT):
78095         * m4/md5.m4 (gl_MD5):
78096         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78097         * m4/memcoll.m4 (gl_MEMCOLL):
78098         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78099         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78100         * m4/memxor.m4 (gl_MEMXOR):
78101         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78102         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78103         * m4/modechange.m4 (gl_MODECHANGE):
78104         * m4/mountlist.m4 (gl_MOUNTLIST):
78105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78106         * m4/openat.m4 (gl_FUNC_OPENAT):
78107         * m4/pathmax.m4 (gl_PATHMAX):
78108         * m4/physmem.m4 (gl_PHYSMEM):
78109         * m4/posixtm.m4 (gl_POSIXTM):
78110         * m4/posixver.m4 (gl_POSIXVER):
78111         * m4/quote.m4 (gl_QUOTE):
78112         * m4/quotearg.m4 (gl_QUOTEARG):
78113         * m4/readtokens.m4 (gl_READTOKENS):
78114         * m4/readutmp.m4 (gl_READUTMP):
78115         * m4/regex.m4 (gl_REGEX):
78116         * m4/safe-read.m4 (gl_SAFE_READ):
78117         * m4/safe-write.m4 (gl_SAFE_WRITE):
78118         * m4/same.m4 (gl_SAME):
78119         * m4/save-cwd.m4 (gl_SAVE_CWD):
78120         * m4/savedir.m4 (gl_SAVEDIR):
78121         * m4/settime.m4 (gl_SETTIME):
78122         * m4/sha1.m4 (gl_SHA1):
78123         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78124         * m4/stat-macros.m4 (gl_STAT_MACROS):
78125         * m4/stat-time.m4 (gl_STAT_TIME):
78126         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78127         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78128         * m4/strdup.m4 (gl_FUNC_STRDUP):
78129         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78130         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78131         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78132         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78133         * m4/time_r.m4 (gl_TIME_R):
78134         * m4/timespec.m4 (gl_TIMESPEC):
78135         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78136         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78137         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78138         * m4/userspec.m4 (gl_USERSPEC):
78139         * m4/utimecmp.m4 (gl_UTIMECMP):
78140         * m4/utimens.m4 (gl_UTIMENS):
78141         * m4/xalloc.m4 (gl_XALLOC):
78142         * m4/xgetcwd.m4 (gl_XGETCWD):
78143         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78144         * m4/xreadlink.m4 (gl_XREADLINK):
78145         * m4/xstrtod.m4 (gl_XSTRTOD):
78146         * m4/yesno.m4 (gl_YESNO):
78147         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78148         to get the necessary .h files and whatnot.
78149
78150 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78151             Bruno Haible  <bruno@clisp.org>
78152
78153         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78154         /bin/sh understanding of '!' conditional negation.
78155
78156 2006-08-21  Jim Meyering  <jim@meyering.net>
78157
78158         * modules/openat (Depends-on): Really alphabetize.
78159
78160         * modules/acl (Depends-on): Add error and quote.
78161
78162         * check-module (find_included_lib_files): Add at-func.c to the
78163         ok-to-include-more-than-once white list.
78164
78165         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78166
78167 2006-08-21  Bruno Haible  <bruno@clisp.org>
78168
78169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78170         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78171         Reported by Martin Lambers <marlam@marlam.de>.
78172
78173 2006-08-21  Bruno Haible  <bruno@clisp.org>
78174
78175         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78176         specify an installation location, don't emit a noinst_LIBRARIES or
78177         noinst_LTLIBRARIES assignment.
78178
78179 2006-08-21  Bruno Haible  <bruno@clisp.org>
78180
78181         BeOS portability.
78182         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78183         BeOS has mbrtowc() but no <wctype.h>.
78184
78185 2006-08-21  Bruno Haible  <bruno@clisp.org>
78186
78187         BeOS portability.
78188         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78189         exist.
78190
78191 2006-08-21  Bruno Haible  <bruno@clisp.org>
78192
78193         BeOS portability.
78194         * lib/mbchar.h: Include <wctype.h> only if it exists.
78195
78196 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         Remove files that are no longer needed by their respective modules.
78199         * m4/obstack.m4: Remove.
78200         * m4/strerror_r.m4: Remove.
78201         * m4/uint32_t.m4: Remove.
78202         * m4/uintptr_t.m4: Remove.
78203         * m4/ullong_max.m4: Remove.
78204         * m4/xstrtoimax.m4: Remove.
78205         * m4/xstrtoumax.m4: Remove.
78206
78207         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78208         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78209         dependencies now capture this.
78210
78211         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78212         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78213         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78214         * m4/human.m4 (gl_HUMAN): Likewise.
78215         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78216         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78217
78218         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78219
78220         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78221         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78222         stdint.
78223         * m4/human.m4 (gl_HUMAN): Likewise.
78224         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78225         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78226         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78227         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78228         * m4/xstrtol (gl_XSTRTOL): Likewise.
78229
78230         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78231         AC_TYPE_LONG_LONG_INT.
78232         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78233         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78234         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78235         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78236
78237         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78238         on stdbool.
78239
78240         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78241         (gl_PREREQ_XSTRTOUL): Remove.
78242
78243         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78244
78245         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78246         mode.
78247
78248 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         Add and change modules to make it easier for coreutils to use
78251         gnulib-tool.
78252         * modules/backupfile (Files): Remove m4/d-ino.m4.
78253         (Depends-on): Add d-ino.
78254         * modules/cycle-check (Depends-on): Add stdint.
78255         (lib_SOURCES): Add cycle-check.h.
78256         * modules/d-ino: New module.
78257         * modules/d-type: New module.
78258         * modules/error (Files): Remove m4/strerror_r.m4.
78259         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78260         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78261         m4/inttypes_h.m4, m4/uintmax_t.m4.
78262         (Depends-on): Add stdint.
78263         (lib_SOURCES): Add fsusage.h.
78264         * modules/getcwd (Files): Remove d-ino.m4.
78265         (Depends-on): Add d-ino.
78266         * modules/getndelim2 (Depends-on): Add stdint.
78267         * modules/glob (Files): Remove m4/d-type.m4.
78268         (Depends-on): Add d-type.
78269         * modules/host-os: New module.
78270         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78271         m4/inttypes_h.m4, m4/uintmax_t.m4.
78272         * Depends-on: Add stdint.
78273         (lib_SOURCES): Add human.h.
78274         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78275         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78276         m4/uintmax_t.m4, m4/ulonglong.m4.
78277         (Depends-on): Add stdint.
78278         (EXTRA_DIST): Add inttostr.h.
78279         * modules/lchmod: New module.
78280         * modules/link-follow: New module.
78281         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78282         (Depends-on): Add lchmod.
78283         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78284         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78285         (Depends-on): Add stdint.
78286         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78287         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78288         (Depends-on): Add stdint.
78289         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78290         * modules/perl: New module.
78291         * modules/regex (Depends-on): Add stdint.
78292         * modules/rmdir-errno: New module.
78293         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78294         m4/intmax_t.m4.
78295         (Depends-on): Add stdint.
78296         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78297         m4/uintmax_t.m4.
78298         (Depends-on): Add stdint.
78299         * modules/unlink-busy: New module.
78300         * modules/utimecmp (Depends-on): Add stdint.
78301         * modules/uptime: New module.
78302         * modules/winsz-ioctl: New module.
78303         * modules/winsz-termios: New module.
78304         * modules/xnanosleep (Depends-on): Add nanosleep.
78305         * modules/ullong_max: Remove.
78306         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78307         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78308         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78309         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78310         (Depends-on): Add inttypes.
78311         (lib_SOURCES): Add xstrtol.h.
78312         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78313         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78314         * MODULES.html.sh: Move 'assert' into the assert section.
78315         Move 'dummy' into the linking section.
78316         Remove ullong_max.
78317         Add section for compatibility checks for POSIX:2001 functions,
78318         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78319         winsz-ioctl, and winsz-termios into it.
78320         Add lchmod.
78321         Add top-level Misc section and put host-os, perl, and uptime
78322         into it.
78323
78324 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78327         now assume the stdint module.  Do not include inttypes.h.
78328         * lib/fsusage.h: Likewise.
78329         * lib/getndelim2.c: Likewise.
78330         * lib/human.h: Likewise.
78331         * lib/inttostr.h: Likewise.
78332         * lib/obstack.c: Likewise.
78333         * lib/regex_internal.h: Likewise.
78334         * lib/tempname.c: Likewise.
78335         * lib/utimecmp.c: Likewise.
78336         * lib/xstrtol.h: Likewise.
78337
78338         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78339
78340         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78341         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78342         * lib/xtime.h: Likewise.
78343
78344 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * modules/openat (Files): Add lib/fchmodat.c.
78347         Fixes problem reported by Jay Youngman.
78348
78349 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78350
78351         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78352         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78353
78354 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78355             Bruno Haible  <bruno@clisp.org>
78356
78357         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78358         and is a script that invokes bison. Tighten the code. Add comments.
78359
78360 2006-08-18  Jim Meyering  <jim@meyering.net>
78361
78362         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78363         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78364         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78365         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78366
78367 2006-08-18  Bruno Haible  <bruno@clisp.org>
78368
78369         * modules/bison-i18n: New file.
78370         * MODULES.html.sh (Internationalization functions): Add it.
78371
78372 2006-08-18  Bruno Haible  <bruno@clisp.org>
78373
78374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78375         sys/statvfs.h. When getmntinfo was found, check its declaration and
78376         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78377
78378 2006-08-18  Bruno Haible  <bruno@clisp.org>
78379
78380         * m4/bison-i18n.m4: New file, from bison.
78381
78382 2006-08-18  Bruno Haible  <bruno@clisp.org>
78383
78384         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78385         (ME_DUMMY): Treat "kernfs" as a dummy.
78386         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78387
78388 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         Update from coreutils.
78391
78392         2006-08-15  Jim Meyering  <jim@meyering.net>
78393
78394         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78395
78396         2006-01-17  Jim Meyering  <jim@meyering.net>
78397
78398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78399
78400         2006-01-11  Jim Meyering  <jim@meyering.net>
78401
78402         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78403         Check for the lchmod function.
78404
78405 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         Update from coreutils.
78408
78409         * lib/__fpending.h: Add copyright notice.
78410         * lib/fprintftime.h: Likewise.
78411         * lib/savedir.c: Use (C) in copyright notice.
78412         * lib/savedir.h: Likewise.
78413
78414         2006-08-15  Jim Meyering  <jim@meyering.net>
78415
78416         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78417         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78418         in support of the EXPECTED_ERRNO macro.
78419         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78420         definitions.  Instead, define the appropriate symbols and include
78421         "at-func.c".
78422         * lib/mkdirat.c (mkdirat): Likewise.
78423         * lib/fchmodat.c (fchmodat): Likewise.
78424         (ENOSYS): Remove definition.
78425         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78426         it.  Don't include "unistd--.h" -- it wasn't ever used.
78427
78428         2006-01-17  Jim Meyering  <jim@meyering.net>
78429
78430         Rewrite fts.c not to change the current working directory,
78431         by using openat, fstatat, fdopendir, etc..
78432
78433         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78434         (HAVE_OPENAT_SUPPORT): Define.
78435         [_LIBC] (fchdir): Don't undef or define; no longer used.
78436         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78437         Now, this `function' always succeeds, and consumes its file descriptor
78438         parameter -- so callers must not close such FDs.  Update callers.
78439         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78440         (diropen): Add parameter, SP.  Adjust all callers.
78441         Implement using diropen_fd, rather than open.
78442         (fts_open): Initialize new member, fts_cwd_fd.
78443         Remove fts_rft-setting code.
78444         (fts_close): Close fts_cwd_fd, if necessary.
78445         (__opendir2): Define in terms of opendir or opendirat,
78446         depending on whether the FST_NOCHDIR flag is set.
78447         (fts_build): Since fts_safe_changedir consumes its FD, and since
78448         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78449         and close the dup'd file descriptor upon failure.
78450         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78451         (fts_safe_changedir): Tweak semantics to reflect that this function
78452         now calls cwd_advance_fd and hence consumes its FD argument.
78453         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78454         [struct FTS] (fts_rft): Remove now-unused member.
78455         [struct FTS] (fts_cycle.state): Improve comment.
78456
78457         * lib/openat.c (openat_needs_fchdir): New function.
78458         * lib/openat.h (openat_needs_fchdir): Declare it.
78459
78460 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78463         Problem and fix reported by Pádraig Brady in
78464         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78465
78466 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78469
78470 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/memcoll.c (memcoll): Optimize for the common case where the
78473         arguments are bytewise equal.
78474
78475 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * doc/regexprops-generic.texi: Add a copyright notice.
78478
78479 2006-08-15  Bruno Haible  <bruno@clisp.org>
78480
78481         * modules/tmpdir (License): Change to LGPL.
78482
78483 2006-08-15  Bruno Haible  <bruno@clisp.org>
78484
78485         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78486         module.
78487
78488 2006-08-14  Simon Josefsson  <jas@extundo.com>
78489
78490         * config/srclist.txt: Add gnupload.
78491
78492 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         Change copyright notice from LGPL 2 to GPL 2, since that's the
78495         standard form used in the gnulib repository.
78496         * tests/test-lock.c: Likewise.
78497         * tests/test-stdint.c: Likewise.
78498         * tests/test-tls.c: Likewise.
78499
78500         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78501         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78502         Add copyright notice.
78503
78504         * check-module: Add copyright notice.  Output a copyright
78505         notice if "--version" is specified.
78506         * modules/COPYING: New file.
78507         * tests/test-getaddrinfo.c: Add copyright notice.
78508         * tests/test-verify.c: Likewise.
78509
78510 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         Change copyright notice from LGPL 2 to GPL 2, since that's the
78513         standard form used in the gnulib repository.
78514         * lib/lock.c: LGPL -> GPL.
78515         * lib/lock.h: Likewise.
78516         * lib/strnlen1.c: Likewise.
78517         * lib/strnlen1.h: Likewise.
78518         * lib/tls.c: Likewise.
78519         * lib/tls.h: Likewise.
78520         * lib/tmpdir.c: Likewise.
78521
78522         * lib/TODO: Remove; this belongs only in coreutils.
78523
78524 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         Add copyright notices to long-enough files that lack them, since
78527         otherwise the files aren't clearly free.  Use the same notice that
78528         getdate.texi already uses.
78529         * doc/alloca-opt.texi: Add copyright notice.
78530         * doc/alloca.texi: Likewise.
78531         * doc/ctime.texi: Likewise.
78532         * doc/functions.texi: Likewise.
78533         * doc/gcd.texi: Likewise.
78534         * doc/gnulib-tool.texi: Likewise.
78535         * doc/inet_ntoa.texi: Likewise.
78536         * doc/visibility.texi: Likewise.
78537
78538         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78539         * doc/quote.texi: Add copyright notice.
78540
78541         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78542         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78543         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78544         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78545         is now obsolete, and give a pointer to the Sun list.
78546         Add copyright notice.
78547
78548 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78549
78550         * config/srclistvars.sh: Add copyright notice.
78551
78552 2006-08-14  Eric Blake  <ebb9@byu.net>
78553
78554         Import the following change from libc:
78555
78556         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78557
78558         Upstream bug 2997.
78559         * lib/misc/error.c: Add space between program name and message if file
78560         name is missing.
78561
78562 2006-08-12  Karl Berry  <karl@gnu.org>
78563
78564         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78565         remove, these originate in gnulib now.
78566
78567 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78568
78569         * doc/Makefile (standards.info standards.html standards.dvi):
78570         Also depend on make-stds.texi.
78571
78572 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78575         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78576
78577         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78578         in wchar_t.  Problem reported by Eric Blake.
78579
78580         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78581         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78582         Also, help the compiler to keep LEN in a register.
78583
78584 2006-08-11  Eric Blake  <ebb9@byu.net>
78585
78586         * users.txt: Sort.  Add tar.
78587
78588 2006-08-11  Bruno Haible  <bruno@clisp.org>
78589
78590         * users.txt: New file.
78591
78592 2006-08-11  Bruno Haible  <bruno@clisp.org>
78593
78594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78595         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78596
78597 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         * modules/snprintf (Depends-on): Remove minmax.
78600         (Maintainer): Add self and Bruno.
78601
78602 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78605         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78606         (EOVERFLOW): Define if the system does not.
78607         Do not include "minmax.h"; it wasn't used.
78608         (snprintf): Don't assume size_t promotes to an unsigned type.
78609         Fix bug when generated string was too long for the buffer: the
78610         buffer's contents are supposed to be the initial prefix of the
78611         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78612         exceeds INT_MAX; do the check ourselves.
78613
78614         Import the following changes from libc:
78615
78616         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78617
78618         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78619         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78620         set wc to the byte which couldn't be converted.
78621         (re_string_reconstruct): Don't clear valid_raw_len before calling
78622         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78623         tip_context using re_string_context_at.
78624
78625         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78626
78627         * lib/posix/regex.h: g++ still cannot handled [restrict].
78628
78629         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78630
78631         * lib/posix/regex.h: Remove special handling for VMS.
78632
78633 2006-08-10  Jim Meyering  <jim@meyering.net>
78634
78635         * modules/same-inode: New module.
78636         * modules/dev-ino: New module.
78637         * modules/cycle-check: Depend on these modules, rather than simply
78638         including their .h files.
78639         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78640         required via m4/cycle-check.m4.
78641         * modules/same: Depend on new same-inode module, rather than
78642         including same-inode.h.
78643         * modules/chdir-safer: New file.
78644
78645         * modules/chown (Depends-on): Add stat-macros.
78646
78647 2006-08-10  Jim Meyering  <jim@meyering.net>
78648
78649         * m4/cycle-check.m4: New file.
78650         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78651         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78652
78653 2006-08-10  Eric Blake  <ebb9@byu.net>
78654
78655         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78656         in from original proposal.
78657
78658 2006-08-10  Eric Blake  <ebb9@byu.net>
78659         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78660
78661         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78662         namespace.
78663
78664 2006-08-10  Bruno Haible  <bruno@clisp.org>
78665
78666         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78667         as well.
78668
78669 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         Sync from coreutils.
78672
78673         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78674
78675         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78676         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78677
78678 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * modules/restrict: Remove; no longer needed now that we assume
78681         Autoconf 2.59 or later.
78682         * MODULES.html.sh: Remove 'restrict'.
78683         * modules/argp (Depends-on): Remove 'restrict'.
78684         * modules/base64 (Depends-on): Likewise.
78685         * modules/gc (Depends-on): Likewise.
78686         * modules/getaddrinfo (Depends-on): Likewise.
78687         * modules/glob (Depends-on): Likewise.
78688         * modules/inet_ntop (Depends-on): Likewise.
78689         * modules/inet_pton (Depends-on): Likewise.
78690         * modules/memxor (Depends-on): Likewise.
78691         * modules/regex (Depends-on): Likewise.
78692         * modules/strtok_r (Depends-on): Likewise.
78693         * modules/time_r (Depends-on): Likewise.
78694
78695 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78698         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78699         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78700         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78701         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78702         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78703         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78704         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78705
78706         Merge from coreutils.
78707         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78708         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78710         * m4/time_r.m4 (gl_TIME_R): Likewise.
78711
78712 2006-08-09  Karl Berry  <karl@gnu.org>
78713
78714         * config/srclist.txt: no more gettext-tools, per Bruno.
78715
78716 2006-08-08  Eric Blake  <ebb9@byu.net>
78717
78718         * modules/verror: New module.
78719         * MODULES.html.sh: Document it.
78720
78721 2006-08-08  Eric Blake  <ebb9@byu.net>
78722
78723         * lib/verror.h, lib/verror.c: New files.
78724
78725 2006-08-08  Eric Blake  <ebb9@byu.net>
78726
78727         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78728         verror_at_line output complies with GNU Coding Standards even when
78729         file is NULL.
78730
78731 2006-08-07  Bruno Haible  <bruno@clisp.org>
78732
78733         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78734         versions of AIX.
78735         Reported by Ralf Wildenhues.
78736
78737 2006-08-07  Bruno Haible  <bruno@clisp.org>
78738
78739         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78740         in an AC_DEFUN. Needed so that the autoconf snippets can use
78741         AC_REQUIRE.
78742
78743 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78744
78745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78746         Initialize pkgdata_DATA.
78747         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78748         overriding it.
78749
78750 2006-08-06  Eric Blake  <ebb9@byu.net>
78751
78752         * lib/error.h: Fold in some upstream changes from glibc.
78753         * lib/error.c: Likewise.
78754
78755 2006-08-04  Bruno Haible  <bruno@clisp.org>
78756
78757         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78758         Make the mostlyclean-local rule depend on mostlyclean-generic.
78759         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78760
78761 2006-07-31  Bruno Haible  <bruno@clisp.org>
78762
78763         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78764         <stdlib.h>, <string.h>.
78765
78766 2006-07-30  Bruno Haible  <bruno@clisp.org>
78767
78768         * modules/readlink (License): Change to LGPL.
78769
78770 2006-07-30  Bruno Haible  <bruno@clisp.org>
78771
78772         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78773         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78774         set PKGDATADIR to point to it.
78775
78776 2006-07-30  Bruno Haible  <bruno@clisp.org>
78777
78778         * modules/csharpexec (configure.ac): Comment out macro invocation.
78779         * modules/javaexec (configure.ac): Likewise.
78780         * modules/javacomp-script (configure.ac): Likewise.
78781
78782         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78783
78784 2006-07-30  Bruno Haible  <bruno@clisp.org>
78785
78786         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78787         linked-list.
78788
78789 2006-07-30  Bruno Haible  <bruno@clisp.org>
78790
78791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78792
78793 2006-07-30  Bruno Haible  <bruno@clisp.org>
78794
78795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78796         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78797         get removed.
78798
78799 2006-07-29  Bruno Haible  <bruno@clisp.org>
78800
78801         Make it possible for gnulib-tool to work with locally modified or
78802         augmented gnulib repositories.
78803         * gnulib-tool (func_usage): Document --local-dir option.
78804         (local_gnulib_dir): New variable.
78805         Handle --local-dir option.
78806         (func_lookup_file): New function.
78807         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78808         (func_get_description, func_get_filelist, func_get_description,
78809         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78810         func_get_automake_snippet, func_get_include_directive,
78811         func_get_license, func_get_maintainer): Use func_lookup_file.
78812         (func_import, func_create_testdir): Use func_lookup_file.
78813
78814 2006-07-29  Bruno Haible  <bruno@clisp.org>
78815
78816         * modules/setenv (Depends-on): Add unistd.
78817
78818 2006-07-29  Bruno Haible  <bruno@clisp.org>
78819
78820         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78821
78822 2006-07-29  Bruno Haible  <bruno@clisp.org>
78823
78824         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78825
78826 2006-07-29  Bruno Haible  <bruno@clisp.org>
78827
78828         * gnulib-tool (import, update): If there is no Makefile.am, look at
78829         aclocal.m4, instead of bailing out.
78830
78831 2006-07-29  Bruno Haible  <bruno@clisp.org>
78832
78833         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78834         Categorize the options by when they are useful.
78835
78836 2006-07-29  Bruno Haible  <bruno@clisp.org>
78837
78838         * gnulib-tool (func_usage): Document option --no-libtool.
78839         Handle option --no-libtool.
78840         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78841         for changed semantics of $libtool variable.
78842         (func_import): Likewise. If libtool is not used, show this through
78843         an option --no-libtool.
78844         (func_create_testdir): Update.
78845
78846 2006-07-29  Bruno Haible  <bruno@clisp.org>
78847
78848         * gnulib-tool (func_import): Extend error message about missing
78849         --doc-base.
78850
78851 2006-07-29  Bruno Haible  <bruno@clisp.org>
78852
78853         * gnulib-tool (func_import): Don't create the $docbase directory if
78854         there is no file to store there.
78855
78856 2006-07-29  Bruno Haible  <bruno@clisp.org>
78857
78858         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78859         relevant, look for configure.ac there, not in the current directory.
78860         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78861
78862 2006-07-29  Bruno Haible  <bruno@clisp.org>
78863
78864         * gnulib-tool (SORT): New variable.
78865         (func_usage): Undocument --assume-autoconf option.
78866         Remove --assume-autoconf option handling.
78867         (autoconf_minversion): Determine from the contents of configure.ac.
78868         (func_import): Remove autoconf_minversion handling.
78869         Suggested by Eric Blake.
78870
78871 2006-07-29  Bruno Haible  <bruno@clisp.org>
78872
78873         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78874
78875 2006-07-29  Bruno Haible  <bruno@clisp.org>
78876
78877         * config/srclist.txt (*setenv.[ch]): Remove rules.
78878
78879 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78880
78881         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78882
78883 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78884
78885         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78886         arpa/inet.h.
78887
78888 2006-07-28  Simon Josefsson  <jas@extundo.com>
78889
78890         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78891         * modules/inet_pton (Depends-on): Likewise.
78892
78893 2006-07-28  Simon Josefsson  <jas@extundo.com>
78894
78895         * m4/netinet_in_h.m4: New file.
78896
78897 2006-07-28  Simon Josefsson  <jas@extundo.com>
78898
78899         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78900         #include's.
78901
78902 2006-07-28  Simon Josefsson  <jas@extundo.com>
78903
78904         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78905         #include's.
78906
78907 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78910         setgid on directories only if they set these bits.
78911         * lib/modechange.h: Remove obsolete comment about masks.
78912
78913 2006-07-28  Eric Blake  <ebb9@byu.net>
78914
78915         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78916         macro expansion.
78917
78918 2006-07-28  Bruno Haible  <bruno@clisp.org>
78919
78920         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78921
78922 2006-07-28  Bruno Haible  <bruno@clisp.org>
78923
78924         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78925
78926 2006-07-28  Bruno Haible  <bruno@clisp.org>
78927
78928         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78929         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78930         Define fallbacks.
78931         Avoids link error on FreeBSD 4.x.
78932         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78933
78934         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78935         encoding.
78936         * lib/mbswidth.c (iswcntrl): Likewise.
78937
78938 2006-07-27  Bruno Haible  <bruno@clisp.org>
78939
78940         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78941         test.
78942
78943 2006-07-27  Bruno Haible  <bruno@clisp.org>
78944
78945         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78946         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78947         defined.
78948
78949 2006-07-26  Eric Blake  <ebb9@byu.net>
78950
78951         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78952
78953 2006-07-26  Eric Blake  <ebb9@byu.net>
78954
78955         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78956         like mingw that lack mkstemp.
78957         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78958         avoid compilation warning on mingw.
78959
78960 2006-07-26  Bruno Haible  <bruno@clisp.org>
78961
78962         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78963         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78964         INT_FAST*_MIN, INTPTR_MIN.
78965
78966 2006-07-25  Bruno Haible  <bruno@clisp.org>
78967
78968         * modules/version-etc (Depends-on): Add stdarg.
78969
78970 2006-07-25  Bruno Haible  <bruno@clisp.org>
78971
78972         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78973         complex commands.
78974
78975 2006-07-25  Bruno Haible  <bruno@clisp.org>
78976
78977         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78978         defined in <stdarg.h> or config.h.
78979
78980 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78983         (gl_STDIO_SAFER): Remove.
78984
78985 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * MODULES.html.sh (File stream based Input/Output):
78988         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78989         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78990         * modules/fopen-safer, modules/tmpfile-safer: New files.
78991         * modules/stdio-safer: Remove.
78992
78993 2006-07-24  Bruno Haible  <bruno@clisp.org>
78994
78995         * modules/tmpdir: New file.
78996         * MODULES.html.sh (File system functions): Add it.
78997
78998 2006-07-24  Bruno Haible  <bruno@clisp.org>
78999
79000         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79001         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79002
79003 2006-07-24  Bruno Haible  <bruno@clisp.org>
79004
79005         * modules/clean-temp: New file.
79006
79007 2006-07-24  Bruno Haible  <bruno@clisp.org>
79008
79009         * m4/tmpdir.m4: New file, from GNU gettext.
79010
79011 2006-07-24  Bruno Haible  <bruno@clisp.org>
79012
79013         * lib/tmpdir.h: New file, from GNU gettext.
79014         * lib/tmpdir.c: New file, from GNU gettext.
79015
79016 2006-07-24  Bruno Haible  <bruno@clisp.org>
79017
79018         * lib/clean-temp.h: New file, from GNU gettext.
79019         * lib/clean-temp.c: New file, from GNU gettext.
79020
79021 2006-07-23  Eric Blake  <ebb9@byu.net>
79022
79023         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79024         (Depends-on): Add binary-io.
79025
79026 2006-07-23  Eric Blake  <ebb9@byu.net>
79027
79028         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79029
79030 2006-07-23  Eric Blake  <ebb9@byu.net>
79031
79032         * lib/tmpfile-safer.c: New file.
79033         * lib/stdio-safer.h (fopen_safer): Add prototype.
79034         * lib/stdio--.h (tmpfile): Make safer.
79035
79036 2006-07-23  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79039         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79040         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79041         gl_linked_remove_at): Use it.
79042
79043 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79044         and Simon Josefsson <jas@extundo.com>
79045
79046         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79047
79048         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79049
79050 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * modules/close-stream: New file.
79053         * modules/closeout (Description): Make it clear that it exits
79054         with a diagnostic on error.
79055         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79056         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79057
79058 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         * m4/close-stream.m4: New file.
79061
79062 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         * lib/close-stream.c, lib/close-stream.h: New files.
79065
79066 2006-07-22  Bruno Haible  <bruno@clisp.org>
79067
79068         Merge from GNU gettext 0.15.
79069
79070         2006-05-01  Bruno Haible  <bruno@clisp.org>
79071
79072                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79073
79074         2006-07-22  Bruno Haible  <bruno@clisp.org>
79075
79076                 * modules/javaversion: New file.
79077                 * MODULES.html.sh (Java): Add javaversion.
79078
79079         2006-03-12  Bruno Haible  <bruno@clisp.org>
79080
79081                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79082
79083         2005-12-04  Bruno Haible  <bruno@clisp.org>
79084
79085                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79086                 (untested).
79087
79088         2006-06-21  Bruno Haible  <bruno@clisp.org>
79089
79090                 Avoid warnings from recent versions of mcs.
79091                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79092                 -o, -L, -r any more. Use options documented since mcs-1.0
79093                 instead. Similarly for -g.
79094
79095         2005-12-04  Bruno Haible  <bruno@clisp.org>
79096
79097                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79098                 .resources, not .resource.
79099
79100         2005-07-09  Bruno Haible  <bruno@clisp.org>
79101
79102                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79103                 add a .dll suffix.
79104                 Reported by Mark Junker <mjscod@gmx.de>.
79105
79106         2006-07-22  Bruno Haible  <bruno@clisp.org>
79107
79108                 * modules/gettext: Upgrade to gettext-0.15.
79109                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79110                 m4/visibility.m4.
79111                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79112
79113 2006-07-22  Bruno Haible  <bruno@clisp.org>
79114
79115         Merge from GNU gettext 0.15.
79116
79117         2006-03-25  Bruno Haible  <bruno@clisp.org>
79118
79119                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79120
79121         2006-07-21  Bruno Haible  <bruno@clisp.org>
79122
79123                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79124                 "1.1".
79125
79126         2006-05-09  Bruno Haible  <bruno@clisp.org>
79127
79128                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79129                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79130                 for the conftestver execution.
79131
79132         2006-05-01  Bruno Haible  <bruno@clisp.org>
79133
79134                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79135                 optional target-version argument. Verify that the compiler
79136                 groks source of the specified source-version, or add -source
79137                 option as necessary. Verify that the compiler produces
79138                 bytecode in the specified target-version, or add -target and
79139                 -source options as necessary. Make the result of the test
79140                 available as variable CONF_JAVAC. Also log error output in
79141                 config.log.
79142
79143         2006-03-11  Bruno Haible  <bruno@clisp.org>
79144
79145                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79146
79147         2006-05-09  Bruno Haible  <bruno@clisp.org>
79148
79149                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79150                 CLASSPATH_SEPARATOR to a semicolon.
79151
79152         2006-03-12  Bruno Haible  <bruno@clisp.org>
79153
79154                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79155                 available as variable CONF_JAVA, for subsequent autoconf
79156                 tests. Also log error output in config.log.
79157
79158         2006-07-19  Bruno Haible  <bruno@clisp.org>
79159
79160                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79161                 that getline works on glibc2 systems. Needed to avoid trouble
79162                 in relocatable.c.
79163                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79164
79165         2005-12-04  Bruno Haible  <bruno@clisp.org>
79166
79167                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79168                 launcher (untested).
79169
79170         2005-12-04  Bruno Haible  <bruno@clisp.org>
79171
79172                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79173
79174         2006-07-22  Bruno Haible  <bruno@clisp.org>
79175
79176                 * gettext.m4: Update from GNU gettext-0.15.
79177                 * nls.m4: Likewise.
79178                 * po.m4: Likewise.
79179                 * inttypes-pri.m4: Likewise.
79180                 * inttypes-h.m4: Renamed from inttypes.m4.
79181                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79182
79183 2006-07-22  Bruno Haible  <bruno@clisp.org>
79184
79185         Merge from GNU gettext 0.15.
79186
79187         2005-07-05  Bruno Haible  <bruno@clisp.org>
79188
79189                 * printf-args.c (printf_fetchargs): Work around broken
79190                 definition of wint_t on mingw.
79191
79192         2005-02-12  Bruno Haible  <bruno@clisp.org>
79193
79194                 * xallocsa.h: Add extern "C" for C++.
79195
79196         2006-05-17  Bruno Haible  <bruno@clisp.org>
79197
79198                 Cygwin portability.
79199                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79200
79201         2006-04-30  Bruno Haible  <bruno@clisp.org>
79202
79203                 * progreloc.c: Include <mach-o/dyld.h> if available.
79204                 (find_executable): Use _NSGetExecutablePath when possible.
79205
79206         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79207
79208                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79209                 function.
79210
79211         2005-12-29  Bruno Haible  <bruno@clisp.org>
79212
79213                 * progreloc.c (set_program_name_and_installdir): Fix
79214                 compilation error.
79215
79216         2005-12-04  Bruno Haible  <bruno@clisp.org>
79217
79218                 Cygwin portability.
79219                 * progreloc.c: Include <windows.h> also on Cygwin.
79220                 (find_executable): Add support for Cygwin.
79221                 (set_program_name_and_installdir): Handle also platforms with
79222                 nonempty EXEEXT.
79223
79224         2006-07-11  Bruno Haible  <bruno@clisp.org>
79225
79226                 * javacomp.c: Fix a comment.
79227                 Reported by Jim Meyering.
79228
79229         2006-04-30  Bruno Haible  <bruno@clisp.org>
79230
79231                 * javacomp.h (compile_java_class): Add source_version,
79232                 target_version arguments.
79233                 * javacomp.c: Rewritten to choose only a compiler that
79234                 respects the specified source_version and target_version.
79235
79236         2006-06-27  Bruno Haible  <bruno@clisp.org>
79237
79238                 Assume correct S_ISDIR macro.
79239                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79240
79241         2006-07-22  Bruno Haible  <bruno@clisp.org>
79242
79243                 * javaversion.h: New file, from GNU gettext.
79244                 * javaversion.c: New file, from GNU gettext.
79245                 * javaversion.java: New file, from GNU gettext.
79246                 * javaversion.class: New file, from GNU gettext.
79247
79248         2006-05-17  Bruno Haible  <bruno@clisp.org>
79249
79250                 Cygwin portability.
79251                 * javaexec.c (execute_java_class): Test for jview program
79252                 also on Cygwin.
79253
79254         2006-04-09  Bruno Haible  <bruno@clisp.org>
79255
79256                 * fatal-signal.c: Don't include string.h.
79257                 (at_fatal_signal): Use a copying loop instead of memcpy.
79258
79259         2005-12-04  Bruno Haible  <bruno@clisp.org>
79260
79261                 * csharpexec.c: Add support for 'clix' launcher (untested).
79262                 (execute_csharp_using_sscli): New function.
79263                 (execute_csharp_program): Call it.
79264
79265         2006-06-21  Bruno Haible  <bruno@clisp.org>
79266
79267                 Avoid warnings from recent versions of mcs.
79268                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79269                 -o, -L, -r any more. Use options documented since mcs-1.0
79270                 instead. Similarly for -g.
79271
79272         2005-07-09  Bruno Haible  <bruno@clisp.org>
79273
79274                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79275                 add a .dll suffix.
79276                 Reported by Mark Junker <mjscod@gmx.de>.
79277
79278         2006-06-17  Bruno Haible  <bruno@clisp.org>
79279
79280                 * config.charset: Update for NetBSD 3.0.
79281
79282         2006-05-17  Bruno Haible  <bruno@clisp.org>
79283
79284                 Cygwin portability.
79285                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79286
79287         2006-05-16  Bruno Haible  <bruno@clisp.org>
79288
79289                 * localcharset.c [CYGWIN]: Include <windows.h>.
79290                 (get_charset_aliases): For Cygwin, return the same CPxxx
79291                 aliases list as under WIN32.
79292                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79293                 the environment variables. Fall back to GetACP().
79294
79295         2006-04-05  Bruno Haible  <bruno@clisp.org>
79296
79297                 * config.charset: Update Juan Manuel Guerrero's address.
79298
79299         2005-02-12  Bruno Haible  <bruno@clisp.org>
79300
79301                 * allocsa.h: Add extern "C" for C++.
79302
79303         2005-02-10  Bruno Haible  <bruno@clisp.org>
79304
79305                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79306                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79307
79308         2006-07-22  Bruno Haible  <bruno@clisp.org>
79309
79310                 * gettext.h: Update to GNU gettext-0.15.
79311
79312 2006-07-22  Bruno Haible  <bruno@clisp.org>
79313
79314         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79315         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79316         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79317
79318 2006-07-21  Eric Blake  <ebb9@byu.net>
79319
79320         * modules/stdlib-safer: New file.
79321         * MODULES.html.sh (File stream based Input/Output): Add
79322         stdlib-safer.
79323
79324 2006-07-21  Eric Blake  <ebb9@byu.net>
79325
79326         * lib/stdlib-safer.h: New file from coreutils, required by
79327         stdlib--.h.
79328
79329 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79332
79333 2006-07-20  Bruno Haible  <bruno@clisp.org>
79334
79335         * gnulib-tool: Recognize new option --assume-autoconf.
79336         (autoconf_minversion): New variable.
79337         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79338
79339 2006-07-20  Bruno Haible  <bruno@clisp.org>
79340
79341         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79342
79343 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79344
79345         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79346         Reindent and repaginate.
79347
79348 2006-07-19  Derek Price  <derek@ximbiot.com>
79349
79350         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79351         Correct grammar.
79352
79353 2006-07-17  Bruno Haible  <bruno@clisp.org>
79354
79355         * modules/list: New file.
79356         * modules/array-list: New file.
79357         * modules/carray-list, modules/carray-list-tests: New files.
79358         * modules/linked-list, modules/linked-list-tests: New files.
79359         * modules/avltree-list, modules/avltree-list-tests: New files.
79360         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79361         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79362         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79363         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79364         * modules/oset: New file.
79365         * modules/array-oset: New file.
79366         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79367         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79368         * tests/test-carray_list.c: New file.
79369         * tests/test-linked_list.c: New file.
79370         * tests/test-avltree_list.c: New file.
79371         * tests/test-rbtree_list.c: New file.
79372         * tests/test-linkedhash_list.c: New file.
79373         * tests/test-avltreehash_list.c: New file.
79374         * tests/test-rbtreehash_list.c: New file.
79375         * tests/test-avltree_oset.c: New file.
79376         * tests/test-rbtree_oset.c: New file.
79377         * MODULES.html.sh (Container data structures): New section.
79378
79379 2006-07-17  Bruno Haible  <bruno@clisp.org>
79380
79381         * m4/gl_list.m4: New file.
79382
79383 2006-07-17  Bruno Haible  <bruno@clisp.org>
79384
79385         * lib/gl_list.h: New file.
79386         * lib/gl_list.c: New file.
79387         * lib/gl_array_list.h: New file.
79388         * lib/gl_array_list.c: New file.
79389         * lib/gl_carray_list.h: New file.
79390         * lib/gl_carray_list.c: New file.
79391         * lib/gl_linked_list.h: New file.
79392         * lib/gl_linked_list.c: New file.
79393         * lib/gl_anylinked_list1.h: New file.
79394         * lib/gl_anylinked_list2.h: New file.
79395         * lib/gl_avltree_list.h: New file.
79396         * lib/gl_avltree_list.c: New file.
79397         * lib/gl_anyavltree_list1.h: New file.
79398         * lib/gl_anyavltree_list2.h: New file.
79399         * lib/gl_rbtree_list.h: New file.
79400         * lib/gl_rbtree_list.c: New file.
79401         * lib/gl_anyrbtree_list1.h: New file.
79402         * lib/gl_anyrbtree_list2.h: New file.
79403         * lib/gl_anytree_list1.h: New file.
79404         * lib/gl_anytree_list2.h: New file.
79405         * lib/gl_linkedhash_list.h: New file.
79406         * lib/gl_linkedhash_list.c: New file.
79407         * lib/gl_anyhash_list1.h: New file.
79408         * lib/gl_anyhash_list2.h: New file.
79409         * lib/gl_avltreehash_list.h: New file.
79410         * lib/gl_avltreehash_list.c: New file.
79411         * lib/gl_rbtreehash_list.h: New file.
79412         * lib/gl_rbtreehash_list.c: New file.
79413         * lib/gl_anytreehash_list1.h: New file.
79414         * lib/gl_anytreehash_list2.h: New file.
79415
79416         * lib/gl_oset.h: New file.
79417         * lib/gl_oset.c: New file.
79418         * lib/gl_array_oset.h: New file.
79419         * lib/gl_array_oset.c: New file.
79420         * lib/gl_avltree_oset.h: New file.
79421         * lib/gl_avltree_oset.c: New file.
79422         * lib/gl_rbtree_oset.h: New file.
79423         * lib/gl_rbtree_oset.c: New file.
79424         * lib/gl_anytree_oset.h: New file.
79425
79426 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * m4/mkancesdirs.m4: New file.
79429         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79430         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79431         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79432         it.
79433
79434 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79435
79436         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79437         * lib/mkancesdirs.h: New files.
79438         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79439         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79440         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79441         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79442         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79443         callers changed.  Revamp internals significantly, by not
79444         attempting to create directories that are temporarily more
79445         permissive than the final results.  Do not attempt to use
79446         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79447         This removes some race conditions, fixes some bugs, and simplifies
79448         things.  Use new dirchownmod function to do owner and mode changes.
79449         * lib/mkdir-p.h: Likewise.
79450         * lib/modechange.c (octal_to_mode): New function.
79451         (struct mode_change): New member mentioned.
79452         (make_node_op_equals): New arg mentioned.  All callers changed.
79453         (mode_compile): Keep track of which mode bits the user has explicitly
79454         mentioned.
79455         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79456         New arg PMODE_BITS, to keep track of which mode bits the user
79457         mentioned; it treats S_ISUID and S_ISGID speciall.
79458         All callers changed.
79459         * lib/modechange.h: Likewise.
79460
79461 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * MODULES.html.sh: Add mkancestors.
79464         * modules/mkancesdirs: New module.
79465         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79466         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79467         The chdir-safer and afs files are now orphans; I'll remove them
79468         unless someone speaks up.
79469         Add lib/dirchownmod.c, lib/dirchownmod.h.
79470         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79471         Add lchown, mkancesdirs.
79472         (Maintainer): Add self.
79473
79474 2006-07-15  Karl Berry  <karl@gnu.org>
79475
79476         * gnulib-tool: help message wording/arrangement.
79477
79478 2006-07-14  Simon Josefsson  <jas@extundo.com>
79479
79480         * doc/gnulib.texi (Libtool and Windows): New section.
79481
79482 2006-07-12  Simon Josefsson  <jas@extundo.com>
79483
79484         * modules/gendocs (License): Fix license, approved by Karl.
79485
79486 2006-07-12  Eric Blake  <ebb9@byu.net>
79487
79488         * MODULES.html.sh: Add gendocs.
79489
79490 2006-07-11  Eric Blake  <ebb9@byu.net>
79491
79492         * modules/fdl: New module, to install doc/fdl.texi.
79493         * MODULES.html.sh: Add new section for documentation modules.
79494         * gnulib-tool: Avoid space-tab.
79495         (--doc-base): New option, to manage files from doc.
79496
79497 2006-07-11  Eric Blake  <ebb9@byu.net>
79498
79499         * m4/absolute-header.m4: Fix comments to match recent change.
79500
79501 2006-07-11  Eric Blake  <ebb9@byu.net>
79502
79503         * gnulib-tool: List --doc-base before --tests-base.
79504
79505 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79506
79507         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79508
79509 2006-07-11  Bruno Haible  <bruno@clisp.org>
79510
79511         * README: Mention where to put documentation.
79512
79513 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79514
79515         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79516
79517 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79520         to stdint.m4.
79521
79522 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79525         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79526         "no/such/file/stdint.h" when there is no such file, so that
79527         the resulting C code can be parsed by dodgy compilers.
79528         Problems reported by Bob Proulx.
79529
79530 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79531
79532         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79533         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79534         macros into the GNU _D_EXACT_NAMLEN.
79535         * lib/savedir.c:  Likewise.
79536         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79537
79538 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79539         and Paul Eggert  <eggert@cs.ucla.edu>
79540
79541         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79542         * m4/savedir.m4:
79543         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79544         macros into the GNU _D_EXACT_NAMLEN.
79545
79546 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79549         around the absolute name, to work around a problem with the HP-UX
79550         11.23 native C compiler, reported by Bob Proulx.
79551
79552 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * doc/maintain.texi, make-stds.texi: Sync from
79555         <http://savannah.gnu.org/projects/gnustandards>.
79556
79557 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79560
79561 2006-07-09  Jim Meyering  <jim@meyering.net>
79562
79563         * m4/glob.m4: Remove a doubled word in a comment.
79564
79565 2006-07-09  Jim Meyering  <jim@meyering.net>
79566
79567         * lib/argp-pv.c: Remove a doubled word in a comment.
79568         * lib/check-version.c (check_version): Likewise.
79569         * lib/javacomp.c (compile_java_class): Likewise.
79570
79571 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79574         for the benefit of people using Autoconf 2.60.  If you want to
79575         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79576         (or m4/onceonly.m4, if pre-2.57) manually.
79577
79578 2006-07-08  Jim Meyering  <jim@meyering.net>
79579
79580         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79581         comment.
79582         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79583         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79584         comment.
79585
79586 2006-07-08  Jim Meyering  <jim@meyering.net>
79587
79588         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79589
79590 2006-07-07  Simon Josefsson  <jas@extundo.com>
79591
79592         * tests/test-crc.c: Change expected crc value, the test vector
79593         were probably computed using the old broken crc.c?
79594
79595 2006-07-06  Simon Josefsson  <jas@extundo.com>
79596
79597         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79598         now the canonical place for the M4 file).
79599
79600         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79601         from the sys_socket dependency now.
79602
79603         * modules/inet_pton (Files): Ditto.
79604
79605         * modules/inet_ntop (Files): Ditto.
79606
79607 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79608
79609         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79610         not gl_PREREQ_GETUSERSHELL.
79611
79612 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79613
79614         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79615         with only one argument, for Autoconf 2.60.
79616         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79617         expand to nothing, so add a shell command to avoid syntax error.
79618         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79619
79620 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79621
79622         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79623
79624 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79627         no longer needed.  Check for isblank decl.
79628         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79629         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79630         of existence.
79631
79632 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         * lib/getloadavg.c: Use __VMS, not VMS.
79635         * lib/getopt.c: Likewise.
79636         * lib/getpagesize.h: Likewise.
79637         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79638         and probably does not work.
79639
79640 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * lib/.cppi-disable: Add wcwidth.
79643         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79644         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79645         (ISGRAPH): Remove.  All uses changed to isgraph.
79646         (FOLD) [!defined _LIBC]: Remove special case.
79647         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79648         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79649         HAVE_ISBLANK.
79650         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79651         case.
79652
79653 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79654
79655         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79656         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79657         brackets.  Other minor changes to suppress some compiler
79658         warnings.
79659
79660 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79661         and Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79664         of invoking obsolescent AC_HEADER_DIRENT macro.
79665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79666         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79667         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79668         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79669         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79670         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79671         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79672         * m4/readdir.m4: Remove; no longer needed.
79673
79674 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79675         and Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79678         Don't worry about this obsolete case any more.
79679         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79680         directories.
79681         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79682         worry about this obsolete case any more.
79683         * lib/fts.c: Likewise.
79684         * lib/getcwd.c: Likewise.
79685         * lib/glob.h: Likewise.
79686         * lib/savedir.c: Likewise.
79687
79688 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79691         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79692         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79693         needed.
79694         All uses removed.
79695         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79696         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79697         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79698         needed.
79699         * m4/getdate.m4 (gl_GETDATE): Likewise.
79700         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79701         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79702         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79703         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79704         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79706         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79707         needed.
79708
79709 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * lib/memcasecmp.c: Include <limits.h>.
79712         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79713         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79714         Don't assume isdigit succeeds only on '0' through '9'.
79715
79716 2006-07-05  Eric Blake  <ebb9@byu.net>
79717
79718         * modules/getaddrinfo (Depends-on): Add snprintf.
79719
79720 2006-07-05  Eric Blake  <ebb9@byu.net>
79721
79722         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79723         to avoid 'header present but could not be compiled' on cygwin.
79724
79725 2006-07-05  Eric Blake  <ebb9@byu.net>
79726
79727         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79728         missing from netdb.h.
79729         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79730
79731 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79732
79733         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79734         no longer needed.
79735         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79736         * m4/getdate.m4 (gl_GETDATE): Likewise.
79737         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79738         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79739         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79740         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79741         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79742
79743 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79744
79745         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79746         All uses of is_space replaced by isspace.
79747         * lib/exit.h: Don't talk about STDC_HEADERS.
79748         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79749         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79750         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79751         replaced by isprint etc.
79752         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79753         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79754         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79755         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79756         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79757         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79758
79759 2006-07-05  Bruno Haible  <bruno@clisp.org>
79760
79761         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79762         the function exists, before testing against AIX.
79763         Reported by Martin Lambers <marlam@marlam.de>.
79764
79765 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79768         From Mark D. Baushke.
79769
79770 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79771
79772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79773         to the absolute name, not just one, to bypass Sun C 5.8's
79774         "warning: #include of /usr/include/... may be non-portable".
79775
79776 2006-07-04  Eric Blake  <ebb9@byu.net>
79777
79778         * modules/dirname-tests: New test module.
79779         * tests/test-dirname.c: New file, replacing dirname.c
79780         TEST_DIRNAME section that was recently deleted.
79781
79782 2006-07-04  Bruno Haible  <bruno@clisp.org>
79783
79784         Assume ANSI C header files and <ctype.h> functions.
79785         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79786         (mbsnwidth): Use isprint, iscntrl instead.
79787
79788 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         Merge from coreutils.
79791         * MODULES.html.sh: Add xstrtold.
79792         * modules/xstrtold: New file.
79793         * modules/cycle-check (Files): Add lib/same-inode.h.
79794         * modules/dirname (Files): Add m4/double-slash-root.m4.
79795         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79796         * modules/mkdir-p (Files): Add lib/same-inode.h.
79797         * modules/same (Files): Add lib/same-inode.h.
79798
79799 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79802         This is to keep the terminology clean; POSIX talks about
79803         "absolute pathnames", not "full pathnames", but the GNU
79804         Coding Standards say to use "path" for something else;
79805         so use "absolute" to keep both sides happy.
79806         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79807         Set gl_absolute_header, not gl_full_header_path.
79808         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79809         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79810         All uses changed.
79811
79812         Merge from coreutils.
79813
79814         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79817         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79818         want to require the building of c-strtod.o.
79819         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79820         needs -lm directly.
79821         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79822
79823         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79826         --as-needed option if available.  Problem reported by Albert Chin in
79827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79828         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79829         cc merely issues a bunch of annoying warnings for --as-needed
79830         (this problem was reported by Bob Proulx).  Also, try linking with
79831         -lm to detect a bug in binutils 2.16 (this problem was reported
79832         by Ralf Wildenhues).
79833
79834         2006-06-18  Jim Meyering  <jim@meyering.net>
79835
79836         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79837         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79838         macro.
79839         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79840         also check for glibc-2.4's abort-inducing bug.
79841
79842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79843         Low-probability clean-up should be to use rmdir to get rid of
79844         the just-created directory, not unlink.
79845
79846         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79847         configure fail, and request a bug report to inform us about it.
79848         Add a comment that, barring reports to the contrary, in 2007 we'll
79849         assume ftruncate is universally available.
79850
79851         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79854
79855         2006-03-12  Jim Meyering  <jim@meyering.net>
79856
79857         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79858         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79859         * m4/same.m4 (gl_SAME): Likewise.
79860         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79861
79862         2006-03-11  Eric Blake  <ebb9@byu.net>
79863
79864         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79865         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79866         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79867         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79868
79869 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79872         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79873         reported by Mark D. Baushke, one in
79874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79875
79876         Merge from coreutils.
79877
79878         * lib/.cppi-disable: Add stdint_.h.
79879         * lib/.cvsignore: Add stdint.h.
79880
79881         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79884         both double and long double versions.
79885         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79886         * lib/xstrtold.c: New file.
79887         * lib/xstrtod.h (xstrtold): New decl.
79888
79889         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * lib/filemode.c (setst): Remove.
79892         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79893         (arguably) clearer, and the generated code is a bit smaller on my
79894         Debian GNU/Linux stable x86 host.
79895
79896         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79899         Assume that filemode.h includes sys/types.h and sys/stat.h.
79900         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79901         (ftypelet): Reorder to put common cases first, for efficiency.
79902         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79903         to do 'M'.
79904         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79905         of 10, for compatibility with FreeBSD.  All callers changed.
79906         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79907         types that can't be deduced solely from st_mode.  First arg is now a
79908         const pointer.
79909         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79910         (strmode): Renamed from mode_string.
79911         (filemodestring): New decl.
79912         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79913         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79914         needed.
79915         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79916
79917         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79920         fsusage.h now does that.  Include fsusage.h first, to test interface.
79921         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79922         at most one method (the old code could have generated decls that
79923         didn't conform to C89, not that this was ever exercised).
79924         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79925
79926         2006-03-19  Jim Meyering  <jim@meyering.net>
79927
79928         Work even in a chroot where d_ino values for entries in "/"
79929         don't match the stat.st_ino values for the same names.
79930         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79931         number, iterate through all entries again, using lstat instead.
79932         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79933         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79934
79935         * lib/getcwd.c (__getcwd): Clarify a comment.
79936         Use memcpy in place of a call to strcpy.
79937
79938         2006-03-12  Jim Meyering  <jim@meyering.net>
79939
79940         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79941         matches that of the current directory (which we're about to chdir ".."
79942         out of), then save the dev-ino of the parent, instead.
79943
79944         * lib/same-inode.h (SAME_INODE): New file/macro.
79945         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79946         Include "same-inode.h", instead.
79947         * lib/same.c: Likewise.
79948         * lib/cycle-check.h: Include "same-inode.h".
79949         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79950         * lib/cycle-check.c (SAME_INODE): Remove definition.
79951         * lib/root-dev-ino.h: Include "same-inode.h".
79952
79953         2006-03-11  Eric Blake  <ebb9@byu.net>
79954
79955         * lib/same.c (same_name): s/base_name/last_component/
79956         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79957         * lib/filenamecat.c (file_name_concat): Likewise.
79958
79959         2006-03-11  Eric Blake  <ebb9@byu.net>,
79960                     Paul Eggert  <eggert@cs.ucla.edu>
79961
79962         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79963         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79964         drive prefix.
79965         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79966         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79967         (last_component): New method.
79968         * lib/dirname.c (dir_len): Determine when drive letters need a
79969         subsequent slash.  Preserve // when it is special.
79970         (dir_name): Don't append dot when drive letter is absolute.
79971         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79972         * lib/basename.c (base_name): New semantics - malloc the result.
79973         Preserve // when it is special.  Preserve relative files that look
79974         like drive letters.
79975         (base_len): Preserve // when it is special.
79976         (last_component): New method, similar to old base_name semantics.
79977         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79978         base_name.  Strip redundant slashes from ///.
79979
79980 2006-07-03  Jim Meyering  <jim@meyering.net>
79981
79982         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79983         macro is used before the first cycle_check call.
79984
79985 2006-07-03  Eric Blake  <ebb9@byu.net>
79986
79987         * modules/dirname (Depends-on): Add xstrndup.
79988
79989 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79990
79991         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79992         test cases, so that config.log is a bit easier to follow.
79993
79994 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79995
79996         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79997         both are 64 bits, since this seems to be the tradition, and this
79998         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79999         we ever run into a host that prefers long long to long in this
80000         case, we'll need another configure-time test.  Problem reported by
80001         Jim Meyering.
80002
80003 2006-07-02  Eric Blake  <ebb9@byu.net>
80004
80005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80006
80007 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80008
80009         * modules/inttypes (Depends-on): No longer depends on stdint.
80010         * modules/stdint (Description): Say more about assumptions.
80011         Say that the fast types might differ.  Say macros are used.
80012         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80013         (Makefile.am): Revise list of substituted symbols to match
80014         new stdint.m4.
80015         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80016         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80017         * tests/test-stdint.c (verify_same_types)
80018         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80019         the code conforms to C99/C89.
80020         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80021         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80022
80023 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80026         but fix a bug, by requiring at least 64 bits.
80027         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80028         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80029         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80030         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80031
80032         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80033         changes.  Make 2.59 a prerequisite.  Check and substitute for
80034         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80035         inttypes.h.  Do not use special include files; just use the
80036         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80037         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80038         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80039         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80040         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80041         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80042         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80043         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80044         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80045         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80046         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80047         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80048         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80049         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80050         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80051         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80052         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80053         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80054         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80055         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80056         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80057         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80058         not check for things that C99 does not require, e.g., int8_t.  If
80059         a test isn't needed unless <stdint.h> isn't working, and is
80060         unlikely to be needed for any other reason, then don't do it
80061         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80062         size_t, since we assume C89 freestanding at least.  Do not check
80063         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80064         the right thing even if the types are not defined.  Instead use:
80065         (gl_STDINT_TYPE_PROPERTIES): New macro.
80066         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80067         testing whether <sys/types.h> clashes, as Autoconf does this for
80068         us now.  All uses removed.
80069         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80070         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80071         (gl_CHECK_TYPE_SAME):
80072         Remove; no longer needed.
80073         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80074         exists, since we'll return 0 anyway in that case.
80075         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80076
80077 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80080         possible collision with system files.
80081         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80082         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80083         WCHAR_MIN and WCHAR_MAX in this case.
80084         (<stddef.h>): Do not include; no longer needed.
80085         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80086         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80087         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80088         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80089         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80090         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80091         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80092         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80093         !defined(__c99))]: Include in this case too, since it's harmless
80094         now.
80095         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80096         dangerous to do so.
80097         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80098         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80099         (_STDINT_MIN, _STDINT_MAX): New macros.
80100         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80101         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80102         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80103         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80104         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80105         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80106         macros, not typedefs; this simplifies things quite a bit.
80107         Use long int for all types narrower than int64_t.
80108         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80109         Define in terms of long long int or int64_t or long int,
80110         not int64_t or int32_t.  This saves some compile-time testing.
80111         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80112         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80113         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80114         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80115         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80116         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80117         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80118         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80119         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80120         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80121         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80122         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80123         undef any previous version and define our own version, for
80124         simplicity and consistency with the new macros for types.
80125         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80126         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80127         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80128         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80129         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80130         @WINT_T_SUFFIX@ to keep things simple here.
80131         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80132         Simplify by assuming typical 8/16/32/64 host, since we're
80133         already doing that elsewhere anyway.
80134         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80135         and assume long long int is 64 bits if available.  This
80136         speeds up 'configure'.
80137
80138 2006-07-01  Eric Blake  <ebb9@byu.net>
80139
80140         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80141         Reported by Andreas Buening.
80142
80143 2006-07-01  Eric Blake  <ebb9@byu.net>
80144
80145         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80146
80147 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80148
80149         * lib/getaddrinfo.c: fixed typo
80150
80151 2006-06-29  Jim Meyering  <jim@meyering.net>
80152
80153         * modules/strftime (Maintainer): Add my name, since with the
80154         FPRINTFTIME changes strftime.c has forked from glibc.
80155
80156 2006-06-29  Eric Blake  <ebb9@byu.net>
80157
80158         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80159
80160 2006-06-29  Eric Blake  <ebb9@byu.net>
80161
80162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80163
80164 2006-06-29  Eric Blake  <ebb9@byu.net>
80165
80166         * lib/stat_.h: New file.
80167
80168 2006-06-29  Eric Blake  <ebb9@byu.net>
80169
80170         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80171         unused static function.
80172
80173 2006-06-29  Eric Blake  <ebb9@byu.net>
80174
80175         * doc/functions.texi (Function Portability): Document missing lstat
80176         on mingw.
80177
80178 2006-06-29  Eric Blake  <ebb9@byu.net>
80179
80180         * MODULES.html.sh: Add sys_stat.
80181         * modules/sys_stat: New module.
80182         * modules/mkstemp (Depends-on): Add sys_stat.
80183
80184 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80185
80186         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80187
80188 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80189
80190         * m4/c-bs-a.m4: Removed.
80191
80192 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80193
80194         * lib/strftime.c: Assume strftime() exists.
80195
80196 2006-06-29  Derek Price  <derek@ximbiot.com>
80197
80198         * modules/c-bs-a: Removed - \a is C89.
80199         * MODULES.html.sh: Remove c-bs-a.
80200
80201 2006-06-29  Bruno Haible  <bruno@clisp.org>
80202
80203         * modules/wcwidth (License): Change to LGPL.
80204
80205 2006-06-28  Simon Josefsson  <jas@extundo.com>
80206
80207         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80208         on _WIN32.
80209
80210         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80211         getnameinfo.
80212
80213 2006-06-28  Simon Josefsson  <jas@extundo.com>
80214
80215         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80216
80217 2006-06-28  Simon Josefsson  <jas@extundo.com>
80218
80219         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80220         functions there.  It will succeed on Windows XP, but on Windows
80221         2000 and (presumably) earlier, it will fail, and use the internal
80222         re-implementation.
80223         (use_win32_p): New function.
80224         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80225         Support AI_NUMERICSERV to disable getservbyname.
80226         (getnameinfo): New function, only supports
80227         NI_NUMERICHOST|NI_NUMERICSERV for now.
80228
80229         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80230         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80231         getnameinfo.
80232
80233 2006-06-28  Eric Blake  <ebb9@byu.net>
80234
80235         * modules/wcwidth: New file.
80236         * modules/mbchar (Depends-on): Add wcwidth.
80237         * modules/mbswidth (Depends-on): Add wcwidth.
80238         * MODULES.html.sh: Add wcwidth.
80239
80240 2006-06-28  Eric Blake  <ebb9@byu.net>
80241
80242         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80244
80245 2006-06-28  Eric Blake  <ebb9@byu.net>
80246
80247         * lib/xvasprintf.h: Fix comments.
80248
80249 2006-06-28  Eric Blake  <ebb9@byu.net>
80250
80251         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80252         * lib/mbswidth.c (wcwidth): Move from here...
80253         * lib/wcwidth.h: ...to this new file.
80254
80255 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80256
80257         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80258
80259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80260         it's obsolete.
80261         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80262
80263 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80264
80265         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80266         Autoconf 2.60 says this stuff was obsolete.
80267
80268 2006-06-28  Bruno Haible  <bruno@clisp.org>
80269
80270         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80271
80272 2006-06-28  Bruno Haible  <bruno@clisp.org>
80273
80274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80275         gt_TYPE_WCHAR_T.
80276
80277 2006-06-28  Bruno Haible  <bruno@clisp.org>
80278
80279         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80280         declaration for wcwidth.
80281         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80282
80283 2006-06-28  Bruno Haible  <bruno@clisp.org>
80284
80285         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80286         (mkdir): Define using _mkdir.
80287
80288 2006-06-28  Bruno Haible  <bruno@clisp.org>
80289
80290         * lib/getaddrinfo.h: Fix POSIX URL.
80291         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80292         _WIN32.
80293         (use_win32_p): Make static.
80294         (getaddrinfo): Reject service name if it is empty or does not consist
80295         solely of decimal digits, or if its value is > 65535.
80296         (getnameinfo): Remove useless casts.
80297
80298 2006-06-27  Simon Josefsson  <jas@extundo.com>
80299
80300         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80301         Eggert and Martin Lambers.
80302
80303 2006-06-27  Simon Josefsson  <jas@extundo.com>
80304
80305         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80306         Eggert and Martin Lambers.
80307
80308 2006-06-27  Bruno Haible  <bruno@clisp.org>
80309
80310         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80311         result to 0, not to empty.
80312         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80313
80314 2006-06-27  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80317
80318 2006-06-26  Simon Josefsson  <jas@extundo.com>
80319
80320         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80321         present.
80322
80323 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80326         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80327         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80328
80329 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80330
80331         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80332
80333 2006-06-26  Bruno Haible  <bruno@clisp.org>
80334
80335         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80336
80337 2006-06-26  Bruno Haible  <bruno@clisp.org>
80338
80339         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80340
80341 2006-06-26  Bruno Haible  <bruno@clisp.org>
80342
80343         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80344         SGI C compiler in pre-C99 mode.
80345         Suggested by Mark D. Baushke and Larry Jones.
80346
80347 2006-06-26  Bruno Haible  <bruno@clisp.org>
80348
80349         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80350         WCHAR_MAX.
80351         Reported by Mark D. Baushke and Larry Jones.
80352
80353 2006-06-26  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80356         in pre-C99 mode.
80357         Suggested by Mark D. Baushke and Larry Jones.
80358
80359 2006-06-23  Simon Josefsson  <jas@extundo.com>
80360             Bruno Haible  <bruno@clisp.org>
80361
80362         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80363         Emit mostlyclean-local rule.
80364         (func_emit_tests_Makefile_am): Likewise.
80365         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80366
80367 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80368
80369         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80370
80371 2006-06-23  Bruno Haible  <bruno@clisp.org>
80372
80373         * tests/test-stdint.c: Update to match ISO C 99 Technical
80374         Corrigendum 1.
80375
80376 2006-06-23  Bruno Haible  <bruno@clisp.org>
80377
80378         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80379
80380 2006-06-23  Bruno Haible  <bruno@clisp.org>
80381
80382         * lib/stdint_.h: Treat IRIX like OpenBSD.
80383
80384 2006-06-23  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80387         ISO C 99 Technical Corrigendum 1.
80388
80389 2006-06-22  Simon Josefsson  <jas@extundo.com>
80390
80391         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80392         MinGW.
80393
80394 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80397         needed.  Some compiler complained about some of them.  Problem reported
80398         by Larry Jones in
80399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80400
80401 2006-06-21  Simon Josefsson  <jas@extundo.com>
80402
80403         * tests/test-getaddrinfo.c: New file.
80404
80405         * modules/getaddrinfo-tests: New file.
80406
80407         * MODULES.html.sh: Add inet_pton.
80408
80409         * modules/inet_pton: New file.
80410
80411 2006-06-21  Simon Josefsson  <jas@extundo.com>
80412
80413         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80414         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80415         of using the (limited) gnulib implementation on Windows XP.
80416
80417         * m4/inet_pton.m4: New file.
80418
80419 2006-06-21  Simon Josefsson  <jas@extundo.com>
80420
80421         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80422         variable.
80423
80424         * lib/socket_.h: Don't define WINVER.
80425
80426         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80427         slightly modified to work in gnulib.
80428
80429 2006-06-21  Simon Josefsson  <jas@extundo.com>
80430
80431         * doc/gnulib.texi (Windows sockets): Add.
80432
80433 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * lib/read-file.c (fread_file): Start with buffer allocation of
80436         0 bytes rather than 1 byte; this simplifies the code.
80437         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80438         code to free buffer and save/restore errno.
80439         (internal_read_file): Remove unused local.
80440
80441 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80444         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80445         Problem reported by Denis Excoffier in
80446         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80447
80448 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80449
80450         * modules/sys_socket, modules/socklen: Include sys/types since
80451         FreeBSD 4.x's sys/socket.h needs it.
80452
80453 2006-06-19  Simon Josefsson  <jas@extundo.com>
80454
80455         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80456
80457 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80458
80459         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80460
80461 2006-06-19  Bruno Haible  <bruno@clisp.org>
80462
80463         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80464         and FULL_PATH_INTTYPES_H in angle brackets.
80465         Reported by Mark D. Baushke <mdb@gnu.org>.
80466
80467 2006-06-17  Eric Blake  <ebb9@byu.net>
80468
80469         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80470         errno.
80471
80472 2006-06-17  Bruno Haible  <bruno@clisp.org>
80473
80474         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80475         <sys/inttypes.h>.
80476
80477 2006-06-17  Bruno Haible  <bruno@clisp.org>
80478
80479         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80480         whether errno is declared. Assume <errno.h> declares errno.
80481
80482 2006-06-17  Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80485
80486 2006-06-17  Bruno Haible  <bruno@clisp.org>
80487
80488         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80489         problem on Solaris 2.5.1.
80490
80491 2006-06-16  Eric Blake  <ebb9@byu.net>
80492
80493         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80494         * lib/unicodeio.c [!defined errno]: Likewise.
80495         * lib/strtol.c [!defined errno]: Likewise.
80496         * lib/strtod.c [!defined errno]: Likewise.
80497
80498 2006-06-15  Eric Blake  <ebb9@byu.net>
80499
80500         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80501
80502 2006-06-15  Eric Blake  <ebb9@byu.net>
80503
80504         * config/srclist.txt (ssize_t.m4): Lose sync.
80505
80506 2006-06-15  Bruno Haible  <bruno@clisp.org>
80507
80508         * modules/stdint (Files): Include m4/full-header-path.m4,
80509         m4/size_max.m4, m4/wchar_t.m4.
80510         (Makefile.am): Many more substitutions.
80511         * modules/stdint-tests: New file.
80512         * tests/test-stdint.c: New file.
80513
80514 2006-06-15  Bruno Haible  <bruno@clisp.org>
80515
80516         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80517         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80518         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80519         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80520         gl_CHECK_TYPE_SAME): New macros.
80521
80522 2006-06-15  Bruno Haible  <bruno@clisp.org>
80523
80524         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80525
80526 2006-06-15  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/stdint_.h: Rewritten to be fully auto-configured.
80529         Fixes bug on HP-UX/IA64.
80530
80531 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/getdate.y (__attribute__): Don't define if already defined.
80534         Problem reported by Larry Jones.
80535         * lib/utimens.c (__attribute__): Likewise.
80536
80537 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80540         reported by Andreas Schwab.
80541
80542 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80543             Bruno Haible  <bruno@clisp.org>
80544
80545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80546         check for the declaration of strnlen and a run test that exposes the
80547         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80548         rpl_strndup.
80549
80550 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80551             Bruno Haible  <bruno@clisp.org>
80552
80553         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80554
80555 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80556
80557         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80558         compile test, for Tru64 4.0D.
80559
80560 2006-05-28  Karl Berry  <karl@gnu.org>
80561
80562         * config/srclist.txt (printf-args.c): lose sync.
80563
80564 2006-05-26  Martin Lambers  <marlam@marlam.de>
80565
80566         * lib/getpass.c: Updates the test for the native W32 API, and adds
80567         missing includes, thus fixing compilation warnings.
80568
80569 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80570
80571         * lib/exclude.c (exclude_fnmatch): New function.
80572         (excluded_file_name): Call exclude_fnmatch.
80573         * lib/exclude.h (excluded_file_name): New prototype
80574
80575 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * lib/tempname.c (small_open, large_open): New macros.
80578         (__open, __open64) [!_LIBC]: Remove.
80579         (__gen_tempname): Use small_open and large_open instead of __open
80580         and __open64.  This fixes a portability bug on HP-UX 11.11i
80581         reported by Simon Wing-Tang in
80582         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80583
80584 2006-05-24  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80587         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80588         Reported by Thorsten Maerz <torte@netztorte.de> via
80589         Aaron Stone <aaron@serendipity.cx>.
80590
80591 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80594         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80595         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80596         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80597         not really conditional on the cache.
80598         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80599
80600 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80603         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80604         (my_usleep): Don't mishandle maximum value.
80605
80606 2006-05-19  Jim Meyering  <jim@meyering.net>
80607
80608         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80609
80610 2006-05-17  Bruno Haible  <bruno@clisp.org>
80611
80612         Cygwin portability.
80613         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80614
80615 2006-05-17  Bruno Haible  <bruno@clisp.org>
80616
80617         * lib/stdint_.h: Fix recognition of Cygwin.
80618
80619 2006-05-15  Bruno Haible  <bruno@clisp.org>
80620
80621         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80622         on libtool patch by Ralf Wildenhues.
80623
80624 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80627         test for C99 conformance; (bool) 0.5 is an integer constant
80628         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80629         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80630
80631 2006-05-11  Simon Josefsson  <jas@extundo.com>
80632
80633         * m4/xvasprintf.m4: Fix obvious typo.
80634
80635 2006-05-11  Jim Meyering  <jim@meyering.net>
80636
80637         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80638         James Lemley.
80639
80640 2006-05-10  Simon Josefsson  <jas@extundo.com>
80641
80642         * lib/md4.c: Typo fix, update copyright years.
80643         (K1, K2): Don't use L because it turn computations into 64-bit on
80644         64-bit platforms.
80645
80646 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80649         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80650         unwanted sign propagation, e.g., on hosts with 64-bit int.
80651         There still are some problems with reeelly weird theoretical hosts
80652         (e.g., 33-bit int) but it's not worth worrying about now.
80653         * lib/sha1.c (rol): Likewise.
80654         (K1, K2, K3, K4): Remove unnecessary L suffix.
80655
80656 2006-05-10  Bruno Haible  <bruno@clisp.org>
80657
80658         * lib/des.c: Cast to avoid warnings.
80659
80660 2006-05-09  Bruno Haible  <bruno@clisp.org>
80661
80662         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80663         (Depends-on): Depend also on xsize, stdarg.
80664         (configure.ac): Add gl_XVASPRINTF.
80665
80666 2006-05-09  Bruno Haible  <bruno@clisp.org>
80667
80668         * m4/xvasprintf.m4: New file.
80669
80670 2006-05-09  Bruno Haible  <bruno@clisp.org>
80671
80672         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80673         (EOVERFLOW): Define fallback value.
80674         (xstrcat): New function.
80675         (xvasprintf): Recognize the special case of a string concatenation.
80676
80677 2006-05-08  Eric Blake  <ebb9@byu.net>
80678
80679         * gnulib-tool (func_version): Base copyright year on CVS date.
80680         (func_emit_copyright_notice): New function.
80681         (func_emit_lib_Makefile_am): Use it.
80682         (func_emit_tests_Makefile_am): Likewise.
80683         (func_import): Likewise.
80684
80685 2006-05-08  Bruno Haible  <bruno@clisp.org>
80686
80687         * modules/stdarg: New file.
80688         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80689
80690 2006-05-08  Bruno Haible  <bruno@clisp.org>
80691
80692         * m4/stdarg.m4: New file, from GNU gettext.
80693
80694 2006-05-08  Bruno Haible  <bruno@clisp.org>
80695
80696         * config/srclist.txt (build-aux/config.rpath): different from latest
80697         release.
80698
80699 2006-05-08  Bruno Haible  <bruno@clisp.org>
80700
80701         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80702
80703 2006-05-05  Jim Meyering  <jim@meyering.net>
80704
80705         * m4/warning.m4: New file, derived from bison's file by the same name.
80706
80707 2006-05-03  Bruno Haible  <bruno@clisp.org>
80708
80709         * lib/stdint_.h: Shorter URL.
80710         * lib/inttypes.h: Likewise.
80711
80712 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80715
80716 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80717
80718         * lib/verify.h: Document the internals better.  Most of this change
80719         was written by Bruno Haible.
80720
80721 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * doc/verify.texi: New file, partly based on a proposal by
80724         Bruno Haible.
80725
80726 2006-05-02  Bruno Haible  <bruno@clisp.org>
80727
80728         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80729         test from here...
80730         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80731
80732 2006-04-29  Bruno Haible  <bruno@clisp.org>
80733
80734         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80735         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80736
80737 2006-04-29  Bruno Haible  <bruno@clisp.org>
80738
80739         * gnulib-tool: Make --update option actually work.
80740
80741 2006-04-29  Bruno Haible  <bruno@clisp.org>
80742
80743         * doc/gcd.texi: New file.
80744         * doc/gnulib.texi: Include it.
80745
80746 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80747
80748         * lib/getdate.y (get_date): When adding relative date, start with the
80749         initial time, not with the result of the first mktime call.
80750
80751 2006-04-25  Bruno Haible  <bruno@clisp.org>
80752
80753         * gnulib-tool (func_import): Output the include directives in three
80754         blocks, sorted separately.
80755         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80756
80757 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80760         to define main with arguments, for C++.  Reported by Eric Blake.
80761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80762         Prefer 'int main ()' to 'int main (void)', for C++.
80763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80765         for 'main', for C99 and C++.
80766
80767 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80770         Don't assume that exit status -1 is valid.
80771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80772         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80773         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80774         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80775         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80776         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80777         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80778         functions can be used without declaring them, or that you can
80779         exit with status -1.
80780         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80781
80782 2006-04-24  Karl Berry  <karl@gnu.org>
80783
80784         * config/srclist.txt (longdouble.m4): sync lost.
80785
80786 2006-04-24  Eric Blake  <ebb9@byu.net>
80787
80788         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80789
80790 2006-04-24  Bruno Haible  <bruno@clisp.org>
80791
80792         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80793         poll() implementation in AIX.
80794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80795
80796 2006-04-24  Bruno Haible  <bruno@clisp.org>
80797
80798         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80799         assigned exactly once.
80800
80801 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80802             Bruno Haible  <bruno@clisp.org>
80803
80804         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80805         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80806         for AM_CPPFLAGS.
80807
80808 2006-04-23  Bruno Haible  <bruno@clisp.org>
80809
80810         * modules/copy-file: Depend on unistd.
80811         * modules/execute: Likewise.
80812         * modules/fatal-signal: Likewise.
80813         * modules/findprog: Likewise.
80814         * modules/mkdtemp : Likewise.
80815         * modules/pipe: Likewise.
80816         * modules/wait-process: Likewise.
80817
80818 2006-04-23  Bruno Haible  <bruno@clisp.org>
80819
80820         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80821         condition was already detected.
80822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80823
80824 2006-04-23  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/copy-file.c: Include <unistd.h> unconditionally.
80827         * lib/execute.c: Likewise.
80828         * lib/fatal-signal.c: Likewise.
80829         * lib/findprog.c: Likewise.
80830         * lib/mkdtemp.c: Likewise.
80831         * lib/pipe.h: Likewise.
80832         * lib/pipe.c: Likewise.
80833         * lib/wait-process.h: Likewise.
80834
80835 2006-04-23  Bruno Haible  <bruno@clisp.org>
80836
80837         * gnulib-tool (func_usage): Fix --import description. Document
80838         --update.
80839         (func_import): Create temporary file in a temporary directory, if
80840         --dry-run is specified. Silence errors from 'grep' when there are no
80841         m4 files in $m4dir.
80842         (func_create_testdir): Silence errors from 'grep' when there are no
80843         m4 files in $m4dir.
80844         Reported by Karl Berry <karl@freefriends.org>.
80845
80846 2006-04-20  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80849         one argument, so that the code will be portable to Autoconf 2.60.
80850         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80851         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80852         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80853
80854 2006-04-19  Derek Price  <derek@ximbiot.com>
80855             Eric Blake  <ebb9@byu.net>
80856
80857         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80858         rather than "/full/path.h".  Update comment to match.  Shorten &
80859         generalize m4_translit call via AS_TR_CPP.
80860
80861 2006-04-19  Derek Price  <derek@ximbiot.com>
80862             Eric Blake  <ebb9@byu.net>
80863
80864         * lib/inttypes.h: Correct grammar in comment.
80865
80866 2006-04-18  Derek Price  <derek@ximbiot.com>
80867             Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * modules/inttypes: New file.
80870         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80871
80872 2006-04-18  Derek Price  <derek@ximbiot.com>
80873             Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80876         New files.
80877
80878 2006-04-18  Derek Price  <derek@ximbiot.com>
80879             Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * lib/inttypes.h: New file.
80882         * lib/strtoimax.c: Assume <inttypes.h>.
80883
80884 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80887         isn't mounted.  Problem reported by Kir Kolyshkin.
80888
80889 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80892         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80893         Derek R. Price.
80894         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80895         implementation.
80896
80897 2006-04-12  Eric Blake  <ebb9@byu.net>
80898
80899         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80900         is now done automatically by the corresponding Autoconf macro.
80901
80902 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80905         time_r.h.
80906
80907 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         Merge regex changes from libc, removing some of our
80910         POSIX-conformance changes that were rejected and redoing them in a
80911         less-intrusive way.
80912
80913         * lib/regcomp.c (re_compile_internal, init_dfa):
80914         Length arg is now size_t, not Idx.  All uses changed.
80915         (peek_token): Forward decl now says internal_function.
80916         (__re_error_msgid, __re_error_msgid_idx):
80917         Now static rather than extern with attribute_hidden.
80918         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80919         For some reason libc prefers K&R style defns for external functions.
80920         (regerror) [!defined _LIBC]: Likewise.
80921         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80922         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80923         (build_range_exp, build_collating_symbol):
80924         Use K&R-style defn.
80925         (re_compile_fastmap): Use '\0' to memset, not 0.
80926         (utf8_sb_map): Make the calculations more obvious.
80927         (init_dfa, parse_bracket_exp, build_charclass_op):
80928         Call calloc and cast result, as glibc does.
80929         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80930         (build_range_exp, build_collating_symbol):
80931         Now internal functions.
80932
80933         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80934
80935         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80936         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80937         Don't depend on VMS; depend on __VMS instead, for POSIX
80938         namespace cleanness.
80939         (regoff_t): Define to ssize_t, not long int.
80940
80941         Remove the REG_ macros named below.  Instead, make the old names
80942         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80943         __USE_GNU_REGEX.
80944         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80945         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80946         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80947         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80948         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80949         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80950         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80951         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80952         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80953         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80954         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80955         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80956         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80957         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80958         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80959         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80960         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80961         (REG_NREGS):
80962         Remove.  All uses replaced by the old RE_* names.
80963         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80964         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80965         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80966         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80967         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80968         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80969         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80970         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80971         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80972         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80973         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80974         Don't bother having these macros be independent of each others'
80975         values, since they no longer exist in the POSIX name space.
80976
80977         Rename the following member names back to their old names,
80978         unless !__USE_GNU_REGEX.  All uses changed back.
80979         (buffer): Renamed from re_buffer.
80980         (allocated): Renamed from re_allocated.
80981         (used): Renamed from re_used.
80982         (syntax): Renamed from re_syntax.
80983         (fastmap): Renamed from re_fastmap.
80984         (translate): Renamed from re_translate.
80985         (can_be_null): Renamed from re_can_be_null.
80986         (regs_allocated): Renamed from re_regs_allocated.
80987         (fastmap_accurate): Renamed from re_fastmap_accurate.
80988         (no_sub): Renamed from re_no_sub.
80989         (not_bol): Renamed from re_not_bol.
80990         (not_eol): Renamed from re_not_eol.
80991         (newline_anchor): Renamed from re_newline_anchor.
80992         (num_regs): Renamed from rm_num_regs.
80993         (start): Renamed from rm_start.
80994         (end): Renamed from rm_end.
80995
80996         (free_state): Move up a bit.
80997
80998         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80999         #define to be empty.
81000         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81001         when that is what is intended.
81002         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81003         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81004         (MAX): New macro.
81005         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81006         All uses changed back to re_malloc, etc.  It's now the caller's
81007         responsibility to check for overflow; all callers changed.
81008         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81009         (re_x2nrealloc): Remove.
81010         (free_state): Remove decl.
81011
81012         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81013         (re_set_registers, re_exec):
81014         Use K&R-style defn.
81015
81016         2006-01-31  Roland McGrath  <roland@redhat.com>
81017
81018         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81019         Reported by Mike Frysinger <vapier@gentoo.org>.
81020
81021         2006-01-15  Andreas Jaeger  <aj@suse.de>
81022
81023         [BZ #1950]
81024         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81025         build_wcs_upper_buffer change.
81026         (build_wcs_upper_buffer): Change return type.
81027
81028         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81029
81030         * lib/regex_internal.h: Include <stdint.h> if available.
81031
81032         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81033
81034         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81035
81036         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81037
81038         * lib/regcomp.c: Adjust for changed secondary hash function.
81039
81040         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81041
81042         * lib/regex.h: Pretty printing.
81043         Clean up namespace a bit.
81044
81045         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81046
81047         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81048         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81049
81050         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81051                     Ulrich Drepper  <drepper@redhat.com>
81052
81053         [BZ #1302]
81054         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81055         changed.
81056         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81057
81058         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81059
81060         [BZ #281]
81061         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81062         * lib/regcomp.c: Remove unnecessary uses of
81063         unsigned RE_TRANSLATE_TYPE.
81064         * lib/regex_internal.h: Likewise.
81065         * lib/regex_internal.c: Likewise.
81066         * lib/regexec.c: Likewise.
81067         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81068
81069         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81070
81071         * lib/regexec.c (find_recover_state): Remove unnecessary
81072         initialization.
81073         (transit_state_bkref): Make DFA a const pointer.
81074         (get_subexp): Likewise.
81075         (check_arrival): Likewise.
81076         (update_cur_sifted_state): Likewise.
81077         (re_search_internal): Likewise.
81078         (prune_impossible_nodes): Likewise.
81079         (acquire_init_state_context): Likewise.
81080         (proceed_next_node): Likewise.
81081         (set_regs): Likewise.
81082         (free_fail_stack_return): Likewise.
81083         (check_arrival_expand_ecl): Mark DFA parameter as const.
81084         (check_arrival_expand_ecl_sub): Likewise.
81085         (check_subexp_limits): Likewise.
81086         (sub_epsilon_src_nodes):  Likewise.
81087         (add_epsilon_src_nodes):  Likewise.
81088         (merge_state_array): Likewise.
81089         (update_regs): Likewise.
81090         (build_trtable): Likewise.
81091         (sift_states_backward): Mark MCTX parameter as const.
81092         (build_sifted_states): Likewise.
81093         (update_cur_sifted_state): Likewise.
81094         (sift_states_mkref): Likewise.
81095         (check_arrival_expand_ecl): Mark eclosure as const.
81096         (check_dst_limits_calc_pos_1): Likewise.
81097         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81098         pointer.
81099
81100         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81101
81102         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81103         (transit_state_sb): Likewise.
81104         (transit_state_mb): Likewise.
81105         (sift_states_iter_mb): Likewise.
81106         (check_arrival_add_next_nodes): Likewise.
81107         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81108         [_LIBC] (re_search_2_stub): Use mempcpy.
81109
81110         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81111         mbrtowc for very simple UTF-8 case.
81112
81113         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81114         a pointer-to-const.
81115         (re_acquire_state_context): Likewise.
81116         * lib/regex_internal.h: Adjust prototypes.
81117
81118         * lib/regex.c: Prevent using C++ compilers.
81119
81120         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81121         (re_acquire_state_context): Likewise.
81122
81123 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * modules/regex (Depends-on): Add ssize_t.
81126
81127 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81128
81129         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81130         translation table.
81131
81132 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81135
81136 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81137             Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81140         <sys/types.h> and <inttypes.h>.
81141
81142 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81143
81144         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81145         `__error_t_defined', so argp.h will not typedef the former.
81146
81147 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81150         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81151         glibc names.  Even if glibc is changed to conform to POSIX, the
81152         traditional names will be available anyway, since regex depends on
81153         the extensions module.  Also, fix a longstanding typo in the
81154         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81155         reported by Emanuele Giaquinta.  Also, change sense of cached
81156         variable, so that the message makes sense.
81157
81158 2006-03-24  Simon Josefsson  <jas@extundo.com>
81159
81160         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81161         including some doc fixes.
81162         (base64_encode_alloc): Fix +1 bug on allocation failures.
81163
81164 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81165
81166         * lib/base64.c (base64_encode): Do not read past end of array with
81167         unsanitized input on systems with CHAR_BIT > 8.
81168
81169 2006-03-24  Eric Blake  <ebb9@byu.net>
81170
81171         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81172
81173 2006-03-22  Karl Berry  <karl@gnu.org>
81174
81175         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81176         * config/srclistvars.sh (COREUTILS): new var.
81177
81178 2006-03-17  Jim Meyering  <jim@meyering.net>
81179
81180         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81181         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81182
81183 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81186         no longer needs it.  Instead, check that regoff_t is as least
81187         as wide as ptrdiff_t.
81188
81189         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81190         so that our regex.h stays compatible with the installed regex.
81191         This is helpful for installers who configure --without-included-regex.
81192         Problem reported by Emanuele Giaquinta.
81193
81194 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81195
81196         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81197         Typedef to long int, not to off_, as POSIX will likely change
81198         in that direction.
81199
81200 2006-03-15  Eric Blake  <ebb9@byu.net>
81201
81202         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81203
81204 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81205
81206         * lib/argp-help.c (validate_uparams): Fix typo
81207         * lib/argp-parse.c (argp_default_options): Consistently begin help
81208         messages with a lowercase letter.
81209
81210 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81213         overrun buffers and shouldn't be used (much as gets shouldn't be
81214         used).
81215         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81216
81217 2006-03-08  Simon Josefsson  <jas@extundo.com>
81218
81219         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81220         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81221
81222 2006-03-08  Simon Josefsson  <jas@extundo.com>
81223
81224         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81225         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81226
81227 2006-03-08  Simon Josefsson  <jas@extundo.com>
81228
81229         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81230         signal that configure disabled the device.
81231
81232 2006-03-08  Simon Josefsson  <jas@extundo.com>
81233
81234         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81235         languages.
81236
81237 2006-03-07  Simon Josefsson  <jas@extundo.com>
81238
81239         * modules/getopt (Depends-on): Add unistd.
81240
81241         * modules/unistd: New file.
81242
81243 2006-03-07  Simon Josefsson  <jas@extundo.com>
81244
81245         * modules/gc-random: New file.
81246
81247 2006-03-07  Simon Josefsson  <jas@extundo.com>
81248
81249         * m4/unistd_h.m4: New file.
81250
81251 2006-03-07  Simon Josefsson  <jas@extundo.com>
81252
81253         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81254         test to be side-effect free by storing the result in the cache
81255         variable gl_cv_lib_readline, and moving the assignment of
81256         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81257         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81258
81259 2006-03-07  Simon Josefsson  <jas@extundo.com>
81260
81261         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81262         error on missing devices (the functions will return an error).
81263
81264         * m4/gc.m4: Move random stuff to gc-random.m4
81265
81266 2006-03-07  Simon Josefsson  <jas@extundo.com>
81267
81268         * lib/unistd_.h: New file.
81269
81270 2006-03-07  Simon Josefsson  <jas@extundo.com>
81271
81272         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81273
81274 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81275
81276         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81277         Problem reported by Juan Manuel Guerrero.
81278
81279 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81282         the unistd module.
81283         * lib/getlogin_r.c: Likewise.
81284         * lib/getlogin_r.h: Likewise.
81285         * lib/glob.c: Likewise.
81286         * lib/pagealign_alloc.c: Likewise.
81287         * lib/unistd_.h: Remove; no longer needed.
81288
81289 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81292         Add unistd.
81293         * modules/c-stack (Depends-on): Add unistd.
81294         * modules/getlogin_r: Likewise.
81295         * modules/glob: Likewise.
81296         * modules/pagealign_alloc: Likewise.
81297         * modules/unistd (Files): Remove lib/unistd_.h.
81298         (EXTRA_DIST): Remove.
81299         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81300         need unistd_.h.
81301         (MOSTLYCLEANFILES): Remove unistd.h-t.
81302
81303 2006-03-03  Simon Josefsson  <jas@extundo.com>
81304
81305         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81306
81307 2006-03-03  Simon Josefsson  <jas@extundo.com>
81308
81309         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81310         libidn and bison.
81311
81312 2006-03-03  Simon Josefsson  <jas@extundo.com>
81313
81314         * build-aux/maint.mk: Add indent target.
81315
81316 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81317
81318         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81319         our replacement poll.h in any case, to avoid a differing
81320         declaration from a system header.  Seen on AIX.
81321
81322 2006-03-01  Simon Josefsson  <jas@extundo.com>
81323
81324         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81325         <kasal@ucw.cz>.
81326
81327 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81328
81329         * modules/gettime (Depends-on): Add extensions module.
81330         * modules/nanosleep (Depends-on): Likewise.
81331         * modules/settime (Depends-on): Likewise.
81332
81333 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81336         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81337         pedantically.
81338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81339         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81340
81341         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81342         not "==".  Reported by Ralf Wildenhues.
81343
81344 2006-03-01  Karl Berry  <karl@gnu.org>
81345
81346         * doc/Copyright/request-*: new files, synced from gnuorg.
81347
81348 2006-03-01  Karl Berry  <karl@gnu.org>
81349
81350         * config/srclist.txt (Copyright/*): new entries.
81351
81352 2006-02-28  Simon Josefsson  <jas@extundo.com>
81353
81354         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81355
81356 2006-02-27  Simon Josefsson  <jas@extundo.com>
81357
81358         * lib/base64.h: Indent #define's.  From Jim Meyering
81359         <jim@meyering.net>.
81360
81361 2006-02-27  Jim Meyering  <jim@meyering.net>
81362
81363         Revert the change of 2006-02-24, so these files can continue
81364         to be sync'd from gettext.
81365         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81366         of `config.h'.
81367
81368 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81369
81370         * modules/intprops: New file.
81371         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81372         Add intprops.
81373         * modules/getloadavg (Files): Remove lib/intprops.h.
81374         (Depends-on): Add intprops.
81375         * modules/human: Likewise.
81376         * modules/inttostr: Likewise.
81377         * modules/openat: Likewise.
81378         * modules/sig2str: Likewise.
81379         * modules/userspec: Likewise.
81380         * modules/utimecmp: Likewise.
81381         * modules/xnanosleep: Likewise.
81382         * modules/xstrtol: Likewise.
81383
81384 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81385
81386         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81387         * modules/lock-tests (TESTS): Use $(EXEEXT).
81388         * modules/tls-tests: Likewise.
81389         * modules/argp-tests: Likewise.
81390         (check_PROGRAMS): New var, replacing...
81391         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81392
81393 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81394
81395         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81396         `config.h'.
81397
81398 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81399
81400         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81401
81402 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81403
81404         Sync from coreutils.
81405         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81406         gl_CHDIR_SAFER.
81407
81408 2006-02-22  Jim Meyering  <jim@meyering.net>
81409
81410         Sync from coreutils.
81411         * m4/chdir-safer.m4: New file.
81412
81413 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81416         AT_FDCWD exceeds INT_MAX.
81417         * lib/openat.h (AT_FDCWD): Likewise.
81418
81419 2006-02-17  Eric Blake  <address@hidden>
81420
81421         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81422
81423 2006-02-16  Simon Josefsson  <jas@extundo.com>
81424
81425         * modules/getaddrinfo (Depends-on): Add sys_socket.
81426
81427 2006-02-15  Simon Josefsson  <jas@extundo.com>
81428
81429         * build-aux/maint.mk: Add dsyntax-check rule.
81430
81431 2006-02-15  Eric Blake  <ebb9@byu.net>
81432
81433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81434         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81435         'present but cannot compile' warnings on cygwin.
81436         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81437         use ws2tcpip.h if sys/socket.h works.
81438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81439         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81440
81441 2006-02-14  Simon Josefsson  <jas@extundo.com>
81442
81443         * modules/maintainer-makefile (Files): Rename.
81444
81445         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81446         and (the local) Makefile.cfg to maint-cfg.mk.
81447
81448         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81449         to the latter.
81450
81451         * modules/maintainer-makefile: New module.
81452
81453         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81454         severaly stripped to make it possible to build it up from scratch
81455         with reliable tests.
81456
81457         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81458         fixes to permit overriding the default actions when configure and
81459         makefile are not available.
81460
81461 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         Sync from coreutils.
81464         * modules/lstat (Depends-on): Don't depend on xalloc.
81465         (License): Change from GPL to LGPL, since this is now simply a
81466         replacement for a libc function.
81467
81468 2006-02-14  Jim Meyering  <jim@meyering.net>
81469
81470         Sync from coreutils.
81471
81472         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81473         failure on deficient systems, and simplify gnulib lgpl dependencies.
81474         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81475         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81476
81477         * lib/xalloc-die.c: Remove unused definition of N_.
81478
81479 2006-02-14  Jim Meyering  <jim@meyering.net>
81480
81481         Sync from coreutils.
81482         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81483         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81484         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81485         double-quote uses of that variable, to accommodate the rare case in
81486         which getmntent is available in none of the libraries checked.  This
81487         happens at least on FreeBSD 5.0.
81488
81489 2006-02-13  Simon Josefsson  <jas@extundo.com>
81490
81491         * gnulib-tool (Usage): Fix --import, from
81492         karl@freefriends.org (Karl Berry).
81493
81494 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81495
81496         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81497
81498 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81499
81500         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81501         "autoupdate" on 2005-12-12.
81502
81503 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81504
81505         * modules/closeout (Depends-on): Remove atexit.
81506
81507 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81510         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81511
81512 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81513
81514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81515         __EXTENSIONS__ if this causes compilation to fail.  Problem
81516         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81517         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81518
81519 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81522         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81524         All uses changed.
81525
81526 2006-01-26  Simon Josefsson  <jas@extundo.com>
81527
81528         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81529         prototype is visible on mingw32.
81530
81531         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81532         for mingw32.
81533
81534         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81535         mingw32).
81536
81537 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81540         attempt to open for write; this always fails, at least on POSIX
81541         hosts.  This reinstates the 2006-01-09 change, which was
81542         inadvertently removed.
81543
81544 2006-01-26  Bruno Haible  <bruno@clisp.org>
81545
81546         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81547         Reported by Paul Eggert.
81548
81549 2006-01-26  Bruno Haible  <bruno@clisp.org>
81550             Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * lib/stdbool_.h (_Bool)
81553         [(! (defined __cplusplus || defined __BEOS__)
81554           && !defined __GNUC__
81555           && !(defined __HP_cc || defined __xlc__
81556                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81557                || defined __sgi))]:
81558         #define to signed char in these cases too; this simplifies
81559         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81560         etc., separately) and makes it more conservative.
81561
81562 2006-01-25  Simon Josefsson  <jas@extundo.com>
81563
81564         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81565         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81566         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81567
81568 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81569
81570         * lib/argp-namefrob.h: Bugfix. Remove stray #
81571
81572 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81575         so that we test the test.
81576         Check for yet another HP-UX cc bug involving *bool |= bool.
81577
81578 2006-01-25  Karl Berry  <karl@gnu.org>
81579
81580         * config/srclist.txt (vasnprintf.c): sync lost.
81581
81582 2006-01-25  Jim Meyering  <jim@meyering.net>
81583
81584         Sync from the stable (b5) branch of coreutils:
81585
81586         * lib/fts.c (fts_children): Don't let close() clobber errno from
81587         failed fchdir().
81588
81589         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81590         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81591         a dangling symlink.  That can also happen at least for ELOOP.
81592         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81593         FYI, this bug predates the inclusion of fts.c in coreutils.
81594
81595         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81596         in their own block, so pre-c99 compilers don't object.
81597
81598         Avoid the double-free (first in fts_read, second in fts_close) that
81599         would occur when an `active' directory is made inaccessible (e.g.,
81600         via chmod a-x) during a traversal.
81601         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81602         before returning.  Reproduce this failure by
81603         mkdir -p a/b; cd a; chmod a-x . b
81604         Reported by Stavros Passas.
81605
81606 2006-01-25  Jim Meyering  <jim@meyering.net>
81607
81608         * lib/fileblocks.c: Remove more useless parentheses.
81609         * lib/readutmp.h: Likewise.
81610
81611 2006-01-25  Bruno Haible  <bruno@clisp.org>
81612
81613         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81614         warnings.
81615         Reported by Paul Eggert.
81616
81617 2006-01-25  Bruno Haible  <bruno@clisp.org>
81618
81619         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81620         rid of a trap command. For Solaris sh.
81621         Reported by Mark D. Baushke <mdb@gnu.org>.
81622
81623 2006-01-24  Simon Josefsson  <jas@extundo.com>
81624
81625         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81626         Bruno.
81627
81628 2006-01-24  Karl Berry  <karl@gnu.org>
81629
81630         * config/srclist.txt (argp-namefrob.h): sync lost.
81631
81632 2006-01-24  Jim Meyering  <jim@meyering.net>
81633
81634         * modules/openat (Files): Add lib/intprops.h.
81635         From Mark D. Baushke.
81636
81637 2006-01-24  Jim Meyering  <jim@meyering.net>
81638
81639         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81640         Reported by Mark D. Baushke.
81641
81642 2006-01-24  Jim Meyering  <jim@meyering.net>
81643
81644         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81645
81646 2006-01-24  Bruno Haible  <bruno@clisp.org>
81647
81648         * modules/strnlen (Maintainer): Change from glibc to all.
81649
81650 2006-01-24  Bruno Haible  <bruno@clisp.org>
81651
81652         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81653         Patch by Paul Eggert.
81654
81655 2006-01-24  Bruno Haible  <bruno@clisp.org>
81656
81657         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81658         already has it.
81659         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81660         2005-11-26.
81661
81662         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81663         'signed char' to avoid problems with the built-in _Bool type.
81664         Reported by Paul Eggert on 2005-11-26.
81665
81666 2006-01-24  Bruno Haible  <bruno@clisp.org>
81667
81668         * gnulib-tool (func_import): Avoid constructing complicated sed
81669         expressions inside backquote.
81670         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81671
81672 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81673
81674         These changes imported from libc.
81675         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81676         test and two separate function calls.
81677         * lib/strndup.c (__strndup): Add libc_hidden_def.
81678
81679 2006-01-23  Simon Josefsson  <jas@extundo.com>
81680
81681         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81682         Remove the test_*_SOURCES variable: automake infers it by default.
81683         * modules/tls-tests: Likewise.
81684
81685 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         Work around porting bugs reported by Dieter in
81688         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81689         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81690         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81691         Include "getopt.h" first, to check interface.
81692         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81693         !HAVE_DECL_GETENV.
81694         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81695         (__strndup): Revert to K&R-style function dfns, the glibc style.
81696         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81697         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81698         Include strnlen.h first, to get prototype properly.
81699         (strnlen): Renamed from __strnlen.
81700         Remove weak alias.
81701
81702 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81703
81704         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81705
81706 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81707
81708         * config/srclist.txt: Adjust to reflect glibc reorganization.
81709         This affects only comments.
81710
81711 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81712
81713          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81714          Reported by Bruce Korb <bkorb@gnu.org>.
81715
81716 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81717
81718         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81719         to pacify gcc -Wswitch-default.
81720
81721 2006-01-22  Bruno Haible  <bruno@clisp.org>
81722
81723         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81724         temporary buffer for sprintf, take into account the precision also
81725         for 'd', 'i', 'u', 'o', 'x', 'X'.
81726
81727 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81728
81729         * modules/argp-tests: New module
81730         * tests/test-argp.c: New file
81731         * tests/test-argp-2.sh: New file
81732
81733 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81734
81735         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81736         (__argp_base_name): Removed
81737         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81738         typo.
81739         (__argp_base_name): Provide macro definition or extern declaration
81740         depending on the configuration
81741
81742 2006-01-20  Simon Josefsson  <jas@extundo.com>
81743
81744         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81745
81746 2006-01-20  Simon Josefsson  <jas@extundo.com>
81747
81748         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81749
81750 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81751
81752         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81753         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81754         Suggested by Bruno Haible.
81755
81756 2006-01-20  Karl Berry  <karl@gnu.org>
81757
81758         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81759         until changes propagate, I guess.
81760
81761 2006-01-19  Simon Josefsson  <jas@extundo.com>
81762
81763         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81764
81765 2006-01-19  Simon Josefsson  <jas@extundo.com>
81766
81767         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81768
81769 2006-01-19  Simon Josefsson  <jas@extundo.com>
81770
81771         * gnulib-tool: Set check_PROGRAMS.
81772
81773         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81774         modules/des-tests, modules/gc-arcfour-tests,
81775         modules/gc-arctwo-tests, modules/gc-des-tests,
81776         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81777         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81778         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81779         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81780         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81781         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81782         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81783         test_*_SOURCES.
81784
81785 2006-01-18  Simon Josefsson  <jas@extundo.com>
81786
81787         * modules/socklen (Depends-on): Depend on sys_socket.
81788
81789 2006-01-18  Simon Josefsson  <jas@extundo.com>
81790
81791         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81792         modules/des-tests, modules/gc-arcfour-tests,
81793         modules/gc-arctwo-tests, modules/gc-des-tests,
81794         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81795         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81796         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81797         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81798         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81799         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81800         $(EXEEXT) to automake TESTS variable, for mingw32.
81801
81802 2006-01-17  Simon Josefsson  <jas@extundo.com>
81803
81804         * modules/socklen (Include): Need sys/socket.h.
81805
81806 2006-01-17  Bruno Haible  <bruno@clisp.org>
81807
81808         * modules/ssize_t (Include): Add <sys/types.h>.
81809
81810 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81813         it's not portable and it doesn't work with cross-compiles.
81814         Problem reported by Bruno Haible.  Fix missing-$ typo in
81815         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81816         -zignore from being used with Sun's C compiler.
81817
81818 2006-01-12  Simon Josefsson  <jas@extundo.com>
81819
81820         * lib/base64.c: Fix warning, reported by Bruno Haible
81821         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81822
81823 2006-01-12  Bruno Haible  <bruno@clisp.org>
81824
81825         * modules/ldd: New file.
81826         * build-aux/ldd.sh.in: New file.
81827         * MODULES.html.sh (Support for building libraries and executables): Add
81828         ldd.
81829
81830 2006-01-12  Bruno Haible  <bruno@clisp.org>
81831
81832         * m4/ldd.m4: New file.
81833
81834 2006-01-12  Bruno Haible  <bruno@clisp.org>
81835
81836         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81837         endless loop while replacing $auxdir with build-aux.
81838
81839 2006-01-11  Simon Josefsson  <jas@extundo.com>
81840
81841         * lib/stdint_.h (SIZE_MAX): Add missing (.
81842
81843 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81844
81845         Sync from coreutils.
81846         * lib/md5.c: Fix commentary typos.
81847         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81848         * lib/md5.h (__attribute__): Remove; unused.
81849         * lib/sha1.c: Fix commentary to match md5 better.
81850         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81851         so that we don't need to worry about alignment.  All uses changed.
81852         This merges the 2005-10-28 md5 change into sha1.
81853
81854 2006-01-11  Jim Meyering  <jim@meyering.net>
81855
81856         Sync from coreutils.
81857         * lib/md5.c (OP): Fix spacing.
81858
81859 2006-01-11  Bruno Haible  <bruno@clisp.org>
81860
81861         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81862         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81863         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81864
81865 2006-01-11  Bruno Haible  <bruno@clisp.org>
81866
81867         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81868         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81869         the "early" section as well.
81870
81871 2006-01-11  Bruno Haible  <bruno@clisp.org>
81872
81873         Avoid "ar: no archive members specified" error on MacOS X.
81874         * gnulib-tool (func_modules_add_dummy): New function.
81875         (func_import, func_create_testdir): Invoke it.
81876
81877 2006-01-11  Bruno Haible  <bruno@clisp.org>
81878
81879         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81880         with $auxdir in AC_CONFIG_FILES statements.
81881
81882 2006-01-11  Bruno Haible  <bruno@clisp.org>
81883
81884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81885         Initialize also noinst_HEADERS to empty.
81886
81887 2006-01-11  Bruno Haible  <bruno@clisp.org>
81888
81889         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81890         variables.
81891         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81892         autoreconf.
81893
81894 2006-01-11  Bruno Haible  <bruno@clisp.org>
81895
81896         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81897         overridable by the user.
81898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81899
81900 2006-01-10  Simon Josefsson  <jas@extundo.com>
81901
81902         * modules/sys_socket: New file.
81903
81904 2006-01-10  Simon Josefsson  <jas@extundo.com>
81905
81906         * m4/sys_socket_h.m4: New file.
81907
81908 2006-01-10  Simon Josefsson  <jas@extundo.com>
81909
81910         * lib/socket_.h: New file.
81911
81912 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * modules/readutmp (Maintainer): Add myself.
81915
81916 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81917
81918         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81919         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81920         People who are still concerned with buggy memcmp implementations
81921         can invoke gl_FUNC_MEMCMP themselves.
81922
81923 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * lib/regex_internal.h (BITSET_WORD_BITS):
81926         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81927         preprocessor mishandles large unsigned values as if they were signed.
81928         Problem reported by Claudio Fontana in
81929         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81930
81931 2006-01-10  Jim Meyering  <jim@meyering.net>
81932
81933         Avoid the double-free (first in fts_read, second in fts_close) that
81934         would occur when an `active' directory is made inaccessible (e.g.,
81935         via chmod a-x) during a traversal.
81936         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81937         before returning.  Reproduce this failure by
81938         mkdir -p a/b; cd a; chmod a-x . b
81939         Reported by Stavros Passas.
81940
81941         Sync from coreutils.
81942         * lib/sha1.c: Tweak grammar in a comment.
81943
81944 2006-01-10  Jim Meyering  <jim@meyering.net>
81945
81946         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81947         Patch by Joerg Sonnenberger.
81948
81949 2006-01-10  Bruno Haible  <bruno@clisp.org>
81950
81951         * modules/readutmp: Depend on module free.
81952         * modules/strtok_r: Depend on module restrict.
81953
81954 2006-01-10  Bruno Haible  <bruno@clisp.org>
81955
81956         * modules/gettext (configure.ac): Add an invocation of
81957         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81958
81959 2006-01-10  Bruno Haible  <bruno@clisp.org>
81960
81961         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81962         Reported by Werner Lemberg <wl@gnu.org>.
81963
81964 2006-01-10  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/localcharset.c: Update from GNU gettext.
81967
81968 2006-01-10  Bruno Haible  <bruno@clisp.org>
81969
81970         * lib/argp.h (__const): Remove macro. Use const instead.
81971         * lib/argp-fmtstream.h (__const): Likewise.
81972         * lib/glob_.h (__const): Remove macro.
81973         * lib/glob-libc.h: Use const instead of __const.
81974
81975 2006-01-10  Bruno Haible  <bruno@clisp.org>
81976
81977         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81978         variable.
81979         Needed to avoid an automake error regarding the 'gettext' module.
81980
81981 2006-01-09  Simon Josefsson  <jas@extundo.com>
81982
81983         * modules/inet_ntop (Depends-on): Add restrict.
81984
81985 2006-01-09  Simon Josefsson  <jas@extundo.com>
81986
81987         * modules/gc-rijndael-tests (License): Put under LGPL.
81988
81989         * modules/gc-des-tests (License): Likewise.
81990
81991         * modules/gc-arcfour-tests (License): Likewise.
81992
81993         * modules/gc-arctwo-tests (License): Likewise.
81994
81995         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81996
81997         * modules/gc-hmac-sha1-tests (Files): Likewise.
81998
81999         * modules/gc-hmac-md5-tests (License): Likewise.
82000
82001         * modules/gc-sha1-tests (License): Likewise.
82002
82003         * modules/gc-md5-tests (License): Likewise.
82004
82005         * modules/gc-md4-tests (License): Likewise.
82006
82007         * modules/gc-md2-tests (License): Likewise.
82008
82009         * modules/gc-tests (License): Likewise.
82010
82011         * modules/des-tests (License): Likewise.
82012
82013         * modules/md4-tests (License): Likewise.
82014
82015         * modules/md2-tests (License): Likewise.
82016
82017 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82018
82019         Sync from coreutils:
82020
82021         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82022         * modules/lib-ignore: New file.
82023         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82024         chdir-safer.m4, lchmod.m4.
82025         * modules/openat: Add mkdirat.c, openat-priv.h.
82026
82027 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82028
82029         Sync from coreutils.
82030         * m4/lib-ignore.m4: New file.
82031         * m4/lchmod.m4: New file.
82032
82033 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         Sync from coreutils.
82036         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82037         for write access: POSIX says that must fail.
82038         * lib/fts.c (diropen): Likewise.
82039         * lib/save-cwd.c (save_cwd): Likewise.
82040         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82041         well, for minor improvements on hosts that lack O_DIRECTORY.
82042         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82043         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82044         Fall back on chown if open failed with EACCES.
82045
82046         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82047         Report an error at compile-time if only a 1-second nominal clock
82048         resolution is found.
82049
82050         * lib/lchmod.h: New file.
82051         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82052         (make_dir_parents): Use lchown rather than chown, and
82053         lchmod rather than chmod.
82054
82055         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82056         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82057         "proc" reported by n0dalus.
82058
82059         * lib/mountlist.c: Include <limits.h>.
82060         (dev_from_mount_options)
82061         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82062         New function.  It no longer assumes "dev=" has the System V meaning
82063         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82064         (read_file_system_list)
82065         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82066         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82067         dev= in that case.
82068
82069         * lib/posixtm.h (PDS_PRE_2000): New macro.
82070         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82071         allow_century.  All usages changed.  Reject dates outside the range
82072         1969-1999 if PDS_PRE_2000 is used.
82073
82074 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         Sync from coreutils.
82077         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82078         (Time of day items): Mention the possibility of leap seconds.
82079         Problem reported by Dr. David Alan Gilbert.
82080
82081 2006-01-09  Jim Meyering  <jim@meyering.net>
82082
82083         Sync from coreutils.
82084
82085         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82086
82087         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82088
82089         * lib/modechange.c (mode_compile): Reject an invalid mode string
82090         that starts with an octal digit.  From Andreas Gruenbacher.
82091
82092         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82093         and dup to open_safer and dup_safer, respectively.
82094         (openat_permissive): Fix typo in comment.
82095
82096         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82097         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82098         (_): Remove; no longer needed.
82099         (openat): Renamed from rpl_openat; no need for rpl_openat
82100         since openat.h renames openat for us.
82101         Replace most of the body with a call to openat_permissive,
82102         to avoid duplicate code.
82103         Port to (probably hypothetical) environments were mode_t is
82104         wider than int.
82105         (openat_permissive): Require mode arg, so that we can check
82106         types better.  Put it just after flags.  Change cwd failure
82107         indicator from pointer-to-bool to pointer-to-errno-value.
82108         All callers changed.
82109         Invoke openat_save_fail and/or openat_restore_fail if
82110         cwd_errno is null, so that openat can call us.
82111         (openat_permissive, fdopendir, fstatat, unlinkat):
82112         Simplify errno handling to avoid some duplicate code,
82113         as it's OK to set errno on success.
82114         * lib/openat.h: Revamp code so that function macros depend on
82115         __OPENAT_PREFIX only, not also on AT_FDCWD.
82116         (openat_ro): Remove.  Caller changed to use openat_permissive.
82117         (openat_permissive): Now a macro, if not a function.
82118         (openat_restore_fail, openat_save_fail): Now always functions,
82119         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82120
82121         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82122         and openat.c.
82123         * lib/mkdirat.c: Include openat-priv.h.
82124         Remove definitions of macros defined therein.
82125         * lib/openat.c: Likewise.
82126
82127         * lib/mkdirat.c (mkdirat): New file and function.
82128         * lib/openat.h (mkdirat): Declare.
82129
82130         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82131
82132         * lib/openat.h (openat_permissive): Declare.
82133         (openat_ro): Define.
82134
82135         * lib/openat.c (EXPECTED_ERRNO): New macro.
82136         (openat_permissive): New function -- used in remove.c rewrite.
82137         (all functions): Set errno just before returning, only if there
82138         was an actual failure.
82139         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82140
82141         Emulate openat-family functions using Linux's procfs, if possible.
82142         Idea and some code based on Ulrich Drepper's glibc changes.
82143
82144         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82145         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82146         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82147         before falling back on save_cwd and restore_cwd.
82148         (fdopendir, fstatat, unlinkat): Likewise.
82149
82150         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82151         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82152
82153         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82154         as second argument to va_arg.  Otherwise, some versions of gcc
82155         warn that `if this code is reached, the program will abort'.
82156
82157 2006-01-09  Jim Meyering  <jim@meyering.net>
82158
82159         Sync from coreutils.
82160         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82161         Require openat-priv.h.
82162
82163 2006-01-09  Bruno Haible  <bruno@clisp.org>
82164
82165         * modules/strnlen (Include): Use strnlen.h.
82166
82167 2006-01-09  Bruno Haible  <bruno@clisp.org>
82168
82169         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82170
82171 2006-01-09  Bruno Haible  <bruno@clisp.org>
82172
82173         * lib/sysexit_.h (EX_OK): New macro.
82174         Suggested by Martin Lambers <marlam@marlam.de>.
82175
82176 2006-01-09  Bruno Haible  <bruno@clisp.org>
82177
82178         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82179         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82180
82181 2006-01-09  Bruno Haible  <bruno@clisp.org>
82182
82183         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82184         numbers.
82185
82186 2006-01-09  Bruno Haible  <bruno@clisp.org>
82187
82188         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82189         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82190         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82191         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82192
82193 2006-01-09  Bruno Haible  <bruno@clisp.org>
82194
82195         * build-aux/javacomp.sh.in: New file, moved from lib/.
82196         * modules/javacomp-script (Files): Update.
82197         (configure.ac): Add AC_CONFIG_FILES invocation.
82198         (EXTRA_DIST): Remove variable.
82199
82200         * build-aux/javaexec.sh.in: New file, moved from lib/.
82201         * modules/javaexec (Files): Update.
82202         (configure.ac): Add AC_CONFIG_FILES invocation.
82203         (EXTRA_DIST): Remove javaexec.sh.in.
82204
82205         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82206         * modules/csharpcomp-script (Files): Update.
82207         (configure.ac): Add AC_CONFIG_FILES invocation.
82208         (EXTRA_DIST): Remove variable.
82209
82210         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82211         * modules/csharpexec (Files): Update.
82212         (configure.ac): Add AC_CONFIG_FILES invocation.
82213         (EXTRA_DIST): Remove csharpexec.sh.in.
82214
82215 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82216
82217         Sync from coreutils.
82218
82219         Add POSIX ACL support
82220         * lib/acl.h (copy_acl, set_acl): Add declarations.
82221         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82222         systems other than Linux.
82223         (chmod_or_fchmod): New function: use fchmod when possible,
82224         and chmod otherwise.
82225         (file_has_acl): Add a POSIX ACL implementation, with a
82226         Linux-specific subcase.
82227         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82228         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82229         acls are unsupported.
82230         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82231         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82232         are unsupported.
82233
82234 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82235
82236         Sync from coreutils.
82237         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82238
82239 2006-01-07  Bruno Haible  <bruno@clisp.org>
82240
82241         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82242         gl_EARLY.
82243
82244 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82247         Problem reported for Mingw by Mark Junker.
82248
82249 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         * README: Gnulib normally doesn't generate a tarball.
82252
82253 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82256         long int, not int, for nanosecond counts, so that people who are
82257         used to POSIX struct timespec won't be surprised.  Reported by Jim
82258         Meyering.
82259
82260 2005-12-28  Bruno Haible  <bruno@clisp.org>
82261
82262         * build-aux/config.rpath: Update from GNU gettext.
82263
82264 2005-12-16  Jim Meyering  <jim@meyering.net>
82265
82266         * modules/fprintftime: New module.
82267         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82268
82269 2005-12-16  Jim Meyering  <jim@meyering.net>
82270
82271         * m4/fprintftime.m4: New file.
82272
82273 2005-12-16  Jim Meyering  <jim@meyering.net>
82274
82275         * lib/fprintftime.c, lib/fprintftime.h: New files.
82276
82277 2005-12-15  Simon Josefsson  <jas@extundo.com>
82278
82279         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82280         new m4/socklen.m4.
82281
82282 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82283
82284         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82285         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82286
82287 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82288
82289         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82290         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82291         struct uparams is valid. Fall back to the default values if it is
82292         not.
82293
82294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82295
82296         * modules/argp (Files): Add argp-pin.c
82297         (Depends-on): dirname
82298         (lib_SOURCES): Add argp-pin.c
82299
82300 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82301
82302         * m4/argp.m4:  Check if program_invocation_name and
82303         program_invocation_short_name are declared and define appropriate
82304         macros if they are not.
82305
82306 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82307
82308         * lib/argp-help.c (__argp_base_name): New function
82309         (__argp_short_program_name): Rewrite using __argp_base_name
82310         * lib/argp-namefrob.h: Define program_invocation_name and
82311         program_invocation_short_name if requested
82312         (__argp_base_name): Add prototype
82313         * lib/argp-parse.c (argp_def): Use gettext wrappers
82314         (argp_default_parser): Use __argp_base_name
82315         * lib/argp-pin.c: New file. Defines program_invocation_name and
82316         program_invocation_short_name on systems that lack them.
82317
82318 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82319
82320         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82321         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82322         porting problem reported by Georg Schwarz in
82323         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82324
82325 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82326
82327         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82328         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82329         porting problem reported by Georg Schwarz in
82330         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82331
82332 2005-12-05  Bruno Haible  <bruno@clisp.org>
82333
82334         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82335         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82336         Reported by Mark Junker <mjscod@gmx.de>.
82337
82338 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82341         Use implementation from Albert Chin, with some
82342         comments/corrections by Stepan Kasal and myself.
82343
82344 2005-12-02  Bruno Haible  <bruno@clisp.org>
82345
82346         * gnulib-tool (func_import): Accept GPLed build tool modules when
82347         --lgpl is given.
82348         * modules/csharpcomp-script: New file.
82349         * modules/csharpcomp: Depend on it.
82350         * modules/javacomp-script: New file.
82351         * modules/javacomp: Depend on it.
82352         Suggested by Simon Josefsson.
82353
82354 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82355
82356         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82357         statement, to work around an HP-UX 10.20 compiler bug reported by
82358         Peter O'Gorman.
82359
82360 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * modules/savedir (Depends-on): Add openat.
82363
82364 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82367         (uintmax_t) [defined uintmax_t]: Do not declare.
82368         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82369         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82370         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82371         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82372         sake of portability to weird hosts that C allows (though we don't
82373         know of any practical examples).
82374
82375         * lib/savedir.h (fdsavedir): New decl.
82376         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82377         contains most of the former guts of savedir.
82378         (savedir): Use savedirstream.
82379         Include "openat.h".
82380
82381 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * modules/obstack (Files): Add m4/ulonglong.m4.
82384         Problem reported by Davide Angelocola.
82385
82386 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82389         coreutils no longer futzes with rounding modes.
82390
82391 2005-11-14  Jim Meyering  <jim@meyering.net>
82392
82393         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82394         replacement of mkstemp.
82395
82396 2005-11-10  Simon Josefsson  <jas@extundo.com>
82397
82398         * lib/readline.c: Remove EOL.
82399
82400 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * modules/gethrxtime (Depends-on): Add gettime.
82403
82404 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82405
82406         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82407         or gettimeofday; no longer needed.
82408
82409 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82410
82411         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82412         time business.
82413         (gethrxtime) [! (HAVE_NANOUPTIME
82414         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82415         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82416         our own approximation.
82417
82418 2005-11-08  Eric Blake  <ebb9@byu.net>
82419
82420         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82421
82422 2005-11-08  Eric Blake  <ebb9@byu.net>
82423
82424         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82425
82426 2005-11-04  Bruno Haible  <bruno@clisp.org>
82427
82428         * gnulib-tool: Implement --update mode.
82429
82430 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82431
82432         Fix porting problem reported by Theodoros V. Kalamatianos.
82433         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82434         Don't assume that futimes failing means we must fail.
82435
82436 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82437
82438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82439         variables to suggest the intended function of the PATH_MAX check.
82440
82441 2005-10-30  Kean Johnston  <jkj@sco.com>
82442
82443         Trivial changes to support SCO systems.
82444         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82445         as PATH_MAX.
82446         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82447         where __ptr is null when no I/O is pending.
82448
82449 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82452         leave errno alone.  Problem reported by Dmitry V. Levin.
82453
82454 2005-10-28  Simon Josefsson  <jas@extundo.com>
82455
82456         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82457         Test more.
82458
82459         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82460
82461         * modules/md2, modules/md2-tests: New files.
82462
82463 2005-10-28  Simon Josefsson  <jas@extundo.com>
82464
82465         * m4/inet_ntop.m4: More tests.
82466
82467         * m4/gc-md2.m4, md2.m4: New file.
82468
82469 2005-10-28  Simon Josefsson  <jas@extundo.com>
82470
82471         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82472         "restrict" keywords, as per POSIX.  Protect the function
82473         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82474         Don't use K&R prototypes.  Check the sprintf return values.
82475         Re-define EAFNOSUPPORT if not present.  Indent.
82476
82477         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82478         suggested by Bruno Haible <bruno@clisp.org>.
82479
82480         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82481
82482         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82483
82484         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82485         libgcrypt).
82486
82487         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82488
82489         * lib/md2.h, lib/md2.c: New files.
82490
82491 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82494         errno alone.  Problem reported by Frederic Jolliton.
82495
82496 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82497
82498         * modules/verify (License): Change from GPL to LGPL.  This is a
82499         tiny module and there are apparently near-equivalents that are
82500         under the BSD license.
82501
82502 2005-10-24  Simon Josefsson  <jas@extundo.com>
82503
82504         * modules/sha1: Relicense to LGPL.
82505
82506 2005-10-24  Simon Josefsson  <jas@extundo.com>
82507
82508         * lib/md4.h: Shrink buffer size, now that we changed the type.
82509
82510 2005-10-23  Simon Josefsson  <jas@extundo.com>
82511
82512         * gnulib-tool (func_import): Fix --tests-base.
82513
82514 2005-10-22  Simon Josefsson  <jas@extundo.com>
82515
82516         * modules/arcfour (Depends-on): Need stdint.
82517
82518 2005-10-22  Simon Josefsson  <jas@extundo.com>
82519
82520         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82521         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82522
82523 2005-10-22  Simon Josefsson  <jas@extundo.com>
82524
82525         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82526         suggested by Bruno Haible <bruno@clisp.org>.
82527
82528 2005-10-22  Simon Josefsson  <jas@extundo.com>
82529
82530         * lib/crc.h: Include stddef.h, for size_t.
82531
82532 2005-10-22  Simon Josefsson  <jas@extundo.com>
82533
82534         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82535         arcfour_context struct (simplify test vector testing in GNU
82536         Shishi).
82537
82538 2005-10-21  Simon Josefsson  <jas@extundo.com>
82539
82540         * modules/des, modules/des-tests: New files.
82541
82542         * modules/gc-des, modules/gc-des-tests: New files.
82543
82544         * tests/test-des.c, tests/test-gc-des.c: New file.
82545
82546 2005-10-21  Simon Josefsson  <jas@extundo.com>
82547
82548         * modules/arctwo, modules/arctwo-tests: New files.
82549
82550         * tests/test-arctwo.c: New file.
82551
82552         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82553
82554         * tests/test-gc-arctwo.c: New file.
82555
82556 2005-10-21  Simon Josefsson  <jas@extundo.com>
82557
82558         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82559         Bruno Haible <bruno@clisp.org>.
82560
82561         * m4/gc-des.m4: New file.
82562
82563 2005-10-21  Simon Josefsson  <jas@extundo.com>
82564
82565         * m4/arctwo.m4: New file.
82566
82567         * m4/gc-arctwo.m4: New file.
82568
82569 2005-10-21  Simon Josefsson  <jas@extundo.com>
82570
82571         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82572         block.
82573
82574 2005-10-21  Simon Josefsson  <jas@extundo.com>
82575
82576         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82577         <bruno@clisp.org>.
82578
82579         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82580
82581         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82582         Bruno Haible <bruno@clisp.org>.
82583
82584         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82585         <bruno@clisp.org>.
82586
82587 2005-10-21  Simon Josefsson  <jas@extundo.com>
82588
82589         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82590
82591 2005-10-21  Simon Josefsson  <jas@extundo.com>
82592
82593         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82594
82595 2005-10-21  Simon Josefsson  <jas@extundo.com>
82596
82597         * lib/des.h, lib/des.c: New files.
82598
82599         * lib/gc-gnulib.c: Support DES.c
82600
82601 2005-10-21  Simon Josefsson  <jas@extundo.com>
82602
82603         * lib/arctwo.h, lib/arctwo.c: New files.
82604
82605         * lib/gc-gnulib.c: Support ARCTWO.
82606
82607 2005-10-21  Simon Josefsson  <jas@extundo.com>
82608
82609         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82610         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82611
82612 2005-10-21  Simon Josefsson  <jas@extundo.com>
82613
82614         * gnulib-tool (func_import, func_create_testdir): Define automake
82615         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82616         Makefile.am snippet),
82617         suggested by Bruno Haible <bruno@clisp.org>.
82618
82619         * modules/gc (Makefile.am): Use it.
82620
82621 2005-10-21  Bruno Haible  <bruno@clisp.org>
82622
82623         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82624         patch.
82625
82626 2005-10-19  Simon Josefsson  <jas@extundo.com>
82627
82628         * tests/test-gc-rijndael.c: New file.
82629
82630         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82631
82632 2005-10-19  Simon Josefsson  <jas@extundo.com>
82633
82634         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82635         interface too.
82636
82637 2005-10-19  Simon Josefsson  <jas@extundo.com>
82638
82639         * tests/test-gc-arcfour.c: New file.
82640
82641         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82642
82643 2005-10-19  Simon Josefsson  <jas@extundo.com>
82644
82645         * modules/gc-md4, modules/gc-md4-tests: New file.
82646
82647         * tests/test-gc-md4.c: New file.
82648
82649 2005-10-19  Simon Josefsson  <jas@extundo.com>
82650
82651         * m4/gc-md4.m4: New file.
82652
82653 2005-10-19  Simon Josefsson  <jas@extundo.com>
82654
82655         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82656         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82657         <kasal@ucw.cz>.
82658
82659 2005-10-19  Simon Josefsson  <jas@extundo.com>
82660
82661         * m4/gc-arcfour.m4: New file.
82662
82663         * m4/gc-rijndael.m4: New file.
82664
82665 2005-10-19  Simon Josefsson  <jas@extundo.com>
82666
82667         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82668
82669 2005-10-19  Simon Josefsson  <jas@extundo.com>
82670
82671         * lib/gc-gnulib.c: Support ARCFOUR.
82672
82673 2005-10-19  Simon Josefsson  <jas@extundo.com>
82674
82675         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82676         support.
82677
82678         * lib/gc.h: Add ECB enum type.
82679
82680         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82681
82682 2005-10-18  Simon Josefsson  <jas@extundo.com>
82683
82684         * tests/test-md5.c: New file.
82685
82686         * modules/md5-tests: New file.
82687
82688 2005-10-18  Simon Josefsson  <jas@extundo.com>
82689
82690         * tests/test-md4.c: New file.
82691
82692         * modules/md4, modules/md4-tests: New files.
82693
82694 2005-10-18  Simon Josefsson  <jas@extundo.com>
82695
82696         * m4/md4.m4: New file.
82697
82698 2005-10-18  Simon Josefsson  <jas@extundo.com>
82699
82700         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82701
82702 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82703
82704         * gnulib-tool (func_create_testdir): Omit the second check whether
82705         BUILT_SOURCES in nonempty.
82706
82707 2005-10-17  Simon Josefsson  <jas@extundo.com>
82708
82709         * tests/test-rijndael.c: New file.
82710
82711 2005-10-17  Simon Josefsson  <jas@extundo.com>
82712
82713         * modules/sha1: Depend on stdint instead of md5.
82714
82715         * modules/md5: Depend on stdint, remove uint32_t.
82716
82717 2005-10-17  Simon Josefsson  <jas@extundo.com>
82718
82719         * modules/gc-sha1-tests: New file.
82720
82721         * tests/test-gc-sha1.c: New file.
82722
82723 2005-10-17  Simon Josefsson  <jas@extundo.com>
82724
82725         * m4/md5.m4: Remove call to uint32_t.m4.
82726
82727 2005-10-17  Simon Josefsson  <jas@extundo.com>
82728
82729         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82730
82731         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82732         md5.h.
82733
82734         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82735
82736         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82737
82738 2005-10-17  Simon Josefsson  <jas@extundo.com>
82739
82740         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82741
82742 2005-10-17  Simon Josefsson  <jas@extundo.com>
82743
82744         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82745
82746 2005-10-17  Simon Josefsson  <jas@extundo.com>
82747
82748         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82749
82750         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82751
82752 2005-10-17  Bruno Haible  <bruno@clisp.org>
82753
82754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82755         that it can also be used in a test.
82756
82757 2005-10-16  Bruno Haible  <bruno@clisp.org>
82758
82759         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82760         TESTS_ENVIRONMENT, so that individual tests can augment it.
82761
82762         * gnulib-tool (func_create_testdir): Use an intermediate target for
82763         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82764         macros, like $(ALLOCA_H), which cannot be passed through the command
82765         line.
82766
82767 2005-10-15  Simon Josefsson  <jas@extundo.com>
82768
82769         * modules/rijndael-tests: New file.
82770
82771         * modules/rijndael: New file.
82772
82773 2005-10-15  Simon Josefsson  <jas@extundo.com>
82774
82775         * m4/rijndael.m4: New file.
82776
82777 2005-10-15  Simon Josefsson  <jas@extundo.com>
82778
82779         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82780
82781         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82782
82783 2005-10-14  Simon Josefsson  <jas@extundo.com>
82784
82785         * tests/test-arcfour.c: New file.
82786
82787         * modules/arcfour, modules/arcfour-tests: New files.
82788
82789 2005-10-14  Simon Josefsson  <jas@extundo.com>
82790
82791         * m4/arcfour.m4: New file.
82792
82793 2005-10-14  Simon Josefsson  <jas@extundo.com>
82794
82795         * lib/arcfour.h, lib/arcfour.c: New files.
82796
82797 2005-10-14  Roland McGrath  <roland@redhat.com>
82798
82799         Import from libc.  [BZ #1331]
82800         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82801         macro argument.
82802         Reported by Matej Vela <vela@debian.org>.
82803
82804 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82807         include <wchar.h>; no longer needed.
82808
82809 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82812
82813 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82814         and  Ulrich Drepper  <drepper@redhat.com>
82815
82816         Import from libc.
82817         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82818         instead of inline stream orientation test and two separate
82819         function calls.  Pay no attention to USE_IN_LIBIO.
82820
82821 2005-10-13  Simon Josefsson  <jas@extundo.com>
82822
82823         * modules/gc-hmac-md5-tests: New file.
82824
82825         * tests/test-gc-hmac-sha1.c: New file.
82826
82827         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82828
82829         * modules/gc-hmac-md5-tests: New file.
82830
82831         * tests/test-gc-md5.c: New file.
82832
82833         * modules/gc-md5-tests: New file.
82834
82835 2005-10-13  Simon Josefsson  <jas@extundo.com>
82836
82837         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82838         Move memory allocation outside of loop.
82839
82840 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82843         intermediate directory is in a read-only file system.  Problem
82844         reported by Eric Blake.
82845
82846 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82847
82848         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82849
82850 2005-10-12  Simon Josefsson  <jas@extundo.com>
82851
82852         * tests/test-hmac-sha1.c: New file.
82853
82854         * modules/hmac-sha1-tests: New file.
82855
82856         * modules/hmac-sha1: New file.
82857
82858 2005-10-12  Simon Josefsson  <jas@extundo.com>
82859
82860         * modules/gc-sha1: New file.
82861
82862 2005-10-12  Simon Josefsson  <jas@extundo.com>
82863
82864         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82865
82866         * tests/test-gc-pbkdf2-sha1.c: New file.
82867
82868 2005-10-12  Simon Josefsson  <jas@extundo.com>
82869
82870         * modules/gc-md5, modules/gc-hmac-md5: New files.
82871
82872         * modules/gc (Files): Remove md5, memxor and hmac files.
82873
82874 2005-10-12  Simon Josefsson  <jas@extundo.com>
82875
82876         * m4/gc-pbkdf2-sha1.m4: New file.
82877
82878         * m4/gc-hmac-sha1.m4: New file.
82879
82880         * m4/gc-sha1: New file.
82881
82882         * m4/hmac-sha1.m4: New file.
82883
82884 2005-10-12  Simon Josefsson  <jas@extundo.com>
82885
82886         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82887
82888         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82889
82890 2005-10-12  Simon Josefsson  <jas@extundo.com>
82891
82892         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82893         suggested by Bruno Haible <bruno@clisp.org>.
82894
82895 2005-10-12  Simon Josefsson  <jas@extundo.com>
82896
82897         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82898
82899 2005-10-12  Simon Josefsson  <jas@extundo.com>
82900
82901         * lib/gc-pbkdf2-sha1.c: New file.
82902
82903         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82904
82905 2005-10-12  Simon Josefsson  <jas@extundo.com>
82906
82907         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82908
82909         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82910
82911 2005-10-12  Simon Josefsson  <jas@extundo.com>
82912
82913         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82914         GC_USE_HMAC_MD5, respectively.
82915
82916         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82917         (gc_md5): Fix typo.
82918
82919         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82920
82921         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82922
82923         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82924
82925 2005-10-12  Bruno Haible  <bruno@clisp.org>
82926
82927         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82928         Reported by Stepan Kasal <kasal@ucw.cz>.
82929
82930 2005-10-11  Simon Josefsson  <jas@extundo.com>
82931
82932         * tests/test-crc.c: New file.
82933
82934         * modules/crc, modules/crc-tests: New files.
82935
82936 2005-10-11  Simon Josefsson  <jas@extundo.com>
82937
82938         * m4/crc.m4: New file.
82939
82940 2005-10-11  Simon Josefsson  <jas@extundo.com>
82941
82942         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82943
82944         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82945
82946         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82947
82948 2005-10-11  Simon Josefsson  <jas@extundo.com>
82949
82950         * lib/crc.h, lib/crc.c: New files.
82951
82952         * lib/gc.h (gc_hash_buffer): Add doc.
82953
82954 2005-10-11  Bruno Haible  <bruno@clisp.org>
82955
82956         * modules/c-strcasestr: New file.
82957         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82958
82959 2005-10-11  Bruno Haible  <bruno@clisp.org>
82960
82961         * modules/c-strcase: New file.
82962         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82963
82964 2005-10-11  Bruno Haible  <bruno@clisp.org>
82965
82966         * lib/strcasecmp.c: Include limits.h.
82967         (strcasecmp): Avoid integer overflow on exotic platforms.
82968         * lib/strncasecmp.c: Include limits.h.
82969         (strncasecmp): Avoid integer overflow on exotic platforms.
82970         Reported by Paul Eggert.
82971
82972 2005-10-11  Bruno Haible  <bruno@clisp.org>
82973
82974         * lib/c-strcasestr.h: New file, from GNU gettext.
82975         * lib/c-strcasestr.c: New file, from GNU gettext.
82976
82977 2005-10-11  Bruno Haible  <bruno@clisp.org>
82978
82979         * lib/c-strcase.h: New file, from GNU gettext.
82980         * lib/c-strcasecmp.c: New file, from GNU gettext.
82981         * lib/c-strncasecmp.c: New file, from GNU gettext.
82982
82983 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * modules/mempcpy (License): GPL -> LGPL.
82986         * modules/strchrnul (License): Likewise.
82987         * modules/sysexits (License): Likewise.
82988
82989 2005-10-08  Simon Josefsson  <jas@extundo.com>
82990
82991         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82992
82993 2005-10-07  Simon Josefsson  <jas@extundo.com>
82994
82995         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82996
82997 2005-10-06  Simon Josefsson  <jas@extundo.com>
82998
82999         * tests/test-hmac-md5.c: New file.
83000
83001         * modules/hmac-md5-tests: New file.
83002
83003         * modules/hmac-md5: New file.
83004
83005 2005-10-06  Simon Josefsson  <jas@extundo.com>
83006
83007         * m4/hmac-md5.m4: New file.
83008
83009         * m4/memxor.m4: Require gl_C_RESTRICT.
83010
83011 2005-10-06  Simon Josefsson  <jas@extundo.com>
83012
83013         * lib/memxor.c (memxor): Avoid casts and warnings.
83014
83015 2005-10-06  Simon Josefsson  <jas@extundo.com>
83016
83017         * lib/hmac-md5.c: New file.
83018
83019         * lib/hmac.h: New file.
83020
83021 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83024         promotes to int, not unsigned int, to catch the AIX 5.3
83025         compiler bug.
83026
83027 2005-10-05  Simon Josefsson  <jas@extundo.com>
83028
83029         * modules/memxor: New file.
83030
83031         * modules/iconv (Files): Move config.rpath to havelib, it is used
83032         there.
83033
83034         * modules/havelib (Files): Add config.rpath.
83035
83036 2005-10-05  Simon Josefsson  <jas@extundo.com>
83037
83038         * m4/memxor.m4: New file.
83039
83040 2005-10-05  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/memxor.c (memxor): Fix compiler error.
83043
83044         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83045         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83046
83047         * lib/memxor.h, lib/memxor.c: New files.
83048
83049         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83050         we assume all systems have it, suggested by Jim Meyering
83051         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83052         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83053         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83054         same reasons.
83055
83056 2005-10-05  Simon Josefsson  <jas@extundo.com>
83057
83058         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83059
83060 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83063         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83064         needed, since the source code now assumes these .h files.
83065
83066 2005-10-05  Derek Price  <derek@ximbiot.com>
83067
83068         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83069
83070 2005-10-05  Bruno Haible  <bruno@clisp.org>
83071
83072         * modules/stdint (License): Change to LGPL.
83073
83074 2005-10-04  Simon Josefsson  <jas@extundo.com>
83075
83076         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83077         D. Baushke" <mdb@gnu.org>.
83078
83079 2005-10-04  Bruno Haible  <bruno@clisp.org>
83080
83081         * lib/verify.h (verify_true): Provide alternative definition for C++.
83082
83083 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83084
83085         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83086         (SSIZE_MAX): New macro, if not already defined.
83087         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83088         than 2 GiB.
83089
83090 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83091
83092         Sync from coreutils.
83093         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83094         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83095         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83096         ULLONG_MAX doesn't work with 2.7.2.1.
83097
83098 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83101         From Ben Pfaff.
83102
83103         * modules/exclude (Depends-on): Depend on verify.
83104         * modules/strtoimax (Depends-on): Likewise.
83105         * modules/utimecmp (Depends-on): Likewise.
83106
83107 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * lib/exclude.c: Include verify.h.
83110         (verify): Remove.  All callers changed to use verify.h's version.
83111         * lib/strtoimax.c: Likewise.
83112         * lib/utimecmp.c: Likewis.e
83113
83114         Sync from coreutils.
83115         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83116         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83117         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83118         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83119         bother returning ENOSYS if settimeofday or stime fails; just let
83120         them return whatever errno they want to return.
83121         * lib/utimens.c: Include unistd.h, for dup2.
83122         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83123         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83124
83125 2005-10-02  Jim Meyering  <jim@meyering.net>
83126
83127         Sync from coreutils.
83128         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83129         from glibc-2.2.5 that fails for read-only files.
83130
83131 2005-10-02  Jim Meyering  <jim@meyering.net>
83132
83133         Sync from coreutils.
83134         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83135         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83136         `#if HAVE_CONFIG_H'.
83137         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83138         Remove AT_FDCWD test.
83139         Do not consume the fd unless successful.
83140         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83141         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83142         block, so that we don't even try to compile it if settimeofday is
83143         available.  This works around a compilation failure on OSF1 V5.1,
83144         due to stime requiring a `long int*' while tv_sec is `int'.
83145
83146 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83147
83148         Sync from coreutils.
83149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83150         against `yes', rather than just testing for nonempty.
83151
83152 2005-10-01  Simon Josefsson  <jas@extundo.com>
83153
83154         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83155         and Darwin.
83156
83157         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83158         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83159         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83160         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83161         Check if struct addrinfo is declared.
83162
83163 2005-10-01  Simon Josefsson  <jas@extundo.com>
83164
83165         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83166         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83167         AI_* and EAI_* definitions.  Protect function declarations.
83168
83169 2005-10-01  Jim Meyering  <jim@meyering.net>
83170
83171         Sync from coreutils.
83172
83173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83174         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83175         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83177         in the inet and nsl libraries.  Required on Solaris 5.7.
83178
83179 2005-10-01  Jim Meyering  <jim@meyering.net>
83180
83181         Sync from coreutils.
83182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83183         in the inet and nsl libraries.  Required on Solaris 5.7.
83184
83185 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83186
83187         * lib/getdelim.c (getdelim): Remove unused variables.
83188
83189 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83192         so that the code works even with ancient cpp.  Portability problem
83193         with GCC 2.7.2.1 reported by Thomas M.Ott.
83194
83195 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * modules/regex (Depends-on): Add strcase.
83198
83199         * modules/gethostname (Licence): Change from GPL to LGPL, since
83200         gethostname.c is a trivial implementation of a standard library
83201         function.
83202         * modules/poll (License): Change from GPL to LGPL, since it's
83203         derived from LGPL code.
83204
83205 2005-09-27  Jim Meyering  <jim@meyering.net>
83206
83207         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83208         HAVE_CONFIG_H.
83209
83210         * lib/intprops.h (signed_type_or_expr__): Define.
83211         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83212         for unsigned types.
83213
83214 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83215
83216         * lib/verify.h (verify_expr): Remove, replacing with:
83217         (verify_true): New macro that returns true instead of void.
83218         (verify_type__): Remove.
83219         (verify): Use verify_true rather than verify_type__.
83220
83221 2005-09-26  Bruno Haible  <bruno@clisp.org>
83222
83223         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83224         is necessary.
83225         (lib_SOURCES): Remove mbchar.c.
83226         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83227         (Files): Add m4/mbrtowc.m4.
83228         * modules/mbiter: Likewise.
83229         * modules/mbuiter: Likewise.
83230
83231 2005-09-26  Bruno Haible  <bruno@clisp.org>
83232
83233         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83234         compile mbchar.c if they are not both present.
83235         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83236         * m4/mbiter.m4 (gl_MBITER): Likewise.
83237         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83238         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83239         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83240
83241 2005-09-25  Jim Meyering  <jim@meyering.net>
83242
83243         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83244         also uses socklen_t.
83245
83246 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * lib/utimens.c (ENOSYS): Define if not already defined.
83249         (futimens): Support having a null PATH if the file descriptor
83250         is nonnegative.
83251
83252         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83253         Remove.
83254         (__attribute): Define to empty unless GCC 3.1 or later.
83255         This works around a core dump on OpenBSD 3.4, which has GCC
83256         2.95.3, which dumps core when given __attribute__(()).  It also
83257         simplifies other tests, since we really don't want to bother with
83258         worrying about which ancient version of GCC supported what.
83259         Original problem reported by Yoann Vandoorselaere, with part of
83260         the fix suggested by Derek Price.
83261
83262 2005-09-24  Jim Meyering  <jim@meyering.net>
83263
83264         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83265         so we can once again use a positive bitfield width of 1 -- now we
83266         don't have to explain why we were using a bitfield width of 2.
83267
83268 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83269
83270         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83271         and similarly for the other external symbols.  Problem reported
83272         by James Gallager.
83273
83274         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83275         bug reported by Jim Meyering.
83276
83277         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83279         not needed, since socklen is a prerequisite module.
83280
83281 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83282
83283         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83284         Problem reported by Eric Blake.
83285         (getaddrinfo): Initialize se so that it's not garbage.
83286         Redo internal storage allocation so that it doesn't make unportable
83287         assumptions about alignment.
83288         Fix a memory leak.
83289
83290         * lib/utimens.c (futimens): Use futimesat if available.
83291         Prefer it to futimes since it doesn't have the futimes bug.
83292
83293         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83294         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83295         Instead, declare a function that returns a pointer to an array,
83296         and use verify_type__ to declare the size of the array.
83297         Problem and germ of a solution reported by Bruno Haible.
83298         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83299         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83300
83301 2005-09-23  Jim Meyering  <jim@meyering.net>
83302
83303         Sync from coreutils.
83304         Correct build failure (socklen_t not defined) on at least
83305         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83306         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83307
83308 2005-09-23  Jim Meyering  <jim@meyering.net>
83309
83310         * modules/getaddrinfo (Depends-on): Add socklen.
83311
83312 2005-09-23  Bruno Haible  <bruno@clisp.org>
83313
83314         * tests/test-verify.c: New file.
83315
83316 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         Sync from coreutils.
83319
83320         * modules/argmatch (Depends-on): Add verify.
83321         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83322         unistd-safer.
83323         * modules/save-cwd (Depends-on): Likewise.
83324
83325         * modules/openat (Files): Add lib/openat-die.c.
83326         (Depends-on): Remove error, exitfail.
83327         Add dirname.
83328
83329         * modules/verify: New file.
83330         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83331         with "verify" module.
83332
83333 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83334
83335         Sync from coreutils.
83336
83337         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83338         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83339         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83340         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83341         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83342         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83343         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83344         Don't bother checking for string.h, stdlib.h, unistd.h.
83345         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83346         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83347         module's job.
83348         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83349         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83350
83351         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83352         (gl_GETDATE): Use it.
83353
83354         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83355
83356 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83357
83358         Sync from coreutils.
83359
83360         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83361         stat-time.h.
83362         * lib/argmatch.h: Include verify.h
83363         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83364         (ARGMATCH_ASSERT): Remove; unused.
83365         * lib/canonicalize.c: Assume STDC_HEADERS.
83366         * lib/exclude.c: Include "strcase.h".
83367         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83368         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83369         and stdio-safer.h.
83370         (getusershell): Call fopen, not fopen_safer.
83371         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83372         Do not include unistd-safer.h.
83373         (save_cwd): Don't call fd_safer; no longer needed
83374         now that we include fcntl--.h.
83375
83376         * lib/getdate.y (relative_time): New type.
83377         (RELATIVE_TIME_0): New constant.
83378         (parser_control): Use relative_time instead of doing it ourselves.
83379         (%union): Add new relative_time rel member.
83380         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83381         Now typeless.
83382         (relunit, relunit_snumber): Now of type rel.
83383         (zone, rel, relunit, get_date): Adjust to above changes.
83384
83385         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83386         Do not include unistd-safer.h.
83387         (getloadavg): Don't call fd_safer; no longer needed
83388         now that we include fcntl--.h.
83389
83390         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83391         (make_dir_parents): Treat ENOSYS like EEXIST.
83392
83393         Improve quality of diagnostics on restore_cwd failure.
83394         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83395         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83396         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83397         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83398         each time through the loop.  Do not diagnose restore_cwd failure;
83399         that is the caller's job (and perhaps the caller does not care).
83400
83401         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83402         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83403         If the file already exists but is not a directory, don't bother
83404         to try to make its parents.
83405         Close potential file descriptor leak if we can't chdir("/") (!).
83406         Don't always return true if chdir($PWD) fails; return true only
83407         if the requested action was done successfully (except for the
83408         chdir($PWD)).
83409         Don't log final directory unless we actually made it.
83410         Refactor to avoid duplicate code to fix up permissions.
83411         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83412
83413         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83414         to make it a bit faster and (I hope) clearer.
83415         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83416         Fix bug in formats like %2N.
83417
83418         * lib/verify.h: New file.
83419
83420 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83421
83422         Sync from coreutils.
83423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83424
83425 2005-09-22  Jim Meyering  <jim@meyering.net>
83426
83427         Sync from coreutils.
83428
83429         * m4/lstat.m4 (gl_FUNC_LSTAT):
83430         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83431         Remove obsolete comment.
83432         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83433         * m4/xstrtod.m4: Likewise.
83434
83435         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83436
83437 2005-09-22  Jim Meyering  <jim@meyering.net>
83438
83439         Sync from coreutils.
83440
83441         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83442
83443         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83444         the .tm_year member, since otherwise gcc-4.0 would now warn about
83445         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83446
83447         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83448         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83449
83450         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83451         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83452         when run in a time zone for which daylight savings time is in effect
83453         for the starting date.
83454
83455         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83456         stop us from restricting permissions of just-created absolute-named
83457         directories.
83458         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83459         to restore initial working directory.
83460         * lib/mkdir-p.c (make_dir_parents): New parameter:
83461         different_working_dir, to tell caller if/when we change the working
83462         directory and are unable to return to the initial one.
83463         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83464         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83465         `return false'.  This fixes a bug introduced on 2004-07-30.
83466
83467         * lib/openat.c (fdopendir): Be sure to close the supplied
83468         file descriptor before returning.  This makes our replacement
83469         implementation a little closer to Solaris's, where fdopendir
83470         ties the file descriptor to the returned DIR* pointer.
83471         * lib/openat.c (unlinkat): New function.
83472         * lib/openat.h (unlinkat): Add prototype.
83473         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83474         (openat_restore_fail): Rename from openat_restore_die.
83475         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83476
83477         Provide an alternative to exiting immediately upon save_cwd or
83478         restore_cwd failure.  Now, an application can arrange e.g.,
83479         to perform a longjump in that case.
83480         * lib/openat.c: Include dirname.h.
83481         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83482         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83483         and openat_restore_die rather than calling error directly.
83484         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83485
83486         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83487         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83488         define.
83489
83490         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83491         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83492                             int utc, int nanoseconds);
83493         Background:
83494         date should not have to allocate a megabyte of virtual memory to
83495         handle a format argument like +%1048575T.  When implemented with
83496         strftime, it must allocate such a buffer, use strftime to fill it
83497         in, print it, then free it.
83498         With fprintftime, it simply prints everything and exits.
83499         With no need for memory allocation, that's one fewer way to fail.
83500         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83501         optional field width, not before, so we accept %9:z, not %:9z.
83502         (my_strftime): Be sure to use L_('x') for literals.
83503
83504         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83505         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83506         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83507         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83508         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83509         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83510         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83511         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83512         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83513         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83514         * lib/xgethostname.c, lib/xreadlink.c:
83515         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83516
83517         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83518         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83519         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83520         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83521         and don't include <sys/file.h>).
83522
83523 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83524
83525         Sync from coreutils.
83526
83527         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83528         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83529         [!LDAV_DONE]: Avoid unused variable warning.
83530
83531 2005-09-21  Bruno Haible  <bruno@clisp.org>
83532
83533         * lib/unicodeio.h (unicode_to_mb): New declaration.
83534
83535 2005-09-20  Derek Price  <derek@ximbiot.com>
83536
83537         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83538         getaddrinfo.h.
83539
83540 2005-09-20  Bruno Haible  <bruno@clisp.org>
83541
83542         * gnulib-tool: Remove trailing slashes from the values specified for
83543         --source-base, --m4-base, --tests-base, --aux-dir.
83544         Suggested by Simon Josefsson <jas@extundo.com>.
83545
83546 2005-09-20  Bruno Haible  <bruno@clisp.org>
83547
83548         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83549         func_modules_to_filelist, func_import, func_create_testdir): Make all
83550         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83551         change when gnulib-tool is invoked in a different locale.
83552
83553 2005-09-19  Simon Josefsson  <jas@extundo.com>
83554
83555         * m4/socklen.m4: Fix typo.
83556
83557 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83558
83559         Use a consistent style for including <config.h>.
83560         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83561         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83562         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83563         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83564         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83565         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83566         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83567         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83568         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83569         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83570         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83571         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83572         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83573         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83574         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83575         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83576         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83577         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83578         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83579         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83580         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83581         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83582         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83583         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83584         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83585         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83586         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83587         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83588         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83589         lib/xstrtoumax.c, lib/yesno.c:
83590         Standardize inclusion of config.h.
83591         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83592         lib/inttostr.h:  Removed inclusion of config.h from header files.
83593         * lib/inttostr.c:  Adjusted in-tree users.
83594         * lib/timespec.h: Remove superfluous warning to include config.h.
83595         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83596         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83597         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83598         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83599         config.h with HAVE_CONFIG_H.
83600
83601 2005-09-19  Jim Meyering  <jim@meyering.net>
83602
83603         * modules/pathmax (License): Change to LGPL.
83604
83605 2005-09-19  Derek Price  <derek@ximbiot.com>
83606
83607         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83608
83609 2005-09-19  Bruno Haible  <bruno@clisp.org>
83610
83611         * gnulib-tool (import): Provide default for --tests-base.
83612
83613 2005-09-19  Bruno Haible  <bruno@clisp.org>
83614
83615         * doc/quote.texi: New file, extracted from gnulib.texi.
83616         * doc/ctime.texi: New file, extracted from gnulib.texi.
83617         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83618         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83619         * doc/gnulib.texi: Include them.
83620
83621 2005-09-18  Bruno Haible  <bruno@clisp.org>
83622
83623         Portability fix.
83624         * gnulib-tool (func_readlink): New function.
83625         (func_ln_if_changed): Use it.
83626
83627 2005-09-18  Bruno Haible  <bruno@clisp.org>
83628
83629         * gnulib-tool: Support --with-tests also with --import.
83630         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83631         (func_import): Use variables $testsbase and $inctests. Emit a
83632         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83633         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83634         SUBDIRS += $testsdir.
83635         (func_create_testdir): Update.
83636
83637 2005-09-18  Bruno Haible  <bruno@clisp.org>
83638
83639         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83640         instead of $dry_run.
83641         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83642         (func_ln_if_changed): Don't handle dry-run here.
83643         (func_import): In dry-run mode, detect more precisely which actions
83644         would be performed, and don't use "...ing" verbs.
83645
83646 2005-09-18  Bruno Haible  <bruno@clisp.org>
83647
83648         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83649         (func_import): Use join on two temporary files instead of three nested
83650         loops, in order to determine which files are new or old.
83651
83652 2005-09-18  Bruno Haible  <bruno@clisp.org>
83653
83654         * gnulib-tool (func_import): Comment out code that spits out the
83655         new files with --dry-run.
83656
83657 2005-09-18  Bruno Haible  <bruno@clisp.org>
83658
83659         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83660
83661 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         * lib/stat-time.h: New file.
83664         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83665         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83666         in a different way.
83667         (timespec_cmp): New function.
83668         * lib/utimecmp.c: Include stat-time.h.
83669         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83670         members exist, not on the obsolescent ST_MTIM_NSEC.
83671         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83672
83673 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83674
83675         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83676
83677 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83678
83679         * MODULES.html.sh (File system functions): Add stat-time.
83680         * modules/stat-time: New file.
83681         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83682         is now done in a different way, by the stat-time module.
83683         * modules/utimecmp (Depends-on): Add stat-time.
83684
83685 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83686
83687         * m4/st_mtim.m4: Remove.  Superseded by...
83688         * m4/stat-time.m4: New file.
83689         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83690         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83691
83692 2005-09-15  Derek Price  <derek@ximbiot.com>
83693
83694         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83695
83696 2005-09-15  Derek Price  <derek@ximbiot.com>
83697
83698         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83699         * lib/regex_internal.c: Ditto, using this...
83700         (__GNUC_PREREQ): ...new macro.
83701         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83702         using...
83703         (__GNUC_PREREQ): ...this new macro.
83704
83705         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83706
83707 2005-09-15  Derek Price  <derek@ximbiot.com>
83708             Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83711         changes, consolidating in...
83712         * lib/regex_internal.h: ...this file.
83713
83714 2005-09-13  Jim Meyering  <jim@meyering.net>
83715
83716         * lib/canon-host.c: Filter through gnu indent and reword comments
83717         slightly.
83718         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83719
83720 2005-09-13  Derek Price  <derek@ximbiot.com>
83721
83722         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83723         failure.
83724         Reported by Jim Meyering  <jim@meyering.net>.
83725
83726 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83727
83728         * lib/base64.c: Typo.
83729         (base64_encode): Put b64str in initialized data section.
83730
83731 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         Merge glibc and coreutils changes into gnulib, plus a few
83734         extra fixes.
83735         * lib/md5.c: Use #error rather than a string.
83736         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83737         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83738         (__attribute__): Define to empty for non recent-GCC.
83739         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83740         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83741         Renamed from their non-__ counterparts, with new macros replacing
83742         them if not _LIBC.  Add __THROW attribute.
83743         (rol): Remove.
83744         (struct md5_ctx): Align buffer if using GCC.
83745         * lib/sha1.h (struct sha1_ctx): Likewise.
83746         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83747         The old name was backwards.
83748         (NOTSWAP): Remove; not used.
83749         (rol): New macro, moved here from md5.h.
83750         (sha1_process_block): Remove a FIXME that doesn't make sense.
83751
83752 2005-09-12  Derek Price  <derek@ximbiot.com>
83753
83754         Return usable errors from canon-host.
83755         * lib/canon-host.h: New file.
83756         * lib/canon-host.c (canon_host): Wrap...
83757         (canon_host_r): ...this new function, which now relies exclusively on
83758         getaddrinfo.
83759         (ch_strerror): New function.
83760         (last_cherror): New global.
83761         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83762         interface.
83763         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83764         void *.
83765         (freeaddrinfo): Free ai->ai_canonname when set.
83766
83767 2005-09-12  Derek Price  <derek@ximbiot.com>
83768
83769         Make canon-host require getaddrinfo.
83770         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83771         AC_LIBSOURCE canon-host.h.  Call...
83772         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83773         gl_GETADDRINFO.
83774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83775
83776 2005-09-12  Derek Price  <derek@ximbiot.com>
83777
83778         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83779         LGPL.
83780         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83781
83782 2005-09-12  Derek Price  <derek@ximbiot.com>
83783
83784         * lib/gai_strerror.c: Include config.h when available.  Include
83785         getaddrinfo.h before other headers to test interface.
83786         Reported by Larry Jones <lawrence.jones@ugs.com>.
83787
83788 2005-09-12  Derek Price  <derek@ximbiot.com>
83789             Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * modules/glob (Files): Add glob-libc.h.
83792
83793 2005-09-12  Derek Price  <derek@ximbiot.com>
83794             Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83797         glob_.h, glob-libc.h.
83798         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83799
83800 2005-09-12  Derek Price  <derek@ximbiot.com>
83801             Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83804         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83805         protecting things that should be done only in gnulib contexts.
83806         * lib/glob_.h: New file, containing only the glob things needed for
83807         gnulib.
83808         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83809         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83810         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83811         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83812         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83813         and to respect the namespace rules better.
83814
83815 2005-09-08  Simon Josefsson  <jas@extundo.com>
83816
83817         * modules/socklen: New file.
83818
83819 2005-09-08  Simon Josefsson  <jas@extundo.com>
83820
83821         * m4/socklen.m4: New file.
83822
83823 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * modules/utimens (Files): Add m4/utimbuf.m4, since
83826         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83827         Reported by Sergey Poznyakoff.
83828
83829 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83830
83831         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83832         definitions, since that's the preferred style in glibc.
83833         Fix a minor spacing issue, and update copyright notice to match
83834         glibc's.
83835
83836 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83839
83840 2005-09-06  Simon Josefsson  <jas@extundo.com>
83841
83842         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83843         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83844
83845 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83848         warning.
83849
83850 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * config/srclist.txt: Add glibc bug 1302.
83853
83854 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         Change bitset word type from unsigned int to unsigned long int,
83857         as this has better performance on typical 64-bit hosts.
83858         Port bitset code to hosts with unusual word sizes.
83859         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83860         (build_collating_symbol):
83861         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83862         argument is a bitset.  This is merely a style issue, but it makes
83863         it clearer that an entire array is expected.
83864         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83865         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83866         Port to the case where bitset_word is not the same as unsigned int.
83867         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83868         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83869         Likewise.
83870         * lib/regexec.c (check_dst_limits_calc_pos_1,
83871         check_subexp_matching_top):
83872         (build_trtable, group_nodes_into_DFAstates):
83873         Likewise.
83874         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83875         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83876         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83877         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83878         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83879         * lib/regcomp.c (optimize_subexps, lower_subexp):
83880         Work even if bitset_word has holes in its bitwise representation.
83881         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83882         * lib/regexec.c (check_dst_limits_calc_pos_1,
83883         check_subexp_matching_top):
83884         Likewise.
83885         * lib/regex_internal.c (re_string_reconstruct):
83886         Don't assume UCHAR_MAX == 255.
83887         * lib/regex_internal.h (bitset_set_all): Likewise.
83888         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83889         All uses changed.
83890         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83891         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83892         All uses changed.
83893         (BITSET_WORD_MAX): New macro.
83894         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83895         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83896         (bitset_empty, bitset_copy):
83897         Prefer sizeof (bitset) to multiplying it out ourselves.
83898         (bitset_not_merge): Remove; unused.
83899         (bitset_contain): Return bool, not unsigned int with one bit on.
83900         All callers changed.
83901         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83902         alignment than re_node_set; do this by defining a new internal
83903         type struct dests_alloc and using it to allocate memory.
83904
83905 2005-09-05  Bruno Haible  <bruno@clisp.org>
83906
83907         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83908         links.
83909
83910 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83911
83912         * modules/size_max (Makefile.am): Add size_max.h
83913
83914 2005-09-04  Derek Price  <derek@ximbiot.com>
83915
83916         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83917
83918 2005-09-03  Simon Josefsson  <jas@extundo.com>
83919
83920         * gnulib-tool: Fix typo.
83921
83922 2005-09-03  Simon Josefsson  <jas@extundo.com>
83923
83924         * config/srclist.txt: Add glibc bug 1293.
83925
83926 2005-09-03  Derek Price  <derek@ximbiot.com>
83927
83928         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83929         From Larry Jones <lawrence.jones@ugs.com>.
83930
83931 2005-09-02  Simon Josefsson  <jas@extundo.com>
83932
83933         * modules/socklen: New file.
83934
83935 2005-09-02  Simon Josefsson  <jas@extundo.com>
83936
83937         * modules/havelib: New module.
83938
83939         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83940         Use havelib.
83941
83942 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83943
83944         Check for arithmetic overflow when calculating sizes, to prevent
83945         some buffer-overflow issues.  These patches are conservative, in the
83946         sense that when I couldn't determine whether an overflow was possible,
83947         I inserted a run-time check.
83948         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83949         macros.
83950         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83951         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83952         (re_xnrealloc, re_x2nrealloc): New inline functions.
83953         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83954         parse_bracket_exp):
83955         (build_equiv_class, build_charclass): Check for arithmetic overflow
83956         in size expression calculations.
83957         * lib/regex_internal.c (re_string_realloc_buffers):
83958         (build_wcs_upper_buffer, re_node_set_add_intersect):
83959         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83960         (re_dfa_add_node, register_state): Likewise.
83961         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83962         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83963         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83964         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83965
83966 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83967
83968         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83969         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83970
83971 2005-09-02  Bruno Haible  <bruno@clisp.org>
83972
83973         Support for lib vs. lib64 distinction on biarch platforms.
83974         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83975         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83977
83978 2005-09-02  Bruno Haible  <bruno@clisp.org>
83979
83980         * gnulib-tool (import): In the other first-use case, provide defaults
83981         as well.
83982
83983 2005-09-02  Bruno Haible  <bruno@clisp.org>
83984
83985         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83986         patches not yet found in the latest gettext release.
83987
83988 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83991         to avoid a collision with bits/local_lim.h in glibc.
83992         All uses changed.  Problem reported by Dmitry V. Levin in
83993         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83994
83995         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83996         bugs in int versus size_t comparisons.
83997         (re_string_context_at): Fix bug where the code assumed that
83998         Idx is signed.
83999
84000         Use bool where appropriate.
84001         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84002         All callers changed.
84003         (calc_eclosure_iter): Likewise, for ROOT arg.
84004         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84005         (build_charclass_op): Likewise, for NON_MATCH arg.
84006         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84007         (re_string_construct_common): Likewise, for ICASE arg.
84008         * lib/regexec.c (re_search_2_stub, re_search_stub):
84009         Likewise, for RET_LEN arg.
84010         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84011         (set_regs): Likewise, for FL_BACKTRACK arg.
84012         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84013         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84014         (calc_eclosure_iter, parse_bracket_exp):
84015         Use bool for internal variables that are booleans.
84016         * lib/regexec.c (re_search_internal, check_matching,
84017         proceed_next_node):
84018         (set_regs, build_sifted_states, sift_states_bkref):
84019         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84020         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84021         (find_collation_sequence_value):
84022         Likewise.
84023         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84024         (re_node_set_compare):
84025         Return bool, not int. All callers changed.
84026         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84027         (build_trtable, check_node_accept): Likewise.
84028         * lib/regex_internal.h: Include stdbool.h.
84029
84030         Fix bugs uncovered when converting to bool.
84031         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84032         failure instead of charging ahead blindly.
84033         * lib/regex_internal.c (register_state): Likewise.
84034         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84035         for freeing internal storage.
84036         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84037         bitset pieces used as boolean, to avoid undefined behavior
84038         on hosts that do int overflow checking.
84039
84040 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * config/srclist.txt: Add glibc bugs 1285-1287.
84043
84044 2005-09-01  Jim Meyering  <jim@meyering.net>
84045
84046         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84047         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84048         Require gl_STAT_MACROS, too.
84049
84050 2005-09-01  Bruno Haible  <bruno@clisp.org>
84051
84052         * gnulib-tool (import): In the first-use case, provide defaults.
84053
84054 2005-09-01  Bruno Haible  <bruno@clisp.org>
84055
84056         * gnulib-tool (func_import): Remove the .tmp files.
84057
84058 2005-09-01  Bruno Haible  <bruno@clisp.org>
84059
84060         * gnulib-tool (func_import): Fix handling of symbolic links.
84061
84062 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84063
84064         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84065         old glibc regex code mishandles strings longer than 2**31 bytes.
84066         This patch fixes this when the regex code is used in gnulib
84067         (i.e., outside glibc).
84068
84069         This patch should not affect the use of the regex code inside
84070         glibc.  No doubt this problem also needs to be handled for glibc
84071         as well, but the result will be an incompatible change to the
84072         glibc ABI, and the old ABI will have to be supported too.  That
84073         can be the the subject for another patch.
84074
84075         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84076         governing whether the rest of this patch is active.  By default,
84077         the macro is disabled and the patch has no effect.
84078         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84079         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84080         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84081         (re_match_2, re_set_registers): Use the new types.
84082         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84083         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84084         New macros.
84085         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84086         (re_string_context_at, bin_tree_t, re_dfastate_t):
84087         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84088         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84089         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84090         (re_string_char_size_at, re_string_wchar_at):
84091         (re_string_elem_size_at):
84092         Use the new types and macros to port to 64-bit hosts.
84093         Use unsigned types for internal values, so that the code
84094         mostly works even for arrays larger than SSIZE_MAX.
84095         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84096         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84097         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84098         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84099         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84100         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84101         (calc_inveclosure, parse_dup_op, build_range_exp):
84102         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84103         (fetch_number, create_token_tree, mark_opt_subexp):
84104         Likewise.
84105         * lib/regex_internal.c (re_string_construct_common,
84106         create_ci_newstate):
84107         (create_cd_newstate, re_string_allocate, re_string_construct):
84108         (re_string_realloc_buffers, build_wcs_upper_buffer):
84109         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84110         (re_string_reconstruct, re_string_peek_byte_case):
84111         (re_string_fetch_byte_case, re_string_context_at):
84112         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84113         (re_node_set_init_copy, re_node_set_add_intersect):
84114         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84115         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84116         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84117         (re_acquire_state, re_acquire_state_context, register_state):
84118         Likewise.
84119         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84120         search_cur_bkref_entry):
84121         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84122         (re_search_internal, re_search_2_stub, re_search_stub)
84123         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84124         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84125         (update_cur_sifted_state, check_dst_limits):
84126         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84127         (check_subexp_limits, sift_states_bkref, merge_state_array):
84128         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84129         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84130         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84131         (expand_bkref_cache, check_node_accept_bytes):
84132         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84133         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84134         (acquire_init_state_context, check_halt_node_context):
84135         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84136         (sift_states_backward, clean_state_log_if_needed):
84137         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84138         (find_recover_state, transit_state_sb, transit_state_mb):
84139         (transit_state_bkref, build_trtable, match_ctx_clean):
84140         Likewise.
84141         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84142         to work around an assumption that REG_MISSING is negative.
84143
84144         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84145         (seek_collating_symbol_entry) [defined _LIBC]:
84146         (lookup_collation_sequence_value) [defined _LIBC]:
84147         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84148         Use prototypes rather than old-style function definitions.
84149         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84150         (transit_state_sb) [0]:
84151         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84152
84153         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84154         rm_eo.
84155
84156         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84157         (optimize_subexps, lower_subexp):
84158         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84159         since the signed shift might overflow.  Use 1u<<31 instead.
84160         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84161         Likewise.
84162         * lib/regexec.c (check_dst_limits_calc_pos_1,
84163         check_subexp_matching_top): Likewise.
84164
84165         * lib/regcomp.c (optimize_subexps, lower_subexp):
84166         Use CHAR_BIT rather than 8, for clarity.
84167         * lib/regexec.c (check_dst_limits_calc_pos_1):
84168         (check_subexp_matching_top): Likewise.
84169         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84170         have to worry about portability issues when shifting it left.
84171         Remove no-longer-needed test for table_size > 0.
84172         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84173         in a word, as the resulting behavior is undefined.
84174         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84175         in one case, a <= should have been an <, and in another case the
84176         whole test was missing.
84177         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84178         the standard name CHAR_BIT.
84179         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84180         this is not true on one's complement and signed-magnitude hosts.
84181
84182         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84183         next_last_offset.
84184         (struct re_dfa_t): Remove unused member states_alloc.
84185         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84186
84187 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84190         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84191         and large-file glibc and in 32-bit large-file Solaris.
84192
84193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84194
84195         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84196         lengths fit in regoff_t; this isn't true if regoff_t is the same
84197         width as size_t.
84198         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84199         (= START + RANGE) instead of RANGE.  This avoids overflow
84200         problems when regoff_t is the same width as size_t.
84201         All callers changed.
84202         (re_search_2_stub): Check for overflow when adding the
84203         sizes of the two strings.
84204         (re_search_stub): Check for overflow when adding START
84205         to RANGE; if it occurs, substitute the extreme value.
84206
84207 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84208
84209         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84210
84211 2005-08-31  Jim Meyering  <jim@meyering.net>
84212
84213         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84214         a pointer-to-const.
84215         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84216         (register_state): Likewise.
84217         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84218         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84219         (group_nodes_into_DFAstates): Likewise.
84220
84221 2005-08-31  Jim Meyering  <jim@meyering.net>
84222
84223         * check-module: Add a FIXME comment.
84224
84225 2005-08-31  Eric Blake  <ebb9@byu.net>
84226
84227         * modules/unistd-safer (Files): Add unistd--.h.
84228         * modules/stdio-safer (Files): Add stdio--.h.
84229
84230 2005-08-31  Derek Price  <derek@ximbiot.com>
84231
84232         * lib/getdelim.c (getdelim): Return EOF on EOF.
84233         Reported by Larry Jones <lawrence.jones@ugs.com>.
84234
84235 2005-08-31  Bruno Haible  <bruno@clisp.org>
84236
84237         Avoid unnecessary diffs in the generated lib/Makefile.am.
84238         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84239         the generated files.
84240         (func_import): Don't set cmd.
84241
84242 2005-08-31  Bruno Haible  <bruno@clisp.org>
84243
84244         * lib/strstr.c: Include <stddef.h>, for NULL.
84245         * lib/strcasestr.c: Likewise.
84246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84247
84248 2005-08-31  Bruno Haible  <bruno@clisp.org>
84249
84250         * gnulib-tool: New option --macro-prefix.
84251         (func_import): Use macro_prefix.
84252         (import): Handle option --macro-prefix.
84253
84254 2005-08-31  Bruno Haible  <bruno@clisp.org>
84255
84256         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84257         Also use new variables cached_lgpl, cached_libtool.
84258
84259 2005-08-31  Bruno Haible  <bruno@clisp.org>
84260
84261         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84262         always instantiating them.
84263
84264 2005-08-31  Bruno Haible  <bruno@clisp.org>
84265
84266         * gnulib-tool (func_import): Read the previous cached settings
84267         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84268         earlier added by gnulib but are now dropped. Warn when a gnulib file
84269         overwrites a non-gnulib file.
84270
84271 2005-08-31  Bruno Haible  <bruno@clisp.org>
84272
84273         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84274         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84275         projects that don't keep autogenerated files in CVS. Put into
84276         actioncmd only the specified modules, not the transitive closure.
84277
84278 2005-08-31  Bruno Haible  <bruno@clisp.org>
84279
84280         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84281         Create directories that shall be filled.
84282         (import): Don't look for gl_* macros in configure.ac. Recurse across
84283         all directories containing a gnulib-cache.m4 files, if meaningful.
84284
84285 2005-08-31  Bruno Haible  <bruno@clisp.org>
84286
84287         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84288         (import): Set seen_libtool when we see gl_LIBTOOL.
84289
84290 2005-08-31  Bruno Haible  <bruno@clisp.org>
84291
84292         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84293         declaration macro definitions from generated gnulib.m4.
84294
84295 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84296
84297         * lib/iconvme.h: Add prototype for iconv_alloc.
84298
84299 2005-08-29  Simon Josefsson  <jas@extundo.com>
84300
84301         * lib/iconvme.c: Fix errno.
84302
84303 2005-08-29  Bruno Haible  <bruno@clisp.org>
84304
84305         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84306         that it works when the directory contains spaces.
84307
84308 2005-08-29  Bruno Haible  <bruno@clisp.org>
84309
84310         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84311
84312 2005-08-29  Bruno Haible  <bruno@clisp.org>
84313
84314         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84315         Emit more advice.
84316
84317 2005-08-29  Bruno Haible  <bruno@clisp.org>
84318         and Stepan Kasal  <kasal@ucw.cz>
84319
84320         * check-module: If more parameters are given, check each of them
84321         separately; add more exceptions, as noted by Jim Meyering.
84322         (check_module): New procedure.
84323         (%exempt_header): Now contains all exceptions.
84324
84325 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84326
84327         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84328
84329 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84330
84331         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84332
84333 2005-08-28  Bruno Haible  <bruno@clisp.org>
84334
84335         * m4/gnulib-tool.m4: New file.
84336
84337 2005-08-27  Jim Meyering  <jim@meyering.net>
84338
84339         * modules/unistd-safer (Files): Add pipe-safer.c.
84340         * modules/fcntl-safer (Files): Add creat-safer.c.
84341
84342 2005-08-27  Jim Meyering  <jim@meyering.net>
84343
84344         * m4/stdlib-safer.m4: New file.  From coreutils.
84345         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84346         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84347         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84348         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84349         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84350
84351 2005-08-27  Jim Meyering  <jim@meyering.net>
84352
84353         * lib/fopen-safer.c: Merge minor changes from coreutils.
84354         * lib/dup-safer.c: Likewise.
84355         * lib/fd-safer.c: Likewise.
84356
84357         Merge from coreutils.
84358         * lib/stdio--.h: New file.
84359         * lib/stdlib--.h: New file.
84360         * lib/mkstemp-safer.c: New file.
84361
84362         GNU tar needs these.
84363         * lib/pipe-safer.c: New file.
84364         * lib/creat-safer.c: New file.
84365         * lib/fcntl--.h (creat): Define to creat_safer.
84366         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84367         * lib/unistd--.h (pipe): Define to pipe_safer.
84368         * lib/unistd-safer.h: Declare pipe_safer.
84369
84370 2005-08-26  Simon Josefsson  <jas@extundo.com>
84371
84372         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84373         Haible <bruno@clisp.org>.
84374
84375 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         * lib/regex_internal.h: Remove all references to
84378         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84379         or better.
84380         (bitset_not, bitset_merge, bitset_not_merge):
84381         (bitset_mask, re_string_allocate, re_string_construct):
84382         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84383         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84384         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84385         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84386         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84387         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84388         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84389         (re_acquire_state_context):
84390         Remove unnecessary forward decls.
84391         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84392         Put __attribute at function definition,
84393         now that the function decl has been removed.
84394         * lib/regex_internal.c (re_string_peek_byte_case):
84395         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84396         Likewise.
84397
84398 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84399
84400         * m4/regex.m4: Add AC_PREREQ(2.50).
84401         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84402
84403 2005-08-25  Simon Josefsson  <jas@extundo.com>
84404
84405         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84406         __fsetlocking.
84407
84408 2005-08-25  Simon Josefsson  <jas@extundo.com>
84409
84410         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84411         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84412         GLIBC specific code.
84413
84414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         Make regex safe for g++.  This fixes one real bug (an "err"
84417         that should have been "*err").  g++ problem reported by
84418         Sam Steingold.
84419         * lib/regex_internal.h (re_calloc): New macro, consistent with
84420         re_malloc etc.  All callers of calloc changed to use re_calloc.
84421         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84422         not int.  All callers changed.
84423         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84424         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84425         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84426         (find_recover_state): Change "err" to "*err"; this fixes what
84427         appears to be a real bug.
84428         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84429         versus int.
84430
84431 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         * modules/regex (Depends-on): Add malloc, since the code
84434         assumes that !malloc(0) means failure.
84435
84436 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84439
84440         alloca modernization/simplification for regex.
84441         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84442         needs to be at the start of the file, and can be moved into
84443         regex_internal.h and simplified.
84444         * lib/regex_internal.h: Include <alloca.h>.
84445         (__libc_use_alloca) [!defined _LIBC]: New macro.
84446         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84447         now works outside glibc.
84448
84449 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * config/srclist.txt: Add glibc bugs 1241, 1245.
84452
84453 2005-08-25  Jim Meyering  <jim@meyering.net>
84454
84455         * lib/open-safer.c: Include <config.h>.
84456         Otherwise, we'd lose LARGEFILE support in any file using
84457         e.g. "fcntl--.h"
84458
84459 2005-08-25  Bruno Haible  <bruno@clisp.org>
84460
84461         * m4/minmax.m4: Require autoconf 2.52.
84462         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84463         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84464         alternatives of translit over the alphabet.
84465         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84466
84467 2005-08-24  Simon Josefsson  <jas@extundo.com>
84468
84469         * tests/test-getpass.c: New file.
84470
84471 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84472
84473         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84474         for GNU regex features.
84475
84476 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84479         * lib/regex.h (regerror): Likewise.
84480
84481         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84482         requires this.  (The code never needed it.)
84483
84484         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84485         All uses of recently-renamed identifiers changed to use the new,
84486         POSIX-compliant names.  The code will build and run just fine
84487         without these changes, but it's better to eat our own dog food
84488         and use the standard-conforming names.
84489
84490         * lib/regex.h: Fix a multitude of POSIX name space violations.
84491         These changes have an effect only for programs that define
84492         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84493         do not change anything for programs compiled in the normal way.
84494         Also, there is no effect on the ABI.
84495
84496         (_REGEX_SOURCE): New macro.
84497         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84498         defined and _GNU_SOURCE is not; this fixes a name space violation.
84499
84500         Rename the following macros to obey POSIX requirements.
84501         The old names are still visible as macros if _REGEX_SOURCE is defined.
84502         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84503         RE_BACKSLASH_ESCAPE_IN_LISTS.
84504         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84505         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84506         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84507         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84508         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84509         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84510         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84511         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84512         (REG_INTERVALS): renamed from RE_INTERVALS.
84513         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84514         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84515         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84516         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84517         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84518         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84519         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84520         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84521         RE_UNMATCHED_RIGHT_PAREN_ORD.
84522         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84523         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84524         (REG_DEBUG): renamed from RE_DEBUG.
84525         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84526         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84527         unusual, since we can't clash with the POSIX REG_ICASE.
84528         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84529         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84530         (REG_NO_SUB): renamed from RE_NO_SUB.
84531         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84532         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84533         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84534         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84535         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84536         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84537         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84538         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84539         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84540         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84541         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84542         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84543         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84544         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84545         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84546         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84547         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84548         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84549         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84550         (REG_FIXED): Renamed from REGS_FIXED.
84551         (REG_NREGS): Renamed from RE_NREGS.
84552
84553         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84554         of other REG_* macros, since POSIX says the user is allowed to
84555         #undef these macros selectively.
84556
84557         (reg_errcode_t): Update comment stating what other tables need
84558         to be consistent.
84559
84560         Rename the following enum values to obey POSIX requirements.
84561         The old names are still visible as macros.
84562         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84563         is not defined, since GNU is supposed to be a superset of POSIX as
84564         much as possible, and since we want reg_errcode_t to be a signed
84565         type for implementation consistency.
84566         (_REG_NOERROR): Renamed from REG_NOERROR.
84567         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84568         (_REG_BADPAT): Renamed from REG_BADPAT.
84569         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84570         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84571         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84572         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84573         (_REG_EBRACK): Renamed from REG_EBRACK.
84574         (_REG_EPAREN): Renamed from REG_EPAREN.
84575         (_REG_EBRACE): Renamed from REG_EBRACE.
84576         (_REG_BADBR): Renamed from REG_BADBR.
84577         (_REG_ERANGE): Renamed from REG_ERANGE.
84578         (_REG_ESPACE): Renamed from REG_ESPACE.
84579         (_REG_BADRPT): Renamed from REG_BADRPT.
84580         (_REG_EEND): Renamed from REG_EEND.
84581         (_REG_ESIZE): Renamed from REG_ESIZE.
84582         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84583         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84584         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84585         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84586         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84587
84588         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84589         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84590         changed.  But support the old name if the new one is not defined
84591         and if _REGEX_SOURCE.
84592
84593         Change the following member names in struct re_pattern_buffer.
84594         The old names are still supported if !_REGEX_SOURCE.
84595         The new names are always supported, regardless of _REGEX_SOURCE.
84596         (re_buffer): Renamed from buffer.
84597         (re_allocated): Renamed from allocated.
84598         (re_used): Renamed from used.
84599         (re_syntax): Renamed from syntax.
84600         (re_fastmap): Renamed from fastmap.
84601         (re_translate): Renamed from translate.
84602         (re_can_be_null): Renamed from can_be_null.
84603         (re_regs_allocated): Renamed from regs_allocated.
84604         (re_fastmap_accurate): Renamed from fastmap_accurate.
84605         (re_no_sub): Renamed from no_sub.
84606         (re_not_bol): Renamed from not_bol.
84607         (re_not_eol): Renamed from not_eol.
84608         (re_newline_anchor): Renamed from newline_anchor.
84609
84610         Change the following member names in struct re_registers.
84611         The old names are still supported if !_REGEX_SOURCE.
84612         The new names are always supported, regardless of _REGEX_SOURCE.
84613         (rm_num_regs): Renamed from num_regs.
84614         (rm_start): Renamed from start.
84615         (rm_end): Renamed from end.
84616
84617         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84618         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84619         Prepend __ to parameter names.
84620
84621         Undo yesterday's changes.
84622
84623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84626         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84627         lib/regex.c.
84628
84629 2005-08-24  Jim Meyering  <jim@meyering.net>
84630
84631         Sync from coreutils.
84632         * m4/fcntl-safer.m4: New file.
84633
84634         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84635         and object files for this module.
84636
84637 2005-08-24  Jim Meyering  <jim@meyering.net>
84638
84639         Sync from coreutils.
84640         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84641
84642 2005-08-24  Jim Meyering  <jim@meyering.net>
84643
84644         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84645         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84646
84647 2005-08-24  Jim Meyering  <jim@meyering.net>
84648
84649         * modules/fcntl-safer: New module.
84650         * modules/fts (Depends-on): Add fcntl-safer.
84651         * MODULES.html.sh (File descriptor based Input/Output):
84652         Add fcntl-safer.
84653
84654 2005-08-24  Bruno Haible  <bruno@clisp.org>
84655
84656         Support for unit test modules.
84657         * modules/README: Mention tests modules.
84658         * modules/TEMPLATE-TESTS: New file.
84659         * gnulib-tool: New options --extract-tests-module, --with-tests and
84660         --tests-base (unused for the moment).
84661         (testsbase, inctests): New variables.
84662         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84663         (func_verify_module): Exclude TEMPLATE-TESTS.
84664         (func_verify_nontests_module, func_verify_tests_module): New functions.
84665         (func_get_dependencies): Add implicit dependency for tests modules.
84666         (func_get_tests_module): New function.
84667         (func_modules_transitive_closure): When --with-tests was specified,
84668         include the unit tests as well, unless explicitly avoided.
84669         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84670         (func_emit_tests_Makefile_am): New function.
84671         (func_create_testdir): When --with-tests was specified, emit a
84672         tests/ directory.
84673         * MODULES.html.sh (Future developments): Update.
84674
84675 2005-08-24  Bruno Haible  <bruno@clisp.org>
84676
84677         * modules/tls-tests: New file.
84678         * tests/test-tls.c: New file, from GNU gettext.
84679
84680 2005-08-24  Bruno Haible  <bruno@clisp.org>
84681
84682         * modules/lock-tests: New file.
84683         * tests/test-lock.c: New file, from GNU gettext.
84684
84685 2005-08-24  Bruno Haible  <bruno@clisp.org>
84686
84687         * lib/lock.h: Add multiple inclusion guard.
84688         * lib/tls.h: Add multiple inclusion guard.
84689
84690 2005-08-24  Bruno Haible  <bruno@clisp.org>
84691
84692         * gnulib-tool: Add support for the --aux-dir option to
84693         --create-testdir, --create-megatestdir, --test, --megatest.
84694         (func_create_testdir, func_create_megatestdir): Optionally emit a
84695         AC_CONFIG_AUX_DIR directive.
84696         (create-testdir, create-megatestdir, test, megatest): Provide a
84697         default value for $auxdir.
84698
84699 2005-08-24  Bruno Haible  <bruno@clisp.org>
84700
84701         * gnulib-tool (import): Use compound statement instead of subshell
84702         where possible.
84703
84704 2005-08-24  Bruno Haible  <bruno@clisp.org>
84705
84706         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84707
84708 2005-08-24  Bruno Haible  <bruno@clisp.org>
84709
84710         * gnulib-tool (func_version): Update.
84711
84712 2005-08-24  Bruno Haible  <bruno@clisp.org>
84713
84714         * gnulib-tool (func_import, func_create_testdir,
84715         func_create_megatestdir): Quote all autoconf macro arguments.
84716
84717 2005-08-24  Bruno Haible  <bruno@clisp.org>
84718
84719         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84720         option --force, because --force causes the aclocal.m4 of each
84721         subdirectory to be newer than the corresponding config.h.in.
84722
84723 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84724
84725         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84726         All contents moved to gl_REGEX.
84727         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84728         assume that it does.
84729
84730 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * lib/regex.h (REG_NOSYS)
84733         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84734         Define, since POSIX requires it as of 2001.
84735         (_REG_ENOSYS)
84736         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84737         New private symbol, used to keep the enum signed in all cases.
84738         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84739         Youngman in
84740         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84741
84742         * lib/regex_internal.c (re_string_skip_chars, register_state):
84743         (calc_state_hash):
84744         Remove forward decls; no longer needed now that we use prototypes.
84745         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84746         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84747         (clean_state_log_if_needed): Likewise.
84748
84749 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * config/srclist.txt: Add glibc bugs 1231-1233.
84752
84753 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         Fix problems reported by Sam Steingold in
84756         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84757         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84758         assumed that reg_errcode_t is a signed type, which is not
84759         necessarily true if _XOPEN_SOURCE is not defined.
84760         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84761         since some compilers warn about it otherwise.
84762
84763 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84764
84765         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84766         (init_word_char, create_initial_state, duplicate_node_closure):
84767         (fetch_token, peek_token_bracket, build_range_exp):
84768         (build_collating_symbol): Remove forward decls; no longer needed
84769         now that we use prototypes.
84770
84771         * lib/regcomp.c:
84772         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84773         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84774         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84775         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84776         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84777         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84778         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84779         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84780         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84781         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84782         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84783         (build_charclass, build_charclass_op, fetch_number, create_tree):
84784         (create_token_tree, mark_opt_subexp, duplicate_tree):
84785         Use prototypes rather than old-style definitions.
84786
84787         * lib/regex_internal.c:
84788         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84789         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84790         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84791         (re_string_reconstruct, re_string_peek_byte_case):
84792         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84793         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84794         (re_node_set_init_copy, re_node_set_add_intersect):
84795         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84796         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84797         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84798         (re_acquire_state, re_acquire_state_context, register_state):
84799         (create_ci_newstate, create_cd_newstate, free_state):
84800         Likewise.
84801         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84802         re_search_2):
84803         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84804         (re_search_internal, prune_impossible_nodes):
84805         (acquire_init_state_context, check_matching, static):
84806         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84807         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84808         (update_regs, sift_states_backward, build_sifted_states):
84809         (clean_state_log_if_needed, merge_state_array):
84810         (update_cur_sifted_state, add_epsilon_src_nodes):
84811         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84812         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84813         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84814         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84815         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84816         (check_arrival, check_arrival_add_next_nodes):
84817         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84818         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84819         (check_node_accept_bytes, check_node_accept, extend_buffers):
84820         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84821         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84822         (sift_ctx_init):
84823         Likewise.
84824
84825         * lib/regex_internal.h:
84826         (re_string_allocate, re_string_construct, re_string_reconstruct):
84827         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84828         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84829         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84830         (re_string_context_at, re_string_peek_byte_case):
84831         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84832         is defined, since we now use prototypes always.
84833
84834         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84835         C89 or better.  All uses removed.
84836
84837 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * config/srclist.txt: Add glibc bugs 1220-1227.
84840
84841 2005-08-20  Jim Meyering  <jim@meyering.net>
84842
84843         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84844         of unused local, dfa.
84845
84846 2005-08-20  Bruno Haible  <bruno@clisp.org>
84847
84848         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84849
84850 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84853         (re_node_set_insert_last, re_dfa_add_node):
84854         Rename local variables to avoid GCC shadowing warnings.
84855
84856 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84857
84858         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84859         [defined lint]: Suppress bogus uninitialized-variable warnings.
84860
84861         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84862         and let the caller return REG_ESPACE if out of space.  This
84863         removes an uninitialied-variable warning with GCC 4.0.1, and also
84864         avoids taking the address of a local variable.  All callers
84865         changed.
84866
84867 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84870         $LIBCSRC/posix/regexec.c.
84871         Add glibc bug 1217 for regcomp.c.
84872
84873 2005-08-19  Jim Meyering  <jim@meyering.net>
84874
84875         * lib/regexec.c (proceed_next_node): Redo local variables to
84876         avoid GCC shadowing warnings.
84877
84878 2005-08-18  Bruno Haible  <bruno@clisp.org>
84879
84880         * lib/strstr.c (strstr): Fix return value in multibyte case.
84881         * lib/strcasestr.c (strcasestr): Likewise.
84882
84883 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84884
84885         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84886
84887 2005-08-17  Jim Meyering  <jim@meyering.net>
84888
84889         Make the %s format (seconds since the epoch) work for a negative
84890         number and when used with a zero-padded field width, e.g. %015s.
84891
84892         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84893         label so that it precedes the code to set `digits'.  Otherwise,
84894         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84895         print `00-22'.  Now, it prints `-0022', as it should.
84896
84897 2005-08-17  Bruno Haible  <bruno@clisp.org>
84898
84899         * modules/strstr (Files): Add m4/mbrtowc.m4.
84900         (Depends-on): Add mbuiter.
84901
84902 2005-08-17  Bruno Haible  <bruno@clisp.org>
84903
84904         * modules/strcasestr: New file.
84905         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84906         strcasestr.
84907
84908 2005-08-17  Bruno Haible  <bruno@clisp.org>
84909
84910         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84911
84912 2005-08-17  Bruno Haible  <bruno@clisp.org>
84913
84914         * modules/mbuiter: New file.
84915         * MODULES.html.sh (Extended multibyte and wide character utilities):
84916         Add mbuiter.
84917
84918 2005-08-17  Bruno Haible  <bruno@clisp.org>
84919
84920         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84921         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84922
84923 2005-08-17  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/strcasestr.m4: New file.
84926
84927 2005-08-17  Bruno Haible  <bruno@clisp.org>
84928
84929         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84930         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84931
84932 2005-08-17  Bruno Haible  <bruno@clisp.org>
84933
84934         * lib/strcasestr.h: New file.
84935         * lib/strcasestr.c: New file.
84936
84937 2005-08-17  Bruno Haible  <bruno@clisp.org>
84938
84939         * lib/strcasecmp.c: Use mbuiter.h.
84940
84941 2005-08-17  Bruno Haible  <bruno@clisp.org>
84942
84943         * lib/mbuiter.h: New file.
84944
84945 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84948         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84949         and gl_GETOPT are both invoked via different paths (as happens
84950         with GNU tar CVS because it uses both argp and getopt), the former
84951         wins.
84952
84953 2005-08-16  Bruno Haible  <bruno@clisp.org>
84954
84955         * modules/tls: New file.
84956         * MODULES.html.sh (Multithreading): Add tls.
84957
84958 2005-08-16  Bruno Haible  <bruno@clisp.org>
84959
84960         * modules/strnlen1: New file.
84961         * MODULES.html.sh (String handling): Add strnlen1.
84962
84963 2005-08-16  Bruno Haible  <bruno@clisp.org>
84964
84965         * modules/strcase (Files): Add m4/mbrtowc.m4.
84966         (Depends-on): Add strnlen1, mbchar.
84967
84968 2005-08-16  Bruno Haible  <bruno@clisp.org>
84969
84970         * modules/mbiter: New file.
84971         * MODULES.html.sh (Extended multibyte and wide character utilities):
84972         Add mbiter.
84973
84974 2005-08-16  Bruno Haible  <bruno@clisp.org>
84975
84976         * modules/mbfile: New file.
84977         * MODULES.html.sh (Extended multibyte and wide character utilities):
84978         Add mbfile.
84979
84980 2005-08-16  Bruno Haible  <bruno@clisp.org>
84981
84982         * modules/mbchar: New file.
84983         * MODULES.html.sh (Extended multibyte and wide character utilities):
84984         New section.
84985
84986 2005-08-16  Bruno Haible  <bruno@clisp.org>
84987
84988         * m4/tls.m4: New file, from GNU gettext.
84989
84990 2005-08-16  Bruno Haible  <bruno@clisp.org>
84991
84992         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84993         always.
84994         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84995
84996 2005-08-16  Bruno Haible  <bruno@clisp.org>
84997
84998         * m4/mbiter.m4: New file.
84999
85000 2005-08-16  Bruno Haible  <bruno@clisp.org>
85001
85002         * m4/mbfile.m4: New file.
85003
85004 2005-08-16  Bruno Haible  <bruno@clisp.org>
85005
85006         * m4/mbchar.m4: New file.
85007
85008 2005-08-16  Bruno Haible  <bruno@clisp.org>
85009
85010         * lib/tls.h: New file, from GNU gettext.
85011         * lib/tls.c: New file, from GNU gettext.
85012
85013 2005-08-16  Bruno Haible  <bruno@clisp.org>
85014
85015         * lib/strnlen1.h: New file.
85016         * lib/strnlen1.c: New file.
85017
85018 2005-08-16  Bruno Haible  <bruno@clisp.org>
85019
85020         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85021         (mbi_init): Update.
85022         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85023         NUL byte, not after it.
85024
85025 2005-08-16  Bruno Haible  <bruno@clisp.org>
85026
85027         * lib/strcase.h (strcasecmp): Add note in comments.
85028         * lib/strncasecmp.c: Use code from strcasecmp.c.
85029         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85030         (strcasecmp): Work correctly in multibyte locales.
85031
85032 2005-08-16  Bruno Haible  <bruno@clisp.org>
85033
85034         * lib/mbiter.h: New file.
85035
85036 2005-08-16  Bruno Haible  <bruno@clisp.org>
85037
85038         * lib/mbfile.h: New file.
85039
85040 2005-08-16  Bruno Haible  <bruno@clisp.org>
85041
85042         * lib/mbchar.h: New file.
85043         * lib/mbchar.c: New file.
85044
85045 2005-08-16  Bruno Haible  <bruno@clisp.org>
85046
85047         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85048         the valid ones. Makes the comparison operations transitive:
85049         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85050         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85051
85052 2005-08-15  Simon Josefsson  <jas@extundo.com>
85053
85054         * modules/ssize_t (License): Change to 'unlimited'.
85055
85056         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85057
85058 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85059
85060         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85061         Add comments for each pending glibc patch.
85062
85063 2005-08-15  Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85066         __cplusplus is defined.
85067
85068 2005-08-14  Jim Meyering  <jim@meyering.net>
85069
85070         Sync from coreutils.
85071
85072         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85073         Use the hash-table-based cycle-detection code not just when
85074         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85075         Reported by James Youngman in
85076         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85077         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85078         FTS_TIGHT_CYCLE_CHECK.
85079         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85080         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85081         once again.
85082         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85083         * lib/fts.c (fd_safer): Remove decl.
85084         Include fcntl--.h rather than unistd-safer.h
85085         (fts_safe_changedir): Don't call fd_safer; no longer needed
85086         now that we include fcntl--.h.
85087
85088 2005-08-12  Simon Josefsson  <jas@extundo.com>
85089
85090         * modules/getndelim2: Use ssize_t module.
85091         * modules/getnline: Likewise.
85092         * modules/safe-read: Likewise.
85093         * modules/xreadlink: Likewise.
85094
85095         * modules/ssize_t: New file.
85096
85097 2005-08-12  Simon Josefsson  <jas@extundo.com>
85098
85099         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85100
85101 2005-08-12  Simon Josefsson  <jas@extundo.com>
85102
85103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85104         ssize_t.
85105
85106 2005-08-12  Simon Josefsson  <jas@extundo.com>
85107
85108         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85109         readline, getdelim and check_version.
85110         (Support for systems lacking ISO C 99: Sizes of integer types):
85111         Add size_max.
85112
85113 2005-08-12  Bruno Haible  <bruno@clisp.org>
85114
85115         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85116
85117 2005-08-11  Simon Josefsson  <jas@extundo.com>
85118
85119         * modules/readline: New file.
85120
85121         * modules/strnlen (Files): Add strnlen.h.
85122
85123 2005-08-11  Simon Josefsson  <jas@extundo.com>
85124
85125         * m4/readline.m4: New file.
85126
85127 2005-08-11  Simon Josefsson  <jas@extundo.com>
85128
85129         * lib/readline.h, readline.c: New file.
85130
85131 2005-08-11  Simon Josefsson  <jas@extundo.com>
85132
85133         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85134         gl_AVOID.
85135
85136 2005-08-11  Bruno Haible  <bruno@clisp.org>
85137
85138         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85139
85140 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85141
85142         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85143
85144 2005-08-10  Simon Josefsson  <jas@extundo.com>
85145
85146         * tests/test-iconvme.c: New file.
85147
85148 2005-08-10  Simon Josefsson  <jas@extundo.com>
85149
85150         * m4/strnlen.m4: New file.
85151
85152         * m4/strndup.m4: Don't check for strnlen declaration, done in
85153         strnlen.m4.
85154
85155 2005-08-10  Simon Josefsson  <jas@extundo.com>
85156
85157         * lib/strndup.c: Use strnlen.h.
85158
85159         * lib/strnlen.h: New file.
85160
85161 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85162
85163         * README: Typos.
85164
85165 2005-08-02  Simon Josefsson  <jas@extundo.com>
85166
85167         * modules/readline: New file.
85168
85169 2005-08-02  Simon Josefsson  <jas@extundo.com>
85170
85171         * modules/getdelim: New file.
85172
85173         * modules/getline: Rewrite, don't use getndelim2.
85174
85175 2005-08-02  Simon Josefsson  <jas@extundo.com>
85176
85177         * m4/getline.m4: Separate out getdelim stuff into separate module.
85178
85179         * m4/getdelim.m4: New file.
85180
85181 2005-08-02  Simon Josefsson  <jas@extundo.com>
85182
85183         * lib/getline.h, getline.c: Rewrite.
85184
85185         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85186
85187 2005-07-31  Bruno Haible  <bruno@clisp.org>
85188
85189         * lib/lock.h (gl_lock_initializer): New macro.
85190         (gl_lock_define_initialized): Use it.
85191         (gl_rwlock_initializer): New macro.
85192         (gl_rwlock_define_initialized): Use it.
85193         (gl_recursive_lock_initializer): New macro.
85194         (gl_recursive_lock_define_initialized): Use it.
85195
85196 2005-07-30  Karl Berry  <karl@gnu.org>
85197
85198         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85199         Report from Ben Pfaff, regarding getopt.
85200
85201 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85202
85203         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85204         normal way.
85205         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85206         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85207         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85208         (gl_GETOPT): Use the new macros.  Most of the implementation
85209         is moved to the new macros.  This is for programs like Emacs
85210         that don't want all the functionality of gl_GETOPT.
85211
85212 2005-07-26  Bruno Haible  <bruno@clisp.org>
85213
85214         * m4/lock.m4: Update from GNU gettext.
85215
85216 2005-07-26  Bruno Haible  <bruno@clisp.org>
85217
85218         * lib/lock.h: Update from GNU gettext.
85219         * lib/lock.c: Update from GNU gettext.
85220
85221 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85224         obsolescent AC_TRY_RUN.  Include the default includes files, for
85225         'exit'.
85226
85227 2005-07-24  Bruno Haible  <bruno@clisp.org>
85228
85229         * modules/visibility: New file.
85230         * MODULES.html.sh (Misc): Add visibility.
85231
85232 2005-07-24  Bruno Haible  <bruno@clisp.org>
85233
85234         * m4/visibility.m4: New file.
85235
85236 2005-07-24  Bruno Haible  <bruno@clisp.org>
85237
85238         * doc/visibility.texi: New file.
85239
85240 2005-07-22  Bruno Haible  <bruno@clisp.org>
85241
85242         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85243         $(ALLOCA_H), redundant through BUILT_SOURCES.
85244         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85245         redundant through BUILT_SOURCES.
85246         * modules/byteswap (Makefile.am): Remove explicit dependency on
85247         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85248         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85249         $(FNMATCH_H), redundant through BUILT_SOURCES.
85250         * modules/getopt (Makefile.am): Remove explicit dependency on
85251         $(GETOPT_H), redundant through BUILT_SOURCES.
85252         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85253         redundant through BUILT_SOURCES.
85254         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85255         redundant through BUILT_SOURCES.
85256         * modules/stdbool (Makefile.am): Remove explicit dependency on
85257         $(STDBOOL_H), redundant through BUILT_SOURCES.
85258         * modules/stdint (Makefile.am): Remove explicit dependency on
85259         $(STDINT_H), redundant through BUILT_SOURCES.
85260         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85261         Remove explicit dependency on $(SYSEXITS_H).
85262         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85263
85264 2005-07-18  Simon Josefsson  <jas@extundo.com>
85265
85266         * lib/check-version.c (check_version): Accept identical versions too.
85267
85268 2005-07-18  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/lock: New file.
85271         * MODULES.html.sh (Multithreading): New section.
85272
85273 2005-07-18  Bruno Haible  <bruno@clisp.org>
85274
85275         * m4/lock.m4: New file, from GNU gettext.
85276
85277 2005-07-18  Bruno Haible  <bruno@clisp.org>
85278
85279         * lib/lock.h: New file, from GNU gettext.
85280         * lib/lock.c: New file, from GNU gettext.
85281
85282 2005-07-18  Bruno Haible  <bruno@clisp.org>
85283
85284         * lib/lock.h (gl_once_t): New type.
85285         (gl_once_define, gl_once): New macros.
85286         * lib/lock.c (fresh_once): New variable.
85287         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85288         functions.
85289
85290 2005-07-16  Simon Josefsson  <jas@extundo.com>
85291
85292         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85293         workaround, suggested by Bruno.
85294
85295 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * modules/xalloc (Depends-on): Add xalloc-die.
85298         * modules/xvasprintf (Depends-on): Add xalloc-die.
85299
85300 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85301
85302         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85303         with a minor change.
85304
85305 2005-07-15  Bruno Haible  <bruno@clisp.org>
85306
85307         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85308         When using lib/poll.c, define poll as rpl_poll.
85309
85310 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85311
85312         * modules/argp (Depends-on): Remove unlocked-io.
85313
85314 2005-07-14  Derek Price  <derek@ximbiot.com>
85315
85316         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85317         for glob symlink bug.
85318
85319 2005-07-14  Bruno Haible  <bruno@clisp.org>
85320
85321         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85322         Instead, test for *_unlocked function declarations directly.
85323
85324 2005-07-11  Simon Josefsson  <jas@extundo.com>
85325
85326         * modules/size_max: New file.
85327
85328         * modules/xsize: Depend on size_max module for size_max.m4.
85329
85330 2005-07-11  Simon Josefsson  <jas@extundo.com>
85331
85332         * lib/size_max.h: New file.
85333
85334 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85337         copyright symbol and the year.
85338         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85339         (version_etc_va): Use parameterized copyright notice.
85340         Reword to conform to the current GNU coding standards.
85341
85342 2005-07-11  Karl Berry  <karl@gnu.org>
85343
85344         * doc/gnulib.texi (Quoting): new node.
85345         (Initial import): more info, from Patrice.
85346
85347 2005-07-11  Bruno Haible  <bruno@clisp.org>
85348
85349         * gnulib-tool (func_usage): Document option --avoid.
85350         (Command line options): Handle --avoid.
85351         (func_acceptable): New function.
85352         (func_modules_transitive_closure): Use it.
85353
85354 2005-07-11  Bruno Haible  <bruno@clisp.org>
85355
85356         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85357         Reported by Jim Meyering.
85358
85359 2005-07-10  Bruno Haible  <bruno@clisp.org>
85360
85361         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85362         Needed when size_t is smaller than 'unsigned int'.
85363         Reported by Paul Eggert.
85364
85365 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85366
85367         * modules/argp (Depends-on): Add unlocked-io
85368
85369 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85370
85371         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85372         block of defines.
85373
85374 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85377         fix now.
85378
85379 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85380         and Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85383         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85384
85385 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * modules/regex (Files): Add lib/regex_internal.c,
85388         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85389         (Depends-on): Add extensions.
85390         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85391
85392 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85395         pathconf.
85396         * m4/same.m4 (gl_SAME): Likewise.
85397         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85398
85399         * m4/regex.m4: Adjust to new libc regex implementation.
85400         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85401         all the .c and .h parts of (the new) regex.
85402         Quote the m4 stuff better.
85403         Check for RE_ICASE bug of old gnulib.
85404         Check for REG_STARTEND of recent libc.
85405         Rename local variables from jm_* to gl_*.
85406         Quote operand of "test -f".
85407         Say "recent enough" version of libc, not "version 2".
85408         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85409         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85410         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85411         Remove check for btowc, isascii.
85412         Require AM_LANGINFO_CODESET.
85413
85414 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85415
85416         * lib/regex.c, regex.h: Sync from libc.
85417         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85418         * lib/regexec.c:
85419         New files, synced from libc, except that regex_internal.h
85420         currently has a small porting fix.
85421
85422 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85423
85424         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85425         regex_internal.c, regexec.c.
85426         Add regex_internal.h too, but as a comment, since the libc version
85427         is currently broken in gnulib mode.
85428
85429 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         Support programs like Emacs that use gnulib but not gettext.
85432         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85433         * modules/gettext-h: New file.
85434         * modules/gettext (Files): Remove lib/gettext.h.
85435         (Depends-on): Add gettext-h.
85436         (Makefile.am): Remove lib_SOURCES.
85437         * modules/argmatch, modules/c-stack, modules/closeout:
85438         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85439         * modules/execute, modules/file-type, modules/getaddrinfo:
85440         * modules/getopt, modules/human, modules/javacomp:
85441         * modules/javaexec, modules/mkdir-p, modules/obstack:
85442         * modules/openat, modules/pagealign_alloc, modules/pipe:
85443         * modules/quotearg, modules/regex, modules/rpmatch:
85444         * modules/unicodeio, modules/userspec, modules/version-etc:
85445         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85446         * modules/xsetenv:
85447         Depend on gettext-h, not gettext.
85448
85449 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         * gnulib-tool (func_import): Add support for 'public domain' license.
85452         * modules/alloca, modules/atexit, modules/memmove:
85453         Now public domain, not GPL.
85454         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85455         * modules/realloc, modules/strerror, modules/strtod:
85456         Now LGPL, not GPL.
85457
85458 2005-07-05  Bruno Haible  <bruno@clisp.org>
85459
85460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85461         autoconf CVS. Needed for mingw.
85462
85463 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85464
85465         Remove the dependency of the strftime module on the tzset module.
85466         * modules/strftime (Depends-on): Remove dependency on tzset.
85467
85468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85469
85470         Remove the dependency of the strftime module on the tzset module.
85471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85472         gl_FUNC_TZSET_CLOBBER.
85473
85474 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         Remove the dependency of the strftime module on the tzset module.
85477         * lib/strftime.c (my_strftime)
85478         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85479         Copy the input structure, to work around some of the bug with
85480         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85481         Solaris releases, you should also use the tzset module, but we won't
85482         require it as a dependency any more since we don't want LGPLed code
85483         to depend on GPLed code.
85484
85485 2005-07-02  Jim Meyering  <jim@meyering.net>
85486
85487         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85488         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85489         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85490         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85491
85492 2005-07-02  Jim Meyering  <jim@meyering.net>
85493
85494         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85495
85496 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85499         declares only 'struct timespec;' (!).
85500
85501 2005-07-01  Jim Meyering  <jim@meyering.net>
85502
85503         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85504         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85505         * lib/save-cwd.c, tempname.c:
85506         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85507         and don't include <sys/file.h>).
85508
85509 2005-06-29  Jim Meyering  <jim@meyering.net>
85510
85511         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85512         type name.  Use the variable name instead.
85513         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85514         Likewise.
85515
85516 2005-06-28  Simon Josefsson  <jas@extundo.com>
85517
85518         * modules/check-version (Files): Add check-version.m4.
85519
85520 2005-06-28  Simon Josefsson  <jas@extundo.com>
85521
85522         * m4/check-version.m4: New file, suggested by Jim Meyering
85523         <jim@meyering.net>.
85524
85525 2005-06-28  Simon Josefsson  <jas@extundo.com>
85526
85527         * lib/check-version.h, lib/check-version.c: New files.
85528
85529 2005-06-28  Simon Josefsson  <jas@extundo.com>
85530
85531         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85532         collision with global variable.  Better indentation.  Don't
85533         increment buffer pointer beyond buffer end.  Based on comments
85534         from Paul Eggert <eggert@cs.ucla.edu>.
85535
85536         * lib/base64.h: Indent.
85537
85538 2005-06-28  Simon Josefsson  <jas@extundo.com>
85539
85540         * doc/gnulib.texi (Library version handling): New section.
85541
85542 2005-06-28  Jim Meyering  <jim@meyering.net>
85543
85544         * check-module (find_included_lib_files): Hard-code another
85545         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85546         but modules/fts-lgpl (correctly) does not list those files.
85547
85548         * modules/canonicalize (Files): Add lib/pathmax.h.
85549
85550 2005-06-25  Simon Josefsson  <jas@extundo.com>
85551
85552         * modules/check-version: New file.
85553
85554 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85555
85556         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85557         initializer of struct addrinfo, as an indication that we don't
85558         care how many members the structure has.
85559
85560 2005-06-24  Derek Price  <derek@ximbiot.com>
85561         and Bruno Haible  <bruno@clisp.org>
85562
85563         Remove stat module & update lstat.
85564         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85566         * m4/stat.m4: Remove this file.
85567
85568 2005-06-24  Derek Price  <derek@ximbiot.com>
85569         and Bruno Haible  <bruno@clisp.org>
85570
85571         Remove stat module & update lstat.
85572         * lib/stat.c: Remove this file...
85573         (slash_aware_lstat): ...moving this content and its support...
85574         * lib/lstat.c (rpl_lstat): ...into here.
85575         * lib/lstat.h: New file.
85576
85577 2005-06-24  Derek Price  <derek@ximbiot.com>
85578         and Bruno Haible  <bruno@clisp.org>
85579
85580         Remove stat module & update lstat.
85581         * config/srclist.txt (libc sources): Remove stat.
85582
85583 2005-06-24  Derek Price  <derek@ximbiot.com>
85584         and Bruno Haible  <bruno@clisp.org>
85585
85586         Remove stat module & update lstat.
85587         * MODULES.html.sh (stat): Remove.
85588         * MODULES.html: Regenerated.
85589         * modules/lstat (Description): Correct function name.
85590         (Files): Add "lstat.h".
85591         (Depends-on): Remove stat, add xalloc, stat-macros.
85592         * modules/stat: Remove this file.
85593         (Include): Add "lstat.h", remove <sys/stat.h>.
85594
85595 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85598         (ranged_convert): Don't save conversion in a temporary struct.
85599         This causes a warning with GCC 4.0.0, and anyway in the typical
85600         case it's not worth the extra 100 bytes or so of code.
85601         (ranged_convert, __mktime_internal): When calling a function via a
85602         pointer P, use P () rather than (*P) (), as we now assume C89 or
85603         better.
85604
85605 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85606
85607         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85608         "who -r" failed to give output.  Problem reported by Tim Waugh.
85609
85610         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85611         (xcalloc): Use it to avoid needless tests.
85612         Problem reported by Jim Meyering.
85613
85614 2005-06-20  Derek Price  <derek@ximbiot.com>
85615
85616         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85617         unnecessary for Autoconfs > 2.59c.
85618
85619 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85620
85621         * lib/argp.h (__option_is_short): Check upper limit of
85622         __key. Isprint() requires its argument to have the value
85623         of an unsigned char or EOF.
85624
85625 2005-06-16  Jim Meyering  <jim@meyering.net>
85626
85627         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85628         when either N or S is zero.
85629
85630 2005-06-16  Derek Price  <derek@ximbiot.com>
85631
85632         * m4/bison.m4: Declare YACC & YFLAGS precious.
85633
85634 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85637         multibyte string or pattern, fall back on unibyte matching.
85638         Problem reported by James Youngman.
85639
85640 2005-06-08  Bruno Haible  <bruno@clisp.org>
85641
85642         * modules/csharpcomp: New file.
85643         * MODULES.html.sh (C#): Add csharpcomp.
85644
85645 2005-06-08  Bruno Haible  <bruno@clisp.org>
85646
85647         * m4/csharpcomp.m4: New file, from GNU gettext.
85648
85649 2005-06-08  Bruno Haible  <bruno@clisp.org>
85650
85651         * lib/csharpcomp.h: New file, from GNU gettext.
85652         * lib/csharpcomp.c: New file, from GNU gettext.
85653         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85654
85655 2005-06-08  Bruno Haible  <bruno@clisp.org>
85656
85657         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85658         warning on mingw.
85659
85660 2005-06-07  Derek Price  <derek@ximbiot.com>
85661
85662         Sync from CVS.
85663         * lib/glob_.h: Indent nested #ifdef.
85664
85665 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         Sync from coreutils.
85668         Use "file name" when talking about file names, instead of "filename"
85669         or "path", as per the GNU coding standards.
85670         * lib/mkdir-p.c: Renamed from makepath.c.
85671         (make_dir_parents): Renamed from make_path.  All callers changed.
85672         * lib/mkdir-p.h: Likewise.  All includers changed.
85673         * lib/filenamecat.c: Renamed from path-concat.c.
85674         (file_name_concat): Renamed from path_concat.  All callers changed.
85675         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85676         * lib/filenamecat.h: Likewise.  All includers changed.
85677         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85678         in comments or local variable names.
85679         * lib/basename.c: Likewise.
85680         * lib/canonicalize.c, canonicalize.h: Likewise.
85681         * lib/dirname.c, dirname.h: Likewise.
85682         * lib/euidaccess.c: Likewise.
85683         * lib/exclude.c: Likewise
85684         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85685         * lib/fsusage.c, fsuage.h: Likewise.
85686         * lib/fts.c, fts_.h: Likewise.
85687         * lib/getcwd.c: Likewise.
85688         * lib/getloadavg.c: Likewise.
85689         * lib/mkstemp.c: Likewise.
85690         * lib/mountlist.c, mountlist.h: Likewise.
85691         * lib/openat.c, openat.h: Likewise.
85692         * lib/readlink-stub.c: Likewise.
85693         * lib/readutmp.c, readutmp.h: Likewise.
85694         * lib/rename.c: Likewise.
85695         * lib/rmdir.c: Likewise.
85696         * lib/same.c: Likewise.
85697         * lib/savedir.c: Likewise.
85698         * lib/stripslash.c: Likewise.
85699         * lib/tempname.c: Likewise.
85700         * lib/xreadlink.c: Likewise.
85701         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85702         All uses changed.
85703         * lib/exclude.h: Likewise.
85704
85705         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85706         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85707         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85708         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85709         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85710         files have been getting away with it for years (MORE/BSD 4.3
85711         is extinct now).
85712         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85713         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85714
85715         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85716         Define to 256, not 255, as per modern POSIX.
85717
85718 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85719
85720         Sync from coreutils.
85721         Use "file name" when talking about file names, instead of "filename"
85722         or "path", as per the GNU coding standards.
85723         * MODULES.html.sh: mkdir-p renamed from makepath.
85724         filenamecat renamed from path-concat.
85725         * modules/filenamecat: Renamed from modules/path-concat.
85726         (Files): filenamecat.h and filenamecat.c renamed from
85727         path-concat.h and path-concat.c.
85728         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85729         (Include): filenamecat.h, not path-concat.h.
85730         * modules/mkdir-p: Renamed from modules/makepath.
85731         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85732         makepath.c.
85733         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85734         (Include): mkdir-p.h, not makepath.h.
85735
85736 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         Sync from coreutils.
85739         * m4/mkdir-p.m4: Renamed from makepath.m4.
85740         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85741         Rename files from makepath.c to mkdir-p.c, and from
85742         makepath.h to mkdir-p.h.
85743         * m4/filenamecat.m4: Renamed from path-concat.m4.
85744         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85745         Rename files from path-concat.c to filenamecat.c,
85746         and from path-concat.h to filenamecat.h.
85747         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85748         "file name" in local variables or comments.
85749         * m4/rename.m4: Likewise.
85750
85751 2005-06-01  Bruno Haible  <bruno@clisp.org>
85752
85753         * modules/csharpexec: New file.
85754         * MODULES.html.sh (C#): New section.
85755
85756 2005-06-01  Bruno Haible  <bruno@clisp.org>
85757
85758         * m4/csharp.m4: New file, from GNU gettext.
85759         * m4/csharpexec.m4: New file, from GNU gettext.
85760
85761 2005-06-01  Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/csharpexec.h: New file, from GNU gettext.
85764         * lib/csharpexec.c: New file, from GNU gettext.
85765         * lib/csharpexec.sh.in: New file, from GNU gettext.
85766
85767 2005-05-31  Derek Price  <derek@ximbiot.com>
85768             Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         Sync from cvs.
85771         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85772
85773 2005-05-31  Derek Price  <derek@ximbiot.com>
85774             Paul Eggert  <eggert@cs.ucla.edu>
85775
85776         Sync from cvs.
85777         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85778
85779 2005-05-29  Derek Price  <derek@ximbiot.com>
85780
85781         * config/srclist.txt (glob_.h, glob.c): Add these files.
85782
85783 2005-05-29  Derek Price  <derek@ximbiot.com>
85784
85785         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85786         * modules/glob: New file.
85787         * modules/getlogin_r: Add link to POSIX spec in description.
85788
85789 2005-05-29  Derek Price  <derek@ximbiot.com>
85790             Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * m4/glob.m4: New file.
85793
85794 2005-05-29  Derek Price  <derek@ximbiot.com>
85795             Paul Eggert  <eggert@cs.ucla.edu>
85796
85797         * lib/glob_.h, lib/glob.c: New files.
85798
85799 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85800
85801         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85802         * modules/fts-lgpl (Depends-on): Remove gettext.
85803
85804 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85805
85806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85807         and don't require gt_INTTYPES_PRI.
85808
85809 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85810
85811         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85812
85813         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85814         the configuration hassle isn't worth it.
85815         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85816         (LONGEST_MODIFIER, PRIuMAX): Remove.
85817
85818 2005-05-27  Bruno Haible  <bruno@clisp.org>
85819
85820         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85821
85822 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85825         _POSIX_PTHREAD_SEMANTICS for Solaris.
85826
85827 2005-05-25  Derek Price  <derek@ximbiot.com>
85828
85829         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85830
85831 2005-05-25  Derek Price  <derek@ximbiot.com>
85832             Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85835         * lib/getlogin_r.c, getlogin_r.h: New files.
85836
85837 2005-05-25  Bruno Haible  <bruno@clisp.org>
85838             Derek Price  <derek@ximbiot.com>
85839
85840         * lib/getlogin_r.h: Simplify API documentation.
85841
85842 2005-05-23  Derek Price  <derek@ximbiot.com>
85843
85844         * modules/minmax (Files): Add m4/minmax.m4.
85845         (configure.ac): Add gl_MINMAX.
85846
85847 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85848
85849         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85850         so that unistd-safer.h (GPL'ed code) need not be included.
85851
85852 2005-05-22  Bruno Haible  <bruno@clisp.org>
85853
85854         * m4/minmax.m4: New file.
85855         Based on a patch by Derek Price <derek@ximbiot.com>.
85856
85857 2005-05-22  Bruno Haible  <bruno@clisp.org>
85858
85859         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85860         (INT64_MIN): Fix definition.
85861         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85862
85863         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85864         NEED_SIGNED_INT_TYPES.
85865
85866         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85867         HAVE_SYSTEM_INTTYPES.
85868
85869 2005-05-22  Bruno Haible  <bruno@clisp.org>
85870
85871         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85872         Also include <sys/param.h> if it defines MIN, MAX.
85873         Based on a patch by Derek Price <derek@ximbiot.com>.
85874
85875 2005-05-21  Jim Meyering  <jim@meyering.net>
85876
85877         * modules/fts (Files): Add m4/inttypes-pri.m4.
85878         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85879
85880 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         New fts module.
85883         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85884         (setup_dir, free_dir): New functions.
85885         (enter_dir, leave_dir): Define trivial
85886         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85887         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85888         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85889         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85890         Move to fts-cycle.c.
85891         (fts_open): Use setup_dir.
85892         (fts_close): Use free_dir.
85893         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85894         This adds a label and some gotos, but the alternatives were messier.
85895         Check for memory allocation failure when entering a dir.
85896         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85897         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85898         (FTS): New member fts_cycle, that is a union that contains the
85899         old active_dir_ht and cycle_state.  All uses changed to mention
85900         fts_cycle.ht and fts_cycle.state.
85901         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85902         fts.c, with the following changes:
85903         (setup_dir, free_dir): New functions.
85904         (enter_dir): Now returns bool.  Return true if successful, false
85905         if memory exhausted.  All callers changed.
85906         Do not bother partly cleaning up on
85907         memory allocation failure; that is free_dir's job.
85908         However, free ad if hash_insert fails, to avoid memory leak.
85909         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85910         fts->fts_options to see which union member to use.
85911
85912 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85915         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85916
85917 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85920
85921 2005-05-20  Jim Meyering  <jim@meyering.net>
85922
85923         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85924         Now a macro, to pacify GCC.
85925
85926 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85927
85928         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85929         of -1.
85930
85931 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85932
85933         * lib/chown.c (rpl_chown): Return -1 on failure.
85934
85935 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85936
85937         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85938         Don't check for stddef.h.
85939         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85940         don't use its results.
85941         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85942         since we include them unconditionally.  Don't require
85943         AM_STDBOOL_H, since stdbool is a prerequisite.
85944         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85945         since we assume C89 or better.
85946         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85947         as we don't use their results.
85948         Don't check for fchdir, memmove, memset, strrchr, as we use
85949         them unconditionally.
85950         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85951         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85952
85953 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85954
85955         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85956         Include <stddef.h> unconditionally, since we assume C89 now.
85957         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85958         * lib/fts.c: Include fts_.h first, to check interface.
85959         Do not include intprops.h; no longer needed.
85960         Include cycle-check.h and hash.h, since fts_.h no longer does.
85961         Remove unnecessary casts of closedir to void.
85962         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85963         decide whether to decrement nlinks.
85964         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85965         (FTS): Use struct hash_table * instead of Hash_table, so that
85966         we no longer need to include hash.h here.
85967
85968 2005-05-18  Jim Meyering  <jim@meyering.net>
85969
85970         * modules/dirfd (License): Change to LGPL.  Most of the code
85971         is already in the public domain.
85972
85973 2005-05-18  Jim Meyering  <jim@meyering.net>
85974
85975         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85976         Reported by Yoann Vandoorselaere.
85977
85978 2005-05-17  Jim Meyering  <jim@meyering.net>
85979
85980         * m4/fts.m4: New file, from coreutils.
85981
85982 2005-05-17  Jim Meyering  <jim@meyering.net>
85983
85984         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85985
85986 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85987
85988         Sync from coreutils.
85989         * m4/unlinkdir.m4: New file.
85990
85991 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85992
85993         Sync from coreutils.
85994         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85995         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85996         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85997         White space changes only.
85998         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85999         special.
86000         * lib/yesno.c: Include getline.h, not ctype.h.
86001         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86002         Use getline to remove arbitrary restriction on response length.
86003
86004 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         * config/srclist-update: Spell out "Street" in FSF postal
86007         mail address; this is the style the FSF seems to prefer.
86008
86009         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86010         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86011         this updates FSF postal mail address.
86012
86013         Sync from coreutils.
86014         * modules/unlinkdir: New file.
86015         * modules/yesno (Depends-on): Add getline.
86016         * MODULES.html.sh (File system functions): Add unlinkdir.
86017
86018 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86021         lib/strsep.h:
86022         Change the initial comment to refer to GPL, not LGPL.
86023         gnulib-tool will change it to LGPL as needed.
86024
86025         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86026         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86027         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86028         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86029         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86030         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86031         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86032         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86033         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86034         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86035         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86036         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86037         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86038         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86039         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86040         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86041         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86042         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86043         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86044         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86045         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86046         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86047         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86048         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86049         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86050         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86051         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86052         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86053         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86054         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86055         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86056         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86057         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86058         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86059         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86060         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86061         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86062         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86063         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86064         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86065         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86066         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86067         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86068         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86069         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86070         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86071         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86072         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86073         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86074         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86075         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86076         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86077         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86078         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86079         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86080         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86081         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86082         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86083         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86084         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86085         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86086         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86087         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86088         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86089         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86090         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86091         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86092         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86093         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86094         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86095         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86096         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86097         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86098         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86099         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86100         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86101         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86102         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86103         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86104         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86105         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86106         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86107         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86108         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86109         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86110         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86111         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86112         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86113         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86114         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86115         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86116         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86117         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86118         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86119         lib/yesno.c, lib/yesno.h:
86120         Update FSF postal mail address.
86121
86122 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86125         tests/test-memmem.c, tests/test-stpncpy.c:
86126         Update FSF postal mail address.
86127
86128 2005-05-13  Bruno Haible  <bruno@clisp.org>
86129
86130         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86131         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86132         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86133         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86134         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86135         Add support for 64-bit integers in the MSVC compiler.
86136
86137 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86138
86139         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86140
86141 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86142
86143         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86144
86145 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86146
86147         * doc/getdate.texi (General date syntax): Don't say that date
86148         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86149         Problem reported by Nic Ferrier.
86150
86151 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86152
86153         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86154         specified in ai_socktype. Fix invalid ai_protocol
86155         check. ai_protocol is usually set to 0 or depending on
86156         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86157         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86158         ai_socktype / ai_protocol in the returned addrinfo structure.
86159
86160 2005-05-10  Simon Josefsson  <jas@extundo.com>
86161
86162         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86163         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86164
86165 2005-05-10  Karl Berry  <karl@gnu.org>
86166
86167         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86168         (from http://www.gnu.org/licenses).
86169         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86170         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86171         fdl.texi suffices.
86172
86173 2005-05-10  Karl Berry  <karl@gnu.org>
86174
86175         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86176         (COPYING.DOC): remove.
86177
86178         * config/srclist-update: new FSF address.
86179
86180 2005-05-10  Derek Price  <derek@ximbiot.com>
86181
86182         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86183         possible.
86184
86185 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86186             Bruno Haible  <bruno@clisp.org>
86187
86188         * modules/inet_ntop: New file.
86189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86190         inet_ntop.
86191
86192 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86193             Bruno Haible  <bruno@clisp.org>
86194
86195         * m4/inet_ntop.m4: New file.
86196
86197 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86198             Bruno Haible  <bruno@clisp.org>
86199
86200         * lib/inet_ntop.h: New file.
86201         * lib/inet_ntop.c: New file, from glibc with modifications.
86202
86203 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86204
86205         * modules/time_r (License): Change to LGPL.
86206         * modules/extensions (License): Change to LGPL.  Actually,
86207         the license is more permissive than that, but currently gnulib-tool
86208         doesn't know how to handle more-permissive licenses.
86209
86210         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86211         Problem reported by Dave Love.
86212
86213 2005-05-08  Jim Meyering  <jim@meyering.net>
86214
86215         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86216         blank.
86217
86218 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86219
86220         * modules/argmatch (Depends-on): Add stdbool.
86221         * modules/backupfile (Depends-on): Likewise.
86222         * modules/chdir-long (Depends-on): Likewise.
86223         * modules/closeout (Depends-on): Likewise.
86224         * modules/cycle-check (Depends-on): Likewise.
86225         * modules/dirname (Depends-on): Likewise.
86226         * modules/fnmatch (Depends-on): Likewise.
86227         * modules/fsusage (Depends-on): Likewise.
86228         * modules/fwriteerror (Depends-on): Likewise.
86229         * modules/getcwd (Depends-on): Likewise.
86230         * modules/getloadavg (Depends-on): Likewise.
86231         * modules/hard-locale (Depends-on): Likewise.
86232         * modules/makepath (Depends-on): Likewise.
86233         * modules/mountlist (Depends-on): Likewise.
86234         * modules/nanosleep (Depends-on): Likewise.
86235         * modules/posixtm (Depends-on): Likewise.
86236         * modules/quotearg (Depends-on): Likewise.
86237         * modules/readtokens (Depends-on): Likewise.
86238         * modules/readtokens0 (Depends-on): Likewise.
86239         * modules/readutmp (Depends-on): Likewise.
86240         * modules/save-cwd (Depends-on): Likewise.
86241         * modules/strftime (Depends-on): Likewise.
86242         * modules/userspec (Depends-on): Likewise.
86243         * modules/utimecmp (Depends-on): Likewise.
86244         * modules/xgetcwd (Depends-on): Likewise.
86245         * modules/xnanosleep (Depends-on): Likewise.
86246         * modules/xstrtod (Depends-on): Likewise.
86247         * modules/yesno (Depends-on): Likewise.
86248
86249 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86252         needless checks.
86253
86254 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         Merge from coreutils.  Among other things,
86257         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86258         * lib/fd-safer.c: New file.
86259         * lib/fcntl-safer.h, open-safer.c: Remove.
86260         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86261         * lib/dup-safer.c: Include unistd-safer.h first.
86262         Don't include errno.h.
86263         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86264         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86265         * lib/file-type.c: Rely on file-type.h change.
86266         * lib/getloadavg.c: Include unistd-safer.h.
86267         (getloadavg): Use safer open.
86268         * lib/getusershell.c: Include "stdio-safer.h".
86269         (getusershell): Use safer fopen.
86270         * lib/long-options.c (long_options): Use NULL rather than 0.
86271         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86272         'free'.
86273         * lib/modechange.c: Likewise.
86274         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86275         (MODE_DONE): New constant.
86276         (struct mode_change): Remove 'next' member.
86277         (make_node_op_equals): New function; like the old one of the
86278         same name, except it allocates an array.
86279         (mode_compile, mode_create_from_ref): Use it.
86280         (mode_compile): Allocate result as an array, not a linked list.
86281         Parse octal string ourself, so that we catch mistakes like "+0".
86282         (mode_adjust): Arg is an array, not a linked list.
86283         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86284         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86285         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86286         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86287         Remove.  This is now stat-macros.h's job.
86288         (talloc): Remove.  All callers replaced by xalloc, so that
86289         our invokers don't have to worry about reporting memory failures.
86290         (make_node_op_equals): Remove.
86291         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86292         New constants.
86293         (struct mode_change): Moved here from modechange.h.
86294         (mode_append_entry): Remove.
86295         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86296         apps to have incorrect behavior.  Use simpler algorithm for head
86297         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86298         Detect more invalid usages rather than having somewhat-random behavior.
86299         Don't insert an "a=" action, as that leads to incorrect behavior.
86300         (mode_compile, mode_create_from_ref): Return NULL on error instead
86301         of an enum, since now there's only one way to have an error.  All
86302         callers changed.
86303         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86304         at the correct time.  Simplify calculation of "+u" and its ilk.
86305         Don't mishandle "+X".
86306         (mode_free): Remove "register" and localize decls.
86307         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86308         (struct mode_change): Move to modechange.c; callers don't
86309         need to see this stuff.
86310         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86311         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86312         (mode_change, mode_adjust): Reflect the new signatures noted above.
86313         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86314         that might redefine system include files.
86315         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86316         (my_usleep): Use NULL rather than (void *) 0.
86317         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86318         Use siginterrupt to specify that system calls should be interrupted.
86319         (rpl_nanosleep): Move initialization of suspended closer to call of
86320         my_usleep.
86321         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86322         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86323         (desirable_utmp_entry): New function.
86324         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86325         using x2nrealloc, to simplify logic.
86326         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86327         size calculation.  Do not assume utmp file is a regular file.
86328         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86329         (READ_UTMP_CHECK_PIDS): New constant.
86330         * lib/save-cwd.c: Include unistd-safer.h.
86331         (save_cwd): Use fd_safer.
86332         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86333         [!_LIBC] Include "stat-macros.h" instead.
86334         * lib/unistd-safer.h (fd_safer): New decl.
86335
86336 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86337
86338         * modules/getloadavg (Depends-on): Add unistd-safer.
86339         * modules/getusershell (Depends-on): Add stdio-safer.
86340         * modules/lstat (Depends-on): Remove xalloc.
86341         * modules/mkstemp (Depends-on): Add stat-macros.
86342         * modules/modechange (Depends-on): Remove xstrtol.
86343         Add stat-macros, xalloc.
86344         * modules/save-cwd (Depends-on): Add unistd-safer.
86345         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86346         * modules/unistd-safer (Files): Add lib/fd-safer.c
86347         (Makefile.am): Remove lib_SOURCES.
86348
86349         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86350         Remove fcntl-safer; unistd-safer supersedes it.
86351
86352 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86355         AC_HEADER_STAT.
86356         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86357         (gl_PREREQ_CHOWN): Remove.
86358         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86359         it.  Don't require AC_HEADER_STAT.
86360         (gl_PREREQ_LSTAT): Remove.
86361         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86362         Don't require AC_HEADER_STAT.
86363         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86364         (gl_PREREQ_RMDIR): Remove.
86365         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86366         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86367         the stat-macros module a prerequisite.
86368         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86369         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86370         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86371         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86372         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86373         variable names.
86374         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86375         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86376         variable prefixes.
86377         * m4/fcntl-safer.m4: Remove.
86378         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86379         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86380         Invoke gl_PREREQ_FD_SAFER.
86381         (gl_PREREQ_FD_SAFER): New macro.
86382         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86383         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86384         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86385         Remove duplicate call to AC_LIBOBJ(readutmp).
86386         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86387
86388         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86389         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86390
86391 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * MODULES.html.sh (Misc): Add byteswap.
86394
86395 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86396
86397         * modules/getcwd (Depends-on): Add extensions.
86398         * modules/openat (Depends-on): Likewise.
86399
86400 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86401
86402         * modules/byteswap: New file.
86403
86404 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86405
86406         * m4/byteswap.m4: New file.
86407
86408 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86409
86410         * lib/byteswap_.h: New file.
86411
86412 2005-04-25  Karl Berry  <karl@gnu.org>
86413
86414         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86415
86416 2005-04-25  Albert Chin  <china@thewrittenword.com>
86417
86418         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86419         Toolkit C bug.
86420
86421 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86422
86423         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86424         (func_ln_if_changed): Remove forcibly for no error message
86425         in case file does not exist.
86426
86427 2005-04-19  Simon Josefsson  <jas@extundo.com>
86428
86429         * gnulib-tool (Options): Make --symlink mean --symbolic.
86430
86431 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86432
86433         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86434
86435 2005-04-16  Simon Josefsson  <jas@extundo.com>
86436
86437         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86438
86439 2005-04-15  Simon Josefsson  <jas@extundo.com>
86440
86441         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86442
86443 2005-04-15  Simon Josefsson  <jas@extundo.com>
86444
86445         * gnulib-tool: Rename --symlink to --symbolic.
86446
86447 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86448
86449         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86450         symbolic links to files instead of copying/moving.  Add --aux-dir,
86451         specifying directory relative --dir where auxiliary build tools
86452         are placed.
86453
86454 2005-04-14  Bruno Haible  <bruno@clisp.org>
86455
86456         * modules/allocsa (License): Change to LGPL.
86457         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86458
86459 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86462         that "UTC +1 second" continues to work.  Problem reported
86463         by Dmitry V. Levin.
86464         (relunit_snumber): New rule.
86465         (relunit): Use it.
86466
86467 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * lib/getdate.y (universal_time_zone_table): New constant.
86470         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86471         universal_time_zone_table.
86472         (lookup_zone): Prefer universal_time_zone_table to
86473         local_time_zone_table, so that "GMT" time stamps are allowed in
86474         London during the summer.  Problem reported by Ian Abbott.
86475
86476 2005-04-12  Jim Meyering  <jim@meyering.net>
86477
86478         * lib/human.c (humblock): Set *options even when returning due to
86479         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86480         warning from gcc-4.
86481
86482 2005-04-09  Jim Meyering  <jim@meyering.net>
86483
86484         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86485         -Wuninitialized: initialize tm0.tm_year.
86486
86487 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86488
86489         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86490         count, since there's no maximum.  All uses changed.
86491         Add member dsts_seen.
86492         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86493         not being INT_MAX.
86494         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86495         Use pc_rels_seen to decide whether a date is absolute.
86496
86497         * lib/getdate.y (number): Don't overwrite year.
86498         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86499         check.
86500
86501 2005-04-02  Simon Josefsson  <jas@extundo.com>
86502
86503         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86504         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86505
86506 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86507
86508         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86509         where no absolute path name can be longer than PATH_MAX.
86510
86511 2005-03-27  Jim Meyering  <jim@meyering.net>
86512
86513         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86514
86515 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86516
86517         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86518         "one's complement" -> "ones' complement" in comment, as per Knuth.
86519         "value of type" -> "type or expression" in comment.
86520         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86521
86522 2005-03-26  Jim Meyering  <jim@meyering.net>
86523
86524         Comment nits.
86525         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86526         Correct typos: s/or/of/.
86527
86528 2005-03-26  Jim Meyering  <jim@meyering.net>
86529
86530         * modules/check-include-files: Move to ../ and rename to...
86531         * check-module: ...this.
86532
86533 2005-03-25  Jim Meyering  <jim@meyering.net>
86534
86535         * modules/xvasprintf (Files): Add xalloc.h.
86536
86537 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * modules/gettext (Files): config/config.rpath ->
86540         build-aux/config.rpath
86541         * modules/iconv (Files): Likewise.
86542         Problem reported by Oskar Liljeblad.
86543
86544 2005-03-23  Jim Meyering  <jim@meyering.net>
86545
86546         * modules/check-include-files: New script to check for
86547         missing dependencies, multiple includes, etc.
86548
86549         * modules/c-strtold (Depends-on): Add xalloc.
86550         * modules/c-strtod (Depends-on): Add xalloc.
86551         * modules/hash (Depends-on): Add xalloc.
86552         (Files): Remove lib/xalloc.h.
86553
86554         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86555         * modules/userspec (Files): Add lib/inttostr.h.
86556
86557 2005-03-23  Jim Meyering  <jim@meyering.net>
86558
86559         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86560
86561 2005-03-22  Jim Meyering  <jim@meyering.net>
86562
86563         * modules/stat-macros: New module.
86564         * modules/canonicalize, modules/euidaccess, modules/file-type,
86565         * modules/filemode, modules/lchown, modules/makepath,
86566         * modules/rmdir, modules/stat: Depend on new stat-macros module
86567         rather than listing lib/stat-macros.h manually.
86568         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86569
86570 2005-03-22  Jim Meyering  <jim@meyering.net>
86571
86572         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86573
86574 2005-03-22  Bruno Haible  <bruno@clisp.org>
86575
86576         * config/srclist.txt: Replace target directory 'config' with
86577         'build-aux'.
86578         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86579         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86580         ../build-aux/.
86581
86582 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86583
86584         * modules/chdir-long (Depends-on): Add mempcpy.
86585
86586         * modules/acl, modules/backupfile, modules/c-strtod,
86587         modules/c-strtold, modules/canon-host, modules/canonicalize,
86588         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86589         modules/exclude, modules/exitfail, modules/file-type,
86590         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86591         modules/getdate, modules/getline, modules/getpagesize,
86592         modules/getpass, modules/getugroups, modules/group-member,
86593         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86594         modules/inttostr, modules/long-options, modules/makepath,
86595         modules/md5, modules/memcasecmp, modules/memcoll,
86596         modules/modechange, modules/mountlist, modules/path-concat,
86597         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86598         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86599         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86600         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86601         modules/strftime, modules/strndup, modules/strverscmp,
86602         modules/timespec, modules/unlocked-io, modules/userspec,
86603         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86604         modules/yesno:
86605         Remove lib_SOURCES line from Makefile.am section, as this is now
86606         done automatically by the corresponding Autoconf macro.
86607
86608 2005-03-21  Jim Meyering  <jim@meyering.net>
86609
86610         Changes imported from coreutils.
86611
86612         * lib/cycle-check.c: Don't include xalloc.h.
86613
86614         * lib/path-concat.c: Don't include assert.h.
86615         (path_concat): Remove assertion that would have triggered
86616         for ABASE starting with more than one slash.
86617         Reported by Andreas Schwab.
86618
86619         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86620         properly when ABASE is an absolute file name.
86621         Correct the description of this function.
86622         Include <assert.h>.
86623         Add an assertion and a test driver.
86624         This fixes a bug introduced on 2004-07-02.
86625         Andreas Schwab reported the resulting failure of cp --parents:
86626         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86627
86628 2005-03-21  Jim Meyering  <jim@meyering.net>
86629
86630         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86631         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86632
86633 2005-03-21  Jim Meyering  <jim@meyering.net>
86634         and  Paul Eggert  <eggert@cs.ucla.edu>
86635
86636         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86637         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86638         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86639         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86640         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86641         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86642         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86643         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86644         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86645         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86646         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86647         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86648         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86649         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86650         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86651         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86652         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86653         for these modules.
86654
86655 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86656
86657         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86658         (which shouldn't happen), generate nothing instead of returning 0
86659         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86660
86661 2005-03-16  Bruno Haible  <bruno@clisp.org>
86662
86663         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86664         HAVE_LONGLONG_64BIT.
86665
86666 2005-03-16  Bruno Haible  <bruno@clisp.org>
86667
86668         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86669         HAVE_LONGLONG_64BIT.
86670
86671 2005-03-16  Bruno Haible  <bruno@clisp.org>
86672
86673         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86674         HAVE_LONGLONG_64BIT.
86675
86676 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86677
86678         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86679         reliably distinguish strftime failure from empty output on POSIX
86680         hosts.
86681
86682 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86683
86684         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86685         (iconv_string): Don't guess a size-zero buffer, as that might cause
86686         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86687         result would be 'too large', where 'too large' is (heuristically)
86688         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86689         overflow concerns.  This will prevent some unwanted malloc failures
86690         when the inputs are very large.
86691
86692 2005-03-15  Karl Berry  <karl@gnu.org>
86693
86694         * config/srclist.txt (config.rpath): from gettext.
86695         * config/config.rpath: update.
86696
86697 2005-03-15  Bruno Haible  <bruno@clisp.org>
86698
86699         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86700         to 'negate'.
86701
86702         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86703         variable.
86704
86705         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86706         results.
86707
86708 2005-03-14  Simon Josefsson  <jas@extundo.com>
86709
86710         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86711         <fx@gnu.org>.
86712
86713 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86714
86715         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86716         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86717         intprops.h.
86718         * lib/strtol.c: Likewise.
86719
86720 2005-03-14  Jim Meyering  <jim@meyering.net>
86721
86722         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86723         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86724         to be nonzero so that we (and caller) can detect the difference
86725         between a valid zero-length expansion and an error return, even
86726         when the underlying strftime fails before writing anything into
86727         that location.
86728
86729 2005-03-14  Bruno Haible  <bruno@clisp.org>
86730
86731         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86732         Update from GNU gettext 0.14.3.
86733
86734 2005-03-10  Jim Meyering  <jim@meyering.net>
86735
86736         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86737
86738 2005-03-10  Jim Meyering  <jim@meyering.net>
86739
86740         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86741         so that this module works on systems without fchdir.
86742
86743 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86744
86745         Factor int-properties macros into a single file, except for
86746         glibc-related files.
86747         * lib/intprops.h: New file.
86748         * lib/getloadavg.c: Include it instead of limits.h.
86749         (INT_STRLEN_BOUND): Remove.
86750         * lib/human.c: Include intprops.h.
86751         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86752         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86753         302/1000.
86754         * lib/inttostr.h: Include intprops.h instead of limits.h.
86755         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86756         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86757         for consistency with intprops.h.
86758         (time_t_is_integer, twos_complement_arithmetic): Use them.
86759         * lib/sig2str.h: Include <signal.h>, intprops.h.
86760         (INT_STRLEN_BOUND): Remove.
86761         * lib/strftime.c (TYPE_SIGNED): Remove.
86762         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86763         * lib/strtol.c: Adjust comments to match intprops.h.
86764         * lib/userspec.c: Include intprops.h.
86765         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86766         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86767         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86768         instead of rolling our own expressions.
86769         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86770
86771         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86772         instead of int.
86773         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86774         the right thing even if adding 1900 would overflow.  Similarly
86775         for tm_mon + 1 and tm_yday + 1.
86776         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86777         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86778         (DO_SIGNED_NUMBER): New macro.
86779         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86780
86781 2005-03-07  Bruno Haible  <bruno@clisp.org>
86782
86783         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86784
86785 2005-03-07  Bruno Haible  <bruno@clisp.org>
86786
86787         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86788
86789 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86790
86791         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86792         (func_import): Only replace files via --import when they have actually
86793         changed.
86794
86795 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86796
86797         * m4/mmap-anon.m4: New file.
86798         * m4/pagealign_alloc.m4: New file.
86799
86800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86801             Bruno Haible  <bruno@clisp.org>
86802
86803         * modules/pagealign_alloc: New file.
86804         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86805
86806 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86807             Bruno Haible  <bruno@clisp.org>
86808
86809         * lib/pagealign_alloc.h: New file.
86810         * lib/pagealign_alloc.c: New file.
86811
86812 2005-03-03  Bruno Haible  <bruno@clisp.org>
86813
86814         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86815         Use an all-permissive copyright notice, recommended by RMS.
86816
86817 2005-03-02  Bruno Haible  <bruno@clisp.org>
86818
86819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86820         of AIX, the replacement has to be done only after <string.h> is
86821         included, therefore not in config.h. stpncpy.h does the replacement,
86822         and stpncpy.c uses it.
86823
86824 2005-03-02  Bruno Haible  <bruno@clisp.org>
86825
86826         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86827         stpncpy.c uses it.
86828
86829 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86830
86831         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86832         The workaround isn't strictly needed for POSIX conformance, and
86833         it's too much of a pain to configure and maintain.  We'll ask
86834         people to fix their kernels instead.
86835         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86836         (NANOSLEEP_BUG_WORKAROUND): Remove.
86837         (xnanosleep): Remove the workaround.
86838
86839 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86840
86841         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86842         Reported by Derek Price.
86843         (Include): Add "timespec.h".
86844
86845         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86846
86847 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86848
86849         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86850         to detect nanosleep bug.
86851
86852 2005-03-01  Bruno Haible  <bruno@clisp.org>
86853
86854         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86855
86856 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86857
86858         * modules/gethrxtime: New file.
86859         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86860         (Depends-on): Add gethrxtime.
86861         (configure.ac): Add gl_XNANOSLEEP.
86862         (Makefile.am): Remove lib_SOURCES line.
86863
86864 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86865
86866         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86867         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86868
86869 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86870
86871         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86872         * lib/timespec.h (gettime): Return void, since it always
86873         succeeds now.  All uses changed.
86874         * lib/gettime.c (gettime): Likewise.
86875         [HAVE_NANOTIME]: Prefer nanotime.
86876         Assume gettimeofday succeeds, as POSIX requires.
86877         Assime time () succeeds, since other code already does.
86878         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86879         (timespec_subtract): Remove.
86880         (NANOSLEEP_BUG_WORKAROUND): New constant.
86881         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86882         things considerably.  Use it only on GNU/Linux hosts, since the
86883         workaround shouldn't be needed elsewhere.
86884
86885 2005-02-24  Bruno Haible  <bruno@clisp.org>
86886
86887         * modules/gettext (Files): Add m4/glibc2.m4.
86888
86889 2005-02-24  Bruno Haible  <bruno@clisp.org>
86890
86891         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86892         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86893         * m4/progtest.m4:
86894         Update from GNU gettext 0.14.2.
86895         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86896
86897 2005-02-24  Bruno Haible  <bruno@clisp.org>
86898
86899         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86900         * lib/config.charset: Update from GNU gettext 0.14.2.
86901
86902 2005-02-24  Bruno Haible  <bruno@clisp.org>
86903
86904         * lib/gettext.h: Update from GNU gettext 0.14.2.
86905
86906 2005-02-23  Simon Josefsson  <jas@extundo.com>
86907
86908         * m4/iconvme.m4: New file.
86909
86910 2005-02-23  Jim Meyering  <jim@meyering.net>
86911
86912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86913         change.
86914         Thanks to Bruno Haible for catching it.
86915
86916 2005-02-22  Simon Josefsson  <jas@extundo.com>
86917
86918         * modules/iconvme: New file.
86919
86920         * MODULES.html.sh: Add iconvme.
86921
86922 2005-02-22  Simon Josefsson  <jas@extundo.com>
86923
86924         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86925
86926 2005-02-22  Simon Josefsson  <jas@extundo.com>
86927
86928         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86929
86930 2005-02-22  Jim Meyering  <jim@meyering.net>
86931
86932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86933         s/ifndef/ifdef/.
86934
86935 2005-02-20  Neil Conway  <neilc@samurai.com>
86936
86937         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86938         returned by OSX/Darwin if the specified buffer is not large
86939         enough for the hostname.
86940
86941 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86942
86943         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86944         pass it to _help, otherwise the latter coredumps trying to
86945         dereference state.root_argp.
86946
86947 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * modules/chdir-long (Depends-on): Add memrchr.
86950         * modules/memrchr (Files): Add lib/memrchr.h.
86951         (Include): "memrchr.h".
86952
86953 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86954
86955         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86956
86957 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86958
86959         * lib/memrchr.h: New file.
86960         * lib/chdir-long.c: Include it.
86961         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86962         Don't bother including stddef.h.
86963
86964 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86965
86966         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86967         inclusion.
86968         Include <sys/types.h>, for dev_t.
86969         (ME_DUMMY, ME_REMOTE): Move from here....
86970         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86971         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86972         Dmitry V. Levin.
86973         Include mountlist.h first, to test the interface.
86974
86975 2005-01-29  Bruno Haible  <bruno@clisp.org>
86976
86977         * lib/progname.c (program_name): Initialize.
86978         Needed when linking statically on MacOS X.
86979
86980 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         Sync from coreutils.
86983         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86984         (Depends-on): Add c-strtod.
86985         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86986
86987 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86988
86989         Sync from coreutils.
86990         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86991
86992         Remove files that are specific to coreutils.
86993         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86994
86995 2005-01-28  Bruno Haible  <bruno@clisp.org>
86996
86997         * modules/javacomp: New file.
86998         * MODULES.html.sh (Java): Add javacomp.
86999
87000 2005-01-28  Bruno Haible  <bruno@clisp.org>
87001
87002         * m4/javacomp.m4: New file, from GNU gettext.
87003
87004 2005-01-28  Bruno Haible  <bruno@clisp.org>
87005
87006         * lib/javacomp.sh.in: New file, from GNU gettext.
87007         * lib/javacomp.h: New file, from GNU gettext.
87008         * lib/javacomp.c: New file, from GNU gettext.
87009
87010 2005-01-26  Simon Josefsson  <jas@extundo.com>
87011
87012         * lib/gai_strerror.c: Use GPL in header.
87013
87014 2005-01-26  Bruno Haible  <bruno@clisp.org>
87015
87016         * modules/javaexec: New file.
87017         * MODULES.html.sh (Java): Add javaexec.
87018
87019 2005-01-26  Bruno Haible  <bruno@clisp.org>
87020
87021         * m4/javaexec.m4: New file, from GNU gettext.
87022
87023 2005-01-26  Bruno Haible  <bruno@clisp.org>
87024
87025         * lib/javaexec.sh.in: New file, from GNU gettext.
87026         * lib/javaexec.h: New file, from GNU gettext.
87027         * lib/javaexec.c: New file, from GNU gettext.
87028
87029 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87030
87031         * modules/lchown (Depends-on): Remove lchown.h
87032
87033 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87034
87035         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87036         must be defined if the header file was not found, in order
87037         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87038
87039 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87040
87041         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87042         initializers for struct pentry_state.
87043         (__argp_error): Check return value of __asprintf
87044         (__argp_failure): Translate error message
87045
87046         * lib/argp-parse.c: Removed braces around the expansion of N_()
87047
87048 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87049
87050         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87051         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87052         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87053         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87054         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87055         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87056         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87057         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87058         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87059         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87060         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87061         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87062         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87063         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87064         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87065         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87066         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87067         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87068         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87069         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87070         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87071         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87072         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87073         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87074         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87075         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87076         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87077         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87078         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87079         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87080         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87081         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87082         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87083         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87084         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87085         Use an all-permissive copyright notice, recommended by RMS.
87086
87087 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87088
87089         * modules/chdir-long (Depends-on): Remove mempcpy.
87090
87091 2005-01-21  Jim Meyering  <jim@meyering.net>
87092
87093         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87094         same value as for Solaris 9.
87095
87096         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87097         component length.  This included changing the parameter to be
87098         of type `char *' rather than `char const *'.
87099         * lib/chdir-long.h (chdir_long): Update prototype.
87100
87101         * lib/openat.c (fdopendir, fstatat): New functions.
87102         * lib/openat.h: Include headers required for use of DIR and struct
87103         stat.
87104         [AT_SYMLINK_NOFOLLOW]: Define.
87105         (fdopendir, fstatat): Add prototypes.
87106
87107 2005-01-21  Bruno Haible  <bruno@clisp.org>
87108
87109         * modules/classpath: New file.
87110         * MODULES.html.sh (Java): Add classpath.
87111
87112 2005-01-21  Bruno Haible  <bruno@clisp.org>
87113
87114         * lib/classpath.h: New file, from GNU gettext.
87115         * lib/classpath.c: New file, from GNU gettext.
87116
87117 2005-01-20  Simon Josefsson  <jas@extundo.com>
87118
87119         * modules/version-etc-fsf: New file.
87120
87121 2005-01-20  Simon Josefsson  <jas@extundo.com>
87122
87123         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87124         * lib/version-etc.c: Remove version_etc_copyright.
87125         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87126         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87127
87128 2005-01-20  Simon Josefsson  <jas@extundo.com>
87129
87130         * lib/base64.h (isbase64): Add.
87131
87132         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87133         using a unsigned prototype, don't inline.
87134         (base64_decode): Use it.
87135
87136 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87137
87138         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87139         it.
87140
87141 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87142
87143         * lib/save-cwd.c (save_cwd): Remove code to support the case
87144         where fchdir is missing or flaky.
87145
87146 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87147
87148         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87149
87150 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87151
87152         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87153         AC_LIBSOURCES now does this.
87154         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87155         with new ullong_max module.
87156
87157 2005-01-19  Bruno Haible  <bruno@clisp.org>
87158
87159         * modules/sh-quote: New file.
87160         * MODULES.html.sh (Executing programs): Add sh-quote.
87161
87162 2005-01-19  Bruno Haible  <bruno@clisp.org>
87163
87164         * lib/sh-quote.h: New file, from GNU gettext.
87165         * lib/sh-quote.c: New file, from GNU gettext.
87166
87167 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         Merge from coreutils.
87170         * m4/ullong_max.m4: New file.
87171         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87172         (gl_MACROS): Assume localeconv exists.
87173
87174 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87175
87176         Merge changes from coreutils, as described below in several
87177         changelogs dated today.
87178
87179         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87180         (O_DIRECTORY): Remove; not needed here, since "." must be
87181         a directory.  All uses removed.
87182         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87183         universal on Suns, and we also need to test for IRIX.
87184         Revamp code to use 'if' rather than '#if'.
87185         Avoid unnecessary comparison of cwd->desc to 0.
87186
87187         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87188         for known valid error numbers rather than observed invalid ones.
87189
87190 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         * modules/ullong_max: New file.
87193
87194         * modules/chdir-long, modules/openat: New files.
87195         * modules/save-cwd (Depends-on): Depend on chdir-long.
87196         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87197
87198 2005-01-18  Jim Meyering  <jim@meyering.net>
87199
87200         Merge from coreutils.
87201         * m4/chdir-long.m4, m4/openat.m4: New files.
87202         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87203         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87204         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87205         is sane and DOES follow symlinks.  Besides, testing 20 different
87206         systems found no broken chown implementations.
87207         Prompted by a change in rsync's copy of this macro.
87208         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87209
87210         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87211
87212         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87213         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87214         NULL-means-set-to-current-time semantics.
87215         Remove temporary file immediately, rather than waiting
87216         for configure's at-exit trap code to do it.
87217
87218 2005-01-18  Jim Meyering  <jim@meyering.net>
87219
87220         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87221
87222         * lib/utimens.c (futimens): Account for the fact that futimes
87223         can also fail with errno == ENOSYS or errno == ENOENT.
87224         Patch from Dmitry V. Levin.
87225
87226         Change the name of the robust chdir function from chdir to chdir_long.
87227         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87228         (restore_cwd): Use chdir_long, not chdir.
87229         * lib/chdir-long.c: Renamed from chdir.c.
87230         * lib/chdir-long.h: Renamed from chdir.h.
87231         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87232         Hurd.
87233
87234 2005-01-18  Bruno Haible  <bruno@clisp.org>
87235
87236         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87237         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87238         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87239         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87240         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87241         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87242         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87243         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87244         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87245         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87246         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87247         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87248         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87249         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87250         Use an all-permissive copyright notice, recommended by RMS.
87251
87252 2005-01-18  Bob Proulx  <bob@proulx.com>
87253
87254         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87255         simplify offsetof() macro construct to avoid compile failure with
87256         native HP-UX 11.0 ANSI C compiler.
87257
87258 2005-01-17  Bruno Haible  <bruno@clisp.org>
87259
87260         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87261         redundant because stpncpy.m4 takes care of it.
87262
87263 2005-01-17  Bruno Haible  <bruno@clisp.org>
87264
87265         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87266
87267 2005-01-17  Bruno Haible  <bruno@clisp.org>
87268
87269         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87270         used.
87271
87272 2005-01-17  Bruno Haible  <bruno@clisp.org>
87273
87274         * lib/fwriteerror.h (fwriteerror): Change specification to include
87275         fclose.
87276         * lib/fwriteerror.c: Include <stdbool.h>.
87277         (fwriteerror): At the end, close the file stream. Record whether
87278         stdout was already closed.
87279
87280 2005-01-17  Bruno Haible  <bruno@clisp.org>
87281
87282         * lib/execute.c (environ): Declare if needed.
87283         * lib/pipe.c (environ): Likewise.
87284         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87285
87286 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87287
87288         * modules/argp: Depend on vsnprintf
87289
87290 2005-01-10  Jim Meyering  <jim@meyering.net>
87291
87292         * modules/closeout (Depends-on): Add atexit.
87293
87294 2005-01-06  Bruno Haible  <bruno@clisp.org>
87295
87296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87297
87298 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87299
87300         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87301         definitions to be after all include files, to avoid collisions.
87302         Problem reported by Bob Proulx.
87303
87304 2005-01-04  Jim Meyering  <jim@meyering.net>
87305
87306         Changes imported from coreutils.
87307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87308         as the mkstemp template, use a temporary directory and an
87309         8.3-friendly template to avoid trouble on systems like DJGPP.
87310         Reported by Juan M. Guerrero via Stepan Kasal.
87311         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87312         close. Remove the temporary directory right away, rather than waiting
87313         for configure's at-exit trap code to do it.
87314         Suggestion from Stepan Kasal.
87315
87316 2005-01-01  Simon Josefsson  <jas@extundo.com>
87317
87318         * gnulib-tool: Print #include directives when --import'ing.
87319
87320 2004-12-28  Simon Josefsson  <jas@extundo.com>
87321
87322         * tests/test-base64.c: Include required header files.  Remove
87323         unused variables.
87324
87325 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87326
87327         * modules/error (Depends-on): Remove gettext.
87328
87329 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87332         not needed.  This removes a dependency on the gettext module.
87333         [defined _LIBC]: Do not include <libintl.h>; not needed.
87334
87335 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87336
87337         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87338         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87339
87340 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87341
87342         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87343         HAVE_DECL_STRTOLD.
87344
87345 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87346
87347         * modules/getdate (Depends-on): Remove alloca-opt.
87348
87349 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87350
87351         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87352
87353 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87354
87355         * lib/argp-parse.c: Include <stddef.h>.
87356         (alignof, alignto): New macros.
87357         (parser_init): Don't assume that void * is aligned sufficiently
87358         for struct option.
87359
87360         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87361         need to extend the stack.
87362         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87363         large.
87364
87365 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87366
87367         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87368
87369 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87370
87371         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87372         (2004-10-24) change.  Apparently this was a false alarm.
87373
87374         * modules/getdate: Depend on alloca-opt, not alloca.
87375
87376 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87377
87378         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87379         Remove now-obsolete comment about AIX.
87380         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87381         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87382         (YYMAXDEPTH): New macro.
87383
87384 2004-12-18  Simon Josefsson  <jas@extundo.com>
87385
87386         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87387
87388 2004-12-18  Bruno Haible  <bruno@clisp.org>
87389
87390         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87391
87392 2004-12-18  Bruno Haible  <bruno@clisp.org>
87393
87394         * lib/fatal-signal.c (fatal_signals): Make non-const.
87395         (init_fatal_signals): New function.
87396         (uninstall_handlers, install_handlers): Ignore signals that were set to
87397         SIG_IGN.
87398         (at_fatal_signal): Call init_fatal_signals.
87399         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87400         SIG_IGN.
87401         Reported by Paul Eggert.
87402
87403 2004-12-18  Bruno Haible  <bruno@clisp.org>
87404
87405         * doc/alloca.texi: New file.
87406         * doc/alloca-opt.texi: New file.
87407
87408 2004-12-17  Jim Meyering  <jim@meyering.net>
87409
87410         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87411         Otherwise, install-sh could exit with improper exit status when
87412         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87413
87414 2004-12-16  Simon Josefsson  <jas@extundo.com>
87415
87416         * tests/test-base64.c: Add license.
87417
87418 2004-12-15  Stepan Kasal  <address@hidden>
87419
87420         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87421
87422 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87423
87424         * modules/getcwd (Files): Add m4/d-ino.m4.
87425         Suggested by Mark D. Baushke.
87426
87427 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87428
87429         * lib/getdate.y (textint): New member "negative".
87430         (time_zone_hhmm): New function.
87431         Expect 14 shift-reduce conflicts, not 13.
87432         (o_colon_minutes): New rule.
87433         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87434         (yylex): Set the "negative" member of signed numbers.
87435
87436 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87437
87438         * doc/getdate.texi (Time of day items, Time zone items):
87439         Describe new formats +00:00, UTC+00:00.
87440
87441 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87442
87443         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87444         spurious "-l"s.  Problem reported by Stepan Kasal.
87445
87446 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87447
87448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87449         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87450
87451 2004-12-04  Simon Josefsson  <jas@extundo.com>
87452
87453         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87454         Vandoorselaere <yoann@prelude-ids.org>.
87455
87456 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87457
87458         Changes imported from coreutils.
87459         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87460         exist.
87461         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87462
87463 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87464
87465         Changes imported from coreutils.
87466         * lib/hard-locale.c: Assume <locale.h> exists.
87467         Include "strdup.h".
87468         (GLIBC_VERSION): New macro.
87469         (hard_locale): Assume setlocale exists.
87470         Rewrite to avoid #ifdef.
87471         Use strdup rather than malloc + strcpy.
87472         * lib/human.c: Assume <locale.h> exists.
87473         (human_readable): Assume localeconv exists.
87474
87475 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87476
87477         * modules/hard-locale (Depends-on): Add strdup.
87478
87479 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87480
87481         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87482         convert T2, not T.  (Imported from libc.)
87483
87484 2004-11-30  Simon Josefsson  <jas@extundo.com>
87485
87486         * modules/restrict (License): Change to LGPL.
87487
87488 2004-11-30  Simon Josefsson  <jas@extundo.com>
87489
87490         * m4/restrict.m4: Add copyright and copying conditions.
87491
87492 2004-11-30  Simon Josefsson  <jas@extundo.com>
87493
87494         * m4/base64.m4: New file.
87495
87496 2004-11-30  Simon Josefsson  <jas@extundo.com>
87497
87498         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87499         base64.
87500
87501         * tests/test-base64.c: New file.
87502
87503         * modules/base64: New file.
87504
87505 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87506
87507         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87508         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87509
87510         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87511
87512 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87513
87514         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87515         (__getcwd.c): Don't restore errno; glibc doesn't.
87516         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87517         first, falling back to our code only if its results look suspicious.
87518         Ensure that the resulting buffer is only as large as necessary.
87519
87520         * lib/readutmp.c: Include readutmp.h first.
87521         Include <errno.h>, since readutmp.h no longer does that.
87522         * lib/readutmp.h: Don't include <errno.h>,
87523         <sys/param.h>, <time.h>; not needed to establish interface.
87524         (errno): Remove decl.
87525         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87526         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87527         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87528
87529 2004-11-28  Simon Josefsson  <jas@extundo.com>
87530
87531         * lib/base64.h, base64.c: New file.
87532
87533 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87534
87535         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87536
87537 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87540         (Depends-on): Remove pathmax, same.  Add mempcpy.
87541         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87542         (Makefile.am): Append getcwd.h to lib_SOURCES.
87543         (Include): Add getcwd.h.
87544         (Maintainer): Change from Jim Meyering to "all, glibc",
87545         since getdate now uses intended-for-glibc code.
87546         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87547         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87548
87549 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87550
87551         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87552         HP's ANSI C compiler.
87553         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87554         Declaring int functions causes warnings on some modern systems and
87555         shouldn't be needed to compile on ancient ones.
87556         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87557         defined.
87558
87559         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87560         with the following changes.
87561         (__set_errno): Parenthesize properly.
87562         Include <stdbool.h>.
87563         (MIN, MAX, MATCHING_INO): New macros.
87564         (__getcwd): Define with prototype, not K&R form.
87565         Use heuristics to allocate default buffer on stack if possible.
87566         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87567         behavior, and to avoid the PATH_MAX limit when computing
87568         ../../../../...
87569         Use MATCHING_INO to compare inode number to file.
87570         Check for arithmetic overflow in size calculations.
87571         Fix bug in reallocation of dot array that caused getcwd to fail
87572         on directories nested deeper than 75.
87573         Be more careful about saving errno on error.
87574         Do not use realloc; use only free+malloc, as this is a bit
87575         more flexible and avoids a needless copy operation.
87576         Do not inspect st_dev and st_ino for symbolic links; POSIX
87577         doesn't specify the latter.
87578         Check for closedir errors.
87579         Avoid needless casts.
87580         Use "#ifdef weak_alias" around weak_alias, to be like other
87581         glibc code.
87582         The following changes to getcwd.c have effect only when used in
87583         gnulib; they have no effect inside glibc proper.
87584         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87585         as alloca isn't used.
87586         (alloca, __alloca): Likewise.
87587         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87588         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87589         unconditionally, as gnulib assumes C89 or better.
87590         Do not include <sys/param.h>.
87591         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87592         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87593         better.
87594         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87595         Include <dirent.h> in a way that is compatible with modern Autoconf.
87596         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87597         New macros, if not already defined.
87598         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87599         Use "_LIBC", not "defined _LIBC", for consistency.
87600         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87601         a mempcpy module.
87602         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87603         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87604         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87605         credit only to Jim Meyering and adjust the copyright dates.
87606         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87607         <stdlib.h>, <unistd.h>, "pathmax.h".
87608         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87609         (INITIAL_BUFFER_SIZE): Remove.
87610         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87611
87612 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87615         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87616         Use the _ONCE methods, for efficiency.
87617         Check for fcntl.h.  In test program, include <errno.h>
87618         and <fcntl.h> if available.  Remove old K&R cruft from
87619         test program.  Check for common errors in GNU/Linux,
87620         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87621         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87622         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87623         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87624         name accordingly.
87625         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87626         accommodate new getcwd.c.
87627         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87628         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87629         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87630         that's all we need now.
87631
87632 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87633
87634         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87635         argp-parse.c depends on getopt internals, that means we should
87636         always use our getopt, to be on the safe side.
87637         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87638         order not to spoil the result of an eventual previous invocation
87639         of gl_GETOPT_SUBSTITUTE.
87640
87641 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87642
87643         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87644         redefinition warnings. To avoid them, include the defines
87645         in `#if !defined __need_getopt ... #endif'. The only place
87646         where __getopt_argv_const is used is in definitions
87647         of getopt_long and getopt_long_only below, which are as well
87648         protected by `#ifndef __need_getopt'.
87649         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87650         __need_getopt after including <stdio.h> and <unistd.h> These
87651         headers might have defined it.
87652
87653 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87654
87655         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87656
87657 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87658
87659         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87660         (futimens): New function, which uses futimes if available.
87661         (futimens, utimens): Support timespec==NULL, with same semantics
87662         as utime and utimens.
87663         * lib/utimens.h (futimens): New decl.
87664
87665 2004-11-23  Jim Meyering  <jim@meyering.net>
87666
87667         * lib/getopt_.h: Remove trailing blanks.
87668
87669 2004-11-23  Jim Meyering  <jim@meyering.net>
87670
87671         * lib/__fpending.c: Add comment.
87672
87673 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87674
87675         * modules/canonicalize (Depends-on): Add xreadlink.
87676         Problem reported by James Youngman.
87677
87678 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87679
87680         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87681         New macros.
87682         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87683         optopt): Use them instead of invoking ## directly; otherwise, the
87684         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87685
87686 2004-11-19  Bruno Haible  <bruno@clisp.org>
87687
87688         * lib/strtok_r.c: Move comments from here...
87689         * lib/strtok_r.h: ... to here.
87690
87691 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87692
87693         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87694         implementations that mishandle size_t overflow.
87695
87696 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87699         might fail.  Problem reported by Yoann Vandoorselaere.
87700         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87701         implementations that mishandle size_t overflow.
87702
87703 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87704
87705         * modules/canon-host (Depends-on): Add strdup.
87706
87707 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87708
87709         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87710
87711 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87712
87713         * lib/canon-host.c: Include "strdup.h".
87714         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87715         Use strdup instead of malloc/strcpy to duplicate strings.
87716
87717         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87718         (human_space_before_unit): New constant.
87719         * lib/human.c (human_readable): Support it.
87720
87721         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87722         (xgetcwd): Set errno correctly when failing.
87723         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87724         the failure is actually due to a PATH_MAX problem.
87725
87726         Further getopt changes to make it more likely that glibc will
87727         buy the changes back.
87728         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87729         (getopt): Use it, so to preserve glibc semantic
87730         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87731         when compiling for libc.
87732         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87733         (getopt_long, getopt_long_only): Use it.
87734
87735         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87736         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87737         (getopt): Argv is now char * const *, as per standard.
87738         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87739         not char *__getopt_argv_const *.
87740         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87741         _getopt_long_only_r): Likewise.
87742         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87743         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87744         _getopt_long_r, _getopt_long_only_r): Likewise.
87745         * lib/getopt_.h (__getopt_argv_const): Remove.
87746         (getopt): Argv is now char * const *, as per standard.
87747
87748         * lib/getdate.y (tORDINAL): New token.
87749         (day, relunit): Allow it for relative times.
87750         (relative_time_table): Use tORDINAL for ordinals.
87751
87752 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87753
87754         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87755         Document that "second" isn't allowed as an ordinal number.
87756
87757 2004-11-16  Jim Meyering  <jim@meyering.net>
87758
87759         * modules/closeout (Depends-on): Add fpending.
87760
87761 2004-11-15  Jim Meyering  <jim@meyering.net>
87762
87763         * lib/closeout.c: Include "__fpending.h" once again.
87764         Include <stdbool.h>.
87765         (close_stdout): Don't fail just because stdout was closed initially,
87766         since some programs don't write to stdout in the normal course of
87767         operation (other than --version and --help), and we don't want this
87768         function to make e.g. `touch file >&-' fail.
87769         But do fail if it was closed and someone has tried to write to it.
87770         E.g., `printf foo >&-' must fail.
87771
87772 2004-11-13  Jim Meyering  <jim@meyering.net>
87773
87774         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87775
87776 2004-11-12  Simon Josefsson  <jas@extundo.com>
87777
87778         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87779         small doc fix is still pending.
87780
87781 2004-11-11  Simon Josefsson  <jas@extundo.com>
87782
87783         * modules/strtok_r: New file.
87784
87785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87786         strtok_r.
87787
87788 2004-11-11  Simon Josefsson  <jas@extundo.com>
87789
87790         * m4/strtok_r.m4: New file.
87791
87792         * m4/getopt.m4: Replace opterr.
87793
87794 2004-11-11  Simon Josefsson  <jas@extundo.com>
87795
87796         * lib/strtok_r.h, strtok_r.c: New file.
87797
87798 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87801         of replacing opterr, getopt, etc.  This should handle the
87802         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87803
87804 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87807         we can stop lying to compilers about the constness of argv when we
87808         are compiled outside glibc.
87809         (getopt, getopt_long, getopt_long_only): Use it.
87810         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87811         _getopt_internal, getopt): Likewise.
87812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87813         _getopt_long_only_r): Likewise.
87814         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87815         _getopt_long_r, _getopt_long_only_r): Likewise.
87816
87817         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87818         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87819         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87820         the other external symbols.
87821         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87822         declaration, since the above renaming now works around collisions.
87823
87824 2004-11-11  Jim Meyering  <jim@meyering.net>
87825
87826         * lib/linebreak.c: Remove trailing blanks.
87827         * lib/alloca_.h: Likewise.
87828         * lib/acosl.c: Likewise.
87829         * lib/euidaccess.c: Likewise.
87830         * lib/allocsa.h: Likewise.
87831
87832 2004-11-10  Simon Josefsson  <jas@extundo.com>
87833
87834         * m4/getaddrinfo.m4: New file.
87835
87836 2004-11-10  Simon Josefsson  <jas@extundo.com>
87837
87838         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87839
87840 2004-11-10  Simon Josefsson  <jas@extundo.com>
87841
87842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87843         getaddrinfo.
87844
87845         * modules/getaddrinfo: New file.
87846
87847 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87848
87849         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87850
87851 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87852
87853         * lib/mktime.c (SHR): New macro, which is a portable
87854         substitute for >> that should work even on Crays.
87855         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87856         Problem reported by Mark D. Baushke in
87857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87858         * lib/getdate.y (SHR): Likewise.
87859         (tm_diff): Use it.
87860         * lib/strftime.c (SHR): Likewise.
87861         (tm_diff): Use it.
87862         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87863         quote_these_too, so that right shifts are well defined.  All uses
87864         changed.
87865
87866 2004-11-10  Jim Meyering  <jim@meyering.net>
87867
87868         Ensure that no close failure goes unreported.
87869         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87870         return early when it seems there's nothing to flush.
87871         Don't include __fpending.h.
87872
87873 2004-11-10  Jim Meyering  <jim@meyering.net>
87874
87875         * modules/closeout (Depends-on): Remove fpending.
87876
87877 2004-11-10  Jim Meyering  <jim@meyering.net>
87878
87879         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87880
87881 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87882
87883         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87884         gl_FUNC_STRFTIME.
87885         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87886         and AC_REQUIRE when possible, to avoid duplicate checks.
87887         Check for <wchar.h>.
87888
87889 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87890
87891         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87892
87893 2004-11-09  Bruno Haible  <bruno@clisp.org>
87894
87895         * m4/sockpfaf.m4: New file.
87896
87897 2004-11-05  Bruno Haible  <bruno@clisp.org>
87898
87899         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87900         Reported by Mark D. Baushke <mdb@cvshome.org>.
87901
87902 2004-11-04  Bruno Haible  <bruno@clisp.org>
87903
87904         2004-09-11  Bruno Haible  <bruno@clisp.org>
87905                 * allocsa.valgrind: New file.
87906         2004-02-06  Bruno Haible  <bruno@clisp.org>
87907                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87908                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87909                 Reported by Christopher Seip <chris.seip@hp.com>.
87910
87911 2004-11-04  Bruno Haible  <bruno@clisp.org>
87912
87913         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87914         (Makefile.am): Distribute it.
87915
87916 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87917
87918         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87919         with errno == ERANGE if the buffer is too small.
87920         Problem reported by Mark D. Baushke.
87921
87922 2004-11-03  Albert Chin  <china@thewrittenword.com>
87923             Paul Eggert  <eggert@cs.ucla.edu>
87924
87925         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87926         equivalent, substitute $ac_type for equivalent type rather than
87927         blindly using uint32_t *always* which won't work if uint32_t is not
87928         available.  Define _UINT32_T to work around typedef of uint32_t if
87929         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87930         2.5.1.
87931
87932 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87933
87934         * m4/jm-macros.m4: Sync from coreutils.
87935         (gl_MACROS): Check for mbrlen, for pathchk.
87936         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87937
87938 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87939
87940         * lib/xreadlink.c (MAXSIZE): New macro.
87941         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87942         size does not exceed MAXSIZE.  Avoid cast.
87943         As suggested by Mark D. Baushke in
87944         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87945         if readlink fails with buffer size just under MAXSIZE, try again
87946         with MAXSIZE.
87947
87948 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87949
87950         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87951
87952 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87953         and  Paul Eggert  <eggert@cs.ucla.edu>
87954
87955         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87956         (get_date): Overparenthesize to avoid GCC warning.
87957
87958 2004-11-02  Bruno Haible  <bruno@clisp.org>
87959
87960         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87961         returns void.
87962
87963 2004-11-02  Bruno Haible  <bruno@clisp.org>
87964
87965         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87966         function returns void.
87967
87968 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87969
87970         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87971         fflush_unlocked, flockfile, funlockfile, funlockfile,
87972         fputs_unlocked, putc_unlocked.
87973
87974 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87975
87976         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87977         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87978         already declared.
87979
87980 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87981
87982         * modules/getdate (Files): Add doc/getdate.texi.
87983         (Depends-on): Add setenv, xalloc.
87984
87985 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         * lib/getdate.y: Add support for TZ="foo" within a date string.
87988         Fix some bugs near time_t boundaries.  Reject dates with
87989         out-of-range components, e.g., "Sept 31".
87990         Include <stdlib.h>, "setenv.h", "xalloc.h".
87991         (ISDIGIT_LOCALE): Remove; unused.
87992         Note that the TZ and time functions used here are not reentrant.
87993         (mktime_ok, get_tz): New functions.
87994         (TZBUFSIZE): New constant.
87995         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87996         This requires that we sometimes generate our own TZ="XXX..." setting.
87997
87998 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         * doc/getdate.texi: New file, from coreutils with modifications for
88001         the new TZ parsing.
88002
88003 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88004
88005         * lib/mktime.c (not_equal_tm): Remove redundant check.
88006
88007 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88008
88009         * modules/regex (lib_SOURCES): Add regex.c.
88010         Reported by James Youngman in
88011         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88012
88013 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88014
88015         * lib/getdate.y: Use Bison 1.875 features, and some minor
88016         code cleanups.  This change does not affect semantics.
88017         Don't include <stdlib.h>; no longer needed.
88018         Don't include unlocked-io.h; only the "#if TEST" code uses
88019         stdio, and performance isn't crucial there.
88020         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88021         Bison 1.875 features as described below.
88022         All uses of "PC." replaced by "pc->".
88023         (YYSTYPE): Add a forward declaration.
88024         (yylex, yyerror): Use full prototypes in forward decls.
88025         Use "%pure-parser" rather than obsolescent "%pure_parser".
88026         Use %parse-param and %lex-param instead of obsolescent
88027         YYPARSE_PARAM and YYLEX_PARAM.
88028         (meridian_table, month_and_day_table, time_units_table,
88029         relative_time_table, time_zone_table, military_table,
88030         lookup_zone, lookup_word, get_date):
88031         Use NULL instead of 0 where appropriate.
88032         (to_hour): Avoid abort (), to avoid a dependency on
88033         stdlib.h.
88034         (yyerror, yylex): Now accepts parser_control * arg.
88035         (main) [TEST]: Use '\0' rather than 0 for char.
88036
88037 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88040
88041 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88042
88043         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88044         It's now the caller's responsibility to handle the case where
88045         !HAVE_GETPAGESIZE && !defined getpagesize.
88046
88047         * lib/mktime.c (leapyear): Arg is long int, not int.
88048
88049 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88050
88051         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88052
88053 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88054
88055         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88056         missing.  Problem reported by James Youngman.
88057
88058 2004-10-16  Simon Josefsson  <jas@extundo.com>
88059
88060         * gnulib-tool: Fix comments.  Fix parse problem.
88061         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88062
88063 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88064
88065         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88066         implementation of getopt_long.  Problem reported by Alexander Taler in:
88067         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88068
88069 2004-10-15  Bruno Haible  <bruno@clisp.org>
88070
88071         * gnulib-tool: Untabify. Initialize supplied_libname.
88072         (func_usage): More homogenous output.
88073         (func_modules_transitive_closure, func_modules_to_filelist,
88074         func_emit_lib_Makefile_am): New functions.
88075         (func_import): New function, extracted from big case statement. Use
88076         func_get_license, func_modules_transitive_closure,
88077         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88078         opt_lgpl. Don't use test -a, as it's not portable.
88079         (func_create_testdir): Use func_modules_transitive_closure,
88080         func_modules_to_filelist, func_emit_lib_Makefile_am.
88081
88082 2004-10-15  Bruno Haible  <bruno@clisp.org>
88083
88084         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88085
88086 2004-10-15  Bruno Haible  <bruno@clisp.org>
88087
88088         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88089         the portions belonging to each module.
88090         Suggested by Derek Robert Price <derek@ximbiot.com>.
88091
88092 2004-10-12  Simon Josefsson  <jas@extundo.com>
88093
88094         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88095         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88096         to real functions.
88097
88098 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88099
88100         * modules/vsnprintf: New file.
88101
88102 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88103
88104         * m4/vsnprintf.m4: New file.
88105
88106 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88107
88108         * lib/vsnprintf.h: New file.
88109         * lib/vsnprintf.c: New file.
88110
88111 2004-10-11  Bruno Haible  <bruno@clisp.org>
88112
88113         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88114         vsnprintf.
88115
88116 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88117
88118         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88119
88120 2004-10-07  Bruno Haible  <bruno@clisp.org>
88121
88122         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88123         fits into the provided buffer.
88124
88125 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88126
88127         * lib/diacrit.c, diacrit.h: Add GPL notice.
88128
88129         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88130         notice.
88131         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88132         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88133         This avoids a potential constant-folding bug.
88134
88135 2004-10-05  Bruno Haible  <bruno@clisp.org>
88136
88137         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88138         for the declaration of strsep.
88139
88140 2004-10-05  Bruno Haible  <bruno@clisp.org>
88141
88142         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88143
88144 2004-10-04  Simon Josefsson  <jas@extundo.com>
88145
88146         * modules/memmem: New file.
88147         * tests/test-memmem.c: New file.
88148         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88149
88150 2004-10-04  Simon Josefsson  <jas@extundo.com>
88151
88152         * m4/memmem.m4: New file.
88153
88154 2004-10-04  Simon Josefsson  <jas@extundo.com>
88155
88156         * lib/memmem.h: New file.
88157         * lib/memmem.c: New file, taken from glibc.
88158
88159 2004-10-04  Simon Josefsson  <jas@extundo.com>
88160
88161         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88162         '#ifdef USE_UNLOCKED_IO'.
88163
88164 2004-10-04  Simon Josefsson  <jas@extundo.com>
88165
88166         * config/srclist.txt: Add memmem from glibc.
88167
88168 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88169
88170         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88171
88172         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88173         modules/exclude, modules/getdate, modules/getline,
88174         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88175         modules/getusershell, modules/linebuffer, modules/md5,
88176         modules/mountlist, modules/posixtm, modules/readtokens,
88177         modules/readutmp, modules/regex, modules/sha1,
88178         modules/version-etc, modules/yesno:
88179         Remove dependency on unlocked-io.
88180
88181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88184
88185         * m4/unlocked-io.m4: Add copyright notice.
88186         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88187
88188 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88189
88190         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88191         * lib/xmalloc.c (xmemdup): Likewise.
88192         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88193         XFREE): Remove these long-obsolescent macros.
88194         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88195         * lib/xstrdup.c: Remove.
88196
88197         * lib/regex.c (re_comp): Cast gettext return value to char *,
88198         Problem reported by Martin Neitzel via Mark D. Baushke.
88199
88200 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88201
88202         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88203         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88204         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88205         regex.c, sha1.c, version-etc.c, yesno.c:
88206         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88207         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88208         the includer's responsibility.
88209
88210         Sync from coreutils.
88211
88212         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88213         points to the start of a string, as the C Standard says the
88214         resulting behavior is undefined.
88215
88216         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88217         simple -> simple_backups, numbered_existing ->
88218         numbered_existing_backups, numbered -> numbered_backups
88219         to avoid shadowing problems.  All uses changed.
88220         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88221         * lib/backupfile.c (check_extension, numbered_backup):
88222         Rename locals to avoid shadowing 'basename'.
88223         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88224         once.
88225
88226         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88227         * lib/.cvsignore: Add getopt.h.
88228
88229 2004-10-04  Bruno Haible  <bruno@clisp.org>
88230
88231         * modules/README: New file.
88232         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88233         not a module.
88234
88235 2004-10-02  Jim Meyering  <jim@meyering.net>
88236
88237         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88238
88239 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88240
88241         * modules/strsep: New file.
88242
88243 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88244
88245         * m4/strsep.m4: New file.
88246
88247 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88248
88249         * lib/strsep.h: New file.
88250         * lib/strsep.c: New file.
88251
88252 2004-10-01  Simon Josefsson  <jas@extundo.com>
88253
88254         * lib/snprintf.c (snprintf): Handle size==0.
88255
88256 2004-10-01  Simon Josefsson  <jas@extundo.com>
88257             Bruno Haible  <bruno@clisp.org>
88258
88259         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88260         (snprintf): Declare 'args'.
88261
88262 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         * lib/snprintf.c: Remove comments as to why each header is needed.
88265
88266 2004-10-01  Bruno Haible  <bruno@clisp.org>
88267
88268         * MODULES.html.sh: Add strsep.
88269
88270 2004-09-30  Simon Josefsson  <jas@extundo.com>
88271
88272         * modules/snprintf: New file.
88273
88274 2004-09-30  Simon Josefsson  <jas@extundo.com>
88275
88276         * m4/snprintf.m4: New file.
88277
88278 2004-09-30  Simon Josefsson  <jas@extundo.com>
88279
88280         * lib/snprintf.h, lib/snprintf.c: New files.
88281
88282 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88283
88284         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88285         (hol_entry_help): Never translate an empty string.
88286         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88287         * lib/argp.h (OPTION_NO_TRANS): New option.
88288
88289 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88290
88291         * modules/argp (Maintainer): Replace Simon Josefsson
88292         by Sergey Poznyakoff.
88293
88294 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88295
88296         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88297         changes merged back into glibc.
88298
88299 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88300
88301         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88302
88303 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88304
88305         * lib/xvasprintf.c: Include xalloc.h.
88306         (xvasprintf): Use xalloc_die, not xmalloc_die.
88307
88308 2004-09-29  Bruno Haible  <bruno@clisp.org>
88309
88310         * modules/alloca-opt: New file, derived from modules/alloca.
88311         * modules/allocsa: Depend on alloca-opt instead of alloca.
88312         * modules/setenv: Likewise.
88313         * modules/vasnprintf: Likewise.
88314         * MODULES.html.sh: Add alloca-opt.
88315
88316 2004-09-28  Simon Josefsson  <jas@extundo.com>
88317
88318         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88319         LGPL, and to replace license template from GPL to LGPL.
88320
88321 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88322
88323         * modules/dummy: Change license to LGPL.
88324
88325 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88326
88327         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88328
88329 2004-09-24  Simon Josefsson  <jas@extundo.com>
88330
88331         * modules/minmax (License): Change from GPL to LGPL.
88332
88333 2004-09-23  Simon Josefsson  <jas@extundo.com>
88334
88335         * gnulib-tool (--import): Typo.
88336
88337 2004-09-23  Simon Josefsson  <jas@extundo.com>
88338
88339         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88340
88341 2004-09-22  Bruno Haible  <bruno@clisp.org>
88342
88343         * modules/*: Add 'License' field.
88344         * gnulib-tool: Accept --extract-license option.
88345         (func_get_license): New function.
88346
88347 2004-09-21  Bruno Haible  <bruno@clisp.org>
88348
88349         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88350         Reported by Simon Josefsson.
88351
88352 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88353
88354         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88355         gl_AC_TYPE_LONG_LONG.
88356
88357 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88358
88359         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88360
88361 2004-09-18  Simon Josefsson  <jas@extundo.com>
88362         and  Paul Eggert  <eggert@cs.ucla.edu>
88363
88364         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88365         calls with autoreconf.  Define GL_LIB.
88366
88367 2004-09-14  Karl Berry  <karl@gnu.org>
88368
88369         * config/srclist.txt: unsync setenv.c, sigh.
88370
88371 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88372
88373         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88374         Problem reported by Bruno Haible in:
88375         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88376
88377 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88378
88379         * config/srclist.txt: Comment out argp-pvh.c.
88380
88381 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88382
88383         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88384         in case some system header has #define'd it.  Problem reported by
88385         Soeren D. Schulze in
88386         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88387
88388 2004-09-09  Karl Berry  <karl@gnu.org>
88389
88390         * regex.[ch]: delete from the root.  These were supposed to be
88391                 synced with emacs cvs, but this has not happened for about
88392                 a year, and anyway nothing else uses emacs regex.[ch].
88393                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88394                 lib/regex[.ch] is untouched.
88395
88396 2004-09-09  Bruno Haible  <bruno@clisp.org>
88397
88398         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88399
88400 2004-09-09  Bruno Haible  <bruno@clisp.org>
88401
88402         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88403         modifications.
88404         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88405
88406 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88407
88408         * modules/xvasprintf: New file.
88409         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88410
88411 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88412
88413         * lib/xvasprintf.h: New file.
88414         * lib/xvasprintf.c: New file.
88415         * lib/xasprintf.c: New file.
88416
88417 2004-09-08  Bruno Haible  <bruno@clisp.org>
88418
88419         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88420
88421 2004-09-08  Bruno Haible  <bruno@clisp.org>
88422
88423         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88424         length is > INT_MAX.
88425         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88426         more.
88427
88428 2004-09-08  Bruno Haible  <bruno@clisp.org>
88429
88430         * lib/stdint_.h: New file, taken from GNU clisp.
88431
88432 2004-09-08  Bruno Haible  <bruno@clisp.org>
88433             Oskar Liljeblad  <oskar@osk.mine.nu>
88434
88435         * modules/stdint: New file.
88436         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88437
88438 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         Import from coreutils.
88441         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88442         strings on unbounded length.  alloca's performance benefits aren't
88443         that important here.
88444         (V_STRDUP): Remove.
88445         (parse_with_separator): New function, with most of the internals
88446         of the old parse_user_spec.  Allow user to omit both user and group,
88447         for compatibility with FreeBSD.
88448         Clone only the user name, not the entire spec.
88449         Do not set *uid, *gid unless entirely successful.
88450         Avoid memory leak in some failing cases.
88451         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88452         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88453         (parse_user_spec): Rewrite to use parse_with_separator.
88454
88455 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88456
88457         * modules/userspec: Don't depend on alloca.
88458
88459 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88460
88461         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88462
88463 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88464
88465         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88466         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88467         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88468
88469 2004-08-16  Simon Josefsson  <jas@extundo.com>
88470
88471         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88472         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88473         Add --dry-run for --import.
88474         Let user provided command line parameters override configure.ac
88475         settings.
88476
88477 2004-08-12  Simon Josefsson  <jas@extundo.com>
88478
88479         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88480         as discussed with Paul Eggert in threads rooted at
88481         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88482         and
88483         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88484         Before, the test was empty, and relied on ELIDE_CODE in source
88485         code.)
88486         (gl_PREREQ_GETOPT): New macro.
88487         (gl_GETOPT): Use them.
88488
88489 2004-08-12  Simon Josefsson  <jas@extundo.com>
88490
88491         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88492         * lib/getopt_.h: Renamed from getopt.h.
88493
88494 2004-08-12  Simon Josefsson  <jas@extundo.com>
88495
88496         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88497         Change default library name from libfoo to libgnu.
88498         Now, if you have a configure.ac that says:
88499                 gl_SOURCE_BASE(gl)
88500                 gl_M4_BASE(gl/m4)
88501                 gl_MODULES(error getopt etcetera)
88502                 gl_INIT
88503         you can import all you need by running:
88504                 ../gnulib/gnulib-tool --import
88505
88506         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88507         (Makefile.am): Rewrite, use logic from argz.
88508         (Include): Use <getopt.h> instead of "getopt.h".
88509
88510 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88511
88512         * modules/argp (Files): Add m4/unlocked-io.m4.
88513         (Depends-on): Add extensions.
88514
88515 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88516
88517         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88518         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88519         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88520         Check for program_invocation_name, program_invocation_short_name,
88521         flockfile, funlockfile, features.h, _getopt_long_only_r.
88522
88523 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88524
88525         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88526         its complicated substitute.
88527         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88528         and program_invocation_name.
88529         (__argp_basename) [!_LIBC]: Remove; the only use was
88530         replaced by its body.
88531         (__argp_short_program_name): Change condition from
88532         !defined __argp_short_program_name to
88533         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88534         to match argp-namefrob.h.
88535         (__argp_failure): Don't assume strerror_r returns char *.
88536         * lib/argp-parse.c (N_): Define unconditionally.
88537         (argp_default_options): Fill out initializers with 0 to avoid
88538         gcc warnings.
88539
88540 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88541
88542         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88543         getopt1.c.
88544
88545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88546
88547         Merge from coreutils.
88548
88549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88550
88551         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88552         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88553
88554 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         Merge from coreutils.
88557
88558         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88559         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88560         for Reliant Unix 5.43.
88561
88562         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88563         (union fooround): Use uintmax_t, not long int.
88564         The rest is a merge from libc:
88565         [defined _LIBC]: Include <shlib-compat.h>.
88566         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88567
88568         * lib/settime.c (settime): Recode to avoid warning with
88569         Sun Forte C 6U2.
88570
88571         * lib/strverscmp.c: Convert to UTF-8.
88572
88573 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88576         m4/uintmax_t.m4.
88577
88578 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * modules/xalloc-die: New file.
88581         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88582
88583         * modules/md5 (Files): Add m4/uint32_t.m4.
88584         * modules/sha1: Renamed from modules/sha.
88585         (Files):
88586         Rename lib/sha.h to lib/sha1.h.
88587         Rename lib/sha.c to lib/sha1.c.
88588         Rename m4/sha.m4 to m4/sha1.m4.
88589         (lib_SOURCES): Likewise.
88590         (configure.ac): Rename gl_SHA to gl_SHA1.
88591         (Include): sha.h -> sha1.h.
88592
88593 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88594
88595         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88596         * m4/sha1.m4: Renamed from sha.m4.
88597         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88598
88599 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88600
88601         * lib/obstack.h (obstack_empty_p):
88602         Don't assume that chunk->contents is suitably aligned.
88603         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88604         Likewise. Problem reported by Benno in
88605         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88606
88607         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88608         readable.  This could be improved further but it'd take some work.
88609
88610 2004-08-08  Simon Josefsson  <jas@extundo.com>
88611
88612         * modules/xgethostname (Depends-on): Remove exit and error (not
88613         used).
88614
88615         * modules/getpass-gnu: Add getpass.h.
88616         (Depends-on): Add stdbool.
88617         * modules/getpass: Add getpass.h.
88618
88619 2004-08-08  Simon Josefsson  <jas@extundo.com>
88620
88621         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88622         Check getpass declaration.
88623
88624 2004-08-08  Simon Josefsson  <jas@extundo.com>
88625
88626         * lib/xgethostname.c: Don't include error.h (not used).
88627
88628         * lib/getpass.h: Add.
88629         * lib/getpass.c: Include getpass.h first.
88630
88631 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88632
88633         * lib/xalloc-die.c: New file.
88634         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88635         All uses removed.
88636         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88637         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88638         xalloc-die.c.
88639         (_, N_, xalloc_die): Move to xalloc-die.c.
88640         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88641         so that we needn't mess with xalloc_msg_memory_exhausted.
88642
88643         * lib/sha1.h: Renamed from sha.h.
88644         (SHA1_H): Renamed from _SHA_H.
88645         (sha1_ctx): Renamed from sha_ctx.
88646         (sha1_init_ctx): Renamed from sha_init_ctx.
88647         (sha1_process_block): Renamed from sha_process_block.
88648         (sha1_process_bytes): Renamed from sha_process_bytes.
88649         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88650         (sha1_read_ctx): Renamed from sha_read_ctx.
88651         (sha1_stream): Renamed from sha_stream.
88652         (sha1_buffer): Renamed from sha_buffer.
88653         * lib/sha1.c: Likewise; renamed from sha.c.
88654         Do not include <sys/types.h>.
88655         Include <stddef.h> rather than <stdlib.h>.
88656
88657 2004-08-08  Bruno Haible  <bruno@clisp.org>
88658
88659         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88660         FILESYSTEM_PREFIX_LEN.
88661         * lib/progreloc.c: Likewise.
88662         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88663
88664 2004-08-06  Simon Josefsson  <jas@extundo.com>
88665
88666         * modules/progname (Depends-on): Don't depend on stdbool.
88667
88668 2004-08-06  Simon Josefsson  <jas@extundo.com>
88669
88670         * modules/getsubopt: New file.
88671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88672         getsubopt.
88673
88674 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88675
88676         More merge from coreutils.
88677
88678         * m4/utimens.m4, m4/utimecmp.m4: New files.
88679         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88680         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88681         prereq.m4, sha.m4: Import changes from coreutils.
88682
88683 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88684
88685         More merge from coreutils.
88686         * modules/raise, modules/readtokens0, modules/utimens:
88687         * modules/utimecmp, module/xnanosleep: New files.
88688         * modules/strftime: Add lib/strftime.h.
88689         Change include from <time.h> to "strftime.h".
88690         * modules/yesno: Add lib/yesno.h.
88691         * modules/backupfile: Remove lib/addext.c.
88692         * modules/euidaccess: Add stat-macros.h.
88693         * modules/canonicalize, modules/euidaccess,
88694         modules/filemode, modules/lchown, modules/makepath,
88695         modules/rmdir, modules/stat: Likewise.
88696
88697 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88698
88699         Merge from tar.
88700         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88701         SIZE_MAX is a valid preprocessor constant.
88702         (__argp_basename): Change from "#ifndef _LIBC"
88703         to "#ifndef __argp_short_program_name", so that
88704         we don't compile these functions for tar.
88705
88706         More merges from coreutils.
88707         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88708         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88709         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88710         * lib/addext.c: Remove; no longer needed.
88711         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88712         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88713         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88714         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88715         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88716         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88717         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88718         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88719         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88720         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88721         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88722         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88723         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88724         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88725         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88726         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88727         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88728         Import changes from coreutils.
88729
88730 2004-08-05  Simon Josefsson  <jas@extundo.com>
88731
88732         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88733
88734 2004-08-05  Simon Josefsson  <jas@extundo.com>
88735
88736         * m4/getsubopt.m4: New file.
88737
88738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88739
88740         Merge from coreutils.
88741
88742         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88743         * m4/getcwd-path-max.m4: New files.
88744
88745         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88746         FILESYSTEM_PREFIX_LEN ->
88747         FILE_SYSTEM_PREFIX_LEN.
88748         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88749         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88750         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88751         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88752
88753         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88754         prerequisite modules now handle the DOS stuff.
88755         Don't check for unistd.h.
88756
88757 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         Merge from coreutils.
88760
88761         * lib/.gdb-history: Remove; this doesn't belong here.
88762
88763         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88764         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88765         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88766         * lib/getcwd.c: New files.
88767
88768         * lib/dirname.h: Include <stdbool.h>.
88769         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88770         for consistency with POSIX terminology.  All uses changed.
88771         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88772         (strip_trailing_slashes): Use bool for booleans.
88773         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88774
88775         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88776         sometimes returns a positive errno value even when it succeeds.
88777         (print_errno_message) [!LIBC]: Fall back on strerror if
88778         __strerror_r fails.
88779
88780         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88781         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88782         (longest_relative_suffix): New function.
88783         (path_concat): Use it.  Assume first argument is not NULL.
88784         Port to DOS.  Omit redundant separators.
88785         Report an error instead of returning NULL.
88786         Use mempcpy instead of memcpy.
88787         (xpath_concat): Remove: not declared or used.
88788
88789         * lib/same.h: Include <stdbool.h>
88790         (same_name): Return bool, not int.
88791         * lib/same.c (same_name): Likewise.
88792         (errno): Don't declare; we assume C89 or better now.
88793
88794         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88795         if not already defined.
88796
88797         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88798         * lib/dup-safer.c (errno): Likewise.
88799
88800 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88801
88802         Merge from coreutils.
88803         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88804         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88805         * modules/path-concat: Don't depend on strdup.
88806
88807 2004-08-03  Simon Josefsson  <jas@extundo.com>
88808
88809         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88810         * lib/progname.h: Don't include stdbool.h.
88811
88812 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88813
88814         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88815         * MODULES.html.sh (func_all_modules): Remove fatal.
88816
88817 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88818
88819         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88820
88821 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88822
88823         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88824         working.
88825
88826 2004-08-02  Simon Josefsson  <jas@extundo.com>
88827
88828         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88829         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88830         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88831
88832 2004-08-01  Simon Josefsson  <jas@extundo.com>
88833
88834         * lib/xgetdomainname.c: Include stdlib.h, for free().
88835
88836 2004-07-19  Bruno Haible  <bruno@clisp.org>
88837
88838         * MODULES.html.sh (func_all_modules): Add dummy.
88839
88840 2004-07-16  Simon Josefsson  <jas@extundo.com>
88841
88842         * modules/dummy: New file.
88843
88844 2004-07-16  Simon Josefsson  <jas@extundo.com>
88845
88846         * lib/dummy.c: New file.
88847
88848 2004-07-16  Bruno Haible  <bruno@clisp.org>
88849
88850         * lib/backupfile.h: Add extern "C" for C++.
88851         * lib/closeout.h: Likewise.
88852         * lib/copy-file.h: Likewise.
88853         * lib/findprog.h: Likewise.
88854         * lib/full-write.h: Likewise.
88855         * lib/pathname.h: Likewise.
88856         * lib/progname.h: Likewise.
88857         * lib/stpcpy.h: Likewise.
88858         * lib/stpncpy.h: Likewise.
88859         * lib/strcase.h: Likewise.
88860         * lib/strstr.h: Likewise.
88861         * lib/xalloc.h: Likewise.
88862
88863         * lib/mbswidth.h: Add extern "C" for C++.
88864         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88865
88866 2004-07-13  Robert Millan  <robertmh@gnu.org>
88867
88868         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88869
88870 2004-07-09  Simon Josefsson  <jas@extundo.com>
88871
88872         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88873         failed without this.)
88874
88875 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88876
88877         * modules/chown (Files): Add lib/fchown-stub.c, since
88878         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88879
88880 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88881
88882         * lib/fchown-stub.c: New file.
88883
88884 2004-06-24  Jim Meyering  <jim@meyering.net>
88885
88886         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88887
88888 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88889
88890         * modules/argz: Omit "#include".
88891
88892         * MODULES.html.sh (func_all_modules): Add calloc, to match
88893         2004-06-01 addition of calloc module.
88894
88895 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88896
88897         * m4/argz.m4: New file, which is autoupdated from libtool.
88898
88899 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88900
88901         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88902         libtool.
88903
88904 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88905
88906         * config/srclist-update: Don't insist on "USA." before the
88907         close-comment, as libtool omits the period and puts the */ on a
88908         separate line.
88909         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88910         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88911
88912 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88913
88914         * modules/argz: New file.
88915         * MODULES.html.sh (func_all_modules): Add argz.
88916
88917 2004-06-12  Jim Meyering  <jim@meyering.net>
88918         and  Paul Eggert  <eggert@cs.ucla.edu>
88919
88920         * modules/hash (Files): Add lib/xalloc.h.
88921         * modules/pipe (Depends-on): Add wait-process.
88922         * modules/stat (Depends-on): Add xalloc.
88923         * modules/userspec (Files): Add lib/userspec.h.
88924         * modules/xstrto
88925
88926         Upgrade from gettext-0.13.
88927         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88928         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88929         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88930
88931 2004-06-10  Jim Meyering  <jim@meyering.net>
88932
88933         * lib/calloc.c: New file.
88934
88935 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88936
88937         * lib/getdate.y (yylex): Allow space between sign and number.
88938         Problem reported by Dan Jacobson.
88939
88940 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88941
88942         Merge from coreutils CVS.
88943
88944         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88945         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88946         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88947         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88948         xstrtol.m4: Fix copyright date and/or serial number.
88949
88950         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88951         See if we need an fchown replacement.
88952         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88953         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88954         and use the replacement function if we detect either defect.
88955
88956         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88957         gl_UTIMECMP.
88958
88959 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88960         and  Jim Meyering  <jim@meyering.net>
88961
88962         Merge from coreutils CVS.
88963
88964         * lib/stat-macros.h: New file, with contents from file-type.h
88965         and coreutils' system.h.
88966         * lib/file-type.c: Include "stat-macros.h".
88967         * lib/file-type.h (file_type): Move all macro definitions to new file,
88968         stat-macros.h.
88969
88970         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88971         Wrap old code with this conditional.
88972         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88973         function that does not dereference symlinks.
88974         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88975
88976         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88977         dependency problems.
88978         (xreadlink): Accept new arg SIZE, for efficiency.
88979         All decls and uses changed.
88980         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88981
88982         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88983         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88984
88985         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88986         sysexits.h.
88987
88988 2004-06-01  Jim Meyering  <jim@meyering.net>
88989
88990         * m4/calloc.m4: New file.
88991
88992 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88993
88994         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88995         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88996         Also, fix a typo in a diagnostic.
88997
88998 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88999
89000         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89001         or AC_FUNC_REALLOC.
89002
89003 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89004
89005         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89006         macros to be defined.
89007         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89008         the allocator returns NULL because the requested size is zero.
89009
89010 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89011
89012         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89013         var.  Add comment explaining why libc still defines it.  This
89014         merges the following patch from glibc:
89015         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89016
89017 2004-05-20  Andreas Schwab  <schwab@suse.de>
89018
89019         * m4/free.m4: Replace free if it not known to work, not the other
89020         way round.
89021
89022 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89023
89024         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89025         present in glibc since revision 1.1 of this file.
89026         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89027         obstack_alignment_mask, obstack_alloc, obstack_base,
89028         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89029         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89030         obstack_grow0, obstack_init, obstack_int_grow,
89031         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89032         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89033         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89034         nonexistent functions.
89035
89036 2004-05-18  Karl Berry  <karl@gnu.org>
89037
89038         * config/srclist.txt: break link for vasnprintf.c.
89039
89040 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89041
89042         Port obstack to the AS/400, where pointers are 16 bytes wide and
89043         you cannot cast an integer to a valid pointer.  This patch is
89044         currently waiting to be integrated into glibc; see
89045         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89046
89047         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89048         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89049         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89050         (struct obstack): temp member is now a union of a pointer and
89051         an integer, instead of an integer.  All integer uses changed.
89052         This does not affect the physical layout of struct obstack,
89053         except on hosts (like the AS/400) where the size or alignment of
89054         void * is greater than that of ptrdiff_t.
89055         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89056         __STDC__)]: Store temporary in pointer member of union, not
89057         integer member.
89058         * lib/obstack.c: Include <stddef.h>, for offsetof.
89059         (struct fooalign): Remove; it doesn't need a name.
89060         (union fooround): Change double to long double, and add void *.
89061         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89062         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89063         not a macro.  Hence the values are always int; so remove all
89064         casts-to-int in uses.
89065
89066 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89067
89068         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89069         we can get this patch merged into glibc.
89070
89071 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89072             Paul Eggert  <eggert@cs.ucla.edu>
89073
89074         * m4/argp: Depend on alloca.
89075
89076 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89077             Paul Eggert  <eggert@cs.ucla.edu>
89078
89079         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89080         freecoding.
89081
89082 2004-05-17  Bruno Haible  <bruno@clisp.org>
89083
89084         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89085         precision that consists of a '.' followed by an empty digit string.
89086         Patch by Tor Lillqvist <tml@iki.fi>.
89087
89088 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89089
89090         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89091         for backward compatibility with older code.  We need our own
89092         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89093         it under some other name, and our alloca.h will define it.
89094
89095 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89096             Derek Price  <derek@ximbiot.com>
89097
89098         * lib/alloca.c: Include <alloca.h>, to get our interface.
89099         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89100         include <alloca.h> first.  Use C89 prototype for alloca; this
89101         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89102         Use #elif for simplicity, since we can assume C89 now.
89103         Don't try to source the system alloca.h since it will not be found
89104         and to prevent recursively including its replacement.
89105         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89106         * lib/regex.c: Likewise.
89107
89108 2004-05-16  Derek Price  <derek@ximbiot.com>
89109             Paul Eggert  <eggert@cs.ucla.edu>
89110
89111         getline cleanup.  This changes the getndelim2 API: both order of
89112         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89113         no delimiter).
89114
89115         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89116         interface does that.
89117         (getline): Always use getdelim, so that we don't have two
89118         copies of this code.
89119         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89120         if available.
89121         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89122         (GETNDELIM2_MAXIMUM): New macro.
89123         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89124         instead of the old practice of delim2==0.  All callers changed.
89125         Return -1 on overflow, instead of returning junk.
89126         Do not set *linesize unless allocation succeeds.
89127         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89128         that we include sys/types.h.
89129         * lib/getnline.h: Likewise.
89130         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89131         (getndelim2): Reorder arguments.
89132         * lib/getnline.c (getnline, getndelim):
89133         Don't discard the NMAX argument.
89134         (getnline): Invoke getndelim, to avoid code duplication.
89135         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89136         of (size_t) -1 by callers of the getnline family.
89137
89138 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89139
89140         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89141         Check for gettimeofday.
89142         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89143         Check for settimeofday, stime.
89144
89145 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         * lib/nanosleep.c (suspended): Change its type from int to
89148         sig_atomic_t volatile.
89149         (first_call): Make it private to rpl_nanosleep, and have it
89150         be zero initially as that's a bit faster.
89151         (my_usleep): Round up fractional times instead of truncating them,
89152         as this is the usual meaning for 'sleep'.
89153
89154         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89155         doesn't work.
89156         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89157         (ENOSYS): Define if not defined.
89158         (settime): Fall back on stime if it exists and settimeofday fails.
89159         But don't bother with fallbacks if a method fails with errno == EPERM.
89160
89161 2004-05-11  Jim Meyering  <jim@meyering.net>
89162
89163         Prior to this change, the save_cwd caller required read access to the
89164         current directory on most systems (ones with the fchdir function).
89165
89166         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89167         fails, try write-only, and finally, resort to using xgetcwd.
89168
89169 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89170
89171         * lib/obstack.c, obstack.h: Import changes from libc.
89172
89173 2004-04-28  Bruno Haible  <bruno@clisp.org>
89174
89175         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89176         also implicitly appends .exe to executables.
89177         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89178         accepts Windows pathnames.
89179         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89180         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89181         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89182         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89183         Reported by Derek Robert Price <derek@ximbiot.com>.
89184
89185 2004-04-21  Karl Berry  <karl@gnu.org>
89186
89187         * config/srclist.txt (localcharset.c): break sync.
89188
89189 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89190
89191         * m4/host-os.m4: Add a copyright notice.
89192
89193 2004-04-20  Jim Meyering  <jim@meyering.net>
89194
89195         Change UTILS_ to gl_ in AC_DEFINE'd names.
89196         Change utils_- and jm_-prefixed variables, too.
89197         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89198         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89199         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89200
89201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89202         Don't emit trailing blanks.
89203         Also rename jm_-prefixed variables to have gl_ prefix.
89204
89205         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89206         Also rename jm_-prefixed variables to have gl_ prefix.
89207
89208         * m4/jm-macros.m4: Reflect the renamings.
89209         * m4/prereq.m4: Likewise.
89210
89211 2004-04-20  Jim Meyering  <jim@meyering.net>
89212
89213         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89214         memory.
89215
89216 2004-04-20  Jim Meyering  <jim@meyering.net>
89217             Bruno Haible  <bruno@clisp.org>
89218
89219         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89220         memory when realloc fails.
89221
89222 2004-04-19  Jim Meyering  <jim@meyering.net>
89223
89224         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89225         now that readutmp.c may call `free (0)'.
89226
89227 2004-04-19  Bruno Haible  <bruno@clisp.org>
89228
89229         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89230         * m4/inttypes_h.m4: Likewise.
89231         * m4/stdint_h.m4: Likewise.
89232         * m4/intmax_t.m4: Likewise.
89233         * m4/uintmax_t.m4: Likewise.
89234
89235 2004-04-18  Jim Meyering  <jim@meyering.net>
89236
89237         * m4/prereq.m4: Don't forbid jm_ prefix.
89238
89239         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89240         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89241         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89242         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89243         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89244         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89245         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89246         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89247         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89248         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89249         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89250         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89251         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89252         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89253         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89254         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89255         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89256         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89257         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89258
89259 2004-04-18  Jim Meyering  <jim@meyering.net>
89260
89261         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89262         failure, don't leak memory and do call END_UTMP_ENT.
89263
89264 2004-04-16  Jim Meyering  <jim@meyering.net>
89265
89266         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89267         coreutils' stat program.
89268         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89269
89270 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89271
89272         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89273         C89.
89274         (CHAR_BIT): Remove, since we assume C89.
89275         Include <stdint.h> if available, as per current Autoconf CVS advice.
89276
89277 2004-03-31  Jim Meyering  <jim@meyering.net>
89278
89279         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89280         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89281         * m4/xalloc.m4: Likewise.
89282
89283 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89284
89285         Merge from coreutils.
89286
89287         * m4/inttostr.m4: New file.
89288         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89289         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89290         Require gl_CLOCK_TIME.
89291         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89292
89293 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89294
89295         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89296         not bool, to be more consistent with Unix conventions.
89297         Suggested by Bruno Haible.
89298
89299         Merge from coreutils.
89300
89301         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89302         * lib/umaxtostr.c: New files.
89303
89304         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89305         the usual <time.h> dance.
89306         (get_date): Change signature to support fractional time stamps.
89307         All callers changed.
89308         * lib/getdate.y: Include "getdate.h" first, as we can now
89309         assume C89 and don't need to worry about 'const'.
89310         Similarly, include "unlocked-io.h" near start, not in middle.
89311         Include <limits.h>.
89312         (textint.value): Use long int rather than int.
89313         (textint.digits): Use size_t rather than int.
89314         (BILLION, LOG10_BILLION): New constants.
89315         (parser_control): New member rel_ns.  Members day_ordinal,
89316         time_zone, month, day, hour, minutes, rel_year, rel_month,
89317         rel_day, rel_hour, rel_minutes, rel_seconds
89318         are now long int, not int.  Member seconds is now struct timespec,
89319         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89320         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89321         not int.
89322         (%union.intval): Now long int, not int.
89323         New member timespec.
89324         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89325         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89326         (spec): Now is a timespec or an item list.
89327         (timespec, items): New nonterminals.
89328         (time, rel, relunit, number, get_date):
89329         Add support for fractional seconds.
89330         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89331         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89332         (to_hour): First arg is now long int, not int.
89333         (to_year): Returns long int, not int.
89334         Don't treat year -70 like 70.
89335         (tm_diff): Returns long int, not int.
89336         (lookup_word): Use bool instead of int when appropriate.
89337         (yylex): Use size_t for count, not int.
89338         Detect overflow when parsing large integer constants.
89339         Add support for fractions.
89340         (get_date): Make pointers 'const' if possible.
89341         Use more-portable code to detect integer overflow.
89342         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89343         Don't use ctime; it's not reliable if the year has >4 digits.
89344
89345         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89346         This is for compatibility with BSD.
89347
89348         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89349         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89350         From coreutils' system.h.
89351
89352         * lib/userspec.c: Don't include "posixver.h".
89353         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89354         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89355         compatible extension.  Simplify code by removing a boolean int
89356         that was always nonzero if a string was nonnull.
89357
89358 2004-03-30  Jim Meyering  <jim@meyering.net>
89359
89360         Merge from coreutils.
89361
89362         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89363         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89364         on some systems one must include <grp.h> before it.
89365         Reported by Christian Krackowizer.
89366
89367 2004-03-30  Jim Meyering  <jim@meyering.net>
89368
89369         Merge from coreutils.
89370
89371         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89372
89373         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89374         an empty input stream.
89375
89376         * lib/readtokens.c: Include <stdbool.h>.
89377         (readtoken): Use `size_t' rather than int/long.
89378         All callers adjusted.
89379         Use `bool' rather than `int' where appropriate.
89380         Use memset rather than an explicit loop.
89381         Use x2nrealloc rather than xrealloc.
89382         Allow the use of `\0' as a delimiter.
89383         (readtokens): Likewise.
89384         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89385
89386 2004-03-30  Jim Meyering  <jim@meyering.net>
89387
89388         * m4/realloc.m4: Remove file, since now it does no more than
89389         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89390         the `configure.ac' section of module/realloc.
89391         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89392
89393 2004-03-30  Bruno Haible  <bruno@clisp.org>
89394
89395         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89396         nonnull.
89397
89398 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89399
89400         Merge changes to getloadavg.c from coreutils and Emacs.
89401
89402         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89403         Define to an expression, not to the empty string.
89404         Include cloexec.h and xalloc.h.
89405         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89406         Use set_cloexec_flag rather than rolling our own.
89407         * lib/cloexec.c, lib/cloexec.h: New files.
89408
89409 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89410
89411         * m4/cloexec.m4: New file.
89412
89413 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89414
89415         * lib/getopt.h: Sync with libc CVS.
89416
89417 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89418             Bruno Haible  <bruno@clisp.org>
89419
89420         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89421         mbswidth.
89422
89423 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89424             Bruno Haible  <bruno@clisp.org>
89425
89426         * lib/mbswidth.h: Include <wchar.h> only if
89427         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89428         <wchar.h>.
89429         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89430
89431 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89434         Sync with libc CVS.
89435         * lib/getopt_int.h: New file, also synced from libc.
89436
89437 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89438
89439         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89440         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89441         Bring back getopt.c, getopt.h, getopt1.c.
89442
89443 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89444
89445         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89446         All uses changed.  Check for sa_sigaction member; this fixes
89447         a bug first reported by Jason Andrade in
89448         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89449
89450 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89451
89452         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89453         '#if' expressions.  Unlike the code it replaces, it does not
89454         depend on (defined _SC_PAGESIZE).  However, it does depend on
89455         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89456         first reported by Jason Andrade in
89457         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89458
89459 2004-02-25  Simon Josefsson  <jas@extundo.com>
89460
89461         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89462
89463 2004-02-25  Simon Josefsson  <jas@extundo.com>
89464
89465         * lib/strdup.h: New file.
89466         * lib/strdup.c: Include it.
89467         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89468         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89469
89470 2004-02-23  Karl Berry  <karl@gnu.org>
89471
89472         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89473         (from fencepost.gnu.org:/gd/gnuorg).
89474
89475 2004-02-23  Karl Berry  <karl@gnu.org>
89476
89477         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89478         * config/srclist.txt: add maintain/standards documents.
89479
89480 2004-02-18  Bruno Haible  <bruno@clisp.org>
89481
89482         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89483         Reported by Derek Robert Price <derek@ximbiot.com>.
89484
89485 2004-02-16  Karl Berry  <karl@gnu.org>
89486
89487         * config/mkinstalldirs, install-sh: update from automake.
89488
89489 2004-02-06  Karl Berry  <karl@gnu.org>
89490
89491         * m4/po.m4: update from gettext 0.14.1.
89492
89493 2004-02-06  Karl Berry  <karl@gnu.org>
89494
89495         * lib/config.charset: update from gettext 0.14.1.
89496
89497 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89498
89499         Add comments and code, prompted by suggestions from Bruno Haible
89500         for sh-quote.
89501         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89502         describing the enum quoting_style values.
89503         * lib/quotearg.c (quotearg_alloc): New function.
89504         (quotearg_buffer_restyled): Treat lone { and } as special.
89505         Treat = as special.  Work around bug with older shells
89506         that "see" a '\' that is really the 2nd byte of a multibyte char.
89507         Quote empty string with shell_quoting_style.
89508
89509 2004-02-03  Bruno Haible  <bruno@clisp.org>
89510
89511         * m4/pipe.m4: New file, from GNU gettext.
89512
89513 2004-02-03  Bruno Haible  <bruno@clisp.org>
89514
89515         * lib/pipe.h: New file, from GNU gettext.
89516         * lib/pipe.c: New file, from GNU gettext.
89517
89518 2004-01-27  Bruno Haible  <bruno@clisp.org>
89519
89520         * m4/execute.m4: New file, from GNU gettext.
89521
89522 2004-01-27  Bruno Haible  <bruno@clisp.org>
89523
89524         * lib/execute.h: New file, from GNU gettext.
89525         * lib/execute.c: New file, from GNU gettext.
89526         * lib/w32spawn.h: New file, from GNU gettext.
89527
89528 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89529
89530         Merge from diffutils.
89531
89532         * lib/file-type.c (file_type): Add typed memory objects.
89533         * lib/file-type.h (S_TYPEISTMO): New macro.
89534
89535         * lib/c-stack.h (c_stack_action): Remove argv argument.
89536         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89537         (die): Don't calculate message unless segv_action returns.
89538         (get_stack_location, min_address_from_argv, max_address_from_argv,
89539         volatile stack_base, volatile_stack_size): Remove.
89540         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89541         that every segmentation violation is a stack overflow.  (Ouch!)
89542         See Debian bug 136249 (still outstanding) for more info about why
89543         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89544
89545 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89546
89547         Exit-status fix from coreutils.
89548
89549         Use exit_failure consistently in place of EXIT_FAILURE,
89550         so that program exit statuses are consistent on failure.
89551
89552         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89553         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89554         * lib/argmatch.h: Comment fix to match the above.
89555         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89556         Now a macro referring to exit_failure, instead of a separate
89557         variable.  Include "exitfail.h" to get it.
89558         * lib/xstrtol.h: Include "exitfail.h".
89559         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89560
89561         * lib/long-options.c (parse_long_options): Use prototype
89562         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89563         for clarity.
89564
89565 2004-01-21  Jim Meyering  <jim@meyering.net>
89566
89567         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89568         so as not to conflict with a different-sized __mktime_internal
89569         function in GNU libc.
89570         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89571         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89572
89573 2004-01-20  Karl Berry  <karl@gnu.org>
89574
89575         * config/config.guess: update from config.
89576
89577         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89578
89579 2004-01-20  Bruno Haible  <bruno@clisp.org>
89580
89581         Safer stack allocation.
89582         * lib/setenv.c: Include allocsa.h.
89583         (alloca): Remove fallback definition.
89584         (freea): Remove macro.
89585         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89586         instead of freea.
89587
89588 2004-01-20  Bruno Haible  <bruno@clisp.org>
89589
89590         * m4/eealloc.m4: New file, from GNU gettext.
89591
89592 2004-01-20  Bruno Haible  <bruno@clisp.org>
89593
89594         * m4/allocsa.m4: New file, from GNU gettext.
89595
89596 2004-01-20  Bruno Haible  <bruno@clisp.org>
89597
89598         * lib/xallocsa.h: New file, from GNU gettext.
89599         * lib/xallocsa.c: New file, from GNU gettext.
89600
89601 2004-01-20  Bruno Haible  <bruno@clisp.org>
89602
89603         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89604
89605 2004-01-20  Bruno Haible  <bruno@clisp.org>
89606
89607         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89608         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89609         specially.
89610
89611 2004-01-20  Bruno Haible  <bruno@clisp.org>
89612
89613         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89614         patch.
89615
89616 2004-01-20  Bruno Haible  <bruno@clisp.org>
89617
89618         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89619
89620 2004-01-20  Bruno Haible  <bruno@clisp.org>
89621
89622         * lib/eealloc.h: New file.
89623
89624 2004-01-20  Bruno Haible  <bruno@clisp.org>
89625
89626         * lib/binary-io.h: Avoid warnings on Cygwin.
89627
89628 2004-01-20  Bruno Haible  <bruno@clisp.org>
89629
89630         * lib/allocsa.h: New file, from GNU gettext.
89631         * lib/allocsa.c: New file, from GNU gettext.
89632
89633 2004-01-18  Karl Berry  <karl@gnu.org>
89634
89635         * doc/gpl.texi, doc/lgpl.texi: new files.
89636
89637 2004-01-18  Karl Berry  <karl@gnu.org>
89638
89639         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89640         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89641
89642 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89643
89644         Merge from coreutils.
89645
89646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89647         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89648         (gl_DEFAULT_POSIX2_VERSION): Move
89649         the documentation from 'configure' into 'config.hin',
89650         so that 'configure --help' isn't burdened by it and
89651         we don't have to worry about its formatting there.
89652         Reword the documentation so that it's more succinct
89653         and can be run together into a single paragraph.
89654         * m4/same.m4 (gl_SAME): Check for pathconf.
89655
89656 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89657
89658         Merge from coreutils.
89659
89660         * lib/posixver.c: Include posixver.h.
89661
89662         * lib/same.c: Include <stdbool.h>, <limits.h>.
89663         (_POSIX_NAME_MAX): Define if not defined.
89664         (MIN): New macro.
89665         (same_name): If file names are silently truncated, report
89666         that the file names are the same if they are the same after
89667         the silent truncation.
89668
89669         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89670         conversion function.
89671         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89672         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89673         longer needed.
89674
89675 2004-01-15  Jim Meyering  <jim@meyering.net>
89676
89677         Merge from coreutils.
89678
89679         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89680         if no library is required.
89681         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89682         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89683         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89684         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89685         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89686         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89687         value, $ac_cv_search_crypt, if it's "none required".
89688         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89689         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89690         not gl_FUNC_GETLOADAVG.
89691         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89692         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89693
89694 2004-01-15  Jim Meyering  <jim@meyering.net>
89695
89696         Merge from coreutils.
89697
89698         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89699         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89700         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89701
89702         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89703         optional configure-time default.
89704
89705         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89706
89707         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89708
89709 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89710
89711         Merge from coreutils.
89712
89713         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89714         value, $ac_cv_search_nanosleep, if it's "none required".
89715
89716 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89717
89718         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89719         with like-named macro in fnmatch.c.
89720         (EXT): Use an internal constant instead.
89721
89722         Merge fnmatch patches from glibc.
89723         * lib/fnmatch.c (mbsinit): Remove define.
89724         Add libc_hidden_ver (__fnmatch, fnmatch).
89725         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89726         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89727
89728 2004-01-14  Karl Berry  <karl@gnu.org>
89729
89730         * config/install-sh: update from automake.
89731
89732 2004-01-13  Karl Berry  <karl@gnu.org>
89733
89734         * config/install-sh: update from automake.
89735
89736 2004-01-09  Karl Berry  <karl@gnu.org>
89737
89738         * config/install-sh: update from automake.
89739
89740 2004-01-05  Karl Berry  <karl@gnu.org>
89741
89742         * config/config.{sub,guess}: update from config.
89743
89744 2003-12-31  Karl Berry  <karl@gnu.org>
89745
89746         * config/depcomp: update from automake.
89747
89748 2003-12-14  Karl Berry  <karl@gnu.org>
89749
89750         * lib/config.charset: update from gettext-runtime.
89751
89752 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89753
89754         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89755         Bug reported by Alfred M. Szmidt.
89756
89757 2003-12-03  Bruno Haible  <bruno@clisp.org>
89758
89759         * m4/gettext.m4: Upgrade from gettext-0.13.
89760         * m4/po.m4: Upgrade from gettext-0.13.
89761         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89762         * m4/intmax.m4: New file, from gettext-0.13.
89763         * m4/printf-posix.m4: New file, from gettext-0.13.
89764
89765 2003-11-29  Karl Berry  <karl@gnu.org>
89766
89767         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89768
89769 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89770             Bruno Haible  <bruno@clisp.org>
89771
89772         * lib/printf-parse.h: Don't include sys/types.h.
89773         (ARG_NONE): New macro.
89774         (char_directive): Change type of *arg_index fields to size_t.
89775         * lib/printf-parse.c: Don't include sys/types.h.
89776         (SSIZE_MAX): Remove macro.
89777         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89778         Remove unnecessary overflow check.
89779         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89780         fields.
89781
89782 2003-11-25  Bruno Haible  <bruno@clisp.org>
89783
89784         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89785
89786 2003-11-25  Bruno Haible  <bruno@clisp.org>
89787
89788         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89789         gt_TYPE_SSIZE_T.
89790
89791 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89792
89793         * modules/alloca: Remove dependency on xalloc.
89794
89795 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89796
89797         * lib/alloca.c: Remove dependency on xalloc module.
89798         (xalloc_die): Remove.
89799         (memory_full) [!defined emacs]: New macro.
89800         [!defined emacs]: Don't include xalloc.h.
89801         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89802         address arithmetic overflows.  Change datatypes a bit to avoid
89803         unnecessary casts.
89804
89805 2003-11-22  Jim Meyering  <jim@meyering.net>
89806
89807         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89808         s/size/size_t/.
89809
89810 2003-11-21  Karl Berry  <karl@gnu.org>
89811
89812         * config/config.{sub,guess}: update from config.
89813
89814 2003-11-18  Karl Berry  <karl@gnu.org>
89815
89816         * config/config.{sub,guess}: update from config.
89817
89818         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89819
89820 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89821
89822         * README: Mention that S+T cannot overflow if S is the size of
89823         an existing object and T is sufficiently small.
89824
89825 2003-11-17  Jim Meyering  <jim@meyering.net>
89826
89827         On systems without utime and without a utimes function capable of
89828         dealing with a NULL struct utimbuf* argument, this utime replacement
89829         could -- in unusual circumstances -- leak a file descriptor.
89830         * lib/utime.c: Include <unistd.h> and <errno.h>.
89831         (utime_null): Be sure to close `fd' and to preserve errno.
89832         Reported by Geoff Collyer via Arnold Robbins.
89833
89834 2003-11-17  Bruno Haible  <bruno@clisp.org>
89835
89836         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89837         (Depends-on): Add xsize.
89838
89839 2003-11-17  Bruno Haible  <bruno@clisp.org>
89840
89841         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89842
89843 2003-11-17  Bruno Haible  <bruno@clisp.org>
89844
89845         * lib/vasnprintf.c (alloca): Remove fallback definition.
89846         (freea): Remove definition.
89847         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89848         Reported by Paul Eggert.
89849
89850 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89851             Bruno Haible  <bruno@clisp.org>
89852
89853         Protect against address arithmetic overflow.
89854         * lib/printf-args.h: Include stddef.h.
89855         (arguments): Change type of field 'count' to size_t.
89856         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89857         'unsigned int' where appropriate.
89858         * lib/printf-parse.h: Include sys/types.h.
89859         (char_directive): Change type of *arg_index fields to ssize_t.
89860         (char_directives): Change type of fields 'count', max_*_length to
89861         size_t.
89862         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89863         (SSIZE_MAX): Define fallback value.
89864         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89865         instead of 'int' where appropriate. Check a_allocated, d_allocated
89866         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89867         * lib/vasnprintf.c: Include xsize.h.
89868         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89869         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89870         overflow. Avoid wraparound when converting a width or precision from
89871         decimal to binary.
89872
89873 2003-11-16  Bruno Haible  <bruno@clisp.org>
89874
89875         Update from GNU gettext.
89876         * lib/printf-parse.c: Generalize to it can be compiled for wide
89877         strings.
89878         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89879         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89880         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89881         SNPRINTF): New macros.
89882         Don't include <alloca.h> if the file is used inside libintl.
89883         (local_wcslen): New function, for Solaris 2.5.1.
89884         (VASNPRINTF): Use it instead of wcslen.
89885
89886 2003-11-16  Bruno Haible  <bruno@clisp.org>
89887
89888         * lib/xsize.h (xmax): New function.
89889         (xsum, xsum3, xsum4): Declare as "pure" functions.
89890
89891 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89892
89893         * modules/xalloc (Files): Undo latest change, since xalloc.h
89894         no longer needs SIZE_MAX or PTRDIFF_MAX.
89895
89896 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89897
89898         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89899         gl_PTRDIFF_MAX.
89900
89901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89902
89903         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89904         "return", to pacify some unknown compiler.  Problem reported
89905         by Joerg Schilling.
89906
89907 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89908
89909         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89910         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89911         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89912         heuristic is just as accurate as far as we know, and it removes a
89913         dependency on size_max.m4 and ptrdiff_max.m4.
89914
89915 2003-11-11  Bruno Haible  <bruno@clisp.org>
89916
89917         * modules/xsize (Files): Add m4/size_max.m4.
89918         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89919
89920 2003-11-11  Bruno Haible  <bruno@clisp.org>
89921
89922         * m4/size_max.m4: New file.
89923         * m4/ptrdiff_max.m4: New file.
89924         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89925         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89926         (gl_XALLOC): Invoke it.
89927
89928 2003-11-11  Bruno Haible  <bruno@clisp.org>
89929
89930         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89931         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89932         defined.
89933
89934 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89935
89936         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89937         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89938         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89939         From Bruno Haible.
89940         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89941         not (size_t) -1, since it's defined here.
89942
89943 2003-11-09  Karl Berry  <karl@gnu.org>
89944
89945         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89946
89947 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89948
89949         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89950         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89951         Reject sizes of exactly SIZE_MAX bytes.
89952         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89953         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89954
89955 2003-11-05  Bruno Haible  <bruno@clisp.org>
89956
89957         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89958         SIZE_MAX defined in <limits.h> on Solaris.
89959
89960 2003-11-04  Jim Meyering  <jim@meyering.net>
89961
89962         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89963         variable names, rather than @VAR@.
89964         * modules/poll: Likewise.
89965
89966 2003-11-04  Bruno Haible  <bruno@clisp.org>
89967
89968         * modules/xsize: New file.
89969         * modules/linebreak: Depend on xsize.
89970         * MODULES.html.sh (func_all_modules): Add xsize.
89971
89972 2003-11-04  Bruno Haible  <bruno@clisp.org>
89973
89974         * m4/xsize.m4: New file.
89975
89976 2003-11-04  Bruno Haible  <bruno@clisp.org>
89977
89978         * lib/xsize.h: New file.
89979         * lib/linebreak.c: Include xsize.h.
89980         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89981         argument for overflow.
89982         Suggested by Paul Eggert.
89983
89984 2003-11-03  Karl Berry  <karl@gnu.org>
89985
89986         * config/config.{guess,sub}: update from config.
89987
89988 2003-11-03  Jim Meyering  <jim@meyering.net>
89989
89990         * modules/userspec (lib_SOURCES): Add userspec.h.
89991         (Include): Add "userspec.h".
89992         Improve description.
89993
89994 2003-11-03  Jim Meyering  <jim@meyering.net>
89995
89996         * lib/userspec.c: Include "userspec.h".
89997         * lib/userspec.h: New file.
89998
89999 2003-11-03  Bruno Haible  <bruno@clisp.org>
90000
90001         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90002
90003 2003-11-03  Bruno Haible  <bruno@clisp.org>
90004
90005         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90006         available, to avoid (extremely rare) race condition.
90007         Suggested by Paul Eggert.
90008
90009 2003-11-02  Karl Berry  <karl@gnu.org>
90010
90011         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90012
90013 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90014
90015         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90016         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90017         (read_filesystem_list): Set and use me_type_malloced.
90018         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90019         whatever the type happens to be), for brevity and consistency.
90020         Check for size calculation overflow on Alphas running OSF/1.
90021
90022 2003-10-31  Jim Meyering  <jim@meyering.net>
90023
90024         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90025
90026         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90027
90028 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90029             Bruno Haible  <bruno@clisp.org>
90030
90031         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90032         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90033
90034 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90035
90036         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90037         netbsd*-gnu*.  Suggested by Robert Millan.
90038
90039 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90040
90041         * modules/group-member: Depend on stdbool.
90042
90043 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90044
90045         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90046
90047 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90048
90049         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90050         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90051         after the 'gnu' in these cases.  This fixes some bugs in the
90052         previous change, and is based on suggestions by Robert Millan.
90053
90054 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90055
90056         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90057         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90058         no longer needed.
90059         * lib/quotearg.c (quotearg_n_options): Use it.
90060         * lib/group-member.c: Include <stdbool.h>.
90061         (free_group_info): Arg is now const *; don't free arg.
90062         (get_group_info): Now returns bool and accepts struct group_info *,
90063         rather than returning a malloc'ed struct group_info *.
90064         All uses changed.  Check for overflow in internal size calculation.
90065
90066         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90067         rather than xmalloc/xrealloc.
90068         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90069         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90070         conformance bug: the old code used a pointer after freeing the
90071         storage that it addressed.
90072         * lib/hash.c (hash_initialize): Simplify the code by using
90073         xalloc_oversized rather than doing it by hand.
90074         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90075         the buffer preserved.  Use free and xmalloc instead.
90076         * lib/quotearg.c (quotearg_n_options): Likewise.
90077         Use a simpler test for size overflow.  Don't use xalloc_oversized
90078         because unsigned int might be wider than size_t (!); this suggests
90079         that we should switch from unsigned int to size_t for slot numbers.
90080
90081 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90082
90083         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90084         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90085         NetBSD kernels.  Requested by Richard Stallman.
90086
90087 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90088
90089         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90090         to allocate the returned structure.  Do not allocate a subarray,
90091         as x2nrealloc will do that.
90092         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90093         instead of xnrealloc.
90094         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90095
90096 2003-10-27  Bruno Haible  <bruno@clisp.org>
90097
90098         * lib/stdbool_.h: Better support for BeOS.
90099
90100 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90101
90102         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90103         now uses inline.
90104
90105 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90106
90107         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90108         callers that want to do their own size-overflow checking.  Include
90109         <stdbool.h>, since xalloc_oversized returns bool.
90110         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90111         to use xalloc_oversized.
90112
90113         Add two functions x2realloc, x2nrealloc, for programs that grow
90114         arrays dynamically by doubling their sizes.
90115         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90116         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90117         New functions.
90118
90119         Port to C99 semantics for 'inline' of external functions.
90120         Bug reported by Bruno Haible.
90121         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90122         with the old contents of xnmalloc.
90123         (xnmalloc, xmalloc): Use it.
90124         (xnrealloc_inline): New static inline function,
90125         with the old contents of xnrealloc.
90126         (xnrealloc, xrealloc): Use it.
90127
90128         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90129         that.
90130
90131 2003-10-26  Karl Berry  <karl@gnu.org>
90132
90133         * config/srclist.txt (COPYING.DOC): no longer available from
90134         /gd/gnuorg; don't know where the ultimate source is.
90135
90136 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90137
90138         Fix several address-calculation bugs in the hash modules,
90139         plus some minor code cleanup.
90140
90141         * lib/hash.h: Include <stdbool.h>, for bool.
90142         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90143         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90144         hash_get_n_entries, hash_get_max_bucket_length,
90145         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90146         hash_rehash): Use size_t rather than unsigned.
90147         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90148         hash_get_n_buckets_used, hash_get_n_entries,
90149         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90150         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90151         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90152         Likewise.
90153         (SIZE_MAX): Define if not defined.
90154         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90155         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90156         hash_print):
90157         Use const * when possible.
90158         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90159         (check_tuning): Fix bug: if tuning parameters were very close to
90160         0 or 1, rounding errors could have caused subscript violations.
90161         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90162         (hash_initialize): Add 'fail:' label
90163         to free table and return NULL, and use it to simplify code.
90164         Use calloc rather than clearing the storage ourself.
90165         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90166         buffer size calculations.
90167         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90168         Include <stddef.h>, for size_t.
90169         * lib/hash-pjw.c (hash_pjw): Likewise.
90170         Switch to method described by Bruno Haible.
90171         Include <limits.h>, for CHAR_BIT.
90172         (SIZE_BITS): New macro.
90173
90174 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90175
90176         * m4/getline.m4 (AM_FUNC_GETLINE):
90177         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90178         hosts.  Problem reported by Derek Robert Price in
90179         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90180         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90181         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90182
90183 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90184
90185         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90186         ceiling the allocation at NMAX bytes rather than silently
90187         discarding input bytes before NMAX is reached.  This makes
90188         a difference only if NMAX exceeds SIZE_MAX / 2.
90189
90190         * lib/obstack.c: Merge from glibc.
90191         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90192         Add libc_hidden_def (_obstack_newchunk).
90193         (_obstack_free) [! defined _LIBC]: Remove.
90194         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90195         a clone of the function body.
90196         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90197         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90198
90199         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90200         glibc.
90201         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90202         arg to memcpy.
90203
90204         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90205         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90206         Don't use lvalue casts, as GCC plans to remove support for them
90207         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90208         was also present in the non-GCC version, indicating that this
90209         code had always been buggy and had never been widely used.
90210         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90211         Use the fast variant of each macro, rather than copying the
90212         definiens of the fast variant; that way, we'll be more likely to
90213         catch future bugs in the fast variants.
90214
90215 2003-10-20  Bruno Haible  <bruno@clisp.org>
90216
90217         * modules/wait-process: New file.
90218         * MODULES.html.sh (func_all_modules): Add wait-process.
90219
90220 2003-10-20  Bruno Haible  <bruno@clisp.org>
90221
90222         * m4/wait-process.m4: New file.
90223
90224 2003-10-20  Bruno Haible  <bruno@clisp.org>
90225
90226         * lib/wait-process.h: New file, from GNU gettext.
90227         * lib/wait-process.c: New file, from GNU gettext.
90228
90229 2003-10-19  Jim Meyering  <jim@meyering.net>
90230
90231         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90232         HPUX 10.20.
90233
90234 2003-10-18  Karl Berry  <karl@gnu.org>
90235
90236         * config/config.guess: update from config.
90237
90238 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90239
90240         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90241         (getgroups): First arg is int, not size_t.
90242         Don't let 'free' mangle errno.
90243
90244 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90245
90246         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90247
90248 2003-10-16  Karl Berry  <karl@gnu.org>
90249
90250         * config/config.{guess,sub}: update from config.
90251
90252 2003-10-16  Jim Meyering  <jim@meyering.net>
90253
90254         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90255         memcpy.
90256
90257 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90258
90259         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90260         (SIZE_MAX): Remove.
90261         (new_exclude, add_exclude_file): Initial size no longer needs to
90262         be a power of 2.
90263         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90264         our own address arithmetic overflow checking.
90265
90266         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90267         (fnmatch): Do not alloca more than 2000 wide characters;
90268         instead, use malloc for large buffers.
90269         Check for address arithmetic overflow, and return -1
90270         with errno set to ENOMEM in that case.
90271         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90272         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90273         instead, return -1.  Check for address arithmetic overflow.
90274
90275 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90276
90277         Handle invalid suffixes and overflow independently, so that
90278         callers can treat them independently as needed.  Fix some bugs in
90279         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90280         suffix for a human-readable blocksize.  The major caller-visible
90281         change is the addition of a new
90282         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90283         that both overflow and suffix chars were found.
90284
90285         * lib/human.c (humblock): Don't check separately for invalid suffix
90286         char; that is xstrtoumax's job (now that its bug is fixed).
90287         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90288         INTMAX_MAX]: New macros.
90289         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90290         TYPE_MAXIMUM): New macros.
90291         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90292         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90293         if overflow occurs, as it's what __strtol does and it's more useful
90294         in practice.
90295         (__xstrtol): If __strtol reports some error other than ERANGE,
90296         reflect it to the caller as LONGINT_INVALID.  If it reports
90297         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90298         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90299         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90300         value.
90301         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90302         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90303         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90304         [defined UINTMAX_MAX]: New macros.
90305
90306 2003-10-14  Bruno Haible  <bruno@clisp.org>
90307
90308         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90309
90310 2003-10-14  Bruno Haible  <bruno@clisp.org>
90311
90312         * m4/sig_atomic_t: New file, from GNU gettext.
90313         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90314
90315 2003-10-14  Bruno Haible  <bruno@clisp.org>
90316
90317         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90318         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90319         Also use volatile where needed.
90320
90321 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90322
90323         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90324         Change maintainer from Bruno Haible to 'all'.
90325
90326 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90327
90328         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90329
90330 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90331
90332         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90333         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90334         and define in terms of the other primitives.
90335         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90336         (SIZE_MAX): Define if not already defined.
90337         (array_size_overflow): New function.
90338         (xalloc_die): Abort instead of exiting if 'error' returns.
90339         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90340         (xmalloc, xrealloc): Use them.
90341         (xcalloc): Check for address arithmetic overflow.
90342         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90343         a bit faster than strcpy.
90344
90345 2003-10-10  Simon Josefsson  <jas@extundo.com>
90346
90347         * modules/argp (Depends-on): Add restrict and strcase.
90348
90349 2003-10-10  Simon Josefsson  <jas@extundo.com>
90350
90351         * m4/argp.m4: Add AC_C_INLINE.
90352
90353 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90354
90355         Merge getpass from libc, plus a few fixes.
90356
90357         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90358         Include <stdbool.h>.
90359         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90360         __fsetlocking to empty.
90361         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90362         do include <bits/libc-lock.h>.
90363         Do not include <fcntl.h>; not needed.
90364         [_LIBC]: Include <wchar.h>.
90365         (NOTCANCEL_MODE): New macro.
90366         (flockfile, funlockfile) [_LIBC]: New macros.
90367         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90368         [!_LIBC]: New macros.
90369         (call_fclose): New function.
90370         (getpass): Use it.  Save tty stream separately; this simplifies the
90371         code and makes it more reliable if stdin happens to equal stdout.
90372         Invoke __fsetlocking on tty.
90373         Handle thread cancellation if needed.
90374         Namespace cleanup (use __tcgetattr, __getline).
90375         Use bool for Booleans.
90376         [USE_IN_LIBIO]: Handle wide streams.
90377         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90378         stream might go where.
90379
90380         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90381         doesn't have to include <stdio.h> before us.
90382         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90383         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90384         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90385         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90386         if not declared, so that we can use getpass.c code from libc without
90387         rewriting it.
90388         (flockfile, ftrylockfile, funlockfile): New macros.
90389
90390 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90391
90392         * modules/getpass: Depend on stdbool.
90393
90394 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90395
90396         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90397
90398 2003-10-07  Karl Berry  <karl@gnu.org>
90399
90400         * config/config.{guess,sub}: update from config.
90401
90402 2003-10-06  Jim Meyering  <jim@meyering.net>
90403             Bruno Haible  <bruno@clisp.org>
90404
90405         This lets translators provide better translations for the
90406         "Written by ..." part of --version output.
90407         * lib/version-etc.h: Include stdarg.h.
90408         (version_etc_copyright): Declare as readonly.
90409         (version_etc): Make this function variadic with a NULL-terminated list
90410         of author name strings.
90411         (version_etc_va): New declaration.
90412         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90413         (version_etc_copyright): Declare as readonly.
90414         (version_etc_va): New function. Provide a different translatable string
90415         for each possible number of authors < 10. Abbreviate when there are 10
90416         authors or more.
90417         (version_etc): Make this function variadic. Call version_etc_va.
90418         Suggestion from Gary V. Vaughan.
90419
90420         * lib/long-options.h (parse_long_options): Change prototype: the
90421         authors string is moved to the end and becomes variadic.
90422         * lib/long-options.c: Include stdarg.h.
90423         (parse_long_options): Make this function variadic, too.
90424         Call version_etc_va, not version_etc.
90425
90426 2003-10-06  Bruno Haible  <bruno@clisp.org>
90427
90428         * modules/version-etc-2: Remove file.
90429         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90430
90431 2003-10-06  Bruno Haible  <bruno@clisp.org>
90432
90433         * modules/fatal-signal: New file.
90434         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90435
90436 2003-10-06  Bruno Haible  <bruno@clisp.org>
90437
90438         * m4/fatal-signal.m4: New file.
90439         * m4/signalblocking.m4: New file, from GNU gettext.
90440
90441 2003-10-06  Bruno Haible  <bruno@clisp.org>
90442
90443         * lib/version-etc-2.h: Remove file.
90444         * lib/version-etc-2.c: Remove file.
90445
90446 2003-10-06  Bruno Haible  <bruno@clisp.org>
90447
90448         * lib/fatal-signal.h: New file, from GNU gettext.
90449         * lib/fatal-signal.c: New file, from GNU gettext.
90450
90451 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90452
90453         * README: Rework advice for preventing empty .o files.
90454         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90455         not <sys/types.h>.
90456
90457 2003-10-04  Karl Berry  <karl@gnu.org>
90458
90459         * lib/argp*: update from libc.
90460
90461 2003-10-04  Karl Berry  <karl@gnu.org>
90462
90463         * config/config.{guess,sub}: update from config.
90464
90465 2003-10-02  Bruno Haible  <bruno@clisp.org>
90466
90467         * modules/lchown (Include): Add lchown.h.
90468         * modules/time_r (Include): Use "..." syntax.
90469         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90470
90471 2003-10-01  Simon Josefsson  <jas@extundo.com>
90472
90473         * MODULES.html.sh (func_all_modules): Move gethostname from section
90474         'based on' to section 'lacking' POSIX:2001.
90475
90476 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90477
90478         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90479         to output mode on the same stream.
90480
90481 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90482
90483         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90484         Fix arg typo in previous patch.
90485
90486 2003-09-28  Jim Meyering  <jim@meyering.net>
90487
90488         * lib/error.c: Correct cpp indentation.
90489
90490 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90491
90492         * modules/free: New file.
90493
90494 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90495
90496         * m4/free.m4: New file.
90497
90498 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90499
90500         * lib/minmax.h (MIN, MAX)
90501         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90502         Omit the special code that used __typeof__, since we worry that
90503         it could be more trouble than it's worth.  See:
90504         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90505         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90506
90507         * lib/free.c: New file.
90508
90509 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90510
90511         Trivial fixes to Makefile.am parts of module listings.
90512         * modules/strstr: Append strstr.h to lib_SOURCES.
90513         * modules/strcase: Likewise, for strcase.h.
90514
90515 2003-09-27  Karl Berry  <karl@gnu.org>
90516
90517         * config/mkinstalldirs: update from automake.
90518
90519 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90520
90521         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90522         (error_tail): Do not loop, reallocating temporary buffer, since
90523         the output cannot contain more wide characters than the input
90524         contains bytes, the size must be big enough already.  This avoids
90525         one potential size overflow calculation.  Check for size overflow
90526         when calculating temporary buffer size.  Free temporary buffer
90527         when done, if it was allocated with malloc; this plugs a memory
90528         leak.  Remove casts from void * to pointers, that are no longer
90529         needed now that we're assuming C89 or better.
90530
90531         Merge error changes from glibc.
90532
90533         * lib/error.c, error.h: Update copyright notice header to match glibc.
90534         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90535         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90536         Disable cancellation while printing error.
90537         * lib/error.h: Prepend __ to parameter names.
90538
90539 2003-09-26  Jim Meyering  <jim@meyering.net>
90540
90541         * lib/error.c (error_tail): Move some declarations
90542         into inner scope where the local variables are used.
90543
90544 2003-09-26  Bruno Haible  <bruno@clisp.org>
90545
90546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90547         stpncpy().
90548         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90549
90550 2003-09-26  Bruno Haible  <bruno@clisp.org>
90551
90552         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90553         (stpncpy): Define as alias for gnu_stpncpy.
90554         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90555
90556 2003-09-25  Simon Josefsson  <jas@extundo.com>
90557
90558         * lib/xgetdomainname.h: New file.
90559         * lib/xgetdomainname.c: New file.
90560
90561 2003-09-25  Simon Josefsson  <jas@extundo.com>
90562             Bruno Haible  <bruno@clisp.org>
90563
90564         * modules/getdomainname: New file.
90565         * modules/xgetdomainname: New file.
90566         * MODULES.html.sh (func_all_modules): Add getdomainname,
90567         xgetdomainname.
90568
90569 2003-09-25  Simon Josefsson  <jas@extundo.com>
90570             Bruno Haible  <bruno@clisp.org>
90571
90572         * m4/getdomainname.m4: New file.
90573
90574 2003-09-25  Simon Josefsson  <jas@extundo.com>
90575             Bruno Haible  <bruno@clisp.org>
90576
90577         * lib/getdomainname.h: New file.
90578         * lib/getdomainname.c: New file.
90579
90580 2003-09-25  Karl Berry  <karl@gnu.org>
90581
90582         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90583
90584 2003-09-25  Karl Berry  <karl@gnu.org>
90585
90586         * config/install-sh: update from automake.
90587
90588 2003-09-25  Bruno Haible  <bruno@clisp.org>
90589
90590         * modules/version-etc-2: New file, from modules/version-etc with
90591         modifications.
90592         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90593
90594 2003-09-25  Bruno Haible  <bruno@clisp.org>
90595
90596         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90597         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90598
90599 2003-09-24  Simon Josefsson  <jas@extundo.com>
90600
90601         * modules/xgethostname: Add xgethostname.h.
90602
90603 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90604
90605         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90606         the buffer associated with the argument.  Bug reported by
90607         Simon Josefsson.
90608
90609 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90610
90611         * README: Document assumptions that 'int' is at least 32 bits
90612         wide, that integer arithmetic is 2's complement without overflow,
90613         that there are no holes in integer values, that adding sizes of
90614         two nonoverlapping objects can't overflow, and that all-bits-zero
90615         yields scalar zero.  Fix spelling and capitalization typos.
90616
90617 2003-09-19  Karl Berry  <karl@gnu.org>
90618
90619         * lib/argp.h: update from libc.
90620
90621 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90622
90623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90624         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90625         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90626
90627 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90628
90629         * gnulib-tool: Use "test -h", not "test -L", for portability
90630         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90631         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90632         (sed_extract_prog): Issue s commands one-by-one, rather than
90633         using \| in one s command.
90634
90635 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90636
90637         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90638         input error, instead of returning NULL the next time we are called
90639         (and therefore losing track of errno).
90640
90641 2003-09-16  Bruno Haible  <bruno@clisp.org>
90642
90643         * gnulib-tool (func_create_testdir): Warn about duplicated
90644         dependencies.
90645
90646 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90647
90648         * modules/argmatch, modules/fatal, modules/obstack,
90649         modules/xalloc, modules/xgethostname: Sort dependencies by
90650         importance, not alphabetically.
90651
90652 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90653
90654         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90655         fails, so that the caller gets the proper errno.
90656
90657         * lib/readutmp.c (read_utmp): Likewise.
90658         Check for fstat error.  Close stream and free storage
90659         when failing.
90660
90661 2003-09-14  Karl Berry  <karl@gnu.org>
90662
90663         * config/srclist.txt (strdup.c): disable for c89 changes.
90664
90665 2003-09-14  Jim Meyering  <jim@meyering.net>
90666
90667         * lib/getloadavg.c: Correct cpp indentation.
90668         * lib/strdup.c: Likewise.
90669         * lib/vasnprintf.c: Likewise.
90670
90671 2003-09-14  Bruno Haible  <bruno@clisp.org>
90672
90673         * modules/fwriteerror: New file.
90674         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90675
90676 2003-09-14  Bruno Haible  <bruno@clisp.org>
90677
90678         * lib/fwriteerror.h: New file.
90679         * lib/fwriteerror.c: New file.
90680
90681 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90682
90683         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90684         modules/xgethostname, modules/xalloc: Depend on exit.
90685
90686 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90687
90688         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90689
90690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90691         and AC_MINIX, too, so that their extensions are available.
90692
90693         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90694         This macro has been superseded by gl_BACKUPFILE.
90695
90696         More patches to assume C89 or better.
90697
90698         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90699
90700         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90701         unconditionally.
90702         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90703         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90704         Include <string.h>, <stdlib.h> unconditionally.
90705         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90706         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90707         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90708         headers or for string.h.
90709         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90710         or strtoul.
90711
90712         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90713         headers.
90714         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90715         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90716         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90717         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90719         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90720         memcpy, memset.
90721         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90722         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90723         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90724         strtol.
90725         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90726         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90728         strtoul.
90729
90730 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90731
90732         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90733         * lib/obstack.c [!defined _LIBC]: Likewise.
90734         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90735         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90736         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90737
90738         More changes to assume C89 or better.
90739
90740         * lib/error.c (error_tail): Assume vprintf.
90741
90742         * lib/argmatch.c (getenv): Remove decl.
90743         * lib/progreloc.c (get_full_program_name): Define via prototype.
90744         * lib/setenv.c (clearenv): Likewise.
90745         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90746         needed.
90747         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90748         (malloc, memcpy): Remove decls.
90749         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90750         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90751         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90752         (memcpy): Remove macro.
90753         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90754         (__P): Remove.  All uses removed.
90755         (PTR): Remove.  All uses changed to void *.
90756         (CHAR_BIT, NULL): Remove.
90757         (spaces, zeros, memset_space, memset_zero)
90758         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90759         Remove.
90760         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90761         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90762         Define with prototype.
90763         Remove now-unnecessary prototype decl.
90764         (extra_args_spec): Assume ANSI C.  All uses changed.
90765         (extra_args_spec_iso): Remove.
90766         (my_strftime, emacs_strftimeu): Define via prototype.
90767         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90768         unconditionally.
90769         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90770         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90771         (strtoul, strtol): Remove decls.
90772         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90773         LONG_MAX): Remove.
90774         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90775         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90776         (LOCALE_PARAM_PROTO): New macro.
90777         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90778         (INTERNAL (strtol), strtol): Define with a prototype.
90779         (PARAMS): Remove.  All uses removed.
90780         * lib/tempname.c: Include <string.h> unconditionally.
90781         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90782         * lib/xgethostname.c (main): Define with a prototype.
90783         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90784         Include <stdlib.h> unconditionally.
90785         (calloc, malloc, realloc, free): Remove decls.
90786         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90787         Include <stdlib.h> unconditionally.  Sort include file names.
90788         (strtod): Remove.
90789         (xstrtod): Define with a prototype.
90790         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90791         (strtol, strtoul): Remove decls.
90792
90793 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90794
90795         More patches to assume C89 or better.
90796         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90797         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90798         string.h, memchr, STDC_HEADERS.
90799
90800 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90801
90802         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90803         Include <stdlib.h>, <string.h> unconditionally.
90804         Remove now-unnecessary cast to char *.
90805         * lib/strnlen.c: Include <string.h> unconditionally.
90806         * lib/yesno.c (yesno): Define with a prototype.
90807
90808 2003-09-11  Bruno Haible  <bruno@clisp.org>
90809
90810         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90811
90812 2003-09-10  Jim Meyering  <jim@meyering.net>
90813
90814         * lib/error.c: Correct indentation of cpp directives.
90815
90816 2003-09-10  Bruno Haible  <bruno@clisp.org>
90817
90818         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90819         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90820         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90821         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90822         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90823         <stdlib.h> and <string.h> checks.
90824         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90825         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90826
90827 2003-09-10  Bruno Haible  <bruno@clisp.org>
90828
90829         * lib/strcspn.c: Include <string.h> unconditionally.
90830         * lib/strpbrk.c: Include <string.h> unconditionally.
90831         * lib/strstr.c: Include <string.h> unconditionally.
90832         * lib/unicodeio.c: Include <string.h> unconditionally.
90833         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90834         * lib/unsetenv.c: Likewise.
90835         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90836         * lib/yesno.c: Include <stdlib.h> unconditionally.
90837         (rpmatch): Add prototype.
90838
90839 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90840
90841         More patches to assume C89 or better.
90842         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90843         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90844         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90845         or for string.h.
90846         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90847         stdlib.h.
90848         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90849         C headers.
90850         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90851         string.h.
90852         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90853         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90854         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90855         or for string.h.
90856         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90857         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90858         C headers.
90859         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90860         memcpy.
90861         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90862         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90863         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90864         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90865         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90867         string.h, free.
90868         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90869         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90870         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90871         C headers, or for string.h.
90872         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90873         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90874         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90875         headers, memory.h, stdlib.h, string.h, strings.h.
90876         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90877         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90878         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90879         strchr.
90880         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90881         headers, memory.h, string.h.
90882         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90883         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90884         free.
90885         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90886         headers.
90887         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90888         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90889         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90890         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90891         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90892
90893 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90894
90895         More K&R removal.
90896
90897         * lib/acosl.c (main): Use a prototype.
90898         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90899         tanl.c: Likewise.
90900
90901         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90902
90903         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90904         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90905         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90906         with a prototype.
90907         * lib/getopt.c (const): Remove macro.
90908         Include <string.h> unconditionally.
90909         (my_index): Remove; all uses changed to strchr.
90910         (strlen): Remove decl.
90911         (exchange): Remove forward decl; no longer needed.
90912         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90913         Define with prototype.
90914         * lib/getopt1.c (const): Remove macro.
90915         (getopt_long, getopt_long_only, main): Define with prototype.
90916
90917         * lib/getugroups.c: Include <string.h> unconditionally.
90918
90919         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90920         (getusershell, setusershell, endusershell, readname, main):
90921         Define with prototypes.
90922
90923         * lib/group-member.c: Include group-member.h first.
90924         Include <stdlib.h> unconditionally.
90925
90926         * lib/hard-locale.c: Include hard-locale.h first.
90927         Include <stdlib.h>, <string.h> unconditionally.
90928
90929         * lib/hash.c (free, malloc): Remove decls.
90930         Include <stdlib.h> unconditionally.
90931
90932         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90933         (getenv): Do not declare.
90934
90935         * lib/idcache.c: Include <string.h> unconditionally.
90936
90937         * lib/long-options.c: Include long-options.h first, to test interface.
90938         Include <stdlib.h> unconditionally.
90939
90940         * lib/makepath.c: Include makepath.h first, to test interface.
90941         Include <stdlib.h> and <string.h> unconditionally.
90942
90943         * lib/linebuffer.c: Include <stdlib.h>.
90944         (free): Remove decl.
90945
90946         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90947         stddef.h. rpl_malloc returns void *, not char *.
90948         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90949         prototype.
90950
90951         * lib/md5.h: Include <limits.h> unconditionally.
90952         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90953         (__P): Remove; all uses removed.
90954         * lib/md5.c: Include "md5.h" first.
90955         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90956         md5_buffer, md5_process_bytes, md5_process_block):
90957         Define with prototypes.
90958         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90959         * lib/sha.c: Include "sha.h" first.
90960         Include <stdlib.h>, <string.h> unconditionally.
90961
90962         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90963         * lib/memcmp.c (__ptr_t): Likewise.
90964         * lib/memrchr.c (__ptr_t): Likewise.
90965         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90966         Include <string.h> unconditionally.
90967         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90968         * lib/memchr.c: Include <stdlib.h> unconditionally.
90969         * lib/memchr.c (LONG_MAX): Remove.
90970         * lib/memrchr.c (LONG_MAX): Likewise.
90971         * lib/memchr.c (__memchr): Define via a prototype.
90972         * lib/memrchr.c (__memrchr): Likewise.
90973         * lib/memcmp.c (__P): Remove, and remove all uses.
90974         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90975         Remove forward decls; no longer needed.
90976         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90977         Use types required by C89 in prototype.
90978
90979         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90980         * lib/savedir.c: Likewise.
90981         * lib/mkdir.c (free): Remove decl.
90982         * lib/rmdir.c (rmdir): Define with a prototype.
90983         * lib/savedir.c: Include savedir.h first, to test interface.
90984
90985         * lib/mktime.c (STDC_HEADERS): Remove.
90986         Include <stdlib.h>, <string.h> unconditionally.
90987
90988         * lib/modechange.c: Include <stdlib.h> unconditionally.
90989         (malloc): Remove decl.
90990
90991         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90992         (free): Remove decl.
90993
90994         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90995         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90996         (This type really should be intptr_t, but that's a C99ism.)
90997         (_obstack_memcpy): Remove: all uses changed to memcpy.
90998         Include <string.h> unconditionally.
90999         (struct obstack): Assume __STDC__ for types of members
91000         chunkfun, freefun, extra_arg.
91001         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91002         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91003         obstack_begin, obstack_specify_allocation,
91004         obstack_specify_allocation_with_arg, obstack_chunkfun,
91005         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91006         Remove unprototyped decls and the macros that use them.
91007         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91008         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91009         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91010         (defined __STDC__ && __STDC__)]:
91011         Remove nonprototyped code.
91012         Include <stdlib.h> unconditionally.
91013         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91014         _obstack_allocated_p, _obstack_free, obstack_free,
91015         _obstack_memory_used, print_and_abort):
91016         Define using prototypes.
91017         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91018         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91019         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91020         obstack_next_free, obstack_object_size, obstack_room) [0]:
91021         Remove unused, unprototyped code.
91022
91023         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91024
91025         * lib/physmem.c (physmem_total, physmem_available, main): Define
91026         with prototypes.
91027
91028         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91029         (main): Define with a prototype.
91030
91031         * lib/posixver.c (getenv): Remove decl.
91032
91033         * lib/putenv.c (malloc): Returns void *, not char *.
91034         Include <string.h> unconditionally.
91035         (strchr, memcpy, NULL): Do not define.
91036
91037         * lib/readtokens.c: Include readtokens.h first, to test interface.
91038         Include <stdlib.h>, <string.h> unconditionally.
91039         (init_tokenbuffer): Define with a prototype.
91040
91041         * lib/regex.c (PARAMS): Remove.  All uses removed.
91042         All uses of _RE_ARGS removed, too.
91043         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91044         unconditionally.
91045         (bzero): Assume memset exists.
91046         (memcmp, memcpy, NULL): Remove.
91047         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91048         char, or assignments to local vars of type signed char.
91049         (init_syntax_once, PREFIX(extract_number_and_incr),
91050         PREFIX(print_partial_compiled_pattern),
91051         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91052         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91053         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91054         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91055         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91056         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91057         wcs_compile_range, byte_compile_range, truncate_wchar,
91058         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91059         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91060         count_mbs_length, wcs_re_match_2_internal,
91061         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91062         PREFIX(alt_match_null_string_p),
91063         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91064         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91065         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91066         now-unnecessary declaration, if any.
91067         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91068         regcomp, regexec):
91069         Remove now-unnecessary casts among pointer types.
91070         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91071
91072         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91073         (free): Remove decl.
91074
91075         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91076
91077         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91078         (free): Remove decl.
91079
91080         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91081         * lib/xgetcwd.c: Likewise.
91082
91083         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91084         (free): Remove decl.
91085
91086         * lib/strchrnul.c (strchrnul): Define with a prototype.
91087         Fix bug: c_in was not converted to char before searching.
91088
91089         The following changes are not K&R related:
91090
91091         * lib/group-member.h: Include <sys/types.h>, so that this file is
91092         self-contained.
91093         * lib/makepath.h: Likewise.
91094
91095         * lib/getusershell.c (readname, default_index, line_size, readname):
91096         Use size_t, not int, for sizes.
91097         (readname): If the size overflows, report an error instead of
91098         looping forever.
91099
91100 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91101
91102         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91103         libc.
91104
91105 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91106
91107         * README: New section: portability guidelines.
91108
91109 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91110
91111         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91112         C89 spec.
91113
91114 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91115
91116         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91117
91118 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91119
91120         Assume C89 or better; remove K&R cruft.
91121         A few of these changes were first proposed by Derek Robert Price
91122         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91123
91124         * lib/addext.c: Include <string.h> unconditionally.
91125         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91126         Don't declare getenv or malloc.
91127
91128         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91129         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91130         (NULL): Remove.
91131         (find_stack_direction, alloca): Use prototypes.
91132
91133         * lib/atexit.c (atexit): Define using a prototype.
91134
91135         * lib/basename.c, dirname.c, stripslash.c:
91136         Include <string.h> unconditionally.
91137
91138         * lib/bcopy.c: Include <stddef.h>.
91139         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91140
91141         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91142
91143         * lib/error.h (error, error_at_line, error_print_progname)
91144         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91145         * lib/error.c: Include error.h first, to check interface.
91146         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91147         (VA_START): Remove; all uses changeed to va_start.
91148         (exit, strerror): Remove decls.
91149         (error_print_progname): Prototype uncondionally.
91150         Don't include <errno.h>; no longer needed.
91151         (private_strerror): Remove.
91152         (error_tail): Always define.
91153         (error, error_at_line): Assume C89 or better; always use prototypes.
91154         * lib/fatal.c: Include "fatal.h" first, to test interface.
91155         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91156         (VA_START): Remove; all uses changed to va_start.
91157         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91158         this case.
91159         (exit): Remove decl.
91160         (fatal): Prototype unconditionally.  Assume va_start works.
91161         Abort at end, to pacify gcc.
91162
91163         * lib/euidaccess.c (main): Define with a prototype.
91164
91165         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91166
91167         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91168
91169         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91170         prototypes.
91171         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91172         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91173         (getenv): Remove decl.
91174         (fnmatch): Define using a prototype.
91175         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91176         (FCT): Define using a prototype.
91177
91178         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91179
91180         * lib/gethostname.c: Include <stddef.h>.
91181         (gethostname): Define with prototype.  Length is size_t, not int.
91182
91183 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91184
91185         Assume C89 or better; remove K&R cruft.
91186         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91187         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91188         string.h, getenv, malloc.
91189         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91190         headers.
91191         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91192         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91193         do not check for strerror.
91194         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91195         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91196         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91197         do not check for doprnt or vprintf.
91198         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91199         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91200
91201 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91202
91203         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91204         getversion.c should have been removed then, but was accidentally
91205         preserved.
91206
91207         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91208         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91209
91210 2003-09-08  Karl Berry  <karl@gnu.org>
91211
91212         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91213                 config, forget about prep.
91214
91215         * config/depcomp, missing: update from automake.
91216
91217 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91218
91219         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91221
91222 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91223
91224         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91225         copy_tm_result.  Bug reported by Simon Josefsson in
91226         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91227
91228 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91229
91230         * m4/time_r.m4: New file.
91231         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91232         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91233         is. Check for timegm declaration.
91234         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91235         Do not check for gmtime_r.
91236         Replace mktime if __mktime_internal does not exist and if mktime
91237         hasn't been replaced already.
91238
91239 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91240
91241         * lib/time_r.c, lib/time_r.h: New files.
91242
91243         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91244         __localtime_r.
91245         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91246         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91247
91248         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91249         __gmtime_r.
91250         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91251         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91252         Include <time_r.h>.
91253
91254         * lib/timegm.c: Switch to glibc implementation, with the following
91255         changes:
91256         [defined HAVE_CONFIG_H]: Include <config.h>.
91257         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91258         (__mktime_internal) [!defined _LIBC]: New decl.
91259         (__gmtime_r) [!defined _LIBC]: New macro and function.
91260         (timegm): Use a prototype, since gnulib assumes C89.
91261         Do not bother declaring tmp to be const, as it's not really usefu.
91262         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91263         (timegm): Declare only if HAVE_DECL_TIMEGM.
91264
91265 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91266
91267         * MODULES.html.sh (func_all_modules): Add time_r.
91268         * modules/time_r: New file.
91269         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91270         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91271
91272 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91273
91274         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91275         Bug reported by Lute Kamstra in
91276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91277
91278         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91279         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91280         course with correspondingly smaller numbers for tomorrow and
91281         yesterday.  From Tadayoshi Funaba.  Originally installed into
91282         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91283         coreutils merge?).
91284
91285 2003-08-31  Simon Josefsson  <jas@extundo.com>
91286
91287         * modules/timegm: New file.
91288         * MODULES.html.sh (func_all_modules): Add timegm.
91289
91290 2003-08-31  Simon Josefsson  <jas@extundo.com>
91291
91292         * m4/timegm.m4: New file.
91293
91294 2003-08-31  Simon Josefsson  <jas@extundo.com>
91295
91296         * lib/timegm.h: New file.
91297         * lib/timegm.c: New file.  Based on
91298         wget-1.8.2/src/http.c:mktime_from_utc.
91299
91300 2003-08-31  Karl Berry  <karl@gnu.org>
91301
91302         * lib/argp.h: update from libc.
91303
91304 2003-08-28  Bruno Haible  <bruno@clisp.org>
91305
91306         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91307         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91308         followed by '#define fnmatch fnmatch_posix' gives an error.
91309
91310 2003-08-28  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91313         warning on QNX, which defines O_BINARY to 000000.
91314
91315 2003-08-27  Jim Meyering  <jim@meyering.net>
91316
91317         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91318         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91319         would fail after 32.  Reported by Danny Levinson.  Details here:
91320         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91321
91322 2003-08-24  Bruno Haible  <bruno@clisp.org>
91323
91324         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91325         MSVC7 <stdio.h> is included later.
91326
91327 2003-08-22  Simon Josefsson  <jas@extundo.com>
91328
91329         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91330
91331 2003-08-20  Karl Berry  <karl@gnu.org>
91332
91333         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91334
91335 2003-08-20  Bruno Haible  <bruno@clisp.org>
91336
91337         * modules/progname: New file.
91338         * MODULES.html.sh (func_all_modules): Add progname.
91339
91340 2003-08-20  Bruno Haible  <bruno@clisp.org>
91341
91342         * lib/progname.h: New file, from GNU gettext.
91343         * lib/progname.c: New file, from GNU gettext.
91344         * lib/progreloc.c: New file, from GNU gettext.
91345
91346 2003-08-19  Jim Meyering  <jim@meyering.net>
91347
91348         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91349         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91350
91351 2003-08-19  Bruno Haible  <bruno@clisp.org>
91352
91353         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91354         more.
91355
91356 2003-08-19  Bruno Haible  <bruno@clisp.org>
91357
91358         * lib/xstrdup.c: Assume <string.h> exists.
91359
91360 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91361
91362         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91363         in makefile rules.
91364
91365 2003-08-18  Jim Meyering  <jim@meyering.net>
91366
91367         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91368         * m4/lib-ld.m4: Likewise.
91369
91370 2003-08-18  Jim Meyering  <jim@meyering.net>
91371
91372         * lib/setenv.h: Indent nested cpp directive.
91373         * lib/vasnprintf.c: Remove trailing blanks.
91374
91375 2003-08-17  Simon Josefsson  <jas@extundo.com>
91376
91377         * modules/xstrndup: New file.
91378         * MODULES.html.sh (func_all_modules): Add xstrndup.
91379
91380 2003-08-17  Simon Josefsson  <jas@extundo.com>
91381
91382         * modules/argp: Fix autoconf macro name. Add more dependencies.
91383
91384 2003-08-17  Simon Josefsson  <jas@extundo.com>
91385
91386         * m4/xstrndup.m4: New file.
91387
91388 2003-08-17  Simon Josefsson  <jas@extundo.com>
91389
91390         * m4/argp.m4: New file.
91391
91392 2003-08-17  Simon Josefsson  <jas@extundo.com>
91393             Bruno Haible  <bruno@clisp.org>
91394
91395         * lib/xstrndup.h: New file.
91396         * lib/xstrndup.c: New file.
91397
91398 2003-08-17  Bruno Haible  <bruno@clisp.org>
91399
91400         * modules/strndup (Files, Include): Add lib/strndup.h.
91401
91402 2003-08-17  Bruno Haible  <bruno@clisp.org>
91403
91404         * modules/euidaccess (Files): Add lib/euidaccess.h.
91405
91406 2003-08-17  Bruno Haible  <bruno@clisp.org>
91407
91408         * lib/strndup.h: New file.
91409
91410 2003-08-17  Bruno Haible  <bruno@clisp.org>
91411
91412         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91413         like AC_GNU_SOURCE.
91414         * modules/extensions (configure.ac): Comment out the invocation of
91415         gl_USE_SYSTEM_EXTENSIONS.
91416
91417 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91418
91419         Merges from coreutils, etc.
91420         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91421         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91422         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91423         fixing a typo.
91424         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91425         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91426
91427 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91428
91429         Document merge from coreutils.
91430         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91431         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91432         * modules/utime: Add m4/utimes-null.m4.
91433
91434 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91437         space, undoing this 2003-08-12 change:
91438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91439
91440 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91441
91442         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91443         strtoul.c from libc, undoing this 2003-08-12 change:
91444         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91445
91446 2003-08-16  Jim Meyering  <jim@meyering.net>
91447
91448         Merges from coreutils.
91449         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91450         prefix.  Adjust cache variables similarly.  Create 500 rather than
91451         just 300 files, to exercise bug on Darwin6.5, too.
91452         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91453         $missing_dir.
91454         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91455         AM_SYS_POSIX_TERMIOS.
91456         Reported by mkc@mathdogs.com.
91457         Also change use of $am_cv_sys_posix_termios
91458         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91459         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91460         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91461         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91462         in /proc/mounts until it finds one with matching device number.  This
91463         is unnecessary when the FILE argument *is* a mount point.  No stat call
91464         is necessary in that case.  So, disable the statvfs-testing code on
91465         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91466         as RedHat bug# 84846.
91467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91468         to 1MB, so as not to render systems with no stack size limit (e.g.,
91469         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91470         Include <unistd.h>.  On some systems,
91471         it is required for the definition of _SC_PAGESIZE.
91472
91473 2003-08-16  Jim Meyering  <jim@meyering.net>
91474
91475         Merge from coreutils.
91476         * lib/xstrtoimax.c: #else #if -> #elif.
91477         * lib/xstrtoumax.c: Likewise.
91478
91479 2003-08-16  Jim Meyering  <jim@meyering.net>
91480
91481         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91482         * m4/utimes.m4: Removed.
91483         * m4/utimes-null.m4: Renamed from utimes.m4.
91484
91485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91486         to 1MB, so as not to render systems with no stack size limit (e.g.,
91487         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91488         Include <unistd.h>.  On some systems,
91489         it is required for the definition of _SC_PAGESIZE.
91490
91491 2003-08-16  Jim Meyering  <jim@meyering.net>
91492         and Paul Eggert  <eggert@cs.ucla.edu>
91493
91494         Merges from coreutils, etc.
91495
91496         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91497         using the latest version from cvs.  This avoids problems with #line
91498         directives using a vendor (Sun) compiler.
91499         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91500         Don't set GETGROUPS_LIB here; now it's
91501         done via getgroups.m4's wrapper function.
91502         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91503         rather than just in sh-util/configure.in, so that the
91504         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91505         same.
91506         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91507         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91508         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91509         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91510         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91511         Remove code that is now done by the newly-required macros.
91512         Append $(EXEEXT) to DF_PROG.
91513         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91514         Do not invoke or require the following here,
91515         since prereq.m4 or some gnulib .m4 now does this for us:
91516         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91517         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91518         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91519         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91520         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91521         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91522         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91523         AC_FUNC_OBSTACK.
91524         Do not replace the following functions, as this is now the job
91525         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91526         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91527         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91528         atexit getpass, strdup, getpagesize.
91529         Replace 'raise'.
91530         Do not check for the following functions, as this is now the job
91531         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91532         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91533         setregid.
91534         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91535         Check for sys/sysctl.h.
91536         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91537         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91538         of checking for ssize_t ourselves.
91539
91540         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91541         Require every macro that gnulib/modules/* suggests for us.
91542         (jm_PREREQ_ADDEXT): New macro.
91543         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91544         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91545
91546         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91547         (gl_PHYSMEM): Use it.
91548         Also check for `table' function.
91549         Check for new headers and functions.
91550         Add check for sys/sysmp.h.
91551         With suggestions from Kaveh Ghazi.
91552         Ignore headers that are present but cannot be compiled.  This
91553         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91554         C 5.4.
91555
91556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91557
91558         Document merge from coreutils.
91559         * modules/userspec: Depend on posixver.
91560         * modules/strftime: Depend on tzset.
91561
91562 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91563
91564         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91565         rather than tab, after '#' in shell-script copyright notices.
91566         Suggested by Bruno Haible.
91567
91568 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91569
91570         * config/srclist-update: Use three spaces, rather than tab, after '#'
91571         in shell-script copyright notices.  Suggested by Bruno Haible.
91572         Remove unnecessary parenthesization in regular expression.
91573
91574 2003-08-15  Jim Meyering  <jim@meyering.net>
91575
91576         Merge from coreutils.
91577         * lib/xgethostname.c: Include <stdlib.h>.
91578         (xghostname): Don't exit for anything other than memory-related
91579         failure; just return NULL.
91580         * lib/userspec.c: Include "posixver.h".
91581         (parse_user_spec): Accept `.' as a separator only
91582         in pre-POSIX-200112 mode.
91583         * lib/strtoimax.c: Use #elif rather than #else #if.
91584         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91585         Remove function, now that we can rely on a working tzset function.
91586         [!_LIBC]: Ensure that the required autoconf test has been run.
91587         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91588         Use underlying_strftime for %r.
91589         * lib/sha.c: Merge in some clean-up and optimization changes from
91590         glibc.
91591         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91592         Ensure that it is a multiple of 64.
91593         Rearrange loop exit tests so as to avoid performing an
91594         additional fread after encountering an error or EOF.
91595         * lib/realloc.c: Update copyright date.
91596
91597 2003-08-15  Jim Meyering  <jim@meyering.net>
91598         and Paul Eggert  <eggert@twinsun.com>
91599
91600         Merge from coreutils.
91601         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91602         member but strut utmpx does not.  Needed for AIX 4.3.3.
91603         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91604
91605 2003-08-15  Jim Meyering  <jim@meyering.net>
91606         and Paul Eggert  <eggert@cs.ucla.edu>
91607
91608         Merges from coreutils, etc.
91609         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91610         Require gl_FUNC_TZSET_CLOBBER.
91611         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91612         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91613         members.
91614
91615 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91616
91617         Help the merge from coreutils.
91618         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91619         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91620         * m4/tzset.m4: Use it too.
91621
91622 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91623
91624         * modules/tzset: New file.
91625
91626 2003-08-14  Jim Meyering  <jim@meyering.net>
91627
91628         Merges from coreutils.
91629         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91630         variable names, rather than @FNMATCH_H@.
91631         * modules/alloca: Likewise for $(ALLOCA_H).
91632
91633         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91634         the three copies of the literal target, `fnmatch.h'.
91635         * modules/alloca (alloca.h): Likewise.
91636
91637 2003-08-14  Jim Meyering  <jim@meyering.net>
91638
91639         Merge from coreutils.
91640         * m4/tzset.m4: New file.
91641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91642         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91643         otherwise, AIX 5.1 systems would end up using the latter.
91644         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91645         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91646         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91647         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91648
91649 2003-08-14  Jim Meyering  <jim@meyering.net>
91650
91651         Merge from coreutils.
91652         * lib/obstack.h: Whitespace changes.
91653         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91654         and xcalloc return values.
91655         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91656         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91657         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91658         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91659         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91660         error from mntctl.
91661         Use mntctl's return value to drive the entry-processing loop, since
91662         we can't rely on the value of the vmt_length member in the last
91663         entry.  On some systems doing so could result in exhausting
91664         virtual memory.  Based in part on a patch from Mike Jetzer.
91665
91666 2003-08-14  Jim Meyering  <jim@meyering.net>
91667         and Paul Eggert  <eggert@twinsun.com>
91668
91669         Merges from coreutils, plus other fixes.
91670         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91671         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91672         for credits and details.  Thanks to Kaveh Ghazi for helping
91673         to keep these files in sync.
91674         (ARRAY_SIZE): Define it.
91675         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91676         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91677         (memcasecmp): Don't assume size_t fits in unsigned int.
91678         Remove casts and duplicate code.
91679         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91680         (memcpy): Remove definition.
91681         Merge in some clean-up and optimization changes from glibc.
91682         [BLOCKSIZE]: Move definition to top of file.
91683         Ensure that it is a multiple of 64.
91684         Rearrange loop exit tests so as to avoid performing an
91685         additional fread after encountering an error or EOF.
91686         * lib/md5.h (md5_uintptr): Define.
91687         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91688         return to the initial working directory.  Preserve errno
91689         for caller.
91690         * lib/idcache.c: Include "xalloc.h".
91691         (xmalloc, xrealloc): Remove decls.
91692         (getuser): Remove casts no longer required in C89.
91693         * lib/human.c: Include stdio.h, for sprintf.
91694         * lib/group-member.c: Include "xalloc.h".
91695         (xmalloc, xrealloc): Remove decls.
91696         (get_group_info): Remove casts no longer required in C89.
91697         * lib/getusershell.c (readname): Remove casts no longer required in
91698         C89.
91699         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91700         * lib/getline.c: Whitespace fix, from coreutils.
91701
91702 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91703
91704         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91705         Check for isascii.
91706
91707         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91708         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91709         Undo previous (whitespace-only) change.
91710
91711 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/exclude.c: Include <ctype.h>
91714         (IN_CTYPE_DOMAIN): New macro.
91715         (is_space): New fn.
91716         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91717         and empty lines.
91718
91719         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91720         Undo previous (whitespace-only) change.
91721
91722 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91723
91724         * config/srclist-update: Change update back to the old behavior,
91725         leaving whitespace alone.  Use one 'sed' command rather than a
91726         pipeline.
91727         (fixlicense): Now a variable, not a function.
91728         (remove_trailing_blanks): Remove.
91729         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91730         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91731         Undo previous (whitespace-only) change.
91732
91733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91734
91735         Merge from coreutils.
91736         * modules/euidaccess: Add lib_SOURCES, include for new
91737         file euidaccess.h
91738
91739 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91740
91741         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91742         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91743         Normalize leading white space and remove trailing white space.
91744
91745         Merge from coreutils
91746         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91747
91748         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91749         0.12.1.  These files are now being upgraded automatically by
91750         ../config/srclist-update.
91751
91752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91753
91754         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91755         Normalize leading white space and remove trailing white space.
91756         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91757         notice, as per ../config/srclist-update.
91758
91759         Merge from coreutils.
91760         * lib/euidaccess.h: New file.
91761         * lib/euidaccess.c: Include it.
91762         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91763         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91764         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91765
91766 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91767
91768         * config/srclist-update: Add copyright notice.
91769         (remove_id_lines, remove_trailing_blanks): New constants.
91770         (fixfile): Use them to normalize spacing a bit in copied files.
91771         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91772         Normalize leading white space and remove trailing white space.
91773
91774         * config/texinfo.tex: Sync with texinfo.
91775
91776         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91777         strtoul.c from libc, to merge coreutils whitespace changes.
91778
91779         * config/srclist.txt: Get the following m4 files from gettext:
91780         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91781         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91782         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91783         wint_t.m4.
91784
91785 2003-08-12  Karl Berry  <karl@gnu.org>
91786
91787         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91788         been made.
91789
91790 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91791
91792         * modules/gnu-source, m4/gnu-source.m4:
91793         Remove; we're assuming Autoconf 2.54 or later now.
91794         Suggested by Bruno Haible.
91795         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91796
91797 2003-08-11  Bruno Haible  <bruno@clisp.org>
91798
91799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91800
91801 2003-08-11  Bruno Haible  <bruno@clisp.org>
91802
91803         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91804         (vasnprintf): Use it instead of wcslen.
91805
91806 2003-08-11  Bruno Haible  <bruno@clisp.org>
91807
91808         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91809         value to ensure that _Bool promotes to int. Use #define for _Bool when
91810         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91811
91812 2003-08-10  Karl Berry  <karl@gnu.org>
91813
91814         * lib/regex.h: update from libc (whitespace fix).
91815
91816 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91817
91818         Merge some files from coreutils.  These changes were
91819         originally made by Jim Meyering.
91820         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91821         many older Unixes require this.
91822         * lib/alloca.c (alloca): Remove cast to argument of free;
91823         no longer needed in C89.
91824         * lib/alloca_.h, regex.h: Fix white space to match
91825         what GNU indent does.
91826
91827 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91828
91829         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91830         apparently Emacs's Unicode mode got confused before my 2003-08-05
91831         checkin.
91832
91833 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91834
91835         * m4/extensions.m4: New file.
91836         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91837         Require gl_USE_SYSTEM_EXTENSIONS.
91838         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91839         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91840
91841 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91842
91843         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91844         * modules/extensions, modules/gnu-source: New files.
91845         * modules/timespec, modules/unlocked-io: Depend on extensions.
91846
91847 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91848
91849         * modules/restrict: New file.
91850         * MODULES.html.sh (func_all_modules): Add restrict.
91851         * modules/regex: Depend on restrict.
91852
91853 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91854
91855         * m4/restrict.m4: New file.
91856         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91857
91858 2003-08-07  Bruno Haible  <bruno@clisp.org>
91859
91860         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91861         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91862
91863 2003-08-07  Bruno Haible  <bruno@clisp.org>
91864
91865         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91866         makes the module 'getndelim2' compatible with the module 'getline'.
91867
91868 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91869
91870         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91871         byte with "\201" to avoid glitches when editing that source file
91872         with multi-gnome-terminal.
91873
91874 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91875
91876         * lib/bumpalloc.h: Remove.
91877
91878 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91879
91880         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91881         * modules/bumpalloc: Remove.
91882
91883 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91884
91885         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91886         GNU coding style.
91887
91888         Merge from coreutils.
91889         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91890         1. From glibc.
91891         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91892         from Karl Berry, implemented by Jim Meyering.
91893         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91894         from Dmitry V. Levin.
91895         Remove anachronistic cast of xrealloc.
91896         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91897         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91898         type. Otherwise, it wouldn't compile with at least /bin/cc on
91899         ymp-cray-unicos9.0.2.X.
91900         Combine two mostly-identical uses of alloca into one.
91901         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91902
91903 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91904
91905         [From Emacs.]
91906
91907         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91908         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91909         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91910         obsolete NLIST_NAME_UNION.
91911         [__GNU__]: Undef BSD and FSCALE.
91912         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91913
91914 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91915
91916         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91917         an enum type, so that it's guaranteed to promote to int.  See:
91918         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91919
91920 2003-08-03  Karl Berry  <karl@gnu.org>
91921
91922         * config/depcomp: update from automake.
91923
91924 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91925
91926         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91927         (strerror): Don't assume that a printable int fits in 14 bytes.
91928
91929 2003-07-31  Bruno Haible  <bruno@clisp.org>
91930
91931         * modules/getpass-gnu: New file.
91932         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91933
91934 2003-07-31  Bruno Haible  <bruno@clisp.org>
91935
91936         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91937
91938 2003-07-24  Karl Berry  <karl@gnu.org>
91939
91940         * config/missing: update from automake.
91941
91942 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91943             Bruno Haible  <bruno@clisp.org>
91944
91945         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91946         * lib/getline.c (getline, getdelim): Likewise.
91947         Remove _GNU_SOURCE define; now it's defined in config.h through
91948         m4/getline.m4.
91949
91950 2003-07-23  Karl Berry  <karl@gnu.org>
91951
91952         * config/config.sub: update from prep.
91953
91954 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91955
91956         * modules/xalloc (Depends-on): Add exitfail.
91957         * modules/xmemcoll: Likewise.
91958
91959 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91960
91961         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91962         over-parenthesization in macros.
91963
91964         Sync with coreutils.
91965
91966         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91967         required by C99.
91968
91969         Use `exit_failure' for xalloc and xmemcoll instead of their own
91970         private exit-failure variables.
91971         * lib/xalloc.h (xalloc_exit_failure): Remove.
91972         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91973         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91974         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91975         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91976         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91977
91978 2003-07-20  Jim Meyering  <jim@meyering.net>
91979
91980         * modules/closeout (Depends-on): Add exitfail.
91981         Suggestion from Bruno Haible.
91982
91983 2003-07-19  Karl Berry  <karl@gnu.org>
91984
91985         * config/config.sub: update from prep.
91986
91987 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91988
91989         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91990         Remove.
91991         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91992         to test that it can stand by itself.  Include "exitfail.h".
91993         Clients should set exit_failure instead.
91994         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91995
91996 2003-07-18  Bruno Haible  <bruno@clisp.org>
91997
91998         * modules/getndelim2: New file.
91999         * modules/getline: Share files with module getndelim2.
92000         * modules/getnline: Depend on getndelim2 instead of sharing files with
92001         it. Add getnline.c to lib_SOURCES.
92002         * MODULES.html.sh (func_all_modules): Add getndelim2.
92003
92004 2003-07-18  Bruno Haible  <bruno@clisp.org>
92005
92006         * m4/getndelim2.m4: New file.
92007         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92008         invoke gl_PREREQ_GETNDELIM2.
92009         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92010         gl_PREREQ_GETNDELIM2.
92011         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92012         gl_GETNDELIM2.
92013
92014 2003-07-18  Bruno Haible  <bruno@clisp.org>
92015
92016         * lib/getndelim2.h: New file.
92017         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92018         getndelim2.h.
92019         (getndelim2): Make non-static. Change return type to ssize_t.
92020         * lib/getline.h: Change argument names.
92021         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92022         * lib/getnline.c: Include getndelim2.h.
92023
92024 2003-07-18  Andreas Schwab  <schwab@suse.de>
92025
92026         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92027
92028 2003-07-17  Karl Berry  <karl@gnu.org>
92029
92030         * config/config.sub: update from prep.
92031
92032 2003-07-17  Bruno Haible  <bruno@clisp.org>
92033
92034         * modules/getnline: New file.
92035         * modules/getline: Add lib/getndelim2.c to source file list.
92036         * MODULES.html.sh (func_all_modules): Add getnline.
92037
92038 2003-07-17  Bruno Haible  <bruno@clisp.org>
92039
92040         * m4/getnline.m4: New file.
92041
92042 2003-07-17  Bruno Haible  <bruno@clisp.org>
92043
92044         * m4/Makefile.am.in: Remove file.
92045         * m4/Makefile.am: Remove file.
92046         * m4/Makefile.in: Remove file.
92047
92048 2003-07-17  Bruno Haible  <bruno@clisp.org>
92049
92050         * lib/getnline.h: New file.
92051         * lib/getnline.c: New file.
92052         * lib/getndelim2.c: New file, extracted from getline.c.
92053         (getndelim2): Renamed from getdelim2, with added nmax argument.
92054         * lib/getline.c: Include getndelim2.c.
92055         (getdelim2): Moved out to getndelim2.c.
92056         (getline, getdelim): Update.
92057
92058 2003-07-17  Bruno Haible  <bruno@clisp.org>
92059
92060         * lib/Makefile.am: Remove file.
92061         * lib/Makefile.in: Remove file.
92062
92063 2003-07-17  Bruno Haible  <bruno@clisp.org>
92064
92065         * configure.in: Remove file.
92066         * Makefile.in: Remove file.
92067
92068 2003-07-17  Bruno Haible  <bruno@clisp.org>
92069
92070         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92071
92072 2003-07-16  Karl Berry  <karl@gnu.org>
92073
92074         * config/srclist-update: was running fixlicense twice, which caused
92075                 texinfo.tex to be nullified for some reason.  Simplify,
92076                 $gplsrc is no longer needed as far as I can see?
92077
92078 2003-07-16  Jim Meyering  <jim@meyering.net>
92079
92080         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92081
92082 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92083
92084         * config/srclist.txt: Get the following files from gettext-runtime/intl
92085         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92086         ref-del.sin.  From Bruno Haible.
92087         * config/srclist-update (fixfile): Change grep pattern again, since the
92088         previous fix didn't work (there was another trailing $).  Use
92089         '[$]' to escape the $s.
92090
92091 2003-07-15  Karl Berry  <karl@gnu.org>
92092
92093         * lib/vasnprintf.c: update from gettext.
92094
92095 2003-07-15  Karl Berry  <karl@gnu.org>
92096
92097         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92098         gets expanded when surrounded by '$'.
92099
92100 2003-07-15  Jim Meyering  <jim@meyering.net>
92101
92102         * modules/save-cwd: Don't depend on error.  From Derek Price.
92103
92104 2003-07-15  Jim Meyering  <jim@meyering.net>
92105
92106         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92107
92108 2003-07-14  Simon Josefsson  <jas@extundo.com>
92109
92110         * modules/mempcpy: New file.
92111         * MODULES.html.sh (func_all_modules): Add mempcpy.
92112
92113 2003-07-14  Simon Josefsson  <jas@extundo.com>
92114
92115         * m4/mempcpy.m4: New file.
92116
92117 2003-07-14  Simon Josefsson  <jas@extundo.com>
92118
92119         * lib/mempcpy.h: New file.
92120         * lib/mempcpy.c: New file.
92121
92122 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92123
92124         * modules/getdate, modules/posixtm: Depend on mktime.
92125
92126 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92127
92128         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92129         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92130         unicodeio.c, unicodeio.h, unlocked-io.h:
92131         Switch from LGPL to GPL.
92132
92133 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92134
92135         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92136         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92137         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92138         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92139         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92140         updated automatically by ../config/srclist-update.  This changes
92141         their license from LPGL to GPL.
92142
92143 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92144
92145         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92146         assumed to refer to the root of the most recent stable gettext version.
92147         * config/srclistvars.sh: Add defaults for eggert.
92148         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92149         Match "This program" as well as "The program".  This is needed
92150         for gettext.
92151
92152 2003-07-14  Jim Meyering  <jim@meyering.net>
92153
92154         Don't emit diagnostics.  Let callers do that.
92155         * lib/save-cwd.c: Don't include "error.h".
92156         (save_cwd): Don't call error.  Ensure that errno is valid
92157         when returning nonzero.
92158
92159         * lib/save-cwd.h (restore_cwd): Update prototype.
92160         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92161         Simplify.  Don't call error upon failure.  Let callers do that.
92162         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92163         when auditing is enabled.  But don't bother updating the #if.
92164
92165 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92166
92167         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92168         it breaks C++ compilation.
92169         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92170
92171 2003-07-10  Simon Josefsson  <jas@extundo.com>
92172
92173         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92174
92175 2003-07-10  Jim Meyering  <jim@meyering.net>
92176
92177         * m4/clock_time.m4: Remove trailing blank.
92178         * m4/intmax_t.m4: Likewise.
92179
92180 2003-07-10  Jim Meyering  <jim@meyering.net>
92181
92182         * lib/vasnprintf.c: Remove trailing blanks.
92183         Make cpp indentation consistent.
92184
92185 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92186
92187         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92188         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92189         Switch from LGPL to GPL.
92190
92191 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92192
92193         * config/srclist.txt: Sort sublists.  Add
92194         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92195         that differ from gnulib for one reason or another; we'd like this list
92196         to be smaller but for now let's document what we have.
92197
92198 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92199
92200         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92201         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92202         and sweeter "eval x=$x".
92203         * config/srclist.txt: Get lib/argp* from glibc.
92204
92205 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92206
92207         * lib/mktime.c: Fix some boundary cases and remove need for floating
92208         point.
92209
92210         Issue a compile-time diagnostic if time_t is floating point, or if
92211         two's complement arithmetic is not in effect, or if arithmetic
92212         right shift does not propagate the sign.  These assumptions were
92213         all in the original code but they weren't checked.
92214
92215         (TIME_T_MIDPOINT, verify): New macros.
92216         (__isleap): Remove; it has integer overflow problems.
92217         (leapyear): New function, without those problems.
92218         (ydhms_tm_diff): Remove; splitting into two parts.
92219         (ydhms_diff): New function, containing the arithmetic part of
92220         the old ydhms_tm_diff function.  Issue a compile-time
92221         diagnostic if we are not using C99 integer division.
92222         Avoid casts when possible.
92223         (guess_time_tm): New function, containing the checking part of
92224         the old ydhms_tm_diff function.  Return the new value, rather than
92225         the difference between it and the old.  Accept a new argument T
92226         so that *T specifies the old value.  Check for overflow in the result.
92227
92228         (__mktime_internal): Use a time_t offset, not a long int offset.
92229         This undoes the 2003-06-04 change, which is no longer needed now
92230         that we have better overflow checking.
92231         (localtime_offset): Likewise.
92232
92233         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92234         and long are 64-bit but int is only 32-bit.
92235         (ydhms_diff): Use long int to store year1 and yday1.
92236         Issue a compile-time diagnostic if long int is not wide enough.
92237
92238         (__mktime_internal): Use long int to store adjusted year and yday.
92239         Use plain C rather than preprocessor commands, if that doesn't
92240         affect efficiency.
92241         Check for overflow (and try to repair) after each probe
92242         rather than checking only at the very end.  This avoids some bugs
92243         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92244         does not equal GMT offset at maximum time).
92245         Use integer to check for overflow rather than floating point; this
92246         is more portable to non-IEEE hosts, and is a tad faster.
92247         When we detect that we are oscillating between two values,
92248         don't check whether tm_isdst has the requested value, since
92249         we already know the answer.  When tm_isdst has the wrong value,
92250         use a different heuristic to find the right one, based on the
92251         extreme values actually observed in practice in tz2003a,
92252         rather than the (overly optimistic) "previous 3 calendar quarters".
92253
92254         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92255         "T const" to accommodate glibc style.
92256         (check_result): Use less-confusing report format.  "long" -> "long int.
92257         (main): Likewise.
92258         Don't loop if the iteration overflows time_t.
92259         Allow a negative step in the iteration.
92260
92261 2003-07-06  Karl Berry  <karl@gnu.org>
92262
92263         * config/depcomp: update from automake.
92264         * config/config.sub: update from prep.
92265
92266 2003-07-03  Karl Berry  <karl@gnu.org>
92267
92268         * config/config.guess: update from prep.
92269
92270 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92271
92272         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92273         xreadlink.c now includes it unconditionally.
92274
92275 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92278         having it depend on HAVE_SYS_TYPES_H.
92279
92280 2003-07-01  Bruno Haible  <bruno@clisp.org>
92281
92282         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92283         <sys/types.h> should be sufficient.
92284         Reported by Paul Eggert.
92285
92286 2003-06-26  Karl Berry  <karl@gnu.org>
92287
92288         * config/depcomp: update from automake.
92289
92290 2003-06-26  Bruno Haible  <bruno@clisp.org>
92291
92292         * modules/human: Depend on module stdbool.
92293
92294 2003-06-25  Bruno Haible  <bruno@clisp.org>
92295
92296         * modules/readlink: New file.
92297         * modules/xreadlink: Depend on it.
92298         * MODULES.html.sh (func_all_modules): Add readlink.
92299
92300 2003-06-25  Bruno Haible  <bruno@clisp.org>
92301
92302         * m4/readlink.m4: New file.
92303
92304 2003-06-25  Bruno Haible  <bruno@clisp.org>
92305
92306         * lib/readlink.c: New file.
92307
92308 2003-06-22  Karl Berry  <karl@gnu.org>
92309
92310         * config/srclist.txt: update mkinstalldirs from automake.
92311         * config/mkinstalldirs: update.
92312
92313 2003-06-22  Bruno Haible  <bruno@clisp.org>
92314
92315         Portability to mingw32.
92316         * m4/ssize_t.m4: New file, from GNU gettext.
92317         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92318         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92319
92320 2003-06-22  Bruno Haible  <bruno@clisp.org>
92321
92322         * modules/safe-read: Add m4/ssize_t.m4.
92323         * modules/xreadlink: Add m4/ssize_t.m4.
92324
92325 2003-06-20  Bruno Haible  <bruno@clisp.org>
92326
92327         Assume C89, so PARAMS isn't needed.
92328         * lib/unicodeio.h (PARAMS): Remove.
92329         * lib/unicodeio.c: Don't use PARAMS.
92330
92331 2003-06-18  Karl Berry  <karl@gnu.org>
92332
92333         * config/config.{guess,sub}: update from prep.
92334
92335 2003-06-18  Jim Meyering  <jim@meyering.net>
92336
92337         Merge changes from coreutils.
92338         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92339         Remove explicit declarations of xmalloc and realloc.
92340         Include xalloc.h.
92341         (read_utmp): Remove anachronistic cast of xmalloc.
92342
92343 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92344
92345         Assume C89, so PARAMS isn't needed.
92346         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92347         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92348         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92349         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92350         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92351         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92352         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92353         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92354         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92355         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92356         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92357         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92358         no longer needed. Anyway, config.h should always be included before any
92359         other file.
92360
92361 2003-06-11  Simon Josefsson  <jas@extundo.com>
92362
92363         * modules/sysexits: New file.
92364         * MODULES.html.sh (func_all_modules): Add sysexits.
92365
92366 2003-06-11  Simon Josefsson  <jas@extundo.com>
92367
92368         * lib/sysexit_.h: New file.
92369
92370 2003-06-11  Derek Price  <derek@ximbiot.com>
92371
92372         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92373         necessary.
92374
92375 2003-06-11  Bruno Haible  <bruno@clisp.org>
92376
92377         * m4/sysexits.m4: New file.
92378
92379 2003-06-10  Simon Josefsson  <jas@extundo.com>
92380
92381         * lib/argp.h: New file, from glibc.
92382         * lib/argp-ba.c: New file, from glibc.
92383         * lib/argp-eexst.c: New file, from glibc.
92384         * lib/argp-fmtstream.c: New file, from glibc.
92385         * lib/argp-fmtstream.h: New file, from glibc.
92386         * lib/argp-fs-xinl.c: New file, from glibc.
92387         * lib/argp-help.c: New file, from glibc.
92388         * lib/argp-namefrob.h: New file, from glibc.
92389         * lib/argp-parse.c: New file, from glibc.
92390         * lib/argp-pv.c: New file, from glibc.
92391         * lib/argp-pvh.c: New file, from glibc.
92392         * lib/argp-xinl.c: New file, from glibc.
92393
92394 2003-06-10  Simon Josefsson  <jas@extundo.com>
92395
92396         * modules/strchrnul: New file.
92397
92398 2003-06-10  Simon Josefsson  <jas@extundo.com>
92399
92400         * modules/argp: New file.
92401
92402 2003-06-10  Simon Josefsson  <jas@extundo.com>
92403
92404         * m4/strchrnul.m4: New file.
92405
92406 2003-06-10  Simon Josefsson  <jas@extundo.com>
92407
92408         * lib/strchrnul.h: New file.
92409         * lib/strchrnul.c: New file.
92410
92411 2003-06-10  Bruno Haible  <bruno@clisp.org>
92412
92413         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92414
92415 2003-06-07  Karl Berry  <karl@gnu.org>
92416
92417         * config/config.{guess,sub}: update from prep.
92418
92419 2003-06-07  Jim Meyering  <jim@meyering.net>
92420
92421         * modules/strtod: Use $(...) notation, not @...@ for
92422         AC_REPLACE'd variables.
92423         * modules/localcharset: Likewise.
92424
92425 2003-06-07  Jim Meyering  <jim@meyering.net>
92426
92427         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92428         in place of my name in the copyright comment.
92429         Remove definition and uses of __P.
92430
92431         From coreutils.
92432         * lib/stat.c: Don't declare xmalloc explicitly.
92433         Instead, include "xalloc.h".
92434         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92435         xrealloc, and xcalloc return values.
92436         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92437         Improve comment.
92438         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92439
92440 2003-06-07  Bruno Haible  <bruno@clisp.org>
92441
92442         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92443         avoid AC_CONFIG_LINKS.
92444         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92445         fnmatch.h, to avoid AC_CONFIG_LINKS.
92446         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92447
92448 2003-06-07  Bruno Haible  <bruno@clisp.org>
92449
92450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92451         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92452         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92453         directory.
92454         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92455         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92456         directory.
92457
92458 2003-06-06  Jim Meyering  <jim@meyering.net>
92459
92460         Merge from coreutils.
92461         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92462         Consolidate declarations and initializations of *_base* locals.
92463
92464         Merge from coreutils.
92465         This avoids a core dump on systems without GNU putenv,
92466         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92467         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92468         (unsetenv): New static function, from GNU libc.
92469         (rpl_putenv): Use it.
92470
92471         * lib/modechange.c: Remove trailing blanks.
92472
92473         Merge from coreutils.
92474         * lib/fsusage.c: Remove declaration of statfs.
92475         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92476
92477         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92478
92479 2003-06-06  Jim Meyering  <jim@meyering.net>
92480
92481         * lib/stdbool_.h: Renamed from stdbool.h.in.
92482
92483 2003-06-06  Jim Meyering  <jim@meyering.net>
92484             Bruno Haible  <bruno@clisp.org>
92485
92486         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92487         Adjust Makefile.am snippet not to redirect directly to target.
92488         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92489
92490 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92491
92492         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92493         mismatch, look in future quarters as well as past.  This fixes a
92494         bug when processing fall-backwards gaps immediately after a long
92495         period of daylight-saving time.
92496
92497         * lib/mktime.c: Assume freestanding C89 or better.
92498         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92499         (__P): Remove; not used.
92500         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92501         (mktime, not_equal_tm, print_tm, check_result,
92502         main): Use prototypes.  Use const * where appropriate.
92503         (main): Fix typo in testing code that uncovered by above changes.
92504         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92505
92506 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92507
92508         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92509         locale.h, localeconv.  This merges changes from coreutils.
92510
92511         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92512         It can be removed after the next Autoconf is released.
92513         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92514         needed.
92515
92516 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92517
92518         * lib/mktime.c: Fix Debian bug 177940
92519         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92520         (localtime_offset): Now long int, not time_t, because we want it
92521         to be guaranteed to be signed.  All uses changed.
92522         (__mktime_internal): If overflow would occur when adding offset,
92523         don't add it.
92524
92525         Merge 'human' changes from coreutils.  Rewrite to support
92526         locale-specific notations like thousands separators.
92527         * lib/human.c: Simplify authorship notice.
92528         Include human.h immediately after config.h.
92529         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92530         <limits.h>: Do not include, since human.h does.
92531         (SIZE_MAX, UINTMAX_MAX): New macros.
92532         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92533         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92534         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92535         (power_letter): Renamed from suffixes.
92536         (generate_suffix_backwards): Remove.
92537         (adjust_value): Now takes int style (because of human.h changes)
92538         and long double value (for greater precision on some platforms).
92539         (group_number): New function.
92540         (human_readable): Use it.  Use integer options, not enum.
92541         Put the options before the sizes in the arg list.
92542         Support all the new options.
92543         The old human_readable function has been removed;
92544         use inttostr.h instead.
92545         (human_readable, default_block_size, humblock):
92546         Use uintmax_t, not int, for block sizes.
92547         (human_readable_inexact, block_size_types): Remove.
92548         (block_size_opts): New constant.
92549         (human_options): Renamed from human_block_size, with new signature
92550         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92551         * lib/human.h: Add copyright and authorship notice.
92552         Include <limits.h> and <stdbool.h> unconditionally.
92553         (PARAMS): Remove.  All uses removed.
92554         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92555         (enum human_inexact_style): Remove tag; now a nameless enum.
92556         (human_floor, human_ceiling, human_round_to_even): Now have
92557         values 2, 0, 1 rather than -1, 1, 0.
92558         (human_group_digits, human_suppress_point_zero, human_autoscale,
92559         human_base_1024, human_SI, human_B): New constants.
92560         (human_readable_inexact, human_block_size): Remove.
92561         (human_readable): Size args are now uintmax_t, not int.
92562         (human_options): New decl.
92563
92564         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92565         unnecessary now that we assume C89 or better.  This change
92566         imported from coreutils.
92567
92568         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92569         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92570         in the 2003-05-30 sync from glibc.
92571
92572         .h files should stand alone, but we shouldn't include <sys/types.h>
92573         if we can get away with just <stddef.h>.
92574
92575         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92576         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92577         rather than <sys/types.h>, as we merely need size_t.
92578         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92579         to get size_t.
92580         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92581         Include <stdio.h>, to get FILE.
92582         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92583         memcasecmp.h has included <stddef.h> and all we need is size_t.
92584         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92585         our interface, instead of including <sys/types.h>
92586
92587 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92588
92589         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92590         now, as glibc mktime is buggy on non-glibc systems.
92591
92592 2003-06-03  Karl Berry  <karl@gnu.org>
92593
92594         * config/config.sub: update from prep.
92595
92596 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92597
92598         [from coreutils]
92599         Fix some minor time-related bugs with POSIX time arguments.
92600         Some valid time stamps were being rejected (notably -1, and
92601         time stamps before 1900 on 64-bit hosts).  And some invalid
92602         time stamps were being accepted, e.g. September 31.
92603
92604         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92605         that we can return (time_t) -1 successfully.
92606         * lib/posixtm.c: Likewise.
92607         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92608         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92609         (t): Remove static var.
92610         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92611         of static var.  All uses changed.
92612         (year): Do not reject years before 1900; they can occur with
92613         64-bit time_t.
92614         (posix_time_parse): Do not check for out-of-range components;
92615         that is now the caller's responsibility, since our checks were
92616         only approximations.
92617         (posixtime): Use mktime to check for out-of-range components,
92618         since it knows them exactly.
92619         If mktime returns (time_t) -1, check whether an error actually occurred
92620         by invoking localtime on -1.
92621         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92622         posixtime failures better.
92623         Improve the test data (in comments only).
92624
92625 2003-06-02  Karl Berry  <karl@gnu.org>
92626
92627         * config/mkinstalldirs (version): new variable.
92628         (--version): new option.
92629         (usage): improve message.
92630
92631 2003-05-30  Karl Berry  <karl@gnu.org>
92632
92633         * lib/mktime.c: update from libc.
92634
92635 2003-05-30  Bruno Haible  <bruno@clisp.org>
92636
92637         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92638         * config/config.rpath: Upgrade to gettext-0.12.1.
92639
92640 2003-05-30  Bruno Haible  <bruno@clisp.org>
92641
92642         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92643         * m4/nls.m4: New file, from gettext-0.12.1.
92644         * m4/po.m4: New file, from gettext-0.12.1.
92645         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92646
92647 2003-05-30  Bruno Haible  <bruno@clisp.org>
92648
92649         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92650         * lib/localcharset.h: Likewise.
92651         * lib/localcharset.c: Likewise.
92652
92653 2003-05-29  Karl Berry  <karl@gnu.org>
92654
92655         * config/config.rpath: update from gettext.
92656
92657 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92658
92659         Assume the headers required for C89 freestanding compilers.
92660         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92661         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92662         * m4/human.m4 (gl_HUMAN): Likewise.
92663         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92664         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92665         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92666         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92667         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92668         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92669
92670 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92671
92672         Assume the headers required for C89 freestanding compilers.
92673         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92674         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92675         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92676         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92677         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92678         define, since <limits.h> is guaranteed to do that.
92679         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92680         * lib/exclude.c: Include <stdbool.h> unconditionally.
92681         * lib/tempname.c: Include <stddef.h> unconditionally.
92682         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92683         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92684         <stddef.h> does that.
92685         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92686         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92687         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92688         needed.
92689         * lib/xstrtol.c: Likewise.
92690         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92691         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92692
92693         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92694         warnings on some platforms.
92695
92696         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92697         arbitrarily.
92698
92699 2003-05-26  Jim Meyering  <jim@meyering.net>
92700
92701         Merge in a change from coreutils:
92702         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92703         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92704         that condition, rather than `-1' which is slightly misleading.
92705         Change the name of the cache variable to have the gl_ prefix.
92706         Prompted by a patch from Richard Dawe for DJGPP.
92707
92708 2003-05-24  Karl Berry  <karl@gnu.org>
92709
92710         * config/config.guess: update from prep.
92711
92712 2003-05-22  Karl Berry  <karl@gnu.org>
92713
92714         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92715
92716 2003-05-20  Karl Berry  <karl@gnu.org>
92717
92718         * config/config.guess: update from prep.
92719
92720 2003-05-18  Karl Berry  <karl@gnu.org>
92721
92722         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92723         might actually be set by the user.
92724
92725         * config/depcomp, install-sh, mdate-sh: update from automake.
92726
92727 2003-05-17  Bruno Haible  <bruno@clisp.org>
92728
92729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92730         invalid expansion for AC_EGREP_CPP.
92731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92732         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92733         Suggested by Akim Demaille <akim@epita.fr> in
92734         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92735
92736 2003-05-12  Jim Meyering  <jim@meyering.net>
92737
92738         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92739         the space-padded-by-default conversion specifiers, %e, %k, %l.
92740
92741 2003-05-12  Bruno Haible  <bruno@clisp.org>
92742
92743         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92744         the string is longer than 4 KB.
92745
92746 2003-05-11  Karl Berry  <karl@gnu.org>
92747
92748         * config/config.{guess,sub}: update from prep.
92749
92750 2003-05-09  Bruno Haible  <bruno@clisp.org>
92751
92752         * modules/error: Add m4/strerror_r.m4 to file list.
92753
92754 2003-05-03  Bruno Haible  <bruno@clisp.org>
92755
92756         Upgrade to Unicode-4.0.
92757         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92758         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92759         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92760         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92761         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92762         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92763         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92764         Change width of U+E0100..U+E01EF from 1 to 0.
92765
92766 2003-04-25  Jim Meyering  <jim@meyering.net>
92767
92768         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92769         of type size_t, not int.
92770
92771 2003-04-25  Bruno Haible  <bruno@clisp.org>
92772
92773         * lib/copy-file.c: Include <stddef.h>, for size_t.
92774
92775 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92776
92777         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92778         code which expansion is under static control.  Patch imported from
92779         Akim Demaille's patch to Bison; see
92780         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92781
92782 2003-04-14  Bruno Haible  <bruno@clisp.org>
92783
92784         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92785
92786 2003-04-11  Jim Meyering  <jim@meyering.net>
92787
92788         Merge changes from Coreutils.
92789
92790         2003-03-22  Jim Meyering  <jim@meyering.net>
92791
92792         * lib/strftime.c (widen): Cast alloca return value to proper type.
92793
92794         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92795
92796         From GNU libc.
92797         * lib/strftime.c (my_strftime): Handle very large width
92798         specifications for numeric values correctly.  Improve checks for
92799         overflow.
92800
92801         2003-01-19  Jim Meyering  <jim@meyering.net>
92802
92803         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92804         definitions.
92805         (nl_get_alt_digit) [! defined my_strftime]: Define.
92806         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92807         _nl_get_alt_digit and _nl_get_walt_digit.
92808
92809         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92810         libc. These changes have no effect outside of _LIBC.
92811
92812 2003-04-10  Bruno Haible  <bruno@clisp.org>
92813
92814         * modules/findprog: New file.
92815         * MODULES.html.sh (func_all_modules): Add it.
92816
92817 2003-04-10  Bruno Haible  <bruno@clisp.org>
92818
92819         * m4/findprog.m4: New file.
92820         * m4/eaccess.m4: New file.
92821
92822 2003-04-10  Bruno Haible  <bruno@clisp.org>
92823
92824         * lib/findprog.h: New file, from GNU gettext.
92825         * lib/findprog.c: New file, from GNU gettext.
92826
92827 2003-04-05  Jim Meyering  <jim@meyering.net>
92828
92829         Merge changes from Coreutils.
92830
92831         * lib/exclude.h (PARAMS): Remove definition and uses.
92832         * lib/exclude.c: Remove uses of `PARAMS'.
92833
92834         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92835         Add test-cases for DOS filenames. Declare program_name.
92836         (main): Set up program_name.  Patch by Rich Dawe.
92837
92838         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92839         error from mntctl.
92840         Use mntctl's return value to drive the entry-processing loop, since
92841         we can't rely on the value of the vmt_length member in the last
92842         entry.  On some systems doing so could result in exhausting
92843         virtual memory.  Based in part on a patch from Mike Jetzer.
92844
92845 2003-04-04  Bruno Haible  <bruno@clisp.org>
92846
92847         * modules/linebreak: New file.
92848         * MODULES.html.sh (func_all_modules): Add it.
92849
92850 2003-04-04  Bruno Haible  <bruno@clisp.org>
92851
92852         * m4/linebreak.m4: New file.
92853
92854 2003-04-04  Bruno Haible  <bruno@clisp.org>
92855
92856         * lib/linebreak.h: New file, from GNU gettext.
92857         * lib/linebreak.c: New file, from GNU gettext with slight
92858         modifications.
92859         * lib/lbrkprop.h: New file, from GNU gettext.
92860
92861 2003-04-03  Bruno Haible  <bruno@clisp.org>
92862
92863         * modules/utf8-ucs4: New file.
92864         * modules/utf16-ucs4: New file.
92865         * modules/ucs4-utf8: New file.
92866         * modules/ucs4-utf16: New file.
92867         * MODULES.html.sh (func_all_modules): Add them.
92868
92869 2003-04-03  Bruno Haible  <bruno@clisp.org>
92870
92871         * m4/utf-ucs4.m4: New file.
92872         * m4/ucs4-utf.m4: New file.
92873
92874 2003-04-03  Bruno Haible  <bruno@clisp.org>
92875
92876         * lib/utf8-ucs4.h: New file, from GNU gettext.
92877         * lib/utf16-ucs4.h: New file, from GNU gettext.
92878         * lib/ucs4-utf8.h: New file, from GNU gettext.
92879         * lib/ucs4-utf16.h: New file, from GNU gettext.
92880
92881 2003-04-02  Bruno Haible  <bruno@clisp.org>
92882
92883         * modules/binary-io: New file.
92884         * MODULES.html.sh (func_all_modules): Add it.
92885
92886 2003-04-02  Bruno Haible  <bruno@clisp.org>
92887
92888         * lib/binary-io.h: New file, from GNU gettext.
92889
92890 2003-04-01  Bruno Haible  <bruno@clisp.org>
92891
92892         * modules/pathname: New file.
92893         * MODULES.html.sh (func_all_modules): Add it.
92894
92895 2003-04-01  Bruno Haible  <bruno@clisp.org>
92896
92897         * lib/pathname.h: New file, from GNU gettext.
92898         * lib/concatpath.c: New file, from GNU gettext.
92899
92900 2003-03-30  Bruno Haible  <bruno@clisp.org>
92901
92902         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92903
92904 2003-03-30  Bruno Haible  <bruno@clisp.org>
92905
92906         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92907         function chown() doesn't exist.
92908
92909 2003-03-28  Bruno Haible  <bruno@clisp.org>
92910
92911         * modules/copy-file: New file.
92912         * MODULES.html.sh (func_all_modules): Add it.
92913
92914 2003-03-28  Bruno Haible  <bruno@clisp.org>
92915
92916         * m4/copy-file.m4: New file.
92917
92918 2003-03-28  Bruno Haible  <bruno@clisp.org>
92919
92920         * lib/copy-file.h: New file, from GNU gettext.
92921         * lib/copy-file.c: New file, from GNU gettext.
92922
92923 2003-03-18  Jim Meyering  <jim@meyering.net>
92924
92925         * lib/quote.c (quote_n): Fix typo in comment.
92926
92927 2003-03-18  Bruno Haible  <bruno@clisp.org>
92928
92929         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92930         checking.
92931         * m4/onceonly_2_57.m4: Likewise.
92932
92933 2003-03-17  Bruno Haible  <bruno@clisp.org>
92934
92935         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92936         (m4_quote): Remove macro.
92937         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92938
92939 2003-03-14  Jim Meyering  <jim@meyering.net>
92940
92941         Merge changes from Coreutils.
92942         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92943         to be const, in order to avoid warnings.
92944         (obstack_room): Likewise.
92945         (obstack_empty_p): Likewise.
92946
92947 2003-03-14  Bruno Haible  <bruno@clisp.org>
92948
92949         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92950         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92951
92952 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92953
92954         Merge changes from Bison.
92955         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92956         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92957         when compiling Bison 1.875's `bitset bset = obstack_alloc
92958         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92959         * lib/hash.c: Include <stdbool.h> unconditionally.
92960
92961 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92962
92963         * m4/onceonly.m4 (m4_quote): New macro.
92964         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92965         Quote AC_FOREACH variable-expansions properly.
92966
92967 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92968
92969         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92970
92971 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92972
92973         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92974         Reported by Bruce Becker; see:
92975         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92976
92977 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92978             Bruno Haible  <bruno@clisp.org>
92979
92980         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92981         Reported by John Hughes, see
92982         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92983
92984 2003-02-20  Bruno Haible  <bruno@clisp.org>
92985
92986         * MODULES.html.sh (func_all_modules): Add poll.
92987
92988 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92989
92990         * modules/poll: New file.
92991
92992 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92993
92994         * lib/poll_.h: New file.
92995         * lib/poll.c: New file.
92996
92997 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92998
92999         * m4/poll.m4: New file.
93000
93001 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93002
93003         * modules/mathl: New file.
93004
93005 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93006
93007         * lib/mathl.h: New file.
93008         * lib/acosl.c: New file.
93009         * lib/asinl.c: New file.
93010         * lib/atanl.c: New file.
93011         * lib/ceill.c: New file.
93012         * lib/cosl.c: New file.
93013         * lib/expl.c: New file.
93014         * lib/floorl.c: New file.
93015         * lib/frexpl.c: New file.
93016         * lib/ldexpl.c: New file.
93017         * lib/logl.c: New file.
93018         * lib/sincosl.c: New file.
93019         * lib/sinl.c: New file.
93020         * lib/sqrtl.c: New file.
93021         * lib/tanl.c: New file.
93022         * lib/trigl.c: New file.
93023         * lib/trigl.h: New file.
93024
93025 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93026
93027         * m4/mathl.m4: New file.
93028
93029 2003-02-18  Bruno Haible  <bruno@clisp.org>
93030
93031         * MODULES.html.sh (func_all_modules): Add mathl.
93032
93033 2003-02-17  Bruno Haible  <bruno@clisp.org>
93034
93035         * modules/mkdtemp: New module.
93036         * MODULES.html.sh (func_all_modules): Add it.
93037
93038 2003-02-17  Bruno Haible  <bruno@clisp.org>
93039
93040         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93041
93042 2003-02-17  Bruno Haible  <bruno@clisp.org>
93043
93044         * lib/mkdtemp.h: New file, from GNU gettext.
93045         * lib/mkdtemp.c: New file, from GNU gettext.
93046
93047 2003-02-02  Jim Meyering  <jim@meyering.net>
93048
93049         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93050         e.g. glibc-2.2.93.
93051
93052 2003-01-31  Bruno Haible  <bruno@clisp.org>
93053
93054         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93055         'rpl_rename'.
93056         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93057         'rpl_strnlen'.
93058         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93059         'rpl_strtod'.
93060         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93061         'rpl_utime'.
93062
93063 2003-01-31  Bruno Haible  <bruno@clisp.org>
93064
93065         * lib/rename.c: #undef rename before defining rpl_rename.
93066         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93067
93068 2003-01-30  Bruno Haible  <bruno@clisp.org>
93069
93070         * modules/vasnprintf, modules/vasprintf: New modules.
93071         * MODULES.html.sh (func_all_modules): Add them.
93072
93073 2003-01-30  Bruno Haible  <bruno@clisp.org>
93074
93075         * m4/signed.m4: New file, from GNU gettext.
93076         * m4/longdouble.m4: New file, from GNU gettext.
93077         * m4/wchar_t.m4: New file, from GNU gettext.
93078         * m4/wint_t.m4: New file, from GNU gettext.
93079         * m4/vasnprintf.m4: New file.
93080         * m4/vasprintf.m4: New file.
93081
93082 2003-01-30  Bruno Haible  <bruno@clisp.org>
93083
93084         * lib/printf-args.h: New file, from GNU gettext.
93085         * lib/printf-args.c: New file, from GNU gettext.
93086         * lib/printf-parse.h: New file, from GNU gettext.
93087         * lib/printf-parse.c: New file, from GNU gettext.
93088         * lib/vasnprintf.h: New file, from GNU gettext.
93089         * lib/vasnprintf.c: New file, from GNU gettext.
93090         * lib/asnprintf.c: New file, from GNU gettext.
93091         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93092         * lib/vasprintf.c: New file, from GNU gettext.
93093         * lib/asprintf.c: New file, from GNU gettext.
93094
93095 2003-01-29  Bruno Haible  <bruno@clisp.org>
93096
93097         * modules/stpncpy: New module.
93098         * MODULES.html.sh (func_all_modules): Add it.
93099
93100 2003-01-29  Bruno Haible  <bruno@clisp.org>
93101
93102         * m4/stpncpy.m4: New file.
93103
93104 2003-01-29  Bruno Haible  <bruno@clisp.org>
93105
93106         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93107         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93108
93109 2003-01-28  Bruno Haible  <bruno@clisp.org>
93110
93111         * modules/c-ctype: New module.
93112         * MODULES.html.sh (func_all_modules): Add it.
93113
93114 2003-01-28  Bruno Haible  <bruno@clisp.org>
93115
93116         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93117         Paul Eggert.
93118         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93119         Paul Eggert.
93120
93121 2003-01-27  Bruno Haible  <bruno@clisp.org>
93122
93123         * modules/xsetenv: New module.
93124         * MODULES.html.sh (func_all_modules): Add it.
93125
93126 2003-01-27  Bruno Haible  <bruno@clisp.org>
93127
93128         * lib/xsetenv.h: New file, from GNU gettext.
93129         * lib/xsetenv.c: New file, from GNU gettext.
93130
93131 2003-01-23  Jim Meyering  <jim@meyering.net>
93132
93133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93134         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93135
93136 2003-01-23  Bruno Haible  <bruno@clisp.org>
93137
93138         * modules/minmax: New module.
93139         * MODULES.html.sh (func_all_modules): Add it.
93140
93141 2003-01-23  Bruno Haible  <bruno@clisp.org>
93142
93143         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93144         Eggert.
93145
93146 2003-01-22  Bruno Haible  <bruno@clisp.org>
93147
93148         * modules/exit: New module.
93149         * MODULES.html.sh (func_all_modules): Add it.
93150
93151 2003-01-22  Bruno Haible  <bruno@clisp.org>
93152
93153         * lib/exit.h: New file, from GNU gettext.
93154
93155 2003-01-19  Bruno Haible  <bruno@clisp.org>
93156
93157         * gnulib-tool: Recognize option --extract-maintainer.
93158         (func_get_maintainer): New function.
93159         * modules/*: Add Maintainer entry.
93160
93161 2003-01-16  Jim Meyering  <jim@meyering.net>
93162
93163         * m4/regex.m4: The `regex' struct is both input and output.
93164         Initialize it before each use.  Patch by Tim Waugh.
93165
93166 2003-01-16  Bruno Haible  <bruno@clisp.org>
93167
93168         * MODULES.html.sh: Add a table of contents. Add the module name as
93169         leftmost column. Add hyperlinks.
93170
93171 2003-01-15  Bruno Haible  <bruno@clisp.org>
93172
93173         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93174
93175 2003-01-15  Bruno Haible  <bruno@clisp.org>
93176
93177         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93178         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93179         suffix.
93180
93181 2003-01-15  Bruno Haible  <bruno@clisp.org>
93182
93183         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93184
93185 2003-01-15  Bruno Haible  <bruno@clisp.org>
93186
93187         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93188         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93189
93190 2003-01-14  Jim Meyering  <jim@meyering.net>
93191
93192         * lib/same.c (same_name): Tweak a comment.
93193
93194 2003-01-14  Bruno Haible  <bruno@clisp.org>
93195
93196         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93197         when a string comparison is sufficient.
93198
93199 2003-01-14  Bruno Haible  <bruno@clisp.org>
93200
93201         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93202         'unsigned int'.
93203
93204 2003-01-14  Bruno Haible  <bruno@clisp.org>
93205
93206         * lib/hash-pjw.c: Add comment about low quality of this function.
93207
93208 2003-01-13  Bruno Haible  <bruno@clisp.org>
93209
93210         * modules/stpcpy: Distribute lib/stpcpy.h.
93211         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93212
93213 2003-01-13  Bruno Haible  <bruno@clisp.org>
93214
93215         * modules/*: Add a description.
93216         * modules/strpbrk: Fix Makefile.am snippet.
93217         * modules/strtoimax: Fix dependencies.
93218         * modules/strtoumax: Likewise.
93219
93220 2003-01-13  Bruno Haible  <bruno@clisp.org>
93221
93222         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93223         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93224         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93225
93226 2003-01-13  Bruno Haible  <bruno@clisp.org>
93227
93228         * gnulib-tool (func_create_testdir): Store config/* files in the main
93229         directory.
93230         * config.rpath: Move to ...
93231         * config/config.rpath: ... here.
93232         * modules/gettext: Contains config/config.rpath, not config.rpath.
93233         * modules/iconv: Likewise.
93234
93235 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93236
93237         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93238         to avoid collisions with libcurses and libreadline.
93239
93240         * m4/getstr.m4: Remove.
93241         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93242
93243 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93244
93245         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93246         to avoid collisions with libcurses and libreadline.
93247
93248         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93249         * lib/getstr.h, getstr.c: Remove.
93250         * lib/getline.c: Include "getline.h", to check interface.
93251         Move body of old getstr.c here: this defines MIN_CHUNK and
93252         declares getdelim2, which is renamed from getstr.
93253         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93254
93255         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93256         All uses changed.
93257         * lib/linebuffer.h: Likewise.
93258         (readline): Remove backward-compatibility macro.
93259
93260 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93261
93262         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93263         to avoid collisions with libcurses and libreadline.
93264         * getstr: Remove.
93265         * MODULES.html.sh: Remove getstr.
93266         * modules/getline: Depend on unlocked-io, not getstr.
93267
93268 2003-01-12  Jim Meyering  <jim@meyering.net>
93269
93270         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93271
93272 2003-01-10  Bruno Haible  <bruno@clisp.org>
93273
93274         * modules/alloca: Change Makefile.am requirements. Simplify Include
93275         requirements. Add lib/alloca_.h to file list.
93276
93277 2003-01-10  Bruno Haible  <bruno@clisp.org>
93278
93279         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93280
93281 2003-01-10  Bruno Haible  <bruno@clisp.org>
93282
93283         * lib/alloca_.h: New file.
93284         * lib/getdate.y: Unconditionally include alloca.h.
93285         * lib/makepath.c: Likewise.
93286         * lib/setenv.c: Likewise.
93287         * lib/userspec.c: Likewise.
93288
93289 2003-01-09  Karl Berry  <karl@gnu.org>
93290
93291         * MODULES.html.sh: include `dirname $0` in PATH, to find
93292         gnulib-tool.
93293
93294 2003-01-09  Bruno Haible  <bruno@clisp.org>
93295
93296         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93297         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93298
93299 2003-01-09  Bruno Haible  <bruno@clisp.org>
93300
93301         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93302
93303 2003-01-09  Bruno Haible  <bruno@clisp.org>
93304
93305         * lib/stdbool.h.in: New file.
93306
93307 2003-01-09  Bruno Haible  <bruno@clisp.org>
93308
93309         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93310         * MODULES.html.sh: Likewise.
93311
93312 2003-01-08  Jim Meyering  <jim@meyering.net>
93313
93314         * lib/full-write.c: Undefine and define-away `const' after inclusion
93315         of errno.h, not before.  Suggestion from Bruno Haible.
93316
93317 2003-01-08  Bruno Haible  <bruno@clisp.org>
93318
93319         * modules/full-read: Depend on full-write.
93320
93321 2003-01-08  Bruno Haible  <bruno@clisp.org>
93322
93323         * lib/safe-read.c: Include specification header first, to ensure its
93324         selfcontainedness.
93325         * lib/full-write.c: Likewise.
93326
93327 2003-01-07  Jim Meyering  <jim@meyering.net>
93328
93329         * lib/full-write.c: Rework so that it may serve to define full_read,
93330         too.
93331         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93332
93333 2003-01-07  Bruno Haible  <bruno@clisp.org>
93334
93335         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93336         <inttypes.h>.
93337         * lib/xstrtol.h: Likewise.
93338         * lib/xstrtoimax.c: Likewise.
93339         * lib/xstrtoumax.c: Likewise.
93340         * lib/human.h: Likewise.
93341
93342         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93343         on systems that have <inttypes.h> but not <stdint.h>.
93344
93345 2003-01-07  Bruno Haible  <bruno@clisp.org>
93346
93347         * MODULES.html.sh: Add copyright notice.
93348         (missed_files): Omit CVS directory entries.
93349         (func_module): Make it work with sed-3.02.
93350         * MODULES.txt: Remove file.
93351
93352 2003-01-06  Jim Meyering  <jim@meyering.net>
93353
93354         * lib/version-etc.c: Update year in translatable copyright string.
93355
93356 2003-01-03  Karl Berry  <karl@gnu.org>
93357
93358         * config/config.{guess,sub}: update from prep.
93359
93360 2003-01-02  Karl Berry  <karl@gnu.org>
93361
93362         * doc/COPYING.DOC: belatedly updated to 1.2.
93363
93364 2003-01-01  Karl Berry  <karl@gnu.org>
93365
93366         * gnulib-tool (func_verify_module): report module name $module in
93367         error message, not $1.
93368         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93369         be created, only if it doesn't exist.
93370         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93371
93372 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93373
93374         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93375
93376 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93377
93378         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93379         memcmp if strcoll doesn't work.
93380
93381 2002-12-31  Bruno Haible  <bruno@clisp.org>
93382
93383         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93384         nonempty.
93385
93386 2002-12-31  Bruno Haible  <bruno@clisp.org>
93387
93388         * lib/memcoll.c (STRCOLL): New macro.
93389         (memcoll): Use it.
93390
93391 2002-12-31  Bruno Haible  <bruno@clisp.org>
93392
93393         * lib/localcharset.h: New file.
93394         * lib/localcharset.c: Include it.
93395         * lib/unicodeio.c: Likewise.
93396
93397 2002-12-31  Bruno Haible  <bruno@clisp.org>
93398
93399         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93400         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93401
93402 2002-12-31  Bruno Haible  <bruno@clisp.org>
93403
93404         * lib/getline.h: Include <stddef.h>, for size_t.
93405
93406         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93407         * lib/unicodeio.c: Don't include <stddef.h>.
93408
93409 2002-12-31  Bruno Haible  <bruno@clisp.org>
93410
93411         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93412         HAVE_TM_ZONE.
93413
93414 2002-12-24  Karl Berry  <karl@gnu.org>
93415
93416         * config/config.guess: update from prep.
93417
93418 2002-12-24  Bruno Haible  <bruno@clisp.org>
93419
93420         General infrasructure.
93421         * m4/README: Rewritten.
93422         * m4/onceonly.m4: New file.
93423         * m4/onceonly_2_57.m4: New file.
93424
93425         Module atexit.
93426         * m4/atexit.m4: New file.
93427
93428         Module strtod.
93429         * m4/strtod.m4: New file.
93430
93431         Module strtol.
93432         * m4/strtol.m4: New file.
93433
93434         Module strtoul.
93435         * m4/strtoul.m4: New file.
93436
93437         Module memchr.
93438         * m4/memchr.m4: New file.
93439
93440         Module memcmp.
93441         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93442         (jm_FUNC_MEMCMP): Invoke it.
93443
93444         Module memcpy.
93445         * m4/memcpy.m4: New file.
93446
93447         Module memmove.
93448         * m4/memmove.m4: New file.
93449
93450         Module memset.
93451         * m4/memset.m4: New file.
93452
93453         Module strcspn.
93454         * m4/strcspn.m4: New file.
93455
93456         Module strpbrk.
93457         * m4/strpbrk.m4: New file.
93458
93459         Module strstr.
93460         * m4/strstr.m4: New file.
93461
93462         Module strerror.
93463         * m4/strerror.m4: New file.
93464
93465         Module mktime.
93466         * m4/mktime.m4: Renamed from jm-mktime.m4.
93467         (gl_PREREQ_MKTIME): New macro.
93468         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93469
93470         Module malloc.
93471         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93472         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93473         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93474
93475         Module realloc.
93476         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93477         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93478         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93479
93480         Module strftime.
93481         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93482         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93483         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93484         gl_TM_GMTOFF.
93485         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93486
93487         Module xalloc.
93488         * m4/xalloc.m4: New file.
93489
93490         Module alloca.
93491         * m4/alloca.m4: New file.
93492
93493         Module putenv.
93494         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93495         (jm_FUNC_PUTENV): Invoke it.
93496
93497         Module setenv.
93498         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93499         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93500         when invoked twice.
93501         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93502         gt_FUNC_SETENV.
93503
93504         Module memrchr.
93505         * m4/memrchr.m4: New file.
93506
93507         Module stpcpy.
93508         * m4/stpcpy.m4: New file.
93509
93510         Module strcase.
93511         * m4/strcase.m4: New file.
93512
93513         Module strdup.
93514         * m4/strdup.m4: New file.
93515
93516         Module strnlen.
93517         * m4/strnlen.m4: New file.
93518
93519         Module strndup.
93520         * m4/strndup.m4: New file.
93521
93522         Module xstrtod.
93523         * m4/xstrtod.m4: New file.
93524
93525         Module xstrtol.
93526         * m4/xstrtol.m4: New file.
93527
93528         Module getdate.
93529         * m4/getdate.m4: New file.
93530
93531         Module unlocked-io.
93532         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93533         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93534         * m4/jm-glibc-io.m4n: Remove file.
93535
93536         Module long-options.
93537         * m4/long-options.m4: New file.
93538
93539         Module md5.
93540         * m4/md5.m4: New file.
93541
93542         Module sha.
93543         * m4/sha.m4: New file.
93544
93545         Module getstr.
93546         * m4/getstr.m4: New file.
93547
93548         Module getline.
93549         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93550         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93551         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93552         simply getline. Infoke gl_PREREQ_GETLINE.
93553
93554         Module obstack.
93555         * m4/obstack.m4: New file.
93556
93557         Module hash.
93558         * m4/hash.m4: New file.
93559
93560         Module readtokens.
93561         * m4/readtokens.m4: New file.
93562
93563         Module strverscmp.
93564         * m4/strverscmp.m4: New file.
93565
93566         Module stdbool.
93567         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93568         OSF/1.
93569
93570         Module strtoll.
93571         * m4/strtoll.m4: New file.
93572
93573         Module strtoull.
93574         * m4/strtoull.m4: New file.
93575
93576         Module strtoimax.
93577         * m4/strtoimax.m4: New file.
93578
93579         Module strtoumax.
93580         * m4/strtoumax.m4: New file.
93581
93582         Module xstrtoimax.
93583         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93584         jm_AC_PREREQ_XSTRTOIMAX.
93585         Moved the strtol prerequisites to strtol.m4.
93586         Moved the strtoll prerequisites to strtoll.m4.
93587         Moved the strtoimax prerequisites to strtoimax.m4.
93588
93589         Module xstrtoumax.
93590         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93591         jm_AC_PREREQ_XSTRTOUMAX.
93592         Moved the strtoul prerequisites to strtoul.m4.
93593         Moved the strtoull prerequisites to strtoull.m4.
93594         Moved the strtoumax prerequisites to strtoumax.m4.
93595
93596         Module chown.
93597         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93598         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93599
93600         Module dup2.
93601         * m4/dup2.m4: New file.
93602
93603         Module ftruncate.
93604         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93605         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93606
93607         Module getgroups.
93608         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93609         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93610
93611         Module gettimeofday.
93612         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93614         gl_PREREQ_GETTIMEOFDAY.
93615
93616         Module mkdir.
93617         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93618         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93619
93620         Module mkstemp.
93621         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93622         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93623         jm_AC_TYPE_UINTMAX_T.
93624         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93625
93626         Module stat.
93627         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93628         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93629
93630         Module lstat.
93631         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93632         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93633
93634         Module timespec.
93635         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93636         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93637         * m4/st_mtim.m4: Indentation.
93638
93639         Module nanosleep.
93640         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93641         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93642         gl_PREREQ_NANOSLEEP.
93643
93644         Module regex.
93645         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93646         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93647         (gl_REGEX): New macro.
93648
93649         Module rename.
93650         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93651         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93652
93653         Module rmdir.
93654         * m4/rmdir.m4: New file.
93655
93656         Module utime.
93657         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93658         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93659         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93660
93661         Module dirname.
93662         * m4/dirname.m4: New file.
93663
93664         Module getopt.
93665         * m4/getopt.m4: New file.
93666
93667         Module unistd-safer.
93668         * m4/unistd-safer.m4: New file.
93669
93670         Module fnmatch.
93671         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93672         declaration.
93673         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93674         (gl_FUNC_FNMATCH_POSIX): New macro.
93675         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93676         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93677         simply fnmatch.
93678
93679         Module exclude.
93680         * m4/exclude.m4: New file.
93681
93682         Module human.
93683         * m4/human.m4: New file.
93684
93685         Module acl.
93686         * m4/acl.m4: Nop.
93687
93688         Module backupfile.
93689         * m4/backupfile.m4: New file.
93690         * m4/d-ino.m4: Indentation.
93691
93692         Module fsusage.
93693         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93694         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93695         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93696
93697         Module dirfd.
93698         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93699         requirements.
93700
93701         Module euidaccess.
93702         * m4/euidaccess.m4: New file.
93703
93704         Module file-type.
93705         * m4/file-type.m4: New file.
93706
93707         Module fileblocks.
93708         * m4/fileblocks.m4: New file.
93709
93710         Module filemode.
93711         * m4/filemode.m4: New file.
93712
93713         Module isdir.
93714         * m4/isdir.m4: New file.
93715
93716         Module lchown.
93717         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93718         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93719
93720         Module makepath.
93721         * m4/makepath.m4: New file.
93722
93723         Module modechange.
93724         * m4/modechange.m4: New file.
93725
93726         Module mountlist.
93727         * m4/mountlist.m4: New file.
93728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93729         Indentation.
93730
93731         Module path-concat.
93732         * m4/path-concat.m4: New file.
93733
93734         Module pathmax.
93735         * m4/pathmax.m4: New file.
93736
93737         Module same.
93738         * m4/same.m4: New file.
93739
93740         Module save-cwd.
93741         * m4/save-cwd.m4: New file.
93742
93743         Module savedir.
93744         * m4/savedir.m4: New file.
93745
93746         Module xgetcwd.
93747         * m4/xgetcwd.m4: New file.
93748         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93749
93750         Module xreadlink.
93751         * m4/xreadlink.m4: New file.
93752
93753         Module safe-read.
93754         * m4/safe-read.m4: New file.
93755
93756         Module safe-write.
93757         * m4/safe-write.m4: New file.
93758
93759         Module closeout.
93760         * m4/closeout.m4: New file.
93761
93762         Module stdio-safer.
93763         * m4/stdio-safer.m4: New file.
93764
93765         Module getpass.
93766         * m4/getpass.m4: New file.
93767
93768         Module getugroups.
93769         * m4/getugroups.m4: New file.
93770
93771         Module group-member.
93772         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93773         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93774
93775         Module idcache.
93776         * m4/idcache.m4: New file.
93777
93778         Module userspec.
93779         * m4/userspec.m4: New file.
93780
93781         Module gettime.
93782         * m4/clock_time.m4: New file.
93783         * m4/gettime.m4: New file.
93784
93785         Module settime.
93786         * m4/settime.m4: New file.
93787
93788         Module posixtm.
93789         * m4/posixtm.m4: New file.
93790
93791         Module gethostname.
93792         * m4/gethostname.m4: New file.
93793
93794         Module canon-host.
93795         * m4/canon-host.m4: New file.
93796
93797         Module gettext.
93798         * m4/codeset.m4: New file, from gettext-0.11.5.
93799         * m4/gettext.m4: New file, from gettext-0.11.5.
93800         * m4/glibc21.m4: New file, from gettext-0.11.5.
93801         * m4/iconv.m4: New file, from gettext-0.11.5.
93802         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93803         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93804         * m4/inttypes.m4: New file, from gettext-0.11.5.
93805         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93806         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93807         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93808         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93809         * m4/lib-link.m4: New file, from gettext-0.11.5.
93810         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93811         * m4/progtest.m4: New file, from gettext-0.11.5.
93812         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93813         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93814         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93815
93816         Module localcharset.
93817         * m4/localcharset.m4: New file.
93818
93819         Module hard-locale.
93820         * m4/hard-locale.m4: New file.
93821
93822         Module mbswidth.
93823         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93824         onceonly macros.
93825         * m4/mbrtowc.m4: Add comment.
93826
93827         Module memcasecmp.
93828         * m4/memcasecmp.m4: New file.
93829
93830         Module memcoll.
93831         * m4/memcoll.m4: New file.
93832
93833         Module unicodeio.
93834         * m4/unicodeio.m4: New file.
93835
93836         Module rpmatch.
93837         * m4/rpmatch.m4: New file.
93838
93839         Module yesno.
93840         * m4/yesno.m4: New file.
93841
93842         Module exitfail.
93843         * m4/exitfail.m4: New file.
93844
93845         Module c-stack.
93846         * m4/c-stack.m4 (gl_C_STACK): New macro.
93847         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93848
93849         Module error.
93850         * m4/error.m4 (gl_ERROR): New macro.
93851         (jm_PREREQ_ERROR): Use onceonly macros.
93852
93853         Module fatal.
93854         * m4/fatal.m4: New file.
93855
93856         Module getloadavg.
93857         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93858         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93859
93860         Module getpagesize.
93861         * m4/getpagesize.m4: New file.
93862
93863         Module getusershell.
93864         * m4/getusershell.m4: New file.
93865
93866         Module physmem.
93867         * m4/physmem.m4: New file.
93868
93869         Module posixver.
93870         * m4/posixver.m4: New file.
93871
93872         Module quotearg.
93873         * m4/quotearg.m4: New file.
93874
93875         Module quote.
93876         * m4/quote.m4: New file.
93877
93878         Module readutmp.
93879         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93880
93881         Module sig2str.
93882         * m4/sig2str.m4: New file.
93883
93884         Other.
93885         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93886         ulonglong.m4.
93887         * m4/intmax_t.m4: New file.
93888         * m4/d-type.m4: Indentation.
93889         * m4/jm-macros.m4: Update.
93890         * m4/prereq.m4 (jm_PREREQ): Update.
93891         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93892         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93893         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93894         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93895         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93896         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93897         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93898         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93899         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93900         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93901         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93902         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93903         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93904         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93905         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93906         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93907         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93908         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93909         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93910
93911 2002-12-24  Bruno Haible  <bruno@clisp.org>
93912
93913         * MODULES.txt: Update according to m4/ changes.
93914
93915         Module gettext.
93916         * config.rpath: New file, from gettext-0.11.5.
93917
93918         * modules/*: New module descriptions.
93919         * gnulib-tool: New file.
93920         * MODULES.html.sh: New file.
93921
93922 2002-12-21  Karl Berry  <karl@gnu.org>
93923
93924         * doc/fdl.texi: update to version 1.2.
93925
93926 2002-12-19  Karl Berry  <karl@gnu.org>
93927
93928         * config/config.guess: update from prep.
93929
93930 2002-12-18  Bruno Haible  <bruno@clisp.org>
93931
93932         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93933         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93934
93935 2002-12-17  Bruno Haible  <bruno@clisp.org>
93936
93937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93938         stdlib.h, string.h.
93939
93940 2002-12-17  Bruno Haible  <bruno@clisp.org>
93941
93942         * lib/canon-host.c (strdup): Remove unused declaration.
93943
93944         * lib/fsusage.c: Include full_read.h.
93945         (get_fs_usage): Use full_read instead of safe_read.
93946
93947         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93948
93949 2002-12-12  Karl Berry  <karl@gnu.org>
93950
93951         * config/config.guess: update from prep.
93952
93953 2002-12-11  Bruno Haible  <bruno@clisp.org>
93954
93955         * m4/setenv.m4: New file, from gettext-0.11.5.
93956
93957 2002-12-11  Bruno Haible  <bruno@clisp.org>
93958
93959         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93960         not unsetenv().
93961         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93962         modifications:
93963
93964         2002-12-11  Bruno Haible  <bruno@clisp.org>
93965
93966                 * setenv.c (alloca): Fall back to malloc.
93967                 (freea): New macro.
93968                 (setenv): Use freea() to free memory allocated with alloca().
93969
93970         2002-11-13  Bruno Haible  <bruno@clisp.org>
93971
93972                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93973                 function declarations.
93974                 * unsetenv.c (unsetenv): Likewise.
93975
93976         2002-03-04  Bruno Haible  <bruno@clisp.org>
93977
93978                 Portability to AIX 4.3.3.
93979                 * unsetenv.c: New file, extracted from setenv.c.
93980                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93981
93982         2001-12-20  Bruno Haible  <bruno@clisp.org>
93983
93984                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93985                 use malloc instead. For SunOS 4.
93986
93987         2001-12-11  Bruno Haible  <bruno@clisp.org>
93988
93989                 * setenv.c: Declare alloca.
93990                 (compar_fn_t): New typedef.
93991                 (KNOWN_VALUE, STORE_VALUE): Use it.
93992
93993         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93994         setenv.h.
93995
93996 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93997
93998         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93999         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94000         Choose values that are less likely to collide with system fnmatch
94001         options.
94002         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94003         defined (e.g., a pure POSIX system).
94004         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94005         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94006
94007 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94008
94009         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94010         a pain in practice to deal with generated m4 files.  This change
94011         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94012
94013         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94014         and jm-glibc-io.m4, as they are no longer a special case.
94015         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94016         kludge and the auto-generation stuff.  Check only whether the
94017         functions are declared, not whether they exist, since older hosts
94018         that don't declare the functions can't use the optimization anyway.
94019
94020 2002-12-06  Jim Meyering  <jim@meyering.net>
94021
94022         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94023
94024         Merge in changes from libc's misc/error.c, in preparation
94025         for the merge of gnulib's changes back into libc.
94026
94027         * lib/error.c (_): Define only if not already defined.
94028         Move definition to follow all #include directives.
94029         Include unlocked-io.h only if !_LIBC.
94030         [_LIBC]: Include <libio/libioP.h>.
94031         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94032         (fflush): Tweak definition to use INTUSE.
94033         (putc): Define.
94034
94035 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94036
94037         * lib/alloca.c [defined emacs]: Include "lisp.h".
94038         (xalloc_die) [defined emacs]: New macro.
94039         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94040         [! defined emacs]: Include <xalloc.h>.
94041         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94042         (pointer): Typedef to POINTER_TYPE *.
94043         (malloc): Remove decl; we now always use xmalloc.
94044         (alloca): Use old-style definition, since Emacs needs this.
94045         Check for arithmetic overflow when computing combined size.
94046
94047 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94048
94049         Do not generate unlocked-io.h automatically, since it's easier to
94050         maintain it by hand.
94051
94052         * lib/unlocked-io.h: New file, from GNU diffutils,
94053         but with proper copyright notice and attribution.
94054         * lib/gen-uio: Remove.
94055         * lib/Makefile.am: Add copyright notice.
94056         (libfetish_a_SOURCES): Add unlocked-io.h.
94057         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94058         (DISTCLEANFILES, io_functions): Remove macros.
94059         (EXTRA_DIST): Remove gen_uio.
94060         (unlocked-io.h): Remove rule.
94061
94062 2002-12-04  Jim Meyering  <jim@meyering.net>
94063
94064         Reflect the fact that stat.c and lstat.c are no longer generated.
94065         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94066         (DISTCLEANFILES): Likewise.
94067         (EXTRA_DIST): Likewise.
94068         (all_local): Don't depend on stat.c or lstat.c.
94069         (stat.c, lstat.c): Remove rules.
94070         (EXTRA_DIST): Remove xstat.in.
94071
94072         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94073         * lib/stat.c: New file.  Contents mostly from xstat.in.
94074         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94075         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94076
94077         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94078         too.
94079         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94080
94081 2002-12-03  Jim Meyering  <jim@meyering.net>
94082
94083         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94084         but not semantics, to minimize the differences between these two files.
94085         (safe_read): Change comment to mention SAFE_READ_ERROR.
94086
94087         * lib/safe-read.c (IS_EINTR): Define.
94088         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94089
94090 2002-12-02  Jim Meyering  <jim@meyering.net>
94091
94092         * lib/safe-read.c (EINTR): Define.
94093         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94094         (INT_MAX): Provide fallback.
94095         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94096
94097         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94098
94099 2002-12-02  Bruno Haible  <bruno@clisp.org>
94100
94101         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94102         Define, taken from safe-read.c.
94103         (INT_MAX): Provide fallback.
94104         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94105         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94106
94107         * lib/safe-read.c (EINTR): Remove definition.
94108         (safe_read): Don't use EINTR if it is absent.
94109
94110 2002-12-01  Jim Meyering  <jim@meyering.net>
94111
94112         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94113         zero.
94114         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94115
94116 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94117
94118         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94119         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94120         with `if (! (value < limit)) abort ();', for readability.
94121
94122 2002-11-26  Karl Berry  <karl@gnu.org>
94123
94124         * lib/strdup.c: copy from libc again, with jim's ok.
94125         * lib/.cppi-disable: re-add strdup.c
94126
94127 2002-11-25  Karl Berry  <karl@gnu.org>
94128
94129         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94130         instead of "strtol.c".
94131
94132 2002-11-25  Karl Berry  <karl@gnu.org>
94133
94134         * config/install-sh: update from automake for variable quoting, $0 in
94135         error msgs, etc.
94136
94137         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94138         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94139         entry.
94140
94141 2002-11-25  Jim Meyering  <jim@meyering.net>
94142
94143         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94144
94145 2002-11-24  Karl Berry  <karl@gnu.org>
94146
94147         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94148         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94149
94150 2002-11-24  Jim Meyering  <jim@meyering.net>
94151
94152         Update from coreutils:
94153
94154         * lib/mktime.c: Merge in changes from libc.
94155
94156         Avoid a link-time failure on some Linux systems.
94157         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94158         (otherwise).
94159         (__mon_yday): Declare with the STATIC attribute.
94160         (__mktime_internal): Likewise.
94161         Based on a report from Greg Schafer.
94162
94163 2002-11-23  Jim Meyering  <jim@meyering.net>
94164
94165         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94166         Use `unsigned', not `int', as type of index.
94167
94168         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94169
94170         * lib/fsusage.c: Remove unneeded parentheses around operands of
94171         `defined'.
94172
94173 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94174
94175         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94176         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94177         so that we can be included first.
94178         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94179         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94180         No need to include stddef.h or sys/types.h any more.
94181         Surround local include files with "", not "<>".
94182         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94183         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94184         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94185         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94186         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94187         (ISPRINT): Remove; no longer needed now that we assume C89.
94188
94189         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94190         Preserve errno.
94191
94192         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94193         quotearg_char): Use SIZE_MAX rather than
94194         (size_t) -1 when we are talking about "infinity".
94195
94196         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94197
94198 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94199
94200         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94201         hint that one should use `if (! x) abort ();' rather than `assert
94202         (x);', and anyway it's one less thing to worry about configuring.
94203         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94204         hash_rehash, hash_insert): Use abort rather than assert.
94205
94206 2002-11-22  Bruno Haible  <bruno@clisp.org>
94207
94208         * lib/safe-read.h: Assume C89. Add comments.
94209         (safe_read): Change return type to size_t.
94210         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94211         byte counts > SSIZE_MAX correctly.
94212         * lib/safe-write.h: New file.
94213         * lib/safe-write.c: New file.
94214         * lib/full-read.h: New file.
94215         * lib/full-read.c: New file.
94216         * lib/full-write.h: Assume C89. Add comments.
94217         * lib/full-write.c: Include safe-write.h.
94218         (full_write): Rewritten to use safe_write.
94219         Suggested by Jim Meyering and Paul Eggert.
94220
94221 2002-11-21  Jim Meyering  <jim@meyering.net>
94222
94223         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94224
94225         Merge in changes from the coreutils.
94226
94227         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94228         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94229         <stdint.h>.
94230         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94231         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94232         int.  Work more efficiently if X is the same width as uintmax_t.
94233         Do not compare X to -1, to avoid bogus compiler warning.
94234         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94235         Don't assume that f_frsize and f_bsize are the same type.
94236
94237         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94238         warning on FreeBSD.
94239
94240         * lib/makepath.c (make_path): Restore umask *before* creating the final
94241         component.
94242         (make_path): Minor reformatting.
94243
94244         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94245         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94246         HAVE_MALLOC/HAVE_REALLOC.
94247
94248         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94249         dummy ones.  At least on GNU/Linux systems, `auto' means something
94250         else.
94251         From Michael Stone.
94252
94253 2002-11-21  Bruno Haible  <bruno@clisp.org>
94254
94255         Remove case insensitive option matching.
94256         * lib/argmatch.h (argcasematch): Remove declaration.
94257         (ARGCASEMATCH): Remove macro.
94258         (__xargmatch_internal): Remove case_sensitive argument.
94259         (XARGMATCH): Update.
94260         (XARGCASEMATCH): Remove macro.
94261         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94262         case_sensitive argument.
94263         (argcasematch): Remove function.
94264         (__xargmatch_internal): Remove case_sensitive argument.
94265         (main): Use XARGMATCH instead of XARGCASEMATCH.
94266
94267         * lib/xmalloc.c: Change compile-time error message. Add comment about
94268         required autoconf version.
94269
94270 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94271
94272         Merge argmatch cleanups from Bison.  Assume C89.
94273
94274         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94275         Include stdlib.h, for EXIT_FAILURE.
94276         Always include <string.h>, since we assume C89.
94277         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94278         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94279         Include <stddef.h> instead, since it's all we need for size_t.
94280         (PARAMS): Remove.  All uses removed.
94281         (ARRAY_CARDINALITY): Do not bother to #undef.
94282         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94283         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94284         Remove unnecessary parentheses.
94285         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94286         Insert necessary parentheses.
94287         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94288         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94289
94290 2002-11-19  Bruno Haible  <bruno@clisp.org>
94291
94292         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94293         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94294
94295         * lib/mbswidth.h (PARAMS): Remove macro.
94296         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94297         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94298
94299         * lib/gcd.h (PARAMS): Remove macro.
94300         (gcd): Use ANSI C function declarations.
94301         * lib/gcd.c (gcd): Likewise.
94302
94303 2002-11-15  Bruno Haible  <bruno@clisp.org>
94304
94305         * lib/strcspn.c: Include <stddef.h>.
94306         (strcspn): Use ANSI C function declaration. Change return type to
94307         size_t. Use NULL.
94308         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94309         (strpbrk): Use NULL.
94310         * lib/strpbrk.h (PARAMS): Remove macro.
94311         (strpbrk): Use ANSI C function declaration.
94312         * lib/strstr.c: Don't include <sys/types.h>.
94313         * lib/strstr.h (PARAMS): Remove macro.
94314         (strstr): Use ANSI C function declarations.
94315
94316 2002-11-14  Karl Berry  <karl@gnu.org>
94317
94318         * config/mkinstalldirs: `do' on separate line, instead of
94319         `for var; do'.
94320
94321 2002-11-06  Bruno Haible  <bruno@clisp.org>
94322
94323         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94324         * lib/gcd.c (gcd): Likewise.
94325
94326 2002-11-05  Bruno Haible  <bruno@clisp.org>
94327
94328         * lib/gcd.h: New file, from gettext-0.11.5.
94329         * lib/gcd.c: New file, from gettext-0.11.5.
94330
94331 2002-11-05  Bruno Haible  <bruno@clisp.org>
94332
94333         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94334         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94335         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94336         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94337
94338         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94339         <libintl.h>.
94340         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94341         <libintl.h>.
94342
94343         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94344         * lib/human.c: Include gettext.h instead of <libintl.h>.
94345         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94346         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94347         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94348         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94349         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94350         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94351         (textdomain): Remove definition.
94352         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94353
94354         * lib/long-options.c: Remove include of <libintl.h> and definition of
94355         _.
94356         * lib/same.c: Remove include of <libintl.h> and definition of _.
94357
94358 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94359
94360         * lib/config.charset: A few additions for Solaris.
94361
94362 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94363
94364         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94365         * lib/localcharset.c (locale_charset): Declare as extern "C".
94366
94367 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94368
94369         * lib/config.charset: msdos in uk_UA uses CP1125.
94370
94371 2002-11-04  Bruno Haible  <bruno@clisp.org>
94372
94373         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94374         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94375         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94376         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94377         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94378
94379 2002-11-04  Bruno Haible  <bruno@clisp.org>
94380
94381         * lib/localcharset.c (locale_charset): Don't return an empty string.
94382
94383 2002-11-04  Bruno Haible  <bruno@clisp.org>
94384
94385         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94386         aliases.
94387
94388 2002-11-04  Bruno Haible  <bruno@clisp.org>
94389
94390         * lib/config.charset: Update for newest glibc. Add canonical names
94391         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94392
94393 2002-11-04  Bruno Haible  <bruno@clisp.org>
94394
94395         * lib/config.charset: Add support for NetBSD.
94396
94397 2002-11-04  Bruno Haible  <bruno@clisp.org>
94398
94399         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94400
94401 2002-11-01  Bruno Haible  <bruno@clisp.org>
94402
94403         * configure.in: Add AC_CONFIG_AUX_DIR call.
94404         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94405         test/Makefile.
94406         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94407
94408 2002-09-28  Karl Berry  <karl@gnu.org>
94409
94410         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94411         installed automake until the next release, since changes have been
94412         made.
94413
94414 2002-09-25  Karl Berry  <karl@gnu.org>
94415
94416         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94417         * lib/getopt*: copy from libc/posix.
94418         * lib/gettext.h: copy from gettext.
94419         * lib/.cppi-disable: add strdup.c, gettext.h.
94420
94421 2002-09-25  Karl Berry  <karl@gnu.org>
94422
94423         * config/srclist.txt: enable gettext.h check.
94424         * config/config.{guess,sub}: update from prep.
94425         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94426                 from automake 1.6.3.
94427         See srclist*.
94428
94429 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94430
94431         * regex.c (PATFETCH): Remove the translating fetch.
94432         (PATFETCH_RAW): Rename to PATFETCH.
94433         (set_image_of_range): New fun.
94434         (SET_RANGE_TABLE_WORK_AREA): Use it.
94435         (regex_compile): Don't translate the pattern chars so eagerly.
94436         Only do it when inserting an `exactn' bytecode or when handling
94437         a char-range.
94438         (mutually_exclusive_p): Avoid empty statement.
94439
94440 2002-07-06  Jim Meyering  <meyering@lucent.com>
94441
94442         * m4/README: Don't mention Makefile.am.in.
94443         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94444
94445 2002-07-01  Jim Meyering  <meyering@lucent.com>
94446
94447         * lib/c-stack.c: Include sys/time.h.
94448         From Volker Borchert.
94449
94450 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94451
94452         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94453
94454 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94455
94456         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94457         New macro.  Use it uniformly instead of
94458         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94459         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94460         reported by Vin Shelton.
94461
94462 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94463
94464         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94465         Do not assume SA_SIGINFO behavior.
94466         Bug reported by Jim Meyering on NetBSD 1.5.2.
94467
94468 2002-06-22  Jim Meyering  <meyering@lucent.com>
94469
94470         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94472
94473         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94474         now that configure.ac uses AC_GNU_SOURCE.
94475         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94476         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94477
94478         Update to latest tools.  Suggestions from Paul Eggert.
94479         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94480         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94481         * m4/fnmatch.m4: Likewise.
94482         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94483         to AC_HEADER_STDBOOL
94484
94485 2002-06-22  Jim Meyering  <meyering@lucent.com>
94486
94487         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94488         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94489
94490 2002-06-22  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94493
94494         * lib/exitfail.c, exitfail.h: Likewise.
94495         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94496
94497         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94498         of fnmatch.h.
94499         (EXTRA_DIST): Add fnmatch_loop.c.
94500         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94501
94502         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94503         * lib/fnmatch.c: Update from diffutils-2.8.2.
94504         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94505         * lib/fnmatch.h: Remove file.
94506
94507 2002-06-21  Jim Meyering  <meyering@lucent.com>
94508
94509         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94510         * m4/mbrtowc.m4: Likewise.
94511
94512         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94513         * m4/mbswidth.m4: Reflect name change:
94514         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94515         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94516
94517         * m4/lib-link.m4: Update from gettext-0.11.2.
94518         * m4/gettext.m4: Likewise.
94519
94520         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94521         From Alfred M. Szmidt.
94522
94523 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94524
94525         * lib/file-type.h: Report an error if neither S_ISREG nor
94526         S_IFREG is defined, instead of using a test specific to glibc
94527         2.2.  This should be safe, since POSIX requires S_ISREG and
94528         Unix Version 7 had S_IFREG.  We don't need to check for
94529         <sys/types.h> since we don't use any symbols that it defines.
94530
94531 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94532
94533         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94534         $@-t, so that each temporary file name is unique and valid in the first
94535         8 characters, for operation under DOS.
94536
94537 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94538
94539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94540
94541 2002-06-15  Jim Meyering  <meyering@lucent.com>
94542
94543         Work even with DJGPP 2.03, which lacks support for symlinks.
94544         From Richard Dawe.
94545         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94546         is defined.
94547         * lib/lchown.c (S_ISLNK): Likewise.
94548
94549 2002-06-15  Jim Meyering  <meyering@lucent.com>
94550
94551         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94552         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94553         have been included before this file.
94554
94555 2002-06-14  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/file-type.h: Use the version from diffutils-2.8.2.
94558         * lib/file-type.c: Likewise.
94559
94560 2002-06-07  Jim Meyering  <meyering@lucent.com>
94561
94562         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94563         They're needed at least for NetBSD 1.5.2.
94564         ($statxfs_includes): Include those same headers.
94565         ($statxfs_includes): Include sys/vfs.h if available.
94566         ($statxfs_includes): Likewise for sys/statvfs.h.
94567         Check for the following members in both structs statfs and statvfs:
94568         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94569
94570 2002-06-01  Jim Meyering  <meyering@lucent.com>
94571
94572         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94573         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94574
94575 2002-05-28  Jim Meyering  <meyering@lucent.com>
94576
94577         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94578         Reported by Volker Borchert.
94579
94580 2002-05-27  Jim Meyering  <meyering@lucent.com>
94581
94582         Fix a problem seen only on nonconforming systems whereby ls.c's
94583         use of localtime, and then of gettimeofday would cause trouble:
94584         the localtime call used to initialize rpl_gettimeofday's save
94585         mechanism would clobber ls's current local time information so
94586         that in any long listing the first file would always be listed
94587         with date 1970-01-01.  Analysis by Volker Borchert.
94588
94589         * lib/gettimeofday.c (localtime): Undefine.
94590         (rpl_localtime): New function.
94591
94592 2002-05-27  Jim Meyering  <meyering@lucent.com>
94593
94594         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94595         localtime.
94596
94597         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94598         use the replacement function; it wouldn't resolve at link time.
94599         Reported by Volker Borchert.
94600
94601 2002-05-22  Jim Meyering  <meyering@lucent.com>
94602
94603         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94604         file-type.h.
94605         * lib/file-type.h: New file.
94606         * lib/file-type.c (file_type): New file/function.  Extracted from
94607         diffutils.
94608
94609 2002-04-30  Jim Meyering  <meyering@lucent.com>
94610
94611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94612
94613 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94614
94615         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94616
94617 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94618
94619         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94620         Do not check for alloca.h (no longer used) or stdbool.h (was never
94621         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94622
94623 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94624
94625         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94626
94627 2002-04-29  Jim Meyering  <meyering@lucent.com>
94628
94629         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94630         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94631         Use AC_FUNC_STRNLEN here instead.
94632
94633         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94634         With autoconf-2.53a, it's part of AC_PROG_CC.
94635
94636 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94637
94638         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94640
94641 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94642
94643         * lib/sig2str.h, lib/sig2str.c: New files.
94644         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94645
94646 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94647
94648         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94649         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94650         of 127, since 64 is the largest conceivable number for ancient
94651         nonstandard hosts.
94652         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94653
94654 2002-04-28  Jim Meyering  <meyering@lucent.com>
94655
94656         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94657
94658 2002-04-24  Jim Meyering  <meyering@lucent.com>
94659
94660         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94661         (jm_PREREQ): Use it.
94662
94663         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94664         mach/mach.h fcntl.h.
94665         Check for this function: setlocale.
94666
94667 2002-04-24  Jim Meyering  <meyering@lucent.com>
94668
94669         * lib/gettext.h: New file, from Gettext.
94670         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94671         (libfetish_a_SOURCES): Add gettext.h.
94672
94673 2002-04-16  Jim Meyering  <meyering@lucent.com>
94674
94675         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94676         ut_pid, ut_id, ut_exit.
94677
94678 2002-04-16  Jim Meyering  <meyering@lucent.com>
94679
94680         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94681         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94682         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94683
94684 2002-04-12  Jim Meyering  <meyering@lucent.com>
94685
94686         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94687         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94688         existence of the getmntinfo function.  Needed for Darwin 5.3.
94689
94690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94691         This is necessary at least on Darwin 5.3.
94692
94693         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94694         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94695         strnlen.o in the library, and that makes some versions of ranlib
94696         object.
94697
94698 2002-04-12  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94701
94702 2002-04-09  Jim Meyering  <meyering@lucent.com>
94703
94704         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94705         to be more precise.  Rather than saying we're checking whether the
94706         function `works', say what we're testing.
94707         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94708         Reported by Bruno Haible.
94709
94710 2002-03-10  Jim Meyering  <meyering@lucent.com>
94711
94712         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94713         Suggestion from Santiago Vila.
94714
94715 2002-03-08  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/rename.c: Mention that this wrapper is needed also on
94718         mips-dec-ultrix4.4 systems.
94719
94720 2002-03-02  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94723         not HAVE_CLOCK_SETTIME.
94724
94725 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94726
94727         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94728         Check for clock_settime.
94729
94730 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94731
94732         * lib/nanosleep.h: Rename to....
94733         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94734
94735         * lib/gettime.c: New file.
94736         * lib/settime.c: New file.
94737         * lib/stime.c: Remove.
94738
94739         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94740         timespec.h.  Remove nanosleep.h.
94741
94742 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94743
94744         * m4/acl.m4: New file.
94745         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94746         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94747
94748 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94749
94750         * lib/acl.c, lib/acl.h: New files.
94751         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94752
94753 2002-02-24  Jim Meyering  <meyering@lucent.com>
94754
94755         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94756         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94757         cause trouble.  Reported by Nelson Beebe.
94758
94759 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94760
94761         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94762         compilers that don't know that xalloc_die never returns.
94763
94764 2002-02-20  Jim Meyering  <meyering@lucent.com>
94765
94766         * lib/getdate.c: Regenerate using bison-1.33.
94767
94768 2002-02-17  Jim Meyering  <meyering@lucent.com>
94769
94770         * config/config.guess (main): Don't use `head -1'; it's no longer
94771         portable. Use `sed 1q' instead.
94772
94773 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94774
94775         * m4/codeset.m4: Upgrade to gettext-0.11.
94776         * m4/gettext.m4: Upgrade to gettext-0.11.
94777         * m4/glibc21.m4: Upgrade to gettext-0.11.
94778         * m4/iconv.m4: Upgrade to gettext-0.11.
94779         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94780         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94781         * m4/lib-ld.m4: New file, from gettext-0.11.
94782         * m4/lib-link.m4: New file, from gettext-0.11.
94783         * m4/lib-prefix.m4: New file, from gettext-0.11.
94784         * m4/progtest.m4: Upgrade to gettext-0.11.
94785
94786 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94787
94788         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94789         (jm_PREREQ): Use it.
94790
94791 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94792
94793         * lib/posixver.c, lib/posixver.h: New files.
94794         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94795
94796 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94797             Bruno Haible  <bruno@clisp.org>
94798
94799         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94800         (fwrite_success_callback): New declaration.
94801         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94802         print_unicode_char. Call failure callback instead of error.
94803         (fwrite_success_callback): New function.
94804         (exit_failure_callback): New function.
94805         (fallback_failure_callback): New function.
94806         (print_unicode_char): Call unicode_to_mb.
94807
94808 2002-01-26  Jim Meyering  <meyering@lucent.com>
94809
94810         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94811         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94812
94813 2002-01-26  Jim Meyering  <meyering@lucent.com>
94814
94815         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94816
94817 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94818
94819         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94820
94821 2002-01-22  Jim Meyering  <meyering@lucent.com>
94822
94823         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94824         Otherwise, some versions of automake would omit the rule that makes
94825         Makefile from Makefile.in.
94826
94827 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94828
94829         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94830         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94831         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94832         (memcoll): Set errno to zero if there is no error.
94833
94834         * lib/quotearg.c (quotearg_buffer_restyled):
94835         Fix bug with quoting buffers containing NUL when backslashing escapes.
94836         This bug was exposed by the other changes in this patch.
94837         (quotearg_n_options): New arg ARGSIZE.
94838         All callers changed.
94839         (quoting_options_from_style): New function.
94840         (quotearg_n_style): Use it.
94841         (quotearg_n_style_mem): New function.
94842
94843         * lib/quotearg.h (quotearg_n_style_mem): New function.
94844
94845 2002-01-19  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94848         Remove useless quotes: DF_PROG="df".
94849         * m4/strnlen.m4: New file.
94850
94851 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94852
94853         * lib/backupfile.c (ISDIGIT): Comment fix.
94854         * lib/getdate.y (ISDIGIT): Likewise.
94855         * lib/posixtm.c (ISDIGIT, year): Likewise.
94856         * lib/strverscmp.c (ISDIGIT): Likewise.
94857         * lib/userspec.c (ISDIGIT): Likewise.
94858
94859 2002-01-16  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/getdate.y: Add three semicolons, each just before a closing
94862         brace. Bison (as of version 1.31) no longer papers over that mistake.
94863
94864 2002-01-05  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94867
94868 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94869
94870         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94871         not silently exit merely because the output buffer happens to
94872         have nothing pending.
94873
94874 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94875
94876         See the big note in ../ChangeLog.
94877         * lib/human.c (suffixes): Prefer K to k for 1024.
94878         (generate_suffix_backwards): New function.
94879         (human_readable_inexact): Use it.
94880         * lib/xstrtol.c (__xstrtol): If there is no number but there
94881         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94882         Accept 'K' as well as 'k'.
94883
94884 2001-12-15  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/regex.h (__restrict_arr): Update from libc.
94887
94888         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94889         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94890         (STREQ): Define.
94891
94892 2001-12-14  Jim Meyering  <meyering@lucent.com>
94893
94894         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94895         Suggestion from Bruno Haible.
94896
94897 2001-12-10  Jim Meyering  <meyering@lucent.com>
94898
94899         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94900         xrealloc, Instead, include "xalloc.h".
94901         (initbuffer): Don't cast xmalloc return value to char*.
94902         (readline): Reword comment.
94903         Don't cast xrealloc return value to char*
94904         Return NULL, not 0.
94905
94906 2001-12-09  Jim Meyering  <meyering@lucent.com>
94907
94908         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94909         about `signed and unsigned type in conditional expression'.
94910         * lib/posixtm.c (posix_time_parse): Likewise.
94911
94912         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94913
94914         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94915         to avoid a pedantic warning.
94916
94917         * lib/getstr.c: Don't include assert.h.
94918         (getstr): Remove warning-evoking assertions.
94919         Return -1 if offset parameter is out of bounds.
94920         Change the type of a local from int to size_t.
94921
94922         * lib/strftime.c (my_strftime_localtime_r): Include this function
94923         definition in the `#if ! HAVE_TM_GMTOFF' block.
94924
94925         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94926         Include xalloc.h instead.
94927
94928 2001-12-02  Jim Meyering  <meyering@lucent.com>
94929
94930         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94931         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94932         included.
94933
94934         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94935         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94936
94937 2001-11-30  Akim Demaille  <akim@epita.fr>
94938
94939         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94940         before being defined.
94941
94942 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94943
94944         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94945         First arg is int, not unsigned.
94946         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94947         (SIZE_MAX, UINT_MAX): New macros.
94948         (quotearg_n_options): Abort if N is negative.
94949         Avoid overflow check on hosts where size_t is 64 bits and int
94950         is 32 bits, as overflow is impossible there.
94951         Fix off-by-one typo that caused unnecessary reallocation.
94952
94953 2001-11-27  Jim Meyering  <meyering@lucent.com>
94954
94955         * lib/tempname.c: Merge with version from libc.
94956         * lib/regex.c: Likewise.
94957
94958         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94959         systems for which STDC_HEADERS is 0, it was not included, resulting in
94960         a warning about an integer-to-pointer conversion problem with getenv.
94961         Reported by Volker Borchert.
94962
94963 2001-11-26  Jim Meyering  <meyering@lucent.com>
94964
94965         * lib/gtod.h: Remove file.
94966         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94967         * lib/gettimeofday.c: Don't include gtod.h.
94968         (GTOD_init): Remove function.
94969         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94970         Suggestion from Volker Borchert.
94971
94972 2001-11-23  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94975         it.
94976         * lib/hash.c (struct hash_table): Define it here instead.
94977
94978 2001-11-22  Jim Meyering  <meyering@lucent.com>
94979
94980         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94981
94982 2001-11-20  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94985         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94986
94987 2001-11-19  Jim Meyering  <meyering@lucent.com>
94988
94989         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94990         directory.  Use "conftestXXXXXX" as the template.
94991         Suggestion from Paul Eggert.
94992
94993         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94994         immediately, so the test doesn't mistakenly hit the max-open-files
94995         limit.
94996
94997 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94998
94999         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95000         (TEMPORARIES): New macro.
95001         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95002         removes an artificial limitation (e.g. HP-UX 10.20, where
95003         TMP_MAX is 17576).
95004
95005 2001-11-18  Jim Meyering  <meyering@lucent.com>
95006
95007         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95008
95009 2001-11-18  Jim Meyering  <meyering@lucent.com>
95010
95011         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95012         on SunOS 4.
95013
95014         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95015         files will be created before anything else.
95016
95017 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95018
95019         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95020         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95021
95022 2001-11-17  Jim Meyering  <meyering@lucent.com>
95023
95024         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95025         Prompted by a report from Bob Proulx.
95026
95027         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95028         Instead, require UTILS_FUNC_MKSTEMP.
95029
95030 2001-11-17  Jim Meyering  <meyering@lucent.com>
95031
95032         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95033         Now, that's done as part of AC_FUNC_STRTOD.
95034
95035 2001-11-17  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95038         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95039         rather than group writable.  Patch by Juan F. Codagnone.
95040
95041         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95042         xrealloc, Instead, include "xalloc.h".
95043
95044         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95045         Remove explicit declarations of xmalloc, xrealloc,
95046         and xstrdup.  Instead, include "xalloc.h".
95047
95048         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95049         unlocked-io.h.
95050         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95051         Likewise.
95052         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95053
95054         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95055         Reported by Padraig Brady.
95056
95057         * lib/mkstemp.c: #undef mkstemp.
95058         Include config.h.
95059         (rpl_mkstemp): Rename from mkstemp.
95060         Protoize.
95061
95062 2001-11-16  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95065         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95066         determine the amount of total physical memory, use pstat_getstatic.
95067         HPUX-11 doesn't define _SC_PHYS_PAGES.
95068         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95069         If sysconf couldn't be used to determine the amount of available
95070         physical memory, use both pstat_getstatic and pstat_getdynamic.
95071         Based on a patch from Bob Proulx.
95072
95073 2001-11-10  Jim Meyering  <meyering@lucent.com>
95074
95075         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95076         (jm_PREREQ): Use it.
95077
95078 2001-11-09  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/jm-macros.m4: Require autoconf-2.52f.
95081         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95082         Use these AC_-prefixed names, not the AM_-prefixed ones.
95083
95084         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95085
95086 2001-11-05  Jim Meyering  <meyering@lucent.com>
95087
95088         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95089
95090 2001-11-04  Jim Meyering  <meyering@lucent.com>
95091
95092         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95093         $DEFS.
95094
95095 2001-11-03  Jim Meyering  <meyering@lucent.com>
95096
95097         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95098         of AC_DEFUN.
95099
95100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95101         know the name of the variable in the macro definition.
95102
95103 2001-11-03  Jim Meyering  <meyering@lucent.com>
95104
95105         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95106         in argmatch_to_argument call.
95107
95108         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95109         argument.
95110
95111         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95112         e.g., a fault due to an attempt to free a NULL pointer.
95113
95114 2001-11-01  Jim Meyering  <meyering@lucent.com>
95115
95116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95117         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95118
95119 2001-11-01  Jim Meyering  <meyering@lucent.com>
95120
95121         * lib/dirfd.c, lib/dirfd.h: New files.
95122         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95123
95124         * lib/hash.c (hash_print) [TESTING]: Clean up.
95125
95126 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95127
95128         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95129         to avoid a warning if -Wall.
95130
95131 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95132
95133         * README: New file
95134         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95135         (per RMS's instructions, this is now the canonical source)
95136         * lgpl/, gpl/: New directories.
95137
95138 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95139
95140         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95141
95142 2001-10-21  Jim Meyering  <meyering@lucent.com>
95143
95144         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95145         this code would end up calling gettext even in packages built
95146         with --disable-nls.
95147         * lib/getopt.c (_): Likewise.
95148         * lib/regex.c (_): Likewise.
95149
95150 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95151
95152         * m4/error.m4 (jm_PREREQ_ERROR):
95153         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95154         AC_FUNC_STRERROR_R does that.
95155         Check for strerror declaration.
95156
95157         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95158         are supposed to have them these days.
95159         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95160         Merge changes from latest Autoconf CVS.
95161         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95162         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95163         POSIX decided to standardize on the int flavor of strerror_r.
95164
95165 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95166
95167         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95168         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95169         Use strerror_r that is only a macro, even if it is not a function.
95170         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95171         (private_strerror): Use prototypes, not old-style function definition.
95172         (print_errno_message): New function.
95173         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95174         char*-flavored one.
95175         (error_tail, error, error_at_line): Use it.
95176
95177 2001-10-11  Jim Meyering  <meyering@lucent.com>
95178
95179         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95180         and quote_n (1, ... to avoid clobbering a buffer.
95181
95182 2001-10-05  Jim Meyering  <meyering@lucent.com>
95183
95184         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95185         hash-pjw.h.
95186         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95187         * lib/hash-pjw.h: New file.
95188
95189 2001-09-30  Jim Meyering  <meyering@lucent.com>
95190
95191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95192         `struct fsstat' has the `f_fstypename' member.
95193         Use that to define FS_TYPE, which is now used to make
95194         the getfsstat link test tighter.
95195
95196 2001-09-30  Jim Meyering  <meyering@lucent.com>
95197
95198         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95199         Include <sys/ucred.h>, for Apple Darwin.
95200         Include sys/mount.h and sys/fs_types.h only if available.
95201         (FS_TYPE): Define.
95202         (read_filesystem_list): Use FS_TYPE.
95203
95204 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95205
95206         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95207         a boolean context.
95208
95209 2001-09-29  Jim Meyering  <meyering@lucent.com>
95210
95211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95212         [one-argument getmntent function]): Include stdio.h before mntent.h.
95213         SunOS 4.1.x needs it for the declaration of `FILE'.
95214         Patch by Volker Borchert.
95215
95216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95217         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95218         sys/fs_types.h, and make the link-test for getfsstat guard #include
95219         directives with appropriate #if HAVE_*_H tests so that we can
95220         detect getfsstat on Apple Darwin1.3.7 systems.
95221         Reported by Nelson Beebe.
95222         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95223
95224 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95225
95226         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95227         #defines strtoimax.  Also treat the other strto* functions
95228         like strtoimax.
95229
95230         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95231         Check for strtoul and strtoumax,
95232         as those declarations are made even in the signed case.
95233         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95234         Likewise, for strtol and strtoimax.
95235
95236 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95237
95238         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95239         #defines strtoimax.  Also treat the other strto* functions
95240         like strtoimax.
95241
95242         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95243         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95244         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95245
95246 2001-09-26  Jim Meyering  <meyering@lucent.com>
95247
95248         Most macros in unlocked-io.h had the wrong number of arguments.
95249         * lib/gen-uio: New script.
95250         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95251         * lib/unlocked-io.hin: Remove file.
95252         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95253         rather than trying to embed it here.
95254         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95255         Reported by Padraig Brady.
95256
95257 2001-09-25  Volker Borchert  <bt@teknon.de>
95258
95259         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95260         `result'.
95261
95262 2001-09-24  Jim Meyering  <meyering@lucent.com>
95263
95264         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95265
95266 2001-09-23  Jim Meyering  <meyering@lucent.com>
95267
95268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95269         instead of the mere test for existence of mntent.h.  The latter
95270         would get a false-positive on AIX 3.4 systems.
95271         In the outer getmntent if-block, don't die if neither of the getmntent
95272         tests succeeds.  Instead, just fall through and continue with the
95273         remaining tests.
95274
95275 2001-09-23  Jim Meyering  <meyering@lucent.com>
95276
95277         * lib/mountlist.c: Remove useless parentheses in #if directives.
95278         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95279         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95280
95281 2001-09-22  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/gettext.m4: New file.  From gettext.
95284         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95285         * m4/progtest.m4: Likewise
95286         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95287         * m4/glibc21.m4: Likewise.
95288
95289         * m4/libintl.m4: Remove.  No longer used.
95290
95291 2001-09-22  Jim Meyering  <meyering@lucent.com>
95292
95293         * lib/localcharset.c: Update from latest gettext.
95294         * lib/config.charset: Likewise.
95295
95296 2001-09-20  Jim Meyering  <meyering@lucent.com>
95297
95298         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95299         strtoimax.
95300         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95301         strtoumax.
95302
95303 2001-09-20  Jim Meyering  <meyering@lucent.com>
95304
95305         * lib/xstrtol.c (strtoimax): Guard declaration with
95306         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95307         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95308         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95309         (strtoumax): Likewise, for completeness (it wasn't necessary).
95310
95311 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95312
95313         * lib/strtoimax.c (HAVE_LONG_LONG):
95314         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95315         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95316         to work around bug in IBM C compiler.
95317
95318 2001-09-17  Jim Meyering  <meyering@lucent.com>
95319
95320         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95321         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95322         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95323         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95324         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95325         whenever the right hand side need not be expanded by the shell.
95326
95327 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95328
95329         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95330         library.  It's not correct, as some older glibcs are buggy.
95331         fnmatch wasn't fixed until glibc 2.2.
95332
95333         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95334         special shell magic here.
95335
95336 2001-09-16  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95339         * m4/jm-macros.m4: Require it.
95340
95341 2001-09-16  Jim Meyering  <meyering@lucent.com>
95342
95343         * lib/mkdir.c: New file.
95344
95345 2001-09-15  Jim Meyering  <meyering@lucent.com>
95346
95347         * m4/jm-macros.m4: Check for help2man.
95348
95349 2001-09-11  Jim Meyering  <meyering@lucent.com>
95350
95351         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95352         The body, by Paul Eggert, was moved here from configure.in.
95353         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95354
95355 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95356
95357         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95358         (jm_PREREQ): Use it.
95359
95360 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95361
95362         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95363         Use ssize_t, not int, to store result of readlink.
95364         Check for ssize_t overflow as well as size_t overflow,
95365         as POSIX says the result of readlink is implementation-defined
95366         when ssize_t overflows.
95367         Remove unnecessary cast to char*.
95368         Use free+malloc instead of realloc, as the storage doesn't need
95369         to be preserved and it's clearer and can be more efficient that way.
95370         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95371         * lib/xreadlink.h (xreadlink): Update prototype.
95372
95373 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95374
95375         * lib/xgetcwd.c: Revert some of the previous change; intead,
95376         fix the HAVE_GETCWD_NULL code to behave more like the
95377         !HAVE_GETCWD_NULL code used to.
95378
95379         Include "xalloc.h".
95380         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95381         invoke xalloc_die.
95382
95383 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95384
95385         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95386         sys/param.h, as pathmax.h includes them.
95387
95388 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95389
95390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95391         (jm_PREREQ_XGETCWD): New macro.
95392
95393         * m4/getcwd.m4: New file.
95394
95395 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95396
95397         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95398         like the HAVE_GETCWD_NULL code.
95399         Include pathmax.h if not HAVE_GETCWD.
95400         Do not include xalloc.h.
95401         (INITIAL_BUFFER_SIZE): New symbol.
95402         Do not use xmalloc / xrealloc, since the caller is responsible for
95403         handling errors.  Preserve errno around `free' during failure.
95404         Do not overrun buffer when using getwd.
95405
95406 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95407
95408         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95409         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95410         getcwd (NULL, 0).
95411
95412 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95413
95414         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95415         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95416         spotted by Jim Meyering.
95417
95418 2001-09-03  Jim Meyering  <meyering@lucent.com>
95419
95420         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95421         failure.
95422
95423 2001-09-02  Jim Meyering  <meyering@lucent.com>
95424
95425         * lib/error.c: Update from GNU libc.
95426
95427 2001-09-01  Jim Meyering  <meyering@lucent.com>
95428
95429         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95430         Used by df.
95431
95432 2001-09-01  Jim Meyering  <meyering@lucent.com>
95433
95434         * lib/xreadlink.c: New file.
95435         * lib/xreadlink.h: New file.
95436         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95437         xreadlink.h.
95438
95439         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95440         doesn't conflict with sparc Solaris 7's definition in
95441         /usr/include/sys/int_types.h.
95442
95443         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95444         files.
95445         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95446         and strncasecmp as r-values.  Unixware didn't have declarations.
95447
95448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95449
95450         * lib/xstrtol.h: Add copyright notice.
95451         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95452         LONGINT_INVALID_SUFFIX_CHAR.
95453
95454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95455
95456         * lib/xstrtol.c (strtoimax): New decl.
95457
95458 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95459
95460         * lib/xgetcwd.c: Don't include pathmax.h.
95461         Include stdlib.h and unistd.h if available.
95462         Include xalloc.h.
95463         (xmalloc, xstrdup, free): Remove decls.
95464         (xgetcwd): Don't assume sizes fit in unsigned.
95465         Check for overflow when computing sizes.
95466         Simplify reallocation code.
95467
95468 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95469
95470         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95471         a directory's st_size can have an arbitrary value, so the old
95472         usage could waste an arbitrary amount of memory.  All uses
95473         changed.
95474         * lib/savedir.h: Update prototype.
95475
95476 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95477
95478         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95479
95480         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95481         old strtoimax.c.
95482
95483         Also, make the following further changes to make this file's
95484         configuration more similar to that of strtol.c:
95485         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95486         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95487         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95488         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95489         changed to signed values.
95490
95491         And make the following changes as well:
95492         Fix copyright notice, as 1999 was missing.
95493         (verify): New macro.
95494         (strtoimax): Check sizes at compile-time, not run-time.
95495         Prefer strtol to strtoll if both work.
95496         (main): Remove; it was not that useful and was a pain to maintain.
95497
95498         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95499
95500 2001-08-31  Jim Meyering  <meyering@lucent.com>
95501
95502         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95503         Use an initial, malloc'd, buffer of length 128 rather than
95504         a statically allocated one of length 1024.
95505
95506 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95507
95508         Simplify code, partly by assuming autoconf 2.52 semantics.
95509
95510         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95511
95512         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95513         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95514         All uses removed.
95515         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95516         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95517         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95518         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95519         jm_AC_HEADER_INTTYPES_H.
95520         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95521
95522         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95523
95524         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95525         Quote first arg of AC_DEFUN.
95526         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95527         since they are needed to parse the include file even if we need
95528         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95530         but with opposite signedness.
95531
95532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95533
95534         Merge 'exclude' changes from tar 1.13.22.
95535         This fixes one or two unlikely storage allocation overflow bugs,
95536         but doesn't change user-visible behavior otherwise.
95537
95538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95539
95540         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95541         (jm_PREREQ_EXCLUDE): New macro.
95542
95543 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95544
95545         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95546         tm to be declared.
95547
95548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95549
95550         * lib/hash.c: Remove '2001' from copyright notice.
95551
95552 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95553
95554         * lib/full-write.h: New file.
95555         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95556         * lib/full-write.c: Correct credits, as cccp.c no longer
95557         exists and anyway it was so heavily changed from the old cccp
95558         code as to be unrecognizable.  Include full-write.h.
95559         (full_write): Return size_t, with short writes meaning failure.
95560         All callers changed.  This fixes a bug with large buffers
95561         on 64-bit hosts.
95562         * lib/utime.c: Include full-write.h.
95563
95564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95565
95566         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95567         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95568         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95569         Include if available.
95570         (<xalloc.h>): Include
95571         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95572         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95573         collide with FNM macros.
95574         (struct patopts): New struct.
95575         (struct exclude): Use it, as exclude patterns now come with options.
95576         (new_exclude): Support above changes.
95577         (new_exclude, add_exclude_file):
95578         Initial size must now be a power of two to simplify overflow checking.
95579         (free_exclude, fnmatch_no_wildcards): New function.
95580         (excluded_filename): No longer requires options arg, as the options
95581         are determined by add_exclude.  Now returns bool, not int.
95582         (excluded_filename, add_exclude):
95583         Add support for the fancy new exclusion options.
95584         (add_exclude, add_exclude_file): Now takes int options arg.
95585         Check for arithmetic overflow when computing sizes.
95586         (add_exclude_file): xrealloc might modify errno, so don't
95587         realloc until after errno might be used.
95588
95589         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95590         New macros.
95591         (free_exclude): New decl.
95592         (add_exclude, add_exclude_file): Now takes int options arg.
95593         (excluded_filename): No longer requires options arg, as the options
95594         are determined by add_exclude.  Now returns bool, not int.
95595
95596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95597
95598         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95599
95600 2001-08-27  Jim Meyering  <meyering@lucent.com>
95601
95602         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95603
95604         * lib/version-etc.c (N_): Remove definition.
95605         Revert most of last change.
95606         Instead, simply don't mark the `Copyright...' string for translation.
95607         Based on advice from Paul Eggert.
95608
95609         * lib/strtoxmax.c: Tweak comment.
95610
95611 2001-08-26  Jim Meyering  <meyering@lucent.com>
95612
95613         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95614
95615         * m4/xstrtoimax.m4: New file.
95616         * m4/xstrtoumax.m4: Add comments explaining why we
95617         AC_REPLACE_FUNCS(strtol).
95618
95619 2001-08-26  Jim Meyering  <meyering@lucent.com>
95620
95621         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95622         of copyright with `%s' so translators don't get an untranslated
95623         message in 2002.
95624         (COPYRIGHT_YEAR): Define.
95625         (version_etc): Use fprintf rather than fputs.
95626         Suggestion from Ulrich Drepper.
95627
95628         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95629
95630         * lib/strtoll.c: New file, from GNU libc.
95631         * lib/xstrtoimax.c: New file.
95632
95633         * lib/xstrtol.h: Add xstrtoimax.
95634         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95635         * lib/strtoimax.c: New file.  Likewise, but first define
95636         STRTOUXMAX_SIGNED.
95637
95638         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95639         ...
95640         * lib/strtoxmax.c: ... then renamed to this.
95641
95642 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95643
95644         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95645         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95646         (jm_AC_TYPE_INTMAX_T): New macro.
95647         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95648
95649         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95650
95651         * m4/longlong.m4: Renamed from ulonglong.m4.
95652         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95653         * m4/uintmax_t.m4: Removed.
95654
95655 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95656
95657         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95658         Port to Solaris 8, where 'sed' requires a space after the 'r'
95659         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95660         Redirect output to $tmp just once.
95661
95662 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95663
95664         * lib/addext.c (<errno.h>): Include.
95665         (errno): Declare if not defined.
95666         (addext): Work correctly when pathconf returns -1 and leaves
95667         errno alone because there is no limit.  Also, work even if
95668         pathconf returns a value greater than SIZE_MAX.
95669
95670 2001-08-12  Jim Meyering  <meyering@lucent.com>
95671
95672         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95673         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95674         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95675         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95676         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95677         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95678         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95679         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95680         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95681         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95682         utime.m4, utimes.m4, xstrtoumax.m4:
95683         Quote the first argument in each use of AC_DEFUN.
95684
95685 2001-08-12  Jim Meyering  <meyering@lucent.com>
95686
95687         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95688         Simply `return getcwd (NULL, 0);'.
95689         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95690         Use 1300 as initial value for length, not PATH_MAX.
95691
95692         * lib/pathmax.h: Clean up cpp syntax.
95693
95694 2001-08-12  Jim Meyering  <meyering@lucent.com>
95695
95696         * lib/gettimeofday.c: New file.
95697         * lib/gtod.h: New file.
95698         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95699
95700 2001-08-05  Jim Meyering  <meyering@lucent.com>
95701
95702         * m4/jm-macros.m4: Require autoconf-2.52.
95703
95704 2001-08-04  Jim Meyering  <meyering@lucent.com>
95705
95706         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95707         stmt, to get in sync with glibc.
95708
95709 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95710
95711         The following changes are from gettext 0.10.39 as maintained by
95712         Bruno Haible.
95713
95714         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95715         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95716         with inverted sense.  All uses changed.
95717
95718         * lib/mbswidth.c: Don't include <limits.h>.
95719         Include <stdlib.h> and <string.h> unconditionally.
95720         (iswcntrl, mbsinit, ISCNTRL): New macros.
95721         (mbsnwidth): Use K&R style function declarations.
95722         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95723         can optimize it when MB_CUR_MAX == 1.
95724         The width of control characters is zero, not 1.
95725
95726 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95727
95728         The following changes are from gettext 0.10.39 as maintained by
95729         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95730
95731         * m4/codeset.m4: Upgrade to serial AM1.
95732         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95733         all uses changed.  Quote first arg of AC_DEFUN.
95734         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95735
95736         * m4/iconv.m4: Upgrade to serial AM2.
95737         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95738         Add --with-libconv-prefix.
95739         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95740         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95741         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95742         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95743         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95744
95745         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95746         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95747         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95748         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95749         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95750         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95751         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95752         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95753         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95754
95755         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95756         string.h any more.
95757
95758         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95759         not the default value.
95760
95761         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95762         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95763         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95764         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95765         Also check for iswcntrl, used for wcwidth fallback.
95766         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95767         to Autoconf 2.13.
95768
95769 2001-08-03  Jim Meyering  <meyering@lucent.com>
95770
95771         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95772         as it was in the original.  Reported by Paul Eggert.
95773
95774 2001-07-16  Jim Meyering  <meyering@lucent.com>
95775
95776         * m4/gettimeofday.m4: New file.
95777         Prompted by a report from Bernhard Baehr.
95778
95779 2001-07-15  Jim Meyering  <meyering@lucent.com>
95780
95781         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95782         stuff. Now it's in ../Makefile.cfg.
95783
95784 2001-07-15  Jim Meyering  <meyering@lucent.com>
95785
95786         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95787         (BUILT_SOURCES): Add unlocked-io.h.
95788         (io_functions): Define.
95789         (unlocked-io.h): New rule.
95790         (DISTCLEANFILES): Add unlocked-io.h.
95791         (all-local): Depend on unlocked-io.h, to ensure it is created.
95792
95793         * lib/unlocked-io.hin: New file
95794
95795         * lib/regex.c: Update from glibc.
95796
95797 2001-07-05  Jim Meyering  <meyering@lucent.com>
95798
95799         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95800         recommendation.
95801         (libfetish_a_SOURCES): Put all .h files here instead.
95802         Remove a thus-exposed (better checks in automake) duplicate and
95803         two unnecessary .h files.
95804
95805 2001-07-04  Jim Meyering  <meyering@lucent.com>
95806
95807         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95808         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95809         distcheck failure.
95810
95811 2001-07-02  Jim Meyering  <meyering@lucent.com>
95812
95813         The following changes were prompted by suggestions from Bruno Haible.
95814
95815         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95816         is now generated.
95817         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95818         definition of EXTRA_DIST.
95819         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95820         ensure that the generated file is created/updated whenever the list
95821         of $(unlocked_functions) is changed.
95822         (jm-glibc-io.m4): New rule.
95823         (unlocked-io.h): New rule -- currently unused.
95824
95825 2001-06-24  Jim Meyering  <meyering@lucent.com>
95826
95827         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95828         unmatched right bracket, rather than kludging it with an extra,
95829         falsely-matching quote in a comment.  Patch by Akim Demaille.
95830
95831 2001-06-11  Jim Meyering  <meyering@lucent.com>
95832
95833         * lib/regex.c: Update from GNU libc.
95834
95835 2001-05-27  Jim Meyering  <meyering@lucent.com>
95836
95837         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95838         Check for ut_type in struct utmp.
95839
95840 2001-05-27  Jim Meyering  <meyering@lucent.com>
95841
95842         * lib/readutmp.h (UT_TYPE): Define.
95843
95844 2001-05-24  Jim Meyering  <meyering@lucent.com>
95845
95846         * lib/argmatch.c: Include "quote.h".
95847         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95848         quote function.  Reported by Göran Uddeborg.
95849
95850 2001-05-22  Jim Meyering  <meyering@lucent.com>
95851
95852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95853         now that we use the package-supplied version unconditionally.
95854         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95855
95856 2001-05-21  Jim Meyering  <meyering@lucent.com>
95857
95858         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95859         shell syntax errors.
95860
95861 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95862
95863         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95864
95865 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95866
95867         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95868         Don't bother to check library strftime, since
95869         we'll be using our own my_strftime function anyway.
95870         Define my_strftime instead of strftime.
95871
95872 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95873
95874         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95875         which is not yet declared.
95876
95877 2001-05-15  Jim Meyering  <meyering@lucent.com>
95878
95879         * m4/regex.m4: Use proper quoting so brackets appear in the test
95880         program.
95881         Reported by, and with help from, Bruno Haible.
95882
95883 2001-05-13  Jim Meyering  <meyering@lucent.com>
95884
95885         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95886         undefined.
95887
95888 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95889
95890         dirname code cleanup.  base_name now behaves more compatibly
95891         with POSIX basename when given file names that have trailing
95892         slashes, and similarly for dir_name.  Add new primitives
95893         base_len and dir_len.  Put the directory-name-related decls
95894         into dirname.h.
95895
95896         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95897         * lib/backupfile.c (base_name): Likewise.
95898         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95899         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95900         * lib/makepath.c (strip_trailing_slashes): Likewise.
95901         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95902         ISSLASH): Likewise.
95903         * lib/rename.c (strip_trailing_slashes): Likewise.
95904         * lib/same.c (base_name): Likewise.
95905         * lib/stripslash.c (ISSLASH): Likewise.
95906
95907         * lib/addext.c: Include <dirname.h> after size_t is defined.
95908         * lib/backupfile.c: Likewise.
95909
95910         * lib/addext.c (addext): Use base_len to trim redundant
95911         trailing slashes instead of doing it ourselves.
95912         But do not trim the last slash if it is not redundant.
95913
95914         * lib/backupfile.c (find_backup_file_name,
95915         max_backup_version): Use base_len instead of rolling it ourselves.
95916         Handle the case of "" and (on DOS) "C:" correctly.
95917
95918         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95919         needed. Include <string.h>, <dirname.h>.
95920         (base_name): Allow file names ending in slashes, other than names
95921         that are all slashes.  In this case, return the basename followed
95922         by the slashes.  This is more general, and can be used in places
95923         where the original base_name purposely had an assertion failure.
95924         (base_len): New function.
95925
95926         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95927         Do not include <assert.h>; no longer needed.
95928         Include xalloc.h.
95929         (memrchr): Remove decl.
95930         (dir_name_r): Remove.
95931         (dir_len): Renamed from dirlen.  All callers changed.
95932         Rewrite in terms of base_name, for simplicity and consistency.
95933         (dir_name): Never return NULL.  All callers changed.
95934         Do not include <stdlib.h> in test program; no longer needed.
95935         return 0; is fine for test program.
95936
95937         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95938         New macros.
95939         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95940
95941         * lib/path-concat.c (path_concat): Use base_len to compute
95942         base length, not strlen; this means we cannot rely on memcpy
95943         to null-terminate.
95944
95945         * lib/same.c (STREQ): Remove.
95946         (same_name): Handle the case where the basename ends in trailing '/'.
95947
95948         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95949         a slash was stripped.  Do not strip the last slash after a
95950         file system prefix.
95951
95952 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95953
95954         * lib/Makefile.am (libfetish_a_SOURCES):
95955         Add strftime.c, since we now compile it on all hosts.
95956
95957         * lib/strftime.c (my_strftime):
95958         Define to nstrftime if emacs, but only if my_strftime is not defined.
95959         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95960         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95961         Add one more extra argument: a nanoseconds value.
95962         All uses changed.
95963         (ns): New macro.
95964         (my_strftime function): Add %N format.
95965         (emacs_strftimeu): Renamed from emacs_strftime,
95966         with extra ut argument.
95967
95968 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95969
95970         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95971
95972 2001-04-21  Jim Meyering  <meyering@lucent.com>
95973
95974         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95975         doesn't interfere.
95976
95977 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95978
95979         * m4/ftruncate.m4: Check for chsize.
95980         Link with ftruncate.o unconditionally if ftruncate is missing.
95981         This was required when cross-compiling to i586-mingw32msvc.
95982
95983 2001-04-08  Jim Meyering  <meyering@lucent.com>
95984
95985         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95986         recomputed; that's necessary when the offset spans a DST transition.
95987         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95988
95989 2001-04-02  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/regex.h, regex.c: Update from GNU libc.
95992
95993 2001-03-24  Jim Meyering  <meyering@lucent.com>
95994
95995         * m4/jm-macros.m4: Require autoconf-2.49d.
95996
95997 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95998
95999         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96000
96001 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96002
96003         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96004
96005 2001-03-17  Jim Meyering  <meyering@lucent.com>
96006
96007         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96008         now that the version in autoconf is equivalent.
96009         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96010
96011         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96012         Suggestion from Akim Demaille.
96013
96014         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96015         (jm_PREREQ_TEMPNAME): New function.
96016
96017 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96018
96019         * lib/tempname.c (uint64_t): Define to uintmax_t if
96020         not defined, and if UINT64_MAX is not defined.
96021         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96022         Reported by John David Anglin.
96023
96024 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96025
96026         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96027         resolve alias if codeset is empty.
96028         * lib/config.charset (BeOS): Use wildcard syntax.
96029
96030 2001-03-13  Jim Meyering  <meyering@lucent.com>
96031
96032         * lib/path-concat.c (path_concat)
96033         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96034         concatenating e.g., `C:' and `foo'.
96035         From Bruno Haible.
96036
96037 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96038
96039         * lib/localcharset.c (locale_charset): Don't use
96040         setlocale(LC_CTYPE,NULL). Don't return NULL.
96041         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96042
96043 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96044
96045         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96046         support for DOS/DJGPP.
96047
96048 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96049
96050         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96051         lacks mkstemp.  Compile our own tempname.c if we compile our own
96052         mkstemp.c, as mkstemp relies on tempname.
96053
96054 2001-03-01  Jim Meyering  <meyering@lucent.com>
96055
96056         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96057         AH_VERBATIM really does output its argument verbatim.
96058
96059 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96060
96061         * lib/Makefile.am (libfetish_a_SOURCES):
96062         Add dup-safer.c, fopen-safer.c.
96063         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96064
96065         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96066         * lib/unistd-safer.h: New files.
96067
96068 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96069
96070         The mkstemp replacement is taken from glibc 2.2.2, with some
96071         portability fixes for use outside glibc, as follows:
96072
96073         * lib/tempname.c (struct_stat64): New macro.
96074         (direxists, __gen_tempname): Use it.
96075         This avoids a portability problem with Solaris 8.
96076
96077         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96078         (<stddef.h>, <stdint.h>, <string.h>):
96079         Include only if STDC_HEADERS || _LIBC.
96080         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96081         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96082         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96083         (__set_errno): Define this macro if <errno.h> doesn't.
96084         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96085         Define these macros if <stdio.h> doesn't.
96086         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96087         Define these macros if <sys/stat.h>
96088         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96089         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96090         __xstat64): Define if not _LIBC.
96091         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96092         (__gen_tempname): Invoke gettimeofday only if
96093         HAVE_GETTIMEOFDAY || _LIBC;
96094         otherwise, fall back on plain "time".
96095         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96096
96097         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96098
96099         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96100
96101 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96102
96103         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96104
96105 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96106
96107         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96108         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96109         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96110         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96111
96112 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96113
96114         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96115         Remove workaround macros for hosts that have mbrtowc but not
96116         mbstate_t, as we now insist on proper declarations for both
96117         before using mbrtowc.
96118
96119 2001-02-17  Jim Meyering  <meyering@lucent.com>
96120
96121         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96122         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96123         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96124         UnixWare 7.1.1.
96125
96126         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96127         rather than AC_CACHE_VAL.
96128
96129 2001-02-17  Jim Meyering  <meyering@lucent.com>
96130
96131         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96132         around included file name.
96133
96134         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96135
96136         * lib/strftime.c: Update from GNU libc (the only changes were to
96137         comments).
96138
96139 2001-02-17  Jim Meyering  <meyering@lucent.com>
96140
96141         * lib/regex.c: Update from libc.
96142
96143 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96144
96145         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96146         clash.
96147
96148 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96149
96150         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96151         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96152         Reported by Mark Hounschell via Paul Eggert.
96153
96154 2001-02-07  Jim Meyering  <meyering@lucent.com>
96155
96156         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96157
96158 2001-02-05  Jim Meyering  <meyering@lucent.com>
96159
96160         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96161         it includes the patch required for `large file' support with at least
96162         HP-UX's 10.20 /bin/cc.
96163
96164 2001-02-03  Jim Meyering  <meyering@lucent.com>
96165
96166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96167         AS_IF, now that it works once again (mysteriously).
96168         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96169
96170 2001-01-30  Jim Meyering  <meyering@lucent.com>
96171
96172         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96173         * m4/chown.m4: Rename conftestchown to conftest.chown.
96174         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96175         s/conftestdir2/conftest.d2/.
96176         * m4/utimes.m4: s/conftestdata/conftest.data/
96177         Inspired by Pavel Roskin's change in autoconf.
96178
96179 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96180
96181         * lib/config.charset: Update for FreeBSD 4.2.
96182
96183 2001-01-27  Jim Meyering  <meyering@lucent.com>
96184
96185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96186         a use of AS_IF.
96187         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96188
96189 2001-01-26  Jim Meyering  <meyering@lucent.com>
96190
96191         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96192         quotearg.c includes it.
96193
96194 2001-01-26  Jim Meyering  <meyering@lucent.com>
96195
96196         * lib/quotearg.c: Include stddef.h.
96197         * lib/quote.c: Include stddef.h.
96198         Reported by Axel Kittenberger.
96199
96200         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96201         line in double quotes so that it evokes a better diagnostic.
96202         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96203         Reported by Axel Kittenberger.
96204
96205 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96206
96207         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96208         as if it was a `charset'.
96209
96210 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96211
96212         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96213         has const.
96214
96215 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96216
96217         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96218         to avoid a warning.  Add back 'const' to inptr.
96219
96220 2001-01-20  Jim Meyering  <meyering@lucent.com>
96221
96222         Be sure that headers are checked before used in code compiled
96223         for the type checks.
96224         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96225         In place of that, invoke jm_CHECK_ALL_TYPES.
96226         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96227         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96228         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96229         The check for ssize_t was mistakenly run before the test for unistd.h.
96230
96231         The configure-time check for stdbool.h was missing.
96232         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96233         (jm_PREREQ_HASH): New function.
96234
96235 2001-01-17  Jim Meyering  <meyering@lucent.com>
96236
96237         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96238         for autoconf-2.49c.
96239         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96240
96241 2001-01-16  Jim Meyering  <meyering@lucent.com>
96242
96243         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96244         From Bruno Haible.
96245
96246 2001-01-14  Jim Meyering  <meyering@lucent.com>
96247
96248         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96249         foo and bar.  Create conftestdir/ in the script, not in the C code.
96250         Remove directories in the script, not in the C code.
96251         Remove conftestdir{,2} before trying to create the directory.
96252         Make the entire configure script fail if the mkdir fails.
96253
96254 2001-01-14  Jim Meyering  <meyering@lucent.com>
96255
96256         * lib/rename.c: New file.  From Volker Borchert.
96257         Include stdlib.h, string.h or strings.h, and xalloc.h.
96258         Use strip_trailing_slashes rather than open-coding it.
96259
96260 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96261
96262         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96263
96264 2001-01-03  Jim Meyering  <meyering@lucent.com>
96265
96266         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96267         of local `inptr' to avoid warning with some system declarations of
96268         iconv.
96269
96270 2001-01-02  Volker Borchert  <bt@teknon.de>
96271
96272         * m4/rename.m4: New file.
96273         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96274
96275 2001-01-01  Jim Meyering  <meyering@lucent.com>
96276
96277         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96278         even on systems with utmpx.h.  It's necessary for the declaration of
96279         utmp's ut_user member.  Reported by Andreas Jaeger.
96280
96281         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96282         available. They are required for the declarations of getgrgid and
96283         getpwuid resp.
96284         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96285         Reported by Andreas Jaeger.
96286
96287 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96288
96289         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96290         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96291         so `make install' also works in VPATH builds.
96292
96293 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96294
96295         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96296         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96297         can be used in subdirectories.
96298
96299 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96300
96301         * lib/modechange.c: Do not assume that mode_t uses the
96302         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96303         the other-execute bit of FOO even if S_IXOTH != 1.
96304
96305         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96306         WOTH, XOTH, ALLM): New macros.
96307         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96308          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96309         Use them.
96310         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96311         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96312         (mode_compile):
96313         No need to use uintmax_t; unsigned long is long enough.
96314         Don't bother to get suffix since we don't use it.
96315
96316 2000-12-26  Jim Meyering  <meyering@lucent.com>
96317
96318         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96319         better with autoheader.
96320
96321 2000-12-24  Jim Meyering  <meyering@lucent.com>
96322
96323         * lib/hash.c (is_prime): Return explicit boolean values.
96324         (hash_get_first): Return NULL to appease Irix5.6's 89.
96325         Reported by Nelson Beebe.
96326
96327 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96328
96329         * lib/localcharset.c (locale_charset): Add support for Win32.
96330
96331 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96332
96333         * lib/physmem.h, lib/physmem.c: New files.
96334
96335         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96336         (noinst_HEADERS): Add physmem.h.
96337
96338         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96339         't' for compatibility with Solaris 8 sort.
96340
96341 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96342
96343         * lib/config.charset: Add support for BeOS.
96344
96345 2000-12-17  Jim Meyering  <meyering@lucent.com>
96346
96347         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96348         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96349
96350 2000-12-16  Jim Meyering  <meyering@lucent.com>
96351
96352         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96353         N and M) would have treated it like `chown N:N FILE'.
96354
96355         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96356
96357 2000-12-16  Jim Meyering  <meyering@lucent.com>
96358
96359         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96360         SHELLS_FILE to a file name that's useful on djgpp systems.
96361         Include stdlib.h.
96362         (ADDITIONAL_DEFAULT_SHELLS): Define.
96363         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96364         Based mostly on a patch from Prashant TR.
96365
96366 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96367
96368         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96369         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96370         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96371
96372 2000-12-08  Andreas Schwab  <schwab@suse.de>
96373
96374         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96375         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96376
96377 2000-12-07  Jim Meyering  <meyering@lucent.com>
96378
96379         * lib/stripslash.c (ISSLASH): Define.
96380         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96381         `/'.
96382         From Prashant TR.
96383
96384         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96385         (dir_name_r): Declare this function as static.
96386         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96387         manifest itself on a name containing a mix of slashes and
96388         backslashes.
96389         Make this function work with names starting with a DOS-style
96390         drive letter and colon prefix.
96391         (dir_name): Append `.' if necessary.
96392         Based mostly on patches from Prashant TR and Eli Zaretskii.
96393
96394         * lib/dirname.h (dir_name_r): Remove prototype.
96395
96396 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96397
96398         * m4/off_t-format.m4: Remove this file.
96399         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96400
96401 2000-12-06  Jim Meyering  <meyering@lucent.com>
96402
96403         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96404         replacement strtoull, we may well need the replacement strtoul, too.
96405         Check for declarations of strtoul and strtoull.
96406         Check for strtol.  Mainly as a cue to cause automake to include
96407         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96408         Check for limits.h -- strtol.c needs it.
96409
96410 2000-12-05  Jim Meyering  <meyering@lucent.com>
96411
96412         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96413
96414 2000-12-04  Jim Meyering  <meyering@lucent.com>
96415
96416         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96417         Also include memory.h, stdlib.h, unistd.h if appropriate.
96418         Reported by Andreas Jaeger (conflicting declaration of malloc).
96419
96420 2000-12-02  Jim Meyering  <meyering@lucent.com>
96421
96422         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96423         * m4/jm-macros.m4 (jm_MACROS): require it.
96424
96425 2000-12-02  Jim Meyering  <meyering@lucent.com>
96426
96427         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96428
96429 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96430
96431         * lib/memrchr.c: Include <config.h> before any system include file.
96432
96433 2000-11-30  Jim Meyering  <meyering@lucent.com>
96434
96435         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96436
96437 2000-11-30  Jim Meyering  <meyering@lucent.com>
96438
96439         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96440
96441 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96442
96443         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96444
96445 2000-11-26  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96448
96449 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96450
96451         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96452         size of (size_t) -1; it's not portable.
96453
96454 2000-11-17  Jim Meyering  <meyering@lucent.com>
96455
96456         * lib/strstr.c: Update from GNU libc.
96457
96458 2000-11-17  Akim Demaille  <akim@epita.fr>
96459
96460         * lib/obstack.h: Formatting changes.
96461         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96462         prevent type checking.
96463         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96464         cast the value to (void *): assigning a `foo *' to a `void *'
96465         variable is valid.
96466         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96467
96468 2000-11-16  Jim Meyering  <meyering@lucent.com>
96469
96470         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96471
96472 2000-11-11  Jim Meyering  <meyering@lucent.com>
96473
96474         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96475
96476 2000-11-10  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/obstack.h: Update from GNU libc.
96479         * lib/obstack.c: Likewise.
96480
96481 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96482
96483         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96484
96485 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96486
96487         * lib/getusershell.c (setusershell): Use rewind rather than
96488         fseek/fseeko, to avoid configuration hassles with fseeko.
96489         Don't bother opening SHELLS_FILE if shellstream is NULL;
96490         it's not necessary.
96491
96492 2000-11-05  Jim Meyering  <meyering@lucent.com>
96493
96494         * lib/makepath.h (make_dir): Declare.
96495         * lib/makepath.c (make_dir): Remove `static' attribute.
96496         Tweak a comment.
96497
96498 2000-11-04  Jim Meyering  <meyering@lucent.com>
96499
96500         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96501
96502 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96503
96504         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96505         last one in a bucket, advance to the next bucket.
96506
96507 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96508
96509         * lib/fnmatch.c: Do not comment out all the code if we are using
96510         the GNU C library, because in some cases we are replacing buggy
96511         code in the GNU C library itself.
96512
96513 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96514
96515         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96516         (regex_compile): Catch bogus \(\1\).
96517
96518 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96519
96520         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96521         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96522         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96523
96524 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96525
96526         * lib/error.h, getline.h, modechange.h:
96527         Remove "2000" from Copyright line, as the file hasn't been
96528         changed this year other than in the copyright notice.
96529
96530         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96531         was changed this year.
96532
96533 2000-10-29  Jim Meyering  <meyering@lucent.com>
96534
96535         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96536         renaming.
96537         * m4/ls-mntd-fs.m4: Likewise
96538
96539 2000-10-29  Jim Meyering  <meyering@lucent.com>
96540
96541         * lib/xstat.in: Fix grammar in comment.
96542
96543 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96544
96545         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96546         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96547         doesn't define __restrict_arr.
96548
96549 2000-10-28  Jim Meyering  <meyering@lucent.com>
96550
96551         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96552         (jm_PREREQ_MEMCHR): New function.
96553
96554 2000-10-28  Jim Meyering  <meyering@lucent.com>
96555
96556         * lib/memchr.c: Update from libc.
96557         Adjust for portability:
96558         [HAVE_STDLIB_H]: Include stdlib.h.
96559         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96560         Undef __memchr, too.
96561         [!weak_alias]: Define __memchr to memchr.
96562
96563         * lib/regex.c: Update from libc.
96564         * lib/regex.h: Likewise.
96565         * lib/getopt1.c: Likewise.
96566         * lib/memcmp.c: Likewise.
96567
96568         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96569         Avoid using fseek, when possible -- it's broken by design.
96570         Patch by Ulrich Drepper.
96571
96572 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96573
96574         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96575         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96576         Giving in to popular pressure to shut up the compiler with casts.
96577
96578 2000-10-26  Jim Meyering  <meyering@lucent.com>
96579
96580         * lib/strftime.c: Update from libc.
96581
96582 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96583
96584         * regex.c: More `unsigned char' -> `re_char' changes.
96585         Also change several `int' into `re_wchar_t'.
96586         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96587         (PUSH_FAILURE_POINTER): Don't cast any more.
96588         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96589         We want GCC to complain, since this piece of code makes
96590         re_match non-reentrant, which *should* be fixed.
96591         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96592         (EXTEND_BUFFER): Use RETALLOC.
96593         (SET_LIST_BIT): Don't cast.
96594         (re_wchar_t): New type.
96595         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96596         that those two functions will always properly return.
96597         (IMMEDIATE_QUIT_CHECK): Cast to void.
96598         (analyse_first): Use recursion rather than an explicit stack.
96599         (re_compile_fastmap): Can't fail anymore.
96600         (re_search_2): Don't check re_compile_fastmap for failure.
96601         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96602         Now also sets the new value (passed in a new argument).
96603         (re_match_2_internal): Use it.
96604         Also, use a new var `reg' of type size_t when looping through regs
96605         rather than reuse the inappropriate `mcnt'.
96606
96607 2000-10-25  Jim Meyering  <meyering@lucent.com>
96608
96609         * lib/obstack.c: Update from libc.
96610
96611 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96612
96613         * regex.c (regex_compile): Change the way of handling a range from
96614         a char less than 256 to a char not less than 256.
96615
96616 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96617
96618         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96619         NT-Emacs only.
96620         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96621         so that re_search functions only quit when callers expect them to.
96622
96623 2000-10-23  Jim Meyering  <meyering@lucent.com>
96624
96625         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96626         wrong.  That set_locale call must not have any side effects.
96627         From Paul Eggert.
96628
96629 2000-10-22  Jim Meyering  <meyering@lucent.com>
96630
96631         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96632         [CYCLIC]: Remove now-unused definition.
96633
96634         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96635         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96636         Suggestion from Ulrich Drepper.
96637
96638 2000-10-21  Jim Meyering  <meyering@lucent.com>
96639
96640         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96641         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96642         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96643
96644 2000-10-21  Jim Meyering  <meyering@lucent.com>
96645
96646         * lib/dirname.c (memrchr): Declare if necessary.
96647         (dir_name): Remove the restriction that there be no
96648         trailing slashes.  Now, this code skips past them, effectively
96649         ignoring them.
96650         [TEST_DIRNAME] (main): New unit tests.
96651
96652         * lib/memrchr.c: New file from GNU libc.
96653         Undef __memrchr, too.
96654         [!weak_alias]: Define __memrchr to memrchr.
96655         Guard weak_alias use with `#ifdef weak_alias'.
96656
96657 2000-10-21  Jim Meyering  <meyering@lucent.com>
96658
96659         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96660         (dir_name): Use dir_name_r.
96661         * lib/dirname.h (dir_name_r): Declare it.
96662
96663 2000-10-17  Jim Meyering  <meyering@lucent.com>
96664
96665         * lib/quote.h (PARAMS): Define and use.
96666         Reported by Akim Demaille.
96667
96668         * lib/getopt.c: Update from libc.
96669
96670 2000-10-16  Jim Meyering  <meyering@lucent.com>
96671
96672         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96673         setlocale.
96674         From Jan Fedak.
96675
96676 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96677
96678         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96679
96680 2000-09-25  Jim Meyering  <meyering@lucent.com>
96681
96682         * lib/md5.h (rol): Define (from GnuPG).
96683
96684         * lib/sha.c: Give credit (GnuPG) where due.
96685         (M): Use rol rather than open-coding it.
96686         Add a FIXME comment.
96687
96688 2000-09-21  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96691         Reported by Michael Stone.
96692
96693 2000-09-20  Jim Meyering  <meyering@lucent.com>
96694
96695         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96696         (noinst_HEADERS): Add sha.h.
96697         Based on code from Scott G. Miller and from GnuPG.
96698
96699 2000-09-18  Jim Meyering  <meyering@lucent.com>
96700
96701         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96702         LIBS. Otherwise, everyone ends up linking with -lelf for some
96703         configurations.
96704         Reported by Mike Stone.
96705
96706 2000-09-15  Jim Meyering  <meyering@lucent.com>
96707
96708         * lib/regex.c: Update from libc.
96709
96710 2000-09-10  Jim Meyering  <meyering@lucent.com>
96711
96712         * lib/getopt.c (_getopt_internal): Update from glibc.
96713
96714 2000-09-09  Jim Meyering  <meyering@lucent.com>
96715
96716         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96717         think it should be used as a general replacement for isascii.
96718         * lib/fnmatch.c: Likewise.
96719         * lib/mbswidth.c: Likewise
96720         * lib/regex.c: Likewise.
96721
96722         Don't use atoi.
96723         * lib/userspec.c: Include sys/param.h and limits.h.
96724         Include xstrtol.h.
96725         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96726         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96727         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96728         UID, GID.  Check range.
96729
96730 2000-09-06  Jim Meyering  <meyering@lucent.com>
96731
96732         * lib/getopt.c (_getopt_internal): Update from glibc.
96733
96734 2000-08-30  Jim Meyering  <meyering@lucent.com>
96735
96736         * lib/strftime.c: Merge in changes from GNU libc.
96737
96738 2000-08-26  Jim Meyering  <meyering@lucent.com>
96739
96740         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96741         * m4/fpending.m4: New file.
96742
96743 2000-08-26  Jim Meyering  <meyering@lucent.com>
96744
96745         * lib/closeout.c: Include "__fpending.h".
96746         (close_stdout_status): Return right away if there's nothing to flush.
96747
96748         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96749         * lib/__fpending.c: New file.
96750         * lib/__fpending.h: New file.
96751
96752 2000-08-20  Jim Meyering  <meyering@lucent.com>
96753
96754         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96755         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96756         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96757
96758 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96759
96760         Improve fileutils installation on systems where running
96761         programs (like install) can't be unlinked.
96762         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96763         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96764
96765 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96766
96767         Standardize on "memory exhausted" instead of "Memory exhausted"
96768         or "virtual memory exhausted".
96769         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96770         "virtual memory exhausted".
96771         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96772         our own message.
96773         * lib/userspec.c (parse_user_spec): Likewise.
96774         * lib/bumpalloc.h: comment fix
96775         * lib/same.c, userspec.c: Include xalloc.h.
96776
96777         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96778         not char *const and pointing to a constant array.
96779         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96780         (xrealloc): Comment fix.
96781
96782         * lib/userspec.c (parse_user_spec):
96783         Don't translate a message until just before returning,
96784         to avoid unnecessary translation.
96785
96786 2000-08-07  Jim Meyering  <meyering@lucent.com>
96787
96788         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96789         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96790         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96791         getgroups.c, gethostname.c, getopt.h, group-member.c,
96792         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96793         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96794         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96795         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96796         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96797         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96798         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96799         yesno.c: Back out Copyright date changes for each file with no change
96800         this year.  This eases coordination with other programs using the same
96801         source code modules.  From Paul Eggert.
96802
96803 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96804
96805         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96806         not char, for compatibility with glibc 2.1.3 strftime.c.
96807
96808 2000-08-03  Greg McGary  <greg@mcgary.org>
96809
96810         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96811         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96812         (EXTEND_BUFFER): Use them.
96813
96814 2000-08-01  Jim Meyering  <meyering@lucent.com>
96815
96816         * lib/dirname.c (ISSLASH): Define.
96817         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96818         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96819         both `\' and `/' may be use as path separators.
96820         Based on a patch from Prashant TR.
96821
96822 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96823
96824         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96825         slot vector a constant, since it might get modified.
96826
96827 2000-07-31  Jim Meyering  <meyering@lucent.com>
96828
96829         * lib/xmalloc.c: Use `virtual memory exhausted', not
96830         `Memory exhausted'.
96831         * lib/obstack.c (print_and_abort): Likewise.
96832
96833 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96834
96835         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96836         buffer, so that the caller can always quote one small
96837         component of a "memory exhausted" message in slot 0.
96838         From a suggestion by Jim Meyering.
96839
96840 2000-07-30  Jim Meyering  <meyering@lucent.com>
96841
96842         * lib/makepath.c (make_path): Quote the other instance, too.
96843
96844         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96845         (STATIC_BUF_SIZE): Define.
96846         (quotearg_n_options): Use only statically allocated storage when
96847         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96848         than STATIC_BUF_SIZE.
96849
96850 2000-07-29  Jim Meyering  <meyering@lucent.com>
96851
96852         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96853         * lib/dirname.c (dir_name): Likewise.
96854
96855         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96856         `/'.
96857
96858         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96859         (dir_name): Assert that there are no trailing slashes.
96860
96861 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96862
96863         * lib/mbswidth.h (mbswidth): Add a flags argument.
96864         (mbswidth): New declaration.
96865         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96866         * lib/mbswidth.c (mbswidth): Add a flags argument.
96867         (mbsnwidth): New function.
96868
96869 2000-07-24  Jim Meyering  <meyering@lucent.com>
96870
96871         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96872
96873 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96874
96875         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96876
96877 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96878
96879         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96880         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96881         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96882         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96883         invoke multibyte primitives.
96884
96885 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96886
96887         * lib/quotearg.c:
96888         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96889         so that mbstate_t is always defined.
96890
96891         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96892         be 1 in at least one GCC installation, and this configuration
96893         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96894         performance on hosts that have mbrtowc but have only unibyte
96895         locales, but I assume these hosts are rare.
96896
96897 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96898
96899         * lib/mbswidth.c (_XOPEN_SOURCE):
96900         Don't define; this causes problems on Solaris 7.
96901         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96902
96903 2000-07-23  Jim Meyering  <meyering@lucent.com>
96904
96905         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96906         too: getgrgid, getpwuid, getuid.
96907
96908 2000-07-23  Jim Meyering  <meyering@lucent.com>
96909
96910         * lib/basename.c (base_name): Add an assertion.
96911
96912 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96913
96914         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96915         shadow its mbsinit function.
96916
96917 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96918
96919         * lib/mbswidth.h: New file.
96920         * lib/mbswidth.c: New file.
96921         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96922         (noinst_HEADERS): Add mbswidth.h.
96923
96924 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96925
96926         * lib/config.charset: Add support for FreeBSD. Improve support for
96927         HP-UX and IRIX 6.
96928
96929 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96930
96931         * m4/mbswidth.m4: New file.
96932         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96933
96934 2000-07-15  Jim Meyering  <meyering@lucent.com>
96935
96936         * lib/makepath.c: Include quote.h.
96937         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96938         corresponding argument in a `quote (...)' call.
96939         Give better diagnostics.
96940
96941         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96942         (noinst_HEADERS): Add quote.h.
96943
96944         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96945         from tar's src/misc.c.
96946         * lib/quote.h: New file.  Prototypes for same.
96947
96948 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96949
96950         From a suggestion by Bruno Haible.
96951         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96952         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96953         to decide whether to define the BeOS workaround macro;
96954         this adjusts to the change to AC_MBSTATE_T.
96955
96956 2000-07-14  Jim Meyering  <meyering@lucent.com>
96957
96958         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96959         jm_AC_TYPE_UINTMAX_T.
96960
96961 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96962
96963         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96964
96965         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96966         quotearg_buffer_restyled): Add support for
96967         clocale_quoting_style.  Undo previous change to
96968         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96969         and "{RIGHT QUOTATION MARK}" msgids.
96970
96971 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96972
96973         From a suggestion by Bruno Haible.
96974         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96975         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96976         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96977         and mbstate_t, to a single-part test that simply defines mbstate_t.
96978         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96979         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96980
96981 2000-07-10  Jim Meyering  <meyering@lucent.com>
96982
96983         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96984
96985         * m4/gnu-source.m4: Output to confdefs.h directly.
96986         Suggestion from Akim Demaille.
96987
96988 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96989
96990         The old behavior of quoting `like this' doesn't look good with
96991         newer, ISO-style fonts.  See:
96992         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96993
96994         Instead, quote "like this" by default.  Let the translator
96995         tailor the locale-specific quoting behavior by providing
96996         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96997
96998         * lib/quotearg.c (N_): New macro.
96999         (gettext_default): New function.
97000         (quotearg_buffer_restyled): Use
97001         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97002         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97003
97004 2000-07-09  Jim Meyering  <meyering@lucent.com>
97005
97006         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97007         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97008
97009         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97011
97012 2000-07-09  Jim Meyering  <meyering@lucent.com>
97013
97014         * lib/Most files: Update copyright dates to include 2000.
97015
97016 2000-07-08  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97019         if not defined.
97020         (xgethostname): Remove now-unnecessary #ifdef.
97021         Move declaration of `err' into loop where it's used.
97022
97023 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97024         and Bruno Haible  <haible@clisp.cons.org>
97025
97026         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97027         only if the test for an object-type mbstate_t fails.  This
97028         prevents us from mistakenly reporting that mbstate_t is a
97029         system object type after we "#define mbstate_t int" to work
97030         around its lack.
97031
97032 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97033         and Bruno Haible  <haible@clisp.cons.org>
97034
97035         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97036
97037 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97038
97039         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97040         to strerror_r.
97041         Include <ctype.h> for use of isalpha.
97042
97043 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97044
97045         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97046         by allocating a larger buffer. Test the gethostname return value for
97047         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97048         returns an error and ENAMETOOLONG isn't defined.
97049
97050 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97051
97052         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97053         dimension.
97054
97055 2000-07-04  Jim Meyering  <meyering@lucent.com>
97056
97057         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97058         of the deprecated AC_CHECKING.
97059
97060 2000-07-04  Jim Meyering  <meyering@lucent.com>
97061
97062         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97063         Reported by Bruno Haible.
97064
97065 2000-07-04  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97068         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97069         lacks mbrtowc.
97070
97071 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97072
97073         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97074         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97075
97076 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97077         and Bruno Haible  <haible@clisp.cons.org>
97078
97079         * lib/quotearg.c (mbrtowc):
97080         Assign to *pwc, and return 1 only if result is nonzero.
97081         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97082
97083 2000-07-03  Jim Meyering  <meyering@lucent.com>
97084
97085         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97086
97087 2000-07-03  Jim Meyering  <meyering@lucent.com>
97088
97089         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97090         This is necessary to get a definition of e.g., UTMP_FILE on
97091         HP-UX 10.20.
97092         From Bob Proulx.
97093
97094 2000-07-02  Jim Meyering  <meyering@lucent.com>
97095
97096         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97097
97098         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97099         AC_LIBOBJ(function_name).
97100         * m4/chown.m4: Likewise.
97101         * m4/fnmatch.m4: Likewise.
97102         * m4/ftruncate.m4: Likewise.
97103         * m4/getgroups.m4: Likewise.
97104         * m4/getline.m4: Likewise.
97105         * m4/group-member.m4: Likewise.
97106         * m4/jm-macros.m4: Likewise.
97107         * m4/lstat.m4: Likewise.
97108         * m4/malloc.m4: Likewise.
97109         * m4/memcmp.m4: Likewise.
97110         * m4/nanosleep.m4: Likewise.
97111         * m4/putenv.m4: Likewise.
97112         * m4/realloc.m4: Likewise.
97113         * m4/regex.m4: Likewise.
97114         * m4/stat.m4: Likewise.
97115         * m4/strftime.m4: Likewise.
97116
97117 2000-07-02  Jim Meyering  <meyering@lucent.com>
97118
97119         * lib/quotearg.c (mbstate_t): Don't define here.
97120
97121 2000-07-02  Jim Meyering  <meyering@lucent.com>
97122
97123         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97124
97125 2000-07-01  Jim Meyering  <meyering@lucent.com>
97126
97127         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97128
97129 2000-07-01  Jim Meyering  <meyering@lucent.com>
97130
97131         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97132         problem.
97133
97134 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97135
97136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97137         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97138
97139 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97140
97141         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97142         per change in ../m4/ls-mntd-fs.m4.
97143         (read_filesystem_list): Ignore symbolic links.
97144
97145 2000-06-29  Jim Meyering  <meyering@lucent.com>
97146
97147         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97148         for declaration of strcmp.
97149
97150         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97151
97152         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97153         Avoid warning by casting result to `char *' to remove `const'.
97154
97155 2000-06-28  Jim Meyering  <meyering@lucent.com>
97156
97157         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97158         included by quotearg.c, for which we perform this test.  From
97159         Bruno Haible.
97160
97161 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97162
97163         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97164         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97165         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97166
97167 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97168
97169         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97170
97171 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97172
97173         savedir now sets errno on failure and invokes xmalloc to get memory.
97174         Fix a couple of other minor bugs while we're at it.
97175
97176         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97177         (NAMLEN): Remove macro.
97178         (malloc, realloc): Remove decls.
97179         (stpcpy): Likewise.
97180         ("xalloc.h"): Include.
97181         (NAME_SIZE_DEFAULT): New macro.
97182         (savedir): Use xmalloc / xrealloc to allocate memory.
97183         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97184         Skip "" directory entries.
97185         Use strlen to calculate directory entry length, since the old method
97186         is rarely used these days and isn't worth supporting.
97187         Don't use a pointer after freeing it.
97188         Check for integer overflow when calculating allocation size.
97189         Use memcpy to copy entries, instead of stpcpy.
97190         Set errno properly when returning NULL.
97191         Check for readdir error.
97192
97193 2000-06-26  Jim Meyering  <meyering@lucent.com>
97194
97195         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97196
97197 2000-06-25  Jim Meyering  <meyering@lucent.com>
97198
97199         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97200         Linux header bug when _XOPEN_SOURCE is defined to 500.
97201
97202 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97203
97204         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97205         deficiency.
97206
97207 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97208
97209         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97210         Include xalloc.h.
97211         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97212
97213 2000-06-24  Jim Meyering  <meyering@lucent.com>
97214
97215         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97216         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97217         for which strerror does return char*, but which lacks a conveniently
97218         accessible declaration of the function.  If the compile-test says
97219         strerror_r doesn't work, then resort to a `run'-test that works on
97220         BeOS and segfaults on DEC Unix.
97221
97222 2000-06-24  Jim Meyering  <meyering@lucent.com>
97223
97224         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97225
97226 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97227
97228         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97230
97231 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97232
97233         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97234         (mbrtowc, mbstate_t): Define substitutes if
97235         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97236         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97237         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97238
97239 2000-06-23  Jim Meyering  <meyering@lucent.com>
97240
97241         * m4/afs.m4: Add missing AC_MSG_RESULT.
97242         Reported by Bruno Haible.
97243
97244         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97245         Suggestion from Bruno Haible.
97246
97247 2000-06-23  Jim Meyering  <meyering@lucent.com>
97248
97249         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97250
97251 2000-06-21  Jim Meyering  <meyering@lucent.com>
97252
97253         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97254
97255 2000-06-21  Jim Meyering  <meyering@lucent.com>
97256
97257         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97258         (noinst_HEADERS): Add getstr.h.
97259
97260         * lib/getline.c (getstr): Move into a separate file.
97261         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97262         the following changes: new parameter, delim2; both delim[12]
97263         parameters have type `int', not `char'.  The latter would lose
97264         with 8-bit delimiters.
97265         * lib/getstr.h: New file.
97266
97267 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97268
97269         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97270         than 1024, return a memory chunk of least possible size, instead
97271         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97272         Use free/xmalloc instead of xrealloc to avoid copying for very long
97273         paths.
97274
97275 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97276
97277         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97278         the empty string.
97279
97280 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97281
97282         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97283         address, not strdup.  Include <stdlib.h> and don't declare free().
97284
97285 2000-06-19  Jim Meyering  <meyering@lucent.com>
97286
97287         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97288
97289 2000-06-18  Jim Meyering  <meyering@lucent.com>
97290
97291         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97292
97293         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97294         `checking whether...' message to be consistent with that of the
97295         lstat test.
97296
97297 2000-06-18  Jim Meyering  <meyering@lucent.com>
97298
97299         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97300         Besides, these days every porting target provides a mkdir function.
97301
97302         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97303         needed. (this snippet comes from src/system.h).
97304
97305 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97306
97307         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97308
97309 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97310
97311         * lib/human.c (adjust_value): New function.
97312         (human_readable_inexact): Apply rounding style even when
97313         printing approximate values.
97314
97315 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97316
97317         * lib/human.c (human_readable_inexact): Allow an input block
97318         size that is not a multiple of the output block size, and vice versa.
97319         Reported by Piergiorgio Sartor.
97320
97321 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97322
97323         * lib/getdate.y (get_date): Apply relative times after time
97324         zone indicator, not before.  Reported by Todd A. Jacobs.
97325
97326 2000-06-13  Jim Meyering  <meyering@lucent.com>
97327
97328         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97329
97330         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97331
97332 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97333
97334         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97335
97336 2000-06-12  Jim Meyering  <meyering@lucent.com>
97337
97338         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97339         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97340         optional argument.
97341         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97342         the optional argument, `lib'.
97343
97344 2000-06-08  Jim Meyering  <meyering@lucent.com>
97345
97346         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97347
97348 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97349
97350         Rewrite largefile configuration so that we don't need to run
97351         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97352         AC_CANONICAL_HOST in configure.in -- jmm]
97353
97354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97355         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97356         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97357         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97358         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97359         All uses changed.
97360         Instead of inspecting the output of getconf, try to compile the
97361         test program without and with the macro definition.
97362         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97363         for getconf.  Instead, check for the needed flags by compiling
97364         test programs.
97365
97366 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97367
97368         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97369
97370 2000-06-04  Jim Meyering  <meyering@lucent.com>
97371
97372         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97373         SunOS 4.1.4 for which gid_t is an unsigned type.
97374
97375 2000-06-03  Jim Meyering  <meyering@lucent.com>
97376
97377         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97378         now that autoconf requires that.
97379
97380         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97381         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97382         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97383
97384 2000-06-03  Jim Meyering  <meyering@lucent.com>
97385
97386         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97387
97388 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97389
97390         * m4/glibc21.m4: New file.
97391         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97392
97393 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97394
97395         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97396         newer, don't install charset.alias.
97397         * lib/config.charset: Change the Linux/glibc rules so they become empty
97398         on glibc-2.1 or newer.
97399
97400 2000-06-02  Jim Meyering  <meyering@lucent.com>
97401
97402         * lib/mountlist.c: Back out last change.  Instead, do this...
97403         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97404         me_dummy member using the same `ignore'-testing code.
97405         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97406         fs_type strings.
97407         From Mark D. Roth.
97408
97409 2000-05-29  Jim Meyering  <meyering@lucent.com>
97410
97411         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97412         mounts with the `ignore' attribute.  Based on a patch from
97413         Mark D. Roth.
97414
97415 2000-05-28  Jim Meyering  <meyering@lucent.com>
97416
97417         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97418         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97419         * m4/stat.m4: Likewise.
97420         * m4/lstat.m4: Likewise.
97421         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97422
97423         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97424         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97425
97426 2000-05-26  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97429
97430 2000-05-24  Jim Meyering  <meyering@lucent.com>
97431
97432         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97433         autoconf requires that.
97434         * m4/lib-check.m4: Likewise.
97435         * m4/jm-macros.m4: Likewise.
97436         * m4/strftime.m4: Likewise.
97437
97438         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97439         AC_CHECK_DECLS, now that autoconf requires that.
97440
97441 2000-05-22  Jim Meyering  <meyering@lucent.com>
97442
97443         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97444         * m4/lstat.m4: Likewise.
97445
97446 2000-05-22  Jim Meyering  <meyering@lucent.com>
97447
97448         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97449
97450 2000-05-20  Jim Meyering  <meyering@lucent.com>
97451
97452         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97453         (jm_PREREQ): Use it.
97454
97455 2000-05-18  Jim Meyering  <meyering@lucent.com>
97456
97457         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97458         back, too, since it may have been modified by allocate_entry.
97459         (hash_delete): Rewrite to use neither the assignment operator
97460         nor the comma operator in an if-expression.
97461
97462 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97463
97464         * lib/closeout.c:
97465         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97466         Remove; no longer needed.
97467         "quotearg.h": Add include.
97468         (file_name): Do not bother to explicitly initialize to NULL; it's less
97469         efficient on some hosts.
97470         (close_stdout_status): Remove test as to whether stdout was already
97471         closed; it breaks for the case "echo x | sort >&-".
97472         Quote file name colons.
97473         Do not assume that _("write error") lacks format strings.
97474
97475 2000-05-15  Jim Meyering  <meyering@lucent.com>
97476
97477         * lib/version-etc.c (version_etc_copyright): Update the copyright
97478         string used in all --version output.
97479
97480 2000-05-14  Jim Meyering  <meyering@lucent.com>
97481
97482         * lib/closeout.c (close_stdout_set_file_name): New function.
97483         (close_stdout_status): Use new file-scoped global.
97484         Return right away if fstat says the stdout file descriptor is invalid.
97485         * lib/closeout.h (close_stdout_set_file_name): Declare.
97486
97487 2000-05-10  Jim Meyering  <meyering@lucent.com>
97488
97489         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97490         (close_stdout_set_status): New function.
97491         * lib/closeout.h (close_stdout_set_status): Declare.
97492
97493 2000-05-09  Jim Meyering  <meyering@lucent.com>
97494
97495         * m4/gettext.m4: Rename this...
97496         * m4/libintl.m4: ...to this.
97497
97498 2000-05-08  Jim Meyering  <meyering@lucent.com>
97499
97500         * lib/long-options.c: Don't include closeout.h.
97501         (parse_long_options): Don't call close_stdout for --version.
97502
97503 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97504
97505         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97506         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97507         2.1.3 bug.  This avoids a clash when files like regex.c define
97508         _GNU_SOURCE.
97509
97510 2000-05-06  Jim Meyering  <meyering@lucent.com>
97511
97512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97513         (AC_REPLACE_FUNCS): Add strnlen.
97514
97515         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97516         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97517
97518         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97519         AC_SEARCH_LIBS call for nanosleep.
97520         (LIB_NANOSLEEP): Set and AC_SUBST.
97521
97522 2000-05-06  Jim Meyering  <meyering@lucent.com>
97523
97524         * lib/strnlen.c: Undefine __strnlen and strnlen.
97525         [!weak_alias]: Define __strnlen to strnlen.
97526
97527         * lib/atexit.c: New file, from libiberty.
97528
97529 2000-05-06  Jim Meyering  <meyering@lucent.com>
97530
97531         * lib/closeout.c (close_stdout_status): Also check for errors on the
97532         stderr stream.
97533
97534 2000-05-05  Jim Meyering  <meyering@lucent.com>
97535
97536         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97537         AC_SEARCH_LIBS call for clock_gettime.
97538         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97539
97540         * m4/search-libs.m4: Update from autoconf.
97541
97542         su doesn't work on Solaris 2.6.
97543         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97544         <shadow.h>.  Reported by Dragos Harabor.
97545
97546 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97547
97548         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97549         memcpy instead of xmalloc, xrealloc, path_concat.
97550         (locale_charset): Treat empty environment variables as absent.
97551         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97552
97553 2000-05-04  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/getopt.c: Update from glibc.
97556         * lib/obstack.c: Likewise.
97557         * lib/obstack.h: Likewise.
97558         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97559         file
97560
97561         * lib/regex.h: Likewise.
97562         * lib/strndup.c: Likewise.
97563         * lib/strnlen.c: New file, from glibc.
97564
97565 2000-05-03  Jim Meyering  <meyering@lucent.com>
97566
97567         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97568
97569 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97570
97571         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97572         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97573         compile-time test, rather than inspecting host and OS, to
97574         decide whether to define _LARGEFILE_SOURCE.
97575
97576 2000-05-01  Jim Meyering  <meyering@lucent.com>
97577
97578         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97579
97580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97581         Based on a patch from Bruno Haible.
97582
97583 2000-05-01  Jim Meyering  <meyering@lucent.com>
97584
97585         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97586
97587 2000-04-29  Jim Meyering  <meyering@lucent.com>
97588
97589         * lib/path-concat.c: Declare strdup only if it's not defined.
97590         * lib/canon-host.c: Likewise.
97591
97592 2000-04-28  Jim Meyering  <meyering@lucent.com>
97593
97594         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97595         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97596         is included first, then limits.h is included by locale.h by libintl.h.
97597         From John David Anglin.
97598
97599 2000-04-25  Jim Meyering  <meyering@lucent.com>
97600
97601         * lib/makepath.c (S_IRWXUGO): Define.
97602         (make_path): Always perform explicit chmod if MODE specifies any
97603         of the `special' permission bits.  Prompted by a bug report against
97604         install from Mate Wierdl and Joost van Baal.
97605
97606 2000-04-18  Jim Meyering  <meyering@lucent.com>
97607
97608         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97609         (jm_PREREQ): Use it.
97610
97611 2000-04-18  Jim Meyering  <meyering@lucent.com>
97612
97613         * lib/README: New file.
97614
97615         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97616         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97617
97618 2000-04-17  Jim Meyering  <meyering@lucent.com>
97619
97620         Get it right :-)
97621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97622         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97623         Suggestion from Akim Demaille.
97624
97625 2000-04-17  Jim Meyering  <meyering@lucent.com>
97626
97627         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97628         the definition of it to rpl_strftime also defined-away the system's
97629         declaration.
97630
97631 2000-04-15  Jim Meyering  <meyering@lucent.com>
97632
97633         Use `C' to denote so-called `contiguous' files, the same way
97634         that tar does.
97635         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97636         (ftypelet): Use S_ISCTG.
97637         From Michael Deutschmann.
97638
97639 2000-04-14  Jim Meyering  <meyering@lucent.com>
97640
97641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97642         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97643         clobbered.
97644
97645 2000-04-14  Jim Meyering  <meyering@lucent.com>
97646
97647         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97648
97649 2000-04-13  Jim Meyering  <meyering@lucent.com>
97650
97651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97652         AH_VERBATIM to insert required #ifndef into config.h.in.
97653         Suggestion from Akim Demaille.
97654
97655 2000-04-12  Jim Meyering  <meyering@lucent.com>
97656
97657         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97658         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97659         Christian Krackowizer.
97660
97661         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97662         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97663         (AC_SYS_LARGEFILE): Require.
97664         (AM_C_PROTOTYPES): Require.
97665
97666 2000-04-08  Jim Meyering  <meyering@lucent.com>
97667
97668         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97669         names don't conflict.  Reported by Eli Zaretskii.
97670
97671 2000-04-07  Jim Meyering  <meyering@lucent.com>
97672
97673         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97674         sys/types.h, to work around system header problems on AIX 3.2.5.
97675         From Bruno Haible.
97676
97677 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97678
97679         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97680         bug.  Deal with the different error behavior of Irix iconv.
97681
97682 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97683
97684         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97685         IRIX if the installer said otherwise.
97686
97687 2000-04-05  Jim Meyering  <meyering@lucent.com>
97688
97689         Portability tweaks required for ultrix4.3.
97690         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97691         (jm_CHECK_DECLS): Add getutent to the list of functions.
97692         (_jm_DECL_HEADERS): Add utmpx.h.
97693         From John David Anglin.
97694
97695         * m4/strftime.m4: Back out the 2000-04-02 change.
97696         Instead of that change, simply undefine putenv in the test program.
97697
97698 2000-04-05  Jim Meyering  <meyering@lucent.com>
97699
97700         Portability tweaks required for ultrix4.3.
97701         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97702         getutent.
97703         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97704         * lib/canon-host.c: Declare strdup.
97705         * lib/path-concat.c: Likewise.
97706         From John David Anglin.
97707
97708 2000-04-04  Jim Meyering  <meyering@lucent.com>
97709
97710         Be more DOS 8.3-friendly.
97711         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97712         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97713         * lib/Makefile.am: Reflect renaming.
97714         Reported by Eli Zaretskii.
97715
97716         Use a temporary file name that won't clash with `charset.alias'
97717         in the DOS 8.3 name space.
97718         * lib/Makefile.am (charset_tmp): Define.
97719         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97720         (uninstall-local): Likewise.
97721         Reported by Eli Zaretskii.
97722
97723 2000-04-03  Jim Meyering  <meyering@lucent.com>
97724
97725         * m4/gettext.m4: Fix typo in comment.
97726
97727         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97728         textutils/configure.in).  Suggestion from Paul Eggert.
97729         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97730
97731 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97732
97733         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97734         variable in the shell rather than using putenv, which isn't
97735         portable.  This avoids the configure-time inter-test dependency
97736         on the potentially-renamed putenv function.
97737
97738 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97739
97740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97741         before checking struct stat.st_blksize, so that
97742         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97743
97744 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97745
97746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97747         since strftime.c uses HAVE_STRFTIME to decide whether to use
97748         the underlying strftime.
97749
97750 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97751
97752         * lib/time/strftime.c (my_strftime): Make sure we call the system
97753         strftime, not ourselves, when invoking the underlying strftime.
97754
97755 2000-03-24  Jim Meyering  <meyering@lucent.com>
97756
97757         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97758         (charset_alias): Define.
97759         (install-exec-local): Factor out common code.
97760         (uninstall-local): Split lines longer than 80.
97761         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97762         (SUFFIXES): Define.
97763         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97764         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97765
97766 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97767
97768         * lib/config.charset: Output a line containing "Packages using this
97769         file".
97770         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97771         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97772         ref-del.sed): New rules.
97773
97774 2000-03-17  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97777         Otherwise, include <strings.h>
97778
97779 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97780
97781         * lib/unicodeio.c (utf8_wctomb): New function.
97782         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97783         format instead of in UCS-4 with platform dependent endianness.
97784
97785 2000-03-10  Jim Meyering  <meyering@lucent.com>
97786
97787         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97788         From Marco Franzen.
97789
97790 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97791
97792         * lib/savedir.c (savedir): Work even if directory size is
97793         negative; this can happen with some screwy NFS configurations.
97794
97795 2000-03-06  Jim Meyering  <meyering@lucent.com>
97796
97797         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97798         if it's NULL (because we ran out of memory).  From Bruno Haible.
97799
97800 2000-03-05  Jim Meyering  <meyering@lucent.com>
97801
97802         * lib/localcharset.c ("path-concat.h"): Include.
97803         (get_charset_aliases): Use path_concat instead of ANSI string
97804         concatenation.
97805
97806         * lib/unicodeio.h (PARAMS): Define.
97807         Use it to guard prototype.
97808
97809 2000-03-04  Jim Meyering  <meyering@lucent.com>
97810
97811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97812         for lib/localcharset.c.
97813
97814 2000-03-04  Jim Meyering  <meyering@lucent.com>
97815
97816         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97817         installing into it.
97818         (uninstall-local): Uncomment this rule so `make distcheck' works
97819         once again.
97820
97821         * lib/unicodeio.c (<errno.h>): Include it.
97822         (errno): Declare if not defined.
97823
97824         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97825
97826         * lib/config.charset: New version, incorporating remarks from a linux
97827         i18n mailing list.  From Bruno Haible.
97828
97829 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97830
97831         * m4/codeset.m4: New file.
97832         * m4/iconv.m4: New file.
97833         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97834
97835 2000-03-03  Jim Meyering  <meyering@lucent.com>
97836
97837         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97838
97839 2000-03-02  Jim Meyering  <meyering@lucent.com>
97840
97841         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97842         the messages come out on separate lines.
97843
97844         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97845         rather than jm_CHECK_DECLARATIONS.
97846         * m4/decl.m4: Remove now-unused file.
97847
97848         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97849         geteuid.
97850
97851 2000-03-02  Jim Meyering  <meyering@lucent.com>
97852
97853         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97854
97855 2000-03-01  Jim Meyering  <meyering@lucent.com>
97856
97857         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97858         * lib/unicodeio.c: Likewise.
97859
97860 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97861
97862         * lib/config.charset: New file.
97863         * lib/localcharset.c: New file.
97864         * lib/unicodeio.h, lib/unicodeio.c: New files.
97865         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97866         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97867         (noinst_HEADERS): Add unicodeio.h.
97868         (all-local, install-exec-local, charset.alias): New targets.
97869
97870 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97871
97872         * lib/quotearg.c (ALERT_CHAR): New macro.
97873         (quotearg_buffer_restyled): Use it.
97874
97875 2000-02-27  Jim Meyering  <meyering@lucent.com>
97876
97877         * m4/check-decl.m4: Add getenv to the list.
97878
97879 2000-02-27  Jim Meyering  <meyering@lucent.com>
97880
97881         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97882         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97883
97884         * lib/backupfile.c: Guard inclusion of stdlib.h with
97885         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97886         Declare malloc if needed.
97887
97888         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97889         `#ifndef HAVE_DECL..'
97890         now that autoconf always defines the HAVE_DECL_ symbols.
97891         * lib/human.c: Likewise.
97892         * lib/same.c: Likewise.
97893         * lib/strtoumax.c: Likewise.
97894
97895         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97896         declaration check was not run.
97897         * lib/hash.c: Likewise.
97898         * lib/human.c: Likewise.
97899         * lib/same.c: Likewise.
97900         * lib/strtoumax.c: Likewise.
97901
97902         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97903         `.', then first look up the entire `.'-containing string as a login
97904         name.
97905
97906 2000-02-23  Jim Meyering  <meyering@lucent.com>
97907
97908         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97909         in place of my hack.
97910
97911 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97912
97913         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97914         (textint): New typedef.
97915         (parser_control): Member year changed from int to textint.
97916         All uses changed.
97917         (YYSTYPE): Removed; replaced by %union with int and textint members.
97918         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97919         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97920         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97921         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97922         (date, number, to_year): Use width of number in digits, not its value,
97923         to determine whether it's a 2-digit year, or a 2-digit time.
97924         (yylex): Store number of digits of numeric tokens.
97925         Reported by John Kendall.
97926
97927         (parser_control): Changed from struct parser_control to typedef (for
97928         consistency).  All uses changed.
97929
97930         (tID): Removed; not used.
97931         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97932
97933 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97934
97935         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97936         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97937
97938 2000-02-12  Jim Meyering  <meyering@lucent.com>
97939
97940         * lib/userspec.c (ISDIGIT): Define it.
97941         (isdigit): Remove definition.
97942         (is_number): Use ISDIGIT, not isdigit.
97943         <libintl.h>: Include.
97944         (_ and N_): Define.
97945         (parse_user_spec): Mark translatable strings.
97946
97947 2000-02-10  Jim Meyering  <meyering@lucent.com>
97948
97949         With these changes, nanosleep.[ch] are finally enough like the other
97950         lib/* replacement files to compile on a few more losing systems.
97951
97952         * lib/nanosleep.h: Don't include config.h.
97953         Remove prototype from declaration of nanosleep.
97954         (PARAMS): Remove now-unneeded definition.
97955         * lib/nanosleep.c: #undef nanosleep.
97956         (rpl_nanosleep): Rename from nanosleep.
97957
97958 2000-02-10  Jim Meyering  <meyering@lucent.com>
97959
97960         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97961         gnu_nanosleep to rpl_nanosleep.
97962
97963 2000-02-09  Jim Meyering  <meyering@lucent.com>
97964
97965         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97966         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97967
97968 2000-02-08  Akim Demaille  <akim@epita.fr>
97969
97970         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97971         `[' and `]' and remove uses of `changequote'.
97972         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97973         (AC_SYS_LARGEFILE): Likewise.
97974         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97975         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97976         of changequote.
97977         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97978         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97980         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97981
97982 2000-02-05  Jim Meyering  <meyering@lucent.com>
97983
97984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97985         Remove explicit use of AC_HEADER_TIME.  It is required by
97986         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97987         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97988         in autoconf whereby the expansion of the latter ended up preceding
97989         the expansion of its prerequisite, AC_HEADER_TIME.
97990         Reported by Volker Borchert.
97991
97992 2000-02-03  Jim Meyering  <meyering@lucent.com>
97993
97994         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97995
97996 2000-02-03  Jim Meyering  <meyering@lucent.com>
97997
97998         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97999         rather than with `#if HAVE_UTMPNAME'.
98000
98001 2000-02-02  Jim Meyering  <meyering@lucent.com>
98002
98003         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98004         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98005         Reported by Eli Zaretskii.
98006
98007 2000-02-01  Jim Meyering  <meyering@lucent.com>
98008
98009         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98010
98011 2000-01-31  Jim Meyering  <meyering@lucent.com>
98012
98013         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98014         functions.  Add the time.h and sys/time.h headers along with the
98015         AC_REQUIRE'ment of AC_HEADER_TIME.
98016
98017 2000-01-31  Jim Meyering  <meyering@lucent.com>
98018
98019         * lib/nanosleep.h (nanosleep): Guard declaration with
98020         `#if ! HAVE_DECL_NANOSLEEP'.
98021         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98022         the declaration in that vendor's sys/timers.h.
98023         Reported by Christian Krackowizer.
98024
98025         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98026         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98027         (ISPRINT): Likewise.
98028         Reported by Tom Tromey.
98029
98030 2000-01-30  Jim Meyering  <meyering@lucent.com>
98031
98032         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98033
98034         * m4/prereq.m4 (utmp_includes): Define.
98035         Check for ut_user and ut_name members in both struct utmpx
98036         and struct utmp.
98037
98038 2000-01-30  Jim Meyering  <meyering@lucent.com>
98039
98040         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98041         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98042         header files where only utmpx.ut_user is declared.
98043
98044         * lib/readutmp.h (UT_USER): Define.
98045
98046 2000-01-29  Jim Meyering  <meyering@lucent.com>
98047
98048         * m4/lib-check.m4: New file containing library-related checks from
98049         fileutils and sh-utils (textutils had none).
98050
98051 2000-01-28  Jim Meyering  <meyering@lucent.com>
98052
98053         * m4/perl.m4: Change format of warning message to look more like that
98054         from the missing script.  Suggestion from François Pinard.
98055
98056 2000-01-25  Jim Meyering  <meyering@lucent.com>
98057
98058         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98059         well as time.h in the compile check.
98060         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98061         Fix typo in cross-compiling case: s/yes/no/.
98062
98063 2000-01-23  Jim Meyering  <meyering@lucent.com>
98064
98065         * m4/jm-macros.m4: Move df-related tests here from
98066         fileutils/configure.in
98067
98068         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98069         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98070
98071         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98072         s/space/ac_fsusage_space/.
98073         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98074
98075         * m4/ftruncate.m4: New file (derived from part of
98076         fileutils/configure.in).
98077         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98078         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98079
98080         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98081         AC_SUBST these here, rather than just in sh-util/configure.in, so
98082         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98083         all the same.
98084         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98085         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98086         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98087         (AC_SUBST(POW_LIBM)): Likewise.
98088         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98089
98090 2000-01-23  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98093         obstack.c.
98094
98095 2000-01-22  Jim Meyering  <meyering@lucent.com>
98096
98097         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98098
98099         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98100
98101         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98102         configure.in
98103         (AC_CHECK_HEADERS): Likewise for sh-utils.
98104         (AC_CHECK_HEADERS): Likewise for textutils.
98105         Merge the three lists of headers.
98106
98107         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98108         from fileutils' configure.in.
98109
98110         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98111         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98112         check-decl.m4.
98113
98114         * m4/check-decl.m4: Use #if rather than #ifdef.
98115         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98116         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98117         (_jm_DECL_HEADERS): Define new function.
98118         (jm_CHECK_DECLARATIONS): Require it.
98119
98120 2000-01-22  Jim Meyering  <meyering@lucent.com>
98121
98122         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98123         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98124         Required for some AIX systems.  Reported by Christian Krackowizer.
98125         [TESTING] (main): New function.
98126
98127         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98128         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98129         letters.
98130
98131         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98132         iswprint.
98133
98134         * lib/strverscmp.c (ISDIGIT): Define.
98135         (strverscmp): Use ISDIGIT, not isdigit.
98136
98137 2000-01-19  Jim Meyering  <meyering@lucent.com>
98138
98139         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98140         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98141         defines `struct timespec' in <sys/time.h>
98142
98143         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98144         Thanks to Akim for explaining.
98145
98146 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98147
98148         * lib/nanosleep.c (nanosleep):
98149         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98150         POSIX.1 doesn't require SA_INTERRUPT and some systems
98151         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98152         it's been part of POSIX.1 since day 1 (in 1988).
98153
98154 2000-01-17  Jim Meyering  <meyering@lucent.com>
98155
98156         * lib/interlock: Remove unused file.  Reported by François Pinard.
98157
98158 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98159
98160         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98161         alert, backslash, formfeed, and vertical tab unnecessarily in
98162         shell quoting style.
98163
98164 2000-01-16  Jim Meyering  <meyering@lucent.com>
98165
98166         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98167         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98168         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98169         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98170
98171 2000-01-16  Jim Meyering  <meyering@lucent.com>
98172
98173         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98174         because the latter didn't work.
98175
98176 2000-01-15  Jim Meyering  <meyering@lucent.com>
98177
98178         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98179         (AC_REPLACE_FUNCS): Add memcpy and memset.
98180         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98181         Add strpbrk.
98182         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98183
98184 2000-01-12  Jim Meyering  <meyering@lucent.com>
98185
98186         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98187         (jm_PREREQ): Use it.
98188         (jm_PREREQ_READUTMP): New macro.
98189         (jm_PREREQ): Use it.
98190
98191 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98192
98193         Quote multibyte characters correctly.
98194         * m4/c-bs-a.m4: New file.
98195         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98196         (jm_PREREQ): Use it.
98197
98198 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98199
98200         * m4/uintmax_t.m4: Port to autoconf 2.13.
98201
98202 2000-01-08  Jim Meyering  <meyering@ascend.com>
98203
98204         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98205         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98206
98207 2000-01-04  Jim Meyering  <meyering@ascend.com>
98208
98209         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98210         jm_STRUCT_DIRENT_D_TYPE.
98211         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98212         jm_STRUCT_DIRENT_D_INO.
98213         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98214         jm_STRUCT_UTIMBUF.
98215         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98216         renamings.
98217         * m4/utime.m4: Likewise.
98218
98219         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98220         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98221
98222 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98223
98224         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98225         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98226
98227 2000-01-02  Jim Meyering  <meyering@ascend.com>
98228
98229         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98230         remember if this is necessary.
98231
98232 1999-12-26  Jim Meyering  <meyering@ascend.com>
98233
98234         * m4/jm-macros.m4: Use it here.
98235         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98236
98237 1999-12-23  Jim Meyering  <meyering@ascend.com>
98238
98239         * m4/jm-macros.m4: Check for clock_gettime (moved from
98240         fileutils/configure.in)
98241         Check for gettimeofday.
98242
98243 1999-12-20  Jim Meyering  <meyering@ascend.com>
98244
98245         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98246         autoconf-2.14a-1999-12-20.
98247
98248 1999-12-19  Jim Meyering  <meyering@ascend.com>
98249
98250         * m4/lstat-slash.m4: New file.
98251         * m4/jm-macros.m4: Use the new macro:
98252         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98253
98254 1999-12-07  Jim Meyering  <meyering@ascend.com>
98255
98256         * m4/perl.m4: Require that File::Compare be available, too.
98257         Too many systems seem to lack it.
98258
98259         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98260         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98261
98262 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98263
98264         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98265         problem with the QNX 4.25 shell, which doesn't propagate exit
98266         status of failed commands inside shell assignments.
98267
98268 1999-11-17  Jim Meyering  <meyering@ascend.com>
98269
98270         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98271
98272 1999-11-07  Jim Meyering  <meyering@ascend.com>
98273
98274         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98275
98276 1999-11-06  Jim Meyering  <meyering@ascend.com>
98277
98278         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98279         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98280
98281 1999-11-05  Jim Meyering  <meyering@ascend.com>
98282
98283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98284         configure.in of textutils, fileutils, and sh-utils into this one
98285         (shared between those packages) file.
98286         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98287         AC_STRUCT_ST_BLKSIZE.
98288
98289 1999-11-03  Jim Meyering  <meyering@ascend.com>
98290
98291         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98292         of AC_CHECK_TYPE checks includes unistd.h.
98293         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98294         Suggestion from Akim Demaille.
98295
98296 1999-10-30  Jim Meyering  <meyering@ascend.com>
98297
98298         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98299         m4-quoted string.
98300         * m4/ls-mntd-fs.m4: Likewise.
98301         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98302         * m4/jm-winsz1.m4: Likewise.
98303
98304         * m4/const.m4: Remove file, since the fix made it into the experimental
98305         version of autoconf.
98306         * m4/mktime.m4: Likewise.
98307
98308         * m4/check-type.m4: Remove file, now that the latest version of
98309         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98310
98311         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98312         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98313         AC_CHECK_TYPE.
98314
98315 1999-10-04  Jim Meyering  <meyering@ascend.com>
98316
98317         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98318
98319 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98320
98321         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98322         2.95.1 bug with HP-UX 10.20.
98323
98324 1999-09-17  Jim Meyering  <meyering@ascend.com>
98325
98326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98327         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98328         due to missing strdup (against sh-utils-2.0).
98329
98330 1999-08-29  Jim Meyering  <meyering@ascend.com>
98331
98332         * m4/jm-macros.m4: Require jm_BISON.
98333         * m4/bison.m4: New file.
98334
98335 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98336
98337         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98338         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98339
98340 1999-08-05  Jim Meyering  <meyering@ascend.com>
98341
98342         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98343         to avoid conflicts with `conftest' on 8+3 filesystems.
98344         Suggestion from Eli Zaretskii.
98345
98346 1999-08-04  Jim Meyering  <meyering@ascend.com>
98347
98348         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98349         fileutils and sh-utils (textutils's getline test was inadequate).
98350         (AM_FUNC_GETLINE): Run this test.
98351         (AC_CHECK_FUNCS): Check for getdelim.
98352         Reported by Bob Proulx.
98353
98354 1999-08-02  Jim Meyering  <meyering@ascend.com>
98355
98356         * m4/jm-macros.m4: Add a comment.
98357
98358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98359
98360         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98361         <inttypes.h> defines strtoumax as a macro (and not as a
98362         function).
98363
98364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98365
98366         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98367         that we can shift, multiply and divide unsigned long long
98368         values; Ultrix cc can't do it.
98369
98370 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98371
98372         * m4/mktime.m4: New file, which is a preview of what should appear
98373         in the next public autoconf release.
98374
98375 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98376
98377         * m4/lfs.m4: Remove this file.
98378         * m4/largefile.m4: New file.  It contains the old contents of
98379         lfs.m4, except that all names with prefix AC_LFS have been
98380         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98381         compatible with future autoconf versions.  Also, some minor m4
98382         quoting problems have been fixed.
98383
98384 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98385
98386         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98387         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98388         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98389         and simplify the shell code.
98390
98391 1999-08-01  Jim Meyering  <meyering@ascend.com>
98392
98393         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98394         m4.
98395
98396 1999-07-20  Jim Meyering  <meyering@ascend.com>
98397
98398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98399
98400 1999-07-15  Jim Meyering  <meyering@ascend.com>
98401
98402         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98403
98404 1999-05-22  Jim Meyering  <meyering@ascend.com>
98405
98406         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98407
98408 1999-05-20  Jim Meyering  <meyering@ascend.com>
98409
98410         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98411         Add a colon after each `then' in case $4 is empty.
98412
98413 1999-05-16  Jim Meyering  <meyering@ascend.com>
98414
98415         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98416
98417 1999-05-10  Jim Meyering  <meyering@ascend.com>
98418
98419         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98420
98421         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98422         AC_FUNC_MKTIME.
98423
98424 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98425
98426         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98427
98428 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98429
98430         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98431         not CPPFLAGS, so that linking works correctly in IRIX.
98432
98433 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98434
98435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98436
98437 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98438
98439         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98440         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98442         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98443         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98444
98445         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98446
98447 1999-04-20  Jim Meyering  <meyering@ascend.com>
98448
98449         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98450         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98451         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98452
98453 1999-04-18  Jim Meyering  <meyering@ascend.com>
98454
98455         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98456         * m4/jm-macros.m4: Use it.
98457
98458 1999-04-06  Jim Meyering  <meyering@ascend.com>
98459
98460         * m4/strftime.m4: Remove test for %f.
98461
98462 1999-03-29  Jim Meyering  <meyering@ascend.com>
98463
98464         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98465         superset of the AC_TYPE_* checks in the textutils, fileutils,
98466         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98467         AC_TYPE_PID_T.
98468
98469 1999-03-28  Jim Meyering  <meyering@ascend.com>
98470
98471         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98472         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98473         replaced e.g., in the *.sh files of the sh-utils.
98474
98475 1999-03-20  Jim Meyering  <meyering@ascend.com>
98476
98477         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98478         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98479         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98480
98481 1999-03-19  Jim Meyering  <meyering@ascend.com>
98482
98483         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98484
98485 1999-03-12  Jim Meyering  <meyering@ascend.com>
98486
98487         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98488
98489 1999-03-07  Jim Meyering  <meyering@ascend.com>
98490
98491         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98492         declared.
98493
98494 1999-02-17  Jim Meyering  <meyering@ascend.com>
98495
98496         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98497         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98498
98499 1999-02-07  Jim Meyering  <meyering@ascend.com>
98500
98501         * m4/group-member.m4: New file -- extracted from sh-utils'
98502         configure.in.
98503
98504         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98505         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98506
98507 1999-02-06  Jim Meyering  <meyering@ascend.com>
98508
98509         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98510         * m4/fnmatch.m4: Likewise.
98511         * m4/getgroups.m4: Likewise.
98512         * m4/lstat.m4: Likewise.
98513         * m4/malloc.m4: Likewise.
98514         * m4/putenv.m4: Likewise.
98515         * m4/realloc.m4: Likewise.
98516         * m4/regex.m4: Likewise.
98517         * m4/stat.m4: Likewise.
98518         * m4/strftime.m4: Likewise.
98519         Suggestion from Alain Magloire.
98520
98521         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98522         * m4/fnmatch.m4: Likewise.
98523         * m4/getgroups.m4: Likewise.
98524         * m4/getline.m4: Likewise.
98525         * m4/lstat.m4: Likewise.
98526         * m4/malloc.m4: Likewise.
98527         * m4/memcmp.m4: Likewise.
98528         * m4/putenv.m4: Likewise.
98529         * m4/realloc.m4: Likewise.
98530         * m4/regex.m4: Likewise.
98531         * m4/stat.m4: Likewise.
98532         * m4/strftime.m4: Likewise.
98533         Suggestion from Alain Magloire.
98534
98535         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98536         an argument.
98537
98538         * m4/regex.m4: Add a run-time Test for proper operation of
98539         re_compile_pattern.
98540
98541 1999-01-31  Jim Meyering  <meyering@ascend.com>
98542
98543         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98544
98545 1999-01-30  Jim Meyering  <meyering@ascend.com>
98546
98547         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98548
98549         * m4/jm-mktime.m4: Make this a wrapper around the official
98550         AM_FUNC_MKTIME rather than my private copy, now that the official one
98551         is up to date.
98552         * m4/mktime.m4: Remove file.
98553
98554         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98555         * m4/uptime.m4: Likewise.
98556         * m4/uintmax_t.m4: Likewise.
98557
98558 1999-01-28  Jim Meyering  <meyering@ascend.com>
98559
98560         * m4/jm-macros.m4: Use jm_AFS.
98561         * m4/afs.m4: New file (from fileutils' configure.in).
98562
98563         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98564         * m4/chown.m4: Likewise.
98565         * m4/d-ino.m4: Likewise.
98566         * m4/d-type.m4: Likewise.
98567         * m4/fnmatch.m4: Likewise.
98568         * m4/getgroups.m4: Likewise.
98569         * m4/gettext.m4: Likewise.
98570         * m4/jm-mktime.m4: Likewise.
98571         * m4/jm-winsz2.m4: Likewise.
98572         * m4/lcmessage.m4: Likewise.
98573         * m4/ls-mntd-fs.m4: Likewise.
98574         * m4/malloc.m4: Likewise.
98575         * m4/memcmp.m4: Likewise.
98576         * m4/putenv.m4: Likewise.
98577         * m4/realloc.m4: Likewise.
98578         * m4/st_mtim.m4: Likewise.
98579         * m4/strftime.m4: Likewise.
98580
98581 1999-01-16  Jim Meyering  <meyering@ascend.com>
98582
98583         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98584         (ARGMATCH_DIE_DECL): Define.
98585
98586 1999-01-12  Jim Meyering  <meyering@ascend.com>
98587
98588         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98589         Reported by Lars Hecking.
98590
98591 1999-01-10  Jim Meyering  <meyering@ascend.com>
98592
98593         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98594         gross kludge.
98595         * m4/inttypes_h.m4: Likewise.
98596         * m4/lstat.m4: Likewise.
98597         * m4/malloc.m4: Likewise.
98598         * m4/readdir.m4: Likewise.
98599         * m4/realloc.m4: Likewise.
98600         * m4/st_dm_mode.m4: Likewise.
98601         * m4/stat.m4: Likewise.
98602         * m4/utimbuf.m4: Likewise.
98603         * m4/utimes.m4: Likewise.
98604
98605         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98606         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98607         comments in config.h.in are meaningful.
98608
98609         * m4/jm-macros.m4: Require autoconf-2.13 here.
98610
98611         * m4/regex.m4: By default, don't use the included regex.c on systems
98612         with glibc 2.  Suggestion from Uli Drepper.
98613
98614 1999-01-02  Jim Meyering  <meyering@ascend.com>
98615
98616         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98617
98618 1998-12-18  Jim Meyering  <meyering@ascend.com>
98619
98620         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98621         Based on a suggestion from Lars Hecking.
98622
98623 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98624
98625         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98626
98627 1998-11-16  Jim Meyering  <meyering@ascend.com>
98628
98629         * m4/lfs.m4: Double-quote the `uname...` expression.
98630
98631 1998-11-14  Jim Meyering  <meyering@ascend.com>
98632
98633         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98634         * m4/stat.m4: Likewise.
98635
98636 1998-11-03  Jim Meyering  <meyering@ascend.com>
98637
98638         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98639         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98640
98641 1998-10-18  Jim Meyering  <meyering@ascend.com>
98642
98643         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98644
98645 1998-10-17  Jim Meyering  <meyering@ascend.com>
98646
98647         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98648         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98649         calls for those previously hard-coded headers.  Instead, take a new
98650         parameter.
98651         (jm_CHECK_DECLARATIONS): Reflect interface change.
98652         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98653         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98654
98655         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98656
98657 1998-10-14  Jim Meyering  <meyering@ascend.com>
98658
98659         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98660         instead of "TZ=America/Vancouver".  From Paul Eggert.
98661
98662 1998-10-11  Jim Meyering  <meyering@ascend.com>
98663
98664         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98665         This adds a test for a recently added compatibility fix for mktime.c.
98666         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98667
98668 1998-09-27  Jim Meyering  <meyering@ascend.com>
98669
98670         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98671
98672         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98673         ../configure.in, including a change from Gordon Matzigkeit to allow
98674         cross-compiling for the Hurd.
98675
98676         * m4/glibc.m4: New file/macro to test for the GNU C Library
98677         versions 1 and 2.  From Gordon Matzigkeit.
98678         Indent.
98679
98680 1998-09-21  Jim Meyering  <meyering@ascend.com>
98681
98682         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98683
98684 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98685
98686         Port nanosecond-resolution times to UnixWare 2.1.2 and
98687         pedantic Solaris 2.6.
98688
98689         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98690         AC_STRUCT_ST_MTIM.
98691         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98692         Generate name of ns member, instead of just 1 or undef.
98693         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98694
98695 1998-08-15  Jim Meyering  <meyering@ascend.com>
98696
98697         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98698         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98699         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98700         instead of jm_TYPE_SSIZE_T.
98701
98702 1998-08-12  Jim Meyering  <meyering@ascend.com>
98703
98704         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98705
98706 1998-08-02  Jim Meyering  <meyering@ascend.com>
98707
98708         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98709         in acconfig.h manually.
98710
98711 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98712
98713         * m4/st_mtim.m4: New file.
98714
98715 1998-07-28  Jim Meyering  <meyering@ascend.com>
98716
98717         * m4/utimes.m4: Undef stat.
98718
98719 1998-07-25  Jim Meyering  <meyering@ascend.com>
98720
98721         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98722         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98723
98724 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98725
98726         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98727         uid and gid actually remain unchanged.
98728
98729 1998-07-07  Jim Meyering  <meyering@ascend.com>
98730
98731         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98732
98733 1998-07-04  Jim Meyering  <meyering@ascend.com>
98734
98735         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98736         to prove that this macro can be used in packages without regex.c.
98737
98738 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98739
98740         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98741         is to be used.
98742
98743 1998-07-03  Jim Meyering  <meyering@ascend.com>
98744
98745         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98746
98747         * m4/gettext.m4: New file -- from gettext-0.10.35.
98748         * m4/lcmessage.m4: Likewise.
98749         * m4/progtest.m4: Likewise.
98750
98751         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98752         * m4/jm-macros.m4: Require the new macro.
98753
98754 1998-06-29  Jim Meyering  <meyering@ascend.com>
98755
98756         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98757         for the definition of NGROUPS (used in a system header included
98758         by sys/mount.h).
98759
98760 1998-06-28  Jim Meyering  <meyering@ascend.com>
98761
98762         * m4/ls-mntd-fs.m4: New file.
98763         * m4/fstypename.m4: New file.
98764
98765         * m4/jm-macros.m4: Require the new macro.
98766         * m4/jm-glibc-io.m4: New file.
98767
98768 1998-05-19  Jim Meyering  <meyering@ascend.com>
98769
98770         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98771         * m4/lchown.m4: New file.
98772
98773         * m4/Makefile.am.in: New file.
98774         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98775
98776 1998-05-14  Jim Meyering  <meyering@ascend.com>
98777
98778         * m4/Makefile.am (EXTRA_DIST): Add them.
98779         * m4/jm-macros.m4: New file.
98780         * m4/utimbuf.m4: New file.
98781
98782 1998-05-12  Jim Meyering  <meyering@ascend.com>
98783
98784         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98785
98786 1998-05-11  Jim Meyering  <meyering@ascend.com>
98787
98788         * m4/isc-posix.m4: New file.
98789
98790 1998-05-10  Jim Meyering  <meyering@ascend.com>
98791
98792         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98793
98794 1998-05-09  Jim Meyering  <meyering@ascend.com>
98795
98796         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98797         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98798         with automake.
98799
98800         * m4/ssize_t.m4: New file.
98801         * m4/mktime.m4: Remove file -- the new automake has this now.
98802
98803 1998-04-26  Jim Meyering  <meyering@ascend.com>
98804
98805         * m4/assert.m4: New file.
98806         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98807
98808 1998-04-05  Jim Meyering  <meyering@ascend.com>
98809
98810         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98811         (jm_PREREQ): Use it here.
98812
98813 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98814
98815         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98816         in acconfig.h.
98817
98818 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98819
98820         * m4/prereq.m4: New file.
98821         * m4/error.m4: New file.
98822         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98823
98824 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98825
98826         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98827         cache-check for the same variable -- that defeated the purpose of
98828         the test; the test program was never run.  This was a problem only
98829         on systems with losing getline functions -- HP-UX 10.20 is one.
98830         Reported by Bjorn Helgaas.
98831
98832 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98833
98834         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98835
98836 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98837
98838         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98839
98840         * m4/const.m4: New file.  Use an initializer in this declaration
98841         typedef int charset[2]; const charset x;
98842         Reported by Bob Glickstein.
98843
98844 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98845
98846         * m4/chown.m4: Fix reversed types on -1 args to chown.
98847         From Kaveh Ghazi.
98848
98849 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98850
98851         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98852         Add lseek and memchr.
98853
98854         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98855         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98856         have a 20-character limit on names.
98857
98858 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98859
98860         * m4/inttypes_h.m4: New file.
98861         * m4/uintmax_t.m4: New file.
98862         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98863
98864
98865         -----
98866
98867         Local Variables:
98868         coding: utf-8
98869         End:
98870
98871         Copyright (C) 1997-2013 Free Software Foundation, Inc.
98872
98873         Copying and distribution of this file, with or without
98874         modification, are permitted provided the copyright notice
98875         and this notice are preserved.